:root {
  --green-900: #1f3b2d;
  --green-800: #27473a;
  --brass-300: #cdb487;
  --brass-500: #a88b5c;
  --brass-700: #7a6236;
  --ivory-25: #fbf8f2;
  --ivory-50: #f5f0e6;
  --stone-200: #ddd5c6;
  --sage-200: #c5cdc4;
  --ink-600: #4b5049;
  --ink-950: #151a17;
  --surface: #f5f0e6;
  --surface-raised: #fbf8f2;
  --panel: #ddd5c6;
  --on-panel: #151a17;
  --ink: #151a17;
  --ink-muted: #4b5049;
  --heading: #1f3b2d;
  --accent: #a88b5c;
  --accent-text: #7a6236;
  --line: #ddd5c6;
  --action: #1f3b2d;
  --on-action: #f5f0e6;
  --focus-ring: #1f3b2d;
  --font-display: "Bodoni Moda", "Bodoni 72", Didot, Georgia, serif;
  --font-sans: Jost, Futura, "Helvetica Neue", Arial, sans-serif;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --pin-gap: 40px;
  --pin-safe: 80px;
  --radius-none: 0;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-full: 9999px;
  --aspect-pin: 2 / 3;
  --aspect-square: 1 / 1;
  --aspect-video: 9 / 16;
  --aspect-wide: 16 / 9;
}
.theme-green {
  --surface: #1f3b2d;
  --surface-raised: #27473a;
  --panel: #ddd5c6;
  --on-panel: #151a17;
  --ink: #f5f0e6;
  --ink-muted: #c5cdc4;
  --heading: #f5f0e6;
  --accent: #a88b5c;
  --accent-text: #cdb487;
  --line: #3d5c4c;
  --action: #f5f0e6;
  --on-action: #1f3b2d;
  --focus-ring: #f5f0e6;
}

/* The Heir Collection. Colors, spacing and fonts come from the tokens above. */

@font-face {
  font-family: "Bodoni Moda";
  src: url("/assets/fonts/bodoni-moda.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("/assets/fonts/jost.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------------------------ Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
main { flex: 1 0 auto; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { font-weight: 500; color: var(--heading); }
a { color: var(--heading); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
::selection { background: var(--stone-200); color: var(--ink-950); }

.theme-green { background: var(--surface); color: var(--ink); }

.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 10;
  padding: var(--space-2) var(--space-4);
  background: var(--action); color: var(--on-action);
}
.skip-link:focus { top: var(--space-4); }

/* ------------------------------------------------------------ Type */
.display-xl, .display-lg, .heading, .subheading, .prose > h2, .prose > h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--heading);
  text-wrap: balance;
}
.display-xl { font-size: clamp(36px, 5.2vw, 52px); line-height: 1.1; }
.display-lg { font-size: clamp(31px, 4.2vw, 40px); line-height: 1.15; }
.heading { font-size: clamp(25px, 3vw, 30px); line-height: 1.2; }
.subheading { font-size: 21px; line-height: 1.3; }
.body { font-size: 17px; line-height: 1.6; }
.body-sm { font-size: 15px; line-height: 1.55; }
.caption { font-size: 13px; line-height: 1.45; color: var(--ink-muted); }
.lede { font-size: 19px; line-height: 1.55; color: var(--ink-muted); max-width: 62ch; }
.eyebrow {
  font: 500 12px/1.2 var(--font-sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.price { font-size: 17px; line-height: 1.3; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--heading); }
.rule { display: block; width: 48px; height: 1px; background: var(--accent); }

/* ------------------------------------------------------------ Layout */
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--space-6); }
.section { padding: var(--space-16) 0; }
.section--raised { background: var(--surface-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-tight { margin-bottom: var(--space-16); }
.section-label { margin-bottom: var(--space-6); }
.section-head { display: grid; gap: var(--space-3); max-width: 720px; margin-bottom: var(--space-8); }
.section-more { margin-top: var(--space-8); }
.grid { display: grid; gap: var(--space-8) var(--space-6); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--space-6); }

@media (min-width: 900px) {
  .wrap { padding: 0 var(--space-12); }
}
@media (max-width: 640px) {
  .section { padding: var(--space-12) 0; }
}

/* ------------------------------------------------------------ Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: var(--space-4) var(--space-8);
  padding-top: var(--space-6); padding-bottom: var(--space-6);
}
.site-header__logo { display: block; }
.site-header__logo img { width: 230px; }
.site-header__nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); }
.site-header__nav a {
  display: block;
  padding: var(--space-2) 0;
  border-bottom: 1px solid transparent;
  font: 500 12px/1 var(--font-sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.site-header__nav a:hover, .site-header__nav a[aria-current] { border-bottom-color: var(--accent); }

@media (max-width: 640px) {
  .site-header__inner { flex-direction: column; justify-content: center; padding-top: var(--space-4); padding-bottom: var(--space-3); gap: var(--space-3); }
  .site-header__logo img { width: 210px; }
  .site-header__nav ul { justify-content: center; gap: var(--space-1) var(--space-4); }
}

/* ------------------------------------------------------------ Footer */
.site-footer { margin-top: var(--space-16); padding: var(--space-16) 0 var(--space-8); }
body:has(main > .theme-green:last-child) .site-footer { margin-top: 0; border-top: 1px solid var(--line); }
.site-footer__grid { display: grid; gap: var(--space-8); grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.site-footer__brand { display: grid; gap: var(--space-4); align-content: start; }
.site-footer__brand img { width: 160px; }
.site-footer__brand p { color: var(--ink-muted); max-width: 26ch; }
.site-footer h2 { margin-bottom: var(--space-4); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.site-footer a { color: var(--ink); text-decoration: none; font-size: 15px; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.site-footer .site-footer__social { display: flex; gap: var(--space-4); }
.site-footer__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4);
  margin-top: var(--space-12); padding-top: var(--space-6);
  border-top: 1px solid var(--line);
}
.site-footer__base .caption { max-width: 72ch; }
.site-footer__base a { font-size: inherit; color: var(--ink); text-decoration: underline; }

/* ------------------------------------------------------------ Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 44px; padding: 0 var(--space-6);
  border: 1px solid var(--action); border-radius: var(--radius-sm);
  background: var(--action); color: var(--on-action);
  font: 500 12px/1 var(--font-sans); letter-spacing: 0.16em; text-transform: uppercase; text-align: center;
  text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.12); }
.btn--quiet { background: transparent; color: var(--heading); }
.btn--quiet:hover { filter: none; background: var(--surface-raised); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* ------------------------------------------------------------ Home */
.hero { border-bottom: 1px solid var(--line); }
.hero__inner { display: grid; gap: var(--space-12); align-items: center; padding-top: var(--space-16); padding-bottom: var(--space-16); }
.hero__text { display: grid; gap: var(--space-6); justify-items: start; max-width: 760px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero__seal img { width: 240px; }
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1fr auto; padding-top: 96px; padding-bottom: 96px; }
}
@media (max-width: 899px) {
  .hero__seal { display: none; }
}

.cat-tile {
  display: flex; flex-direction: column; gap: var(--space-3);
  min-height: 220px; padding: var(--space-8) var(--space-6);
  background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md);
  color: var(--ink); text-decoration: none;
}
.cat-tile:hover { border-color: var(--accent); }
.cat-tile .body-sm { color: var(--ink-muted); }
.cat-tile__more { margin-top: auto; font: 500 12px/1 var(--font-sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-text); }

