:root {
  --graphite: #26272b;
  --panel: #30323a;
  --panel-2: #393c45;
  --bone: #ede7dc;
  --fog: #a7aab3;
  --walnut: #a8734a;
  --walnut-soft: rgba(168, 115, 74, 0.38);
  --sage: #8fb495;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --gutter: 16px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--graphite);
  color: var(--bone);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--walnut); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--bone); }
:focus-visible { outline: 2px solid var(--walnut); outline-offset: 3px; border-radius: 2px; }

img { display: block; max-width: 100%; height: auto; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd, dt, figure { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 640px) { :root { --gutter: 28px; } }

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(38, 39, 43, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--walnut-soft);
}
.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}
.brand {
  color: var(--bone);
  text-decoration: none;
  font-weight: 600;
  font-variation-settings: "wdth" 112;
  letter-spacing: -0.01em;
}
.top-right { display: flex; align-items: center; gap: 14px; }
.price {
  font-weight: 600;
  font-variation-settings: "wdth" 96;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.top .price { display: none; }
@media (min-width: 640px) { .top .price { display: inline; } }

.button {
  display: inline-block;
  padding: 12px 22px;
  background: var(--walnut);
  color: #1c1710;
  text-decoration: none;
  font-weight: 600;
  font-variation-settings: "wdth" 104;
  border-radius: 3px;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
}
.button:hover { background: var(--bone); color: #1c1710; }
.button-small { padding: 8px 14px; font-size: 15px; }

/* Hero */
.hero {
  display: grid;
  gap: 28px;
  padding-block: 28px 44px;
}
.hero-photo {
  order: 1;
  overflow: hidden;
  border-radius: 4px;
  background: var(--panel);
}
.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.hero-text { display: flex; flex-direction: column; gap: 22px; }

h1 {
  font-size: clamp(2.05rem, 4.6vw, 3.3rem);
  line-height: 1.02;
  font-weight: 700;
  font-variation-settings: "wdth" 118;
  letter-spacing: -0.025em;
  text-wrap: balance;
  padding-bottom: 22px;
  position: relative;
}
h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72px;
  height: 3px;
  background: var(--walnut);
}
.intro { max-width: 34em; color: var(--bone); }

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
  padding-top: 8px;
  border-top: 1px solid var(--walnut-soft);
}
.facts li { display: flex; flex-direction: column; gap: 2px; padding-top: 12px; }
.fact-value {
  font-size: 1.35rem;
  font-weight: 600;
  font-variation-settings: "wdth" 110;
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.fact-detail { color: var(--fog); font-size: 15px; }

@media (min-width: 640px) {
  .hero { grid-template-columns: 1fr 1fr; align-items: start; gap: 36px; }
  .hero-text { padding-top: 12px; }
  .hero-photo { order: -1; }
}
@media (min-width: 960px) {
  .hero { grid-template-columns: 7fr 5fr; gap: 56px; padding-block: 40px 64px; }
  .hero-text { padding-top: 28px; }
}

/* Section headings */
section + section { border-top: 1px solid var(--walnut-soft); }
.gallery, .sheet, .health, .terms, .contact { padding-block: 40px 52px; }
h2 {
  font-size: 1.55rem;
  font-weight: 600;
  font-variation-settings: "wdth" 112;
  letter-spacing: -0.015em;
  margin-bottom: 22px;
}
h3 {
  font-size: 1.05rem;
  font-weight: 600;
  font-variation-settings: "wdth" 106;
  margin-bottom: 10px;
}

/* Gallery */
.thumbs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: var(--walnut-soft) transparent;
}
.thumbs li { flex: 0 0 72%; scroll-snap-align: start; }
.thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--panel);
  border-radius: 4px;
  overflow: hidden;
  cursor: zoom-in;
}
.thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; }
@media (min-width: 640px) {
  .thumbs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
  }
  .thumbs li { flex: none; }
}

