:root {
  color-scheme: light;
  --ink: #17211b;
  --muted: #5e6861;
  --paper: #f5f2e9;
  --surface: #fffdf7;
  --line: #d8d3c7;
  --accent: #9f2f2f;
  --accent-dark: #7d2020;
  --green: #274f3a;
  --warning: #fff1ce;
  --warning-line: #d49a27;
  --content: 70rem;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
  line-height: 1.6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 20rem;
  margin: 0;
  color: var(--ink);
  background: linear-gradient(rgba(23, 33, 27, 0.035) 1px, transparent 1px), var(--paper);
  background-size: 100% 2rem;
}

a {
  color: var(--accent-dark);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

a:focus-visible,
.button:focus-visible {
  outline: 0.2rem solid #1b6ca8;
  outline-offset: 0.2rem;
}

.skip-link {
  position: absolute;
  top: -5rem;
  left: 1rem;
  z-index: 10;
  padding: 0.65rem 1rem;
  color: #fff;
  background: var(--ink);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.96);
}

.header-inner,
.site-footer__inner,
.page {
  width: min(calc(100% - 2rem), var(--content));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
}

.brand {
  flex: 0 0 auto;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  color: var(--ink);
  font-size: 0.92rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent-dark);
  text-decoration: underline;
}

.page {
  padding-block: clamp(2.5rem, 7vw, 6rem);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(17rem, 0.65fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
  min-height: 35rem;
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.15;
}

h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(3.1rem, 10vw, 7.8rem);
  letter-spacing: -0.055em;
}

.document h1,
.standard-page h1 {
  max-width: 18ch;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.65rem, 4vw, 2.45rem);
}

h3 {
  margin: 2rem 0 0.65rem;
  font-size: 1.3rem;
}

p,
li {
  max-width: 70ch;
}

.lead {
  max-width: 40ch;
  margin: 1.5rem 0 0;
  color: #364239;
  font-size: clamp(1.12rem, 2.5vw, 1.45rem);
}

.hero-card,
.card,
.notice {
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: var(--surface);
  box-shadow: 0 0.7rem 2rem rgba(38, 31, 24, 0.06);
}

.hero-card,
.card {
  padding: clamp(1.35rem, 4vw, 2rem);
}

.price {
  display: block;
  margin-block: 0.15rem 0.75rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 7vw, 4.4rem);
  font-weight: 700;
  line-height: 1;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-block: 1rem 1.4rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #354038;
  background: #f8f5ed;
  font-size: 0.82rem;
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--accent-dark);
  border-radius: 0.25rem;
  color: #fff;
  background: var(--accent-dark);
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}

.button:hover {
  color: #fff;
  background: var(--accent);
}

.button[aria-disabled="true"] {
  border-color: #979c97;
  color: #4e5650;
  background: #dfe1dc;
  cursor: not-allowed;
}

.section {
  padding-block: clamp(3rem, 7vw, 5.5rem);
  border-bottom: 1px solid var(--line);
}

.section:last-child {
  border-bottom: 0;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(12rem, 0.48fr) minmax(0, 1fr);
  gap: clamp(2rem, 7vw, 6rem);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card h3 {
  margin-top: 0;
}

.number {
  color: var(--accent-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.4rem;
  font-weight: 700;
}

.check-list {
  padding-left: 1.25rem;
}

.check-list li + li {
  margin-top: 0.6rem;
}

.notice {
  margin-block: 1.5rem;
  padding: 1rem 1.2rem;
  border-left: 0.35rem solid var(--green);
}

.notice--warning {
  border-color: var(--warning-line);
  background: var(--warning);
}

.notice > :first-child {
  margin-top: 0;
}

.notice > :last-child {
  margin-bottom: 0;
}

.standard-page,
.document {
  max-width: 52rem;
}

.standard-page > header,
.document > header {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.standard-page section,
.document section {
  padding-block: 1.6rem;
  border-bottom: 1px solid var(--line);
}

.standard-page section:last-child,
.document section:last-child {
  border-bottom: 0;
}

.document h2 {
  margin-top: 0;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
}

.document h3 {
  font-family: inherit;
  font-size: 1.05rem;
}

.details {
  margin: 0;
}

.details dt {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.details dd {
  margin: 0.15rem 0 0;
}

.site-footer {
  border-top: 1px solid #35443b;
  color: #ecede8;
  background: var(--ink);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  padding-block: 2.5rem;
}

.site-footer p {
  margin: 0.25rem 0;
}

.site-footer a {
  color: #fff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  align-content: flex-start;
  justify-content: flex-end;
}

.small {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .small {
  color: #bdc4bf;
}

@media (max-width: 54rem) {
  .header-inner {
    display: block;
    padding-block: 1rem;
  }

  .site-nav ul {
    justify-content: flex-start;
    margin-top: 0.75rem;
  }

  .hero,
  .section-grid,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 34rem) {
  .header-inner,
  .site-footer__inner,
  .page {
    width: min(calc(100% - 1.25rem), var(--content));
  }

  .site-nav ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 1rem;
  }

  h1 {
    font-size: clamp(2.75rem, 17vw, 4.25rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