.promise__inner { display: grid; gap: var(--space-8); align-items: center; }
.promise__inner > img { width: 150px; }
.promise__text { display: grid; gap: var(--space-6); justify-items: start; max-width: 640px; }
.promise .body { color: var(--ink-muted); }
@media (min-width: 900px) {
  .promise__inner { grid-template-columns: auto 1fr; gap: var(--space-16); }
}

/* ------------------------------------------------------------ Page heads */
.page-head, .article-head { display: grid; gap: var(--space-4); justify-items: start; max-width: 720px; }
.page-head { padding: var(--space-12) 0 var(--space-8); }
.page-head--wide { max-width: 860px; }
.article-head { padding: var(--space-8) 0 var(--space-6); }

.empty {
  display: grid; gap: var(--space-2); max-width: 680px; margin-bottom: var(--space-16);
  padding: var(--space-8);
  background: var(--surface-raised); border: 1px dashed var(--line); border-radius: var(--radius-md);
}
.link-list { list-style: none; margin: 0 0 var(--space-16); padding: 0; display: grid; gap: var(--space-3); }

/* ------------------------------------------------------------ Prose */
.prose { max-width: 680px; }
.prose > * + * { margin-top: var(--space-4); }
.prose > h2 { font-size: clamp(25px, 3vw, 30px); line-height: 1.2; margin-top: var(--space-12); }
.prose > h3 { font-size: 21px; line-height: 1.3; margin-top: var(--space-8); }
.prose > h2 + *, .prose > h3 + * { margin-top: var(--space-3); }
.prose > :first-child { margin-top: 0; }
.prose > ul, .prose > ol { padding-left: 1.25em; }
.prose li + li { margin-top: var(--space-2); }
.prose li::marker { color: var(--accent-text); }
.prose strong { font-weight: 600; }
.prose blockquote {
  margin-left: 0; margin-right: 0; padding-left: var(--space-6);
  border-left: 1px solid var(--accent);
  font-family: var(--font-display); font-size: 21px; line-height: 1.4; color: var(--heading);
}
.prose hr { border: 0; height: 1px; background: var(--line); margin: var(--space-12) 0; }
.prose > table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: var(--space-3) var(--space-3) var(--space-3) 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { font: 500 12px/1.2 var(--font-sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted); }
.prose > .card { margin: var(--space-8) 0; }
.prose > .card + .card { margin-top: var(--space-6); }
.page .prose { margin-bottom: var(--space-16); }

