:root {
  color-scheme: light;
  --paper: #f4f1e9;
  --paper-deep: #e9e3d6;
  --ink: #172d2a;
  --muted: #435652;
  --line: #a9b2a6;
  --accent: #145b4d;
  --accent-dark: #0c4037;
  --alert: #8b4b22;
  --white: #fffdf7;
  --focus: #a64819;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
  scrollbar-color: var(--accent) var(--paper-deep);
}

body { margin: 0; min-width: 320px; }

::selection { background: #b5d3c5; color: #102521; }

a { color: var(--accent-dark); text-underline-offset: 0.2em; }
a:hover { color: #792f13; }
a:focus-visible, [tabindex="0"]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  z-index: 5;
  inset: 0 auto auto 0;
  padding: 0.6rem 1rem;
  color: var(--white);
  background: var(--accent-dark);
  transform: translateY(-120%);
}
.skip-link:focus { transform: translateY(0); }

.site-header, main, .site-footer {
  width: min(100% - 3rem, 76rem);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 5.25rem;
  border-bottom: 1px solid var(--line);
}

.site-name {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-decoration: none;
}

.opening {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(29rem, 0.94fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
  min-height: min(48rem, calc(100svh - 5.25rem));
  padding-block: clamp(4.5rem, 10vh, 8rem);
  border-bottom: 1px solid var(--line);
}

.opening-copy { max-width: 37rem; }

.availability {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.4rem;
  color: var(--alert);
  font-size: 0.78rem;
  font-weight: 720;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.availability-mark {
  width: 0.58rem;
  height: 0.58rem;
  border: 1px solid var(--alert);
  border-radius: 50%;
  background: transparent;
}

h1, h2, h3, p { margin-top: 0; }

h1, h2, h3 {
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 500;
  text-wrap: balance;
}

h1 {
  max-width: 11ch;
  margin-bottom: 1.25rem;
  font-size: clamp(2.75rem, 5vw, 4.8rem);
  line-height: 0.99;
  letter-spacing: -0.035em;
}

.intro {
  max-width: 38ch;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
}

.primary-link, .closing-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.2rem;
  min-height: 3.25rem;
  padding: 0.76rem 1rem;
  color: var(--white);
  background: var(--accent-dark);
  font-size: 0.95rem;
  font-weight: 680;
  text-decoration: none;
}
.primary-link:hover, .closing-link:hover { color: var(--white); background: #245f50; }
.primary-link span, .closing-link span { font-size: 1.25rem; line-height: 1; }

.setup-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.sample-sheet {
  min-width: 0;
  margin: 0;
  padding: clamp(1.1rem, 2.1vw, 1.7rem);
  background: var(--white);
  box-shadow: 0 12px 28px rgb(23 45 42 / 8%);
}

.sheet-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.11em;
}

.sample-sheet figcaption {
  margin: 1.2rem 0 0.75rem;
  color: var(--ink);
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
}

.table-scroll { overflow-x: auto; overscroll-behavior-inline: contain; }
.preview-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.preview-table th, .preview-table td { padding: 0.7rem 0.45rem; border-bottom: 1px solid #d4d8ce; text-align: left; vertical-align: top; }
.preview-table th:first-child, .preview-table td:first-child { padding-left: 0; }
.preview-table thead th { color: var(--muted); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.045em; }
.preview-table tbody th { min-width: 8.5rem; font-weight: 600; }
.preview-table code, .row-proof code { color: var(--accent-dark); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.sheet-note { margin: 1rem 0 0; color: var(--muted); font-size: 0.78rem; }

.section { padding-block: clamp(4rem, 8vw, 7rem); border-bottom: 1px solid var(--line); }
.section-heading {
  display: grid;
  grid-template-columns: minmax(13rem, 0.75fr) minmax(18rem, 1fr);
  align-items: start;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.section-heading h2, .closing h2 { margin: 0; font-size: clamp(2rem, 3.2vw, 3.1rem); line-height: 1.06; letter-spacing: -0.025em; }
.section-heading p { max-width: 52ch; margin: 0; color: var(--muted); }

.sample-detail { display: grid; grid-template-columns: 0.88fr 1.12fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.row-proof { border-top: 1px solid var(--ink); }
.row-proof p { display: grid; grid-template-columns: 1.2fr 0.65fr 1.4fr; align-items: baseline; gap: 0.6rem; margin: 0; padding: 0.8rem 0; border-bottom: 1px solid var(--line); font-size: 0.82rem; }
.row-proof p span:first-child { color: var(--muted); }
.row-proof p span:last-child { color: var(--muted); text-align: right; }
.file-list { border-top: 1px solid var(--ink); }
.file-list a { display: flex; justify-content: space-between; gap: 1rem; padding: 0.9rem 0.15rem; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.file-list a span:first-child { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.88rem; }
.file-list a span:last-child { color: var(--accent-dark); font-size: 0.82rem; text-decoration: underline; text-underline-offset: 0.2em; }
.file-list a:hover span:first-child { color: var(--accent-dark); }
.sample-warning { max-width: 72ch; margin: 1.8rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.83rem; }

.offer-list { border-top: 1px solid var(--ink); }
.offer-row { display: grid; grid-template-columns: 0.8fr 1fr 1.5fr; align-items: baseline; gap: 2rem; padding: 1.45rem 0; border-bottom: 1px solid var(--line); }
.offer-name h3 { margin: 0; font-size: 1.5rem; }
.offer-name p { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.85rem; }
.offer-price { display: flex; align-items: baseline; gap: 0.85rem; margin: 0; }
.offer-price strong { font-family: ui-serif, Georgia, "Times New Roman", serif; font-size: 1.8rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.offer-price span { color: var(--muted); font-size: 0.82rem; }
.offer-terms { margin: 0; color: var(--muted); font-size: 0.88rem; }
.correction-note { margin: 1.5rem 0 0; color: var(--muted); font-size: 0.88rem; }
.correction-note strong { color: var(--ink); }

.deliverables { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 6vw, 6rem); margin: 0; border-top: 1px solid var(--ink); }
.deliverables div { display: grid; grid-template-columns: minmax(8.5rem, 0.85fr) 1.2fr; gap: 1.2rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.deliverables dt { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.86rem; }
.deliverables dd { margin: 0; color: var(--muted); font-size: 0.85rem; }
.boundary-note { max-width: 72ch; margin: 1.75rem 0 0; color: var(--muted); font-size: 0.88rem; }

.closing { display: flex; align-items: end; justify-content: space-between; gap: 2rem; padding-block: clamp(4rem, 8vw, 7rem); }
.closing h2 { max-width: 16ch; }
.closing p { max-width: 47ch; margin: 1rem 0 0; color: var(--muted); }
.closing-link { flex: 0 0 auto; }
.site-footer { display: flex; justify-content: space-between; gap: 2rem; padding-block: 1.5rem 2.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.76rem; }
.site-footer p { max-width: 52ch; margin: 0; }

@media (max-width: 900px) {
  .opening { grid-template-columns: minmax(0, 1fr); gap: 3rem; min-height: 0; }
  .opening-copy { max-width: 42rem; }
  h1 { max-width: 13ch; }
  .sample-sheet { width: min(100%, 42rem); justify-self: end; }
}

@media (max-width: 640px) {
  .site-header, main, .site-footer { width: min(100% - 2rem, 76rem); }
  .site-header { align-items: start; flex-direction: column; justify-content: center; gap: 0.25rem; min-height: 5rem; padding-block: 0.7rem; }
  .opening { gap: 2.5rem; padding-block: 3.5rem; }
  h1 { max-width: 11ch; font-size: clamp(2.7rem, 12vw, 3.9rem); }
  .intro { font-size: 1rem; }
  .sample-sheet { width: 100%; padding: 1rem; }
  .preview-table { min-width: 29rem; }
  .section { padding-block: 3.5rem; }
  .section-heading, .sample-detail { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .section-heading { margin-bottom: 1.8rem; }
  .row-proof p { grid-template-columns: 1fr 0.65fr 1.3fr; gap: 0.3rem; font-size: 0.75rem; }
  .offer-row { grid-template-columns: 1fr 1.2fr; gap: 0.75rem 1rem; }
  .offer-terms { grid-column: 1 / -1; }
  .offer-price { align-items: end; flex-direction: column; gap: 0; }
  .offer-price strong { font-size: 1.6rem; }
  .deliverables { grid-template-columns: 1fr; }
  .deliverables div { grid-template-columns: minmax(8rem, 0.8fr) 1.2fr; gap: 0.8rem; }
  .closing { align-items: start; flex-direction: column; padding-block: 3.5rem; }
  .closing h2 { font-size: 2.25rem; }
  .closing-link { flex: 0 1 auto; flex-wrap: wrap; gap: 1rem; max-width: 100%; }
  .site-footer { flex-direction: column; gap: 0.65rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