/* Spec sheet rows */
.rows { display: block; }
.row {
  display: grid;
  gap: 4px 24px;
  padding-block: 14px;
  border-top: 1px solid var(--walnut-soft);
}
.row:last-child { border-bottom: 1px solid var(--walnut-soft); }
.row dt { color: var(--fog); font-size: 15px; font-variation-settings: "wdth" 96; }
.row dd { display: flex; flex-direction: column; gap: 3px; }
.row-value { font-weight: 600; font-variation-settings: "wdth" 104; }
.row-note { color: var(--fog); font-size: 15px; max-width: 60ch; }
.row-compact { padding-block: 10px; }
.row-compact dd { font-variant-numeric: tabular-nums; font-variation-settings: "wdth" 96; font-weight: 500; }
dd.good { color: var(--sage); }
@media (min-width: 640px) {
  .row { grid-template-columns: 220px 1fr; align-items: baseline; }
  .row dt { padding-top: 1px; }
  .row-compact { grid-template-columns: 1fr auto; }
  .row-compact dd { text-align: right; }
}

/* Health */
.health-lead { color: var(--fog); max-width: 60ch; margin-bottom: 24px; }
.health-grid { display: grid; gap: 16px; }
.panel {
  background: var(--panel);
  border-radius: 4px;
  padding: 20px 20px 16px;
}
.panel .row { border-color: rgba(237, 231, 220, 0.09); }
.panel .row:last-child { border-bottom: 0; }
.reports-h { margin-top: 26px; }
.reports li + li { margin-top: 6px; }
@media (min-width: 720px) { .health-grid { grid-template-columns: 1fr 1fr; } }

/* Terms */
.terms-grid { display: grid; gap: 28px; }
.terms ul { list-style: disc; padding-left: 1.1em; color: var(--bone); }
.terms li { margin-block: 6px; }
@media (min-width: 720px) { .terms-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

/* Contact */
.contact { padding-bottom: 72px; }
.price-big { font-size: 2rem; font-variation-settings: "wdth" 110; margin-bottom: 12px; letter-spacing: -0.02em; }
.contact-lead { margin-bottom: 20px; max-width: 46ch; }
.contact-email { margin-top: 16px; font-variation-settings: "wdth" 96; }
.contact-note { color: var(--fog); margin-top: 14px; max-width: 60ch; }

/* Footer */
.foot { border-top: 1px solid var(--walnut-soft); padding-block: 22px; color: var(--fog); font-size: 15px; }

/* Lightbox */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--bone);
  width: min(100vw, 1200px);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  display: none;
  place-items: center;
  grid-template-rows: 1fr auto;
}
.lightbox[open] { display: grid; }
.lightbox::backdrop { background: rgba(20, 20, 22, 0.94); }
.lightbox img {
  grid-row: 1;
  grid-column: 1;
  max-width: 100vw;
  max-height: calc(100dvh - 72px);
  width: auto;
  object-fit: contain;
}
.lb-caption {
  grid-row: 2;
  grid-column: 1;
  padding: 14px var(--gutter);
  color: var(--fog);
  font-size: 15px;
  text-align: center;
  max-width: 70ch;
}
.lb-close, .lb-nav {
  position: fixed;
  z-index: 2;
  background: rgba(38, 39, 43, 0.85);
  color: var(--bone);
  border: 1px solid var(--walnut-soft);
  border-radius: 3px;
  padding: 10px 14px;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}
.lb-close { top: 14px; right: 14px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }
.lb-close:hover, .lb-nav:hover { border-color: var(--walnut); }
@media (max-width: 639px) {
  .lb-nav { top: auto; bottom: 64px; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] { animation: lb-in 160ms ease-out; }
  @keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
}

/* Invoices */
.terms .invoices { list-style: none; padding-left: 0; }
.invoices li { display: flex; flex-direction: column; gap: 2px; margin-block: 8px; }
.inv-when { font-weight: 600; font-variation-settings: "wdth" 104; }
.inv-items { color: var(--fog); font-size: 15px; }
@media (min-width: 720px) { .terms-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 40px; } }
.contact-alt { color: var(--fog); }
.site-link { color: var(--fog); text-decoration: none; font-size: 15px; font-variation-settings: "wdth" 96; }
.site-link:hover { color: var(--bone); text-decoration: underline; }
@media (max-width: 479px) { .top .site-link { display: none; } }