/* ------------------------------------------------------------ Guides */
.breadcrumbs ol {
  list-style: none; margin: 0; padding: var(--space-6) 0 0;
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  font-size: 13px; line-height: 1.45; color: var(--ink-muted);
}
.breadcrumbs li { max-width: 100%; }
.breadcrumbs li + li::before { content: "/"; margin-right: var(--space-2); color: var(--accent); }
.breadcrumbs a { color: var(--ink-muted); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs [aria-current] { display: inline-block; max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }

.draft-flag {
  display: inline-block; margin-top: var(--space-4); padding: var(--space-1) var(--space-3);
  border: 1px solid var(--accent); border-radius: var(--radius-sm);
  font: 500 12px/1.4 var(--font-sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text);
}
.missing { padding: var(--space-3) var(--space-4); border: 1px dashed var(--accent); color: var(--accent-text); }

.disclosure {
  display: flex; gap: var(--space-3); align-items: flex-start; max-width: 720px;
  padding: var(--space-3) var(--space-4);
  background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md);
  color: var(--ink-muted);
}
.disclosure svg { flex: none; width: 16px; height: 16px; margin-top: 1px; color: var(--accent-text); }
.disclosure a { color: var(--heading); }

.guide__hero { max-width: 1000px; margin-top: var(--space-8); }
.guide__hero img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.guide__hero figcaption { margin-top: var(--space-2); }
.guide__body { margin-top: var(--space-8); }
.guide__foot {
  display: grid; gap: var(--space-6); justify-items: start; max-width: 680px;
  margin-top: var(--space-12); padding-top: var(--space-8);
  border-top: 1px solid var(--line);
}
.guide__method { display: grid; gap: var(--space-2); }
.guide > .section { margin-top: var(--space-16); }
.guide > .section .heading { margin-bottom: var(--space-8); }

.guide-card__link { display: grid; gap: var(--space-4); color: inherit; text-decoration: none; }
.guide-card__photo { aspect-ratio: 3 / 2; border-radius: var(--radius-sm); }
.guide-card__body { display: grid; gap: var(--space-2); }
.guide-card__body .body-sm { color: var(--ink-muted); }
.guide-card__link:hover .subheading { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; text-decoration-color: var(--accent); }

/* ------------------------------------------------------------ Photos and product cards */
.photo { position: relative; display: grid; place-items: center; overflow: hidden; background: var(--panel); color: var(--on-panel); }
.photo > img { width: 100%; height: 100%; object-fit: cover; }
.photo-label { padding: 0 var(--space-4); font: 500 11px/1.3 var(--font-sans); letter-spacing: 0.14em; text-transform: uppercase; text-align: center; opacity: 0.7; }

.card {
  display: grid; overflow: hidden;
  background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md);
}
.card--tile { grid-template-rows: auto 1fr; }
.card__photo { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; overflow: hidden; background: var(--panel); color: var(--on-panel); }
.card__photo:has(img) { background: #fff; }
.card__photo img { width: 100%; height: 100%; object-fit: contain; padding: var(--space-4); }
.card__tag {
  position: absolute; top: var(--space-3); left: var(--space-3);
  padding: 7px 10px 6px; border-radius: var(--radius-sm);
  background: var(--action); color: var(--on-action);
  font: 500 11px/1 var(--font-sans); letter-spacing: 0.16em; text-transform: uppercase;
}
.card__body { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4) var(--space-4) var(--space-6); }
.card__spec { color: var(--ink-muted); }
.card__why { color: var(--ink); }
.card__price { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); margin-top: auto; padding-top: var(--space-2); }
.card .btn { margin-top: var(--space-2); }
@media (min-width: 640px) {
  .card--row { grid-template-columns: minmax(200px, 38%) 1fr; }
  .card--row .card__photo { aspect-ratio: auto; min-height: 260px; }
  .card--row .card__body { padding: var(--space-6); }
}

/* ------------------------------------------------------------ Forms */
.form { display: grid; gap: var(--space-6); max-width: 560px; margin-top: 0; }
.prose > .form + * { margin-top: var(--space-12); }
.field { display: grid; gap: var(--space-2); }
.field label { font: 500 12px/1.2 var(--font-sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  background: var(--surface-raised); color: var(--ink);
  border: 1px solid var(--ink-muted); border-radius: var(--radius-sm);
  font: 400 16px/1.4 var(--font-sans);
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--focus-ring); outline-offset: 0; border-color: var(--focus-ring); }
.field--trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }
.form__status:empty { display: none; }
.form__status.is-ok { color: var(--heading); font-weight: 500; }
.form__status.is-error { color: #8a2b1f; font-weight: 500; }
