:root {
  --paper: #fbf7ef;
  --panel: #ffffff;
  --ink: #1f241f;
  --muted: #62675f;
  --line: #d9cfba;
  --accent: #7f5d2b;
  --accent-soft: #efe2c4;
  --shadow: 0 20px 60px rgba(31, 36, 31, 0.12);
  --radius-large: 28px;
  --radius-medium: 18px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, var(--paper) 0%, #f4ead8 100%);
  color: var(--ink);
  line-height: 1.65;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

.site-header {
  padding: 36px 18px 20px;
}

.masthead {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  background: radial-gradient(circle at top right, var(--accent-soft), transparent 34%), var(--panel);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 700;
}

h1,
h2,
h3 {
  line-height: 1.18;
  margin: 0 0 16px;
}

h1 {
  max-width: 900px;
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  letter-spacing: -0.05em;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 16px;
}

.intro {
  max-width: 930px;
  font-size: 1.12rem;
}

.top-links,
.site-footer nav,
.top-links ul,
.site-footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.top-links,
.site-footer nav {
  margin-top: 24px;
}

.top-links ul,
.site-footer nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--ink);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  font-weight: 700;
}

.top-links a,
.site-footer a,
.card a {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 999px;
  padding: 10px 14px;
  text-decoration: none;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px;
}

article > section {
  margin: 28px 0;
  padding: 34px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
}

.hero-grid,
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 28px;
  align-items: center;
}

.hero-panel,
.notice,
.checklist {
  background: linear-gradient(135deg, #ffffff, var(--accent-soft));
}

.image-card {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-medium);
  border: 1px solid var(--line);
  background: #efe6d6;
}

.image-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

figcaption {
  padding: 12px 14px;
  font-size: 0.95rem;
  color: var(--muted);
}

.notice {
  border-left: 8px solid var(--accent);
}

.section-heading {
  max-width: 780px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: var(--panel);
  border-radius: var(--radius-medium);
  overflow: hidden;
}

th,
td {
  padding: 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #f5eddc;
}

tr:last-child th,
tr:last-child td {
  border-bottom: 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  background: var(--panel);
  min-height: 260px;
  display: flex;
  flex-direction: column;
}

.card a {
  margin-top: auto;
  align-self: flex-start;
}

.checklist ul {
  margin: 0;
  padding-left: 22px;
}

.checklist li {
  margin: 10px 0;
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  padding: 16px 18px;
  margin: 12px 0;
  background: var(--panel);
}

summary {
  cursor: pointer;
  font-weight: 800;
}

summary + p {
  margin-top: 12px;
}

.site-footer {
  max-width: var(--max-width);
  margin: 30px auto 0;
  padding: 28px 18px 48px;
  color: var(--muted);
}

@media (max-width: 960px) {
  .masthead {
    padding: 30px;
  }

  .hero-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  article > section {
    padding: 22px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  th,
  td {
    display: block;
    width: 100%;
  }

  thead {
    display: none;
  }

  tr {
    display: block;
    border-bottom: 1px solid var(--line);
  }
}
