/* Past & Present. Everything sits on one "table" (kraft sand). Sections are panels raised off it by
   layered shadows; cards raise off the panels; the header floats above all of it.
   One spacing unit (--u) is both the outer margin and the gap between panels; --pad is the padding inside every panel.
   Shared by every page. Homepage-only sections live in home.css. */
:root {
  --table: #d8cbb0;
  --paper: #f6f1e6;
  --sand: #ece3cf;
  --ink: #0e0d0b;
  --coal: #191714;
  --stone: #6a6053;
  --gold: #7a561a;      /* text on paper/sand: 5:1 */
  --gold-l: #d3ab5a;    /* text/accents on ink: 9:1 */
  --line: #0e0d0b24;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --sans: Figtree, system-ui, sans-serif;
  --u: clamp(12px, 1.4vw, 20px);
  --pad: clamp(20px, 2.8vw, 40px);
  --r: clamp(18px, 2vw, 28px);
  --r-s: 14px;
  --nav-h: 52px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --sh-1: 0 1px 2px #281c0814, 0 4px 12px -2px #281c081a;
  --sh-2: 0 2px 4px #281c080f, 0 12px 24px -6px #281c0829, 0 32px 64px -16px #281c0838;
  --sh-3: 0 4px 8px #1e140a1a, 0 24px 48px -8px #1e140a47, 0 60px 120px -24px #1e140a59;
}
* { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html { background: var(--table); }
body { font: 400 .94rem/1.6 var(--sans); color: var(--ink); background: var(--table); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.nav-open { overflow: hidden; }
/* paper grain over everything; a static image, so it costs nothing on scroll */
body::after { content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .07; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
::selection { background: var(--gold-l); color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.dark :focus-visible { outline-color: var(--gold-l); }

/* ---------- panels ---------- */
main { position: relative; z-index: 1; display: flow-root; background: var(--table); }
body:not(:has(.h-hero)) main { padding-top: calc(var(--u) + 8px + var(--nav-h)); }
main > section { position: relative; margin: var(--u); padding: var(--pad); border-radius: var(--r); background: var(--paper); box-shadow: var(--sh-2), inset 0 1px 0 #ffffff99; overflow: clip; }
main > section.alt { background: var(--sand); }
main > section.dark { background: var(--ink); color: var(--paper); box-shadow: var(--sh-3), inset 0 1px 0 #ffffff14; }
.dark { --line: #f6f1e626; }
.dark p, .dark .lead { color: #d9cdb8; }
.dark .eyebrow { color: var(--gold-l); }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.04; letter-spacing: -.03em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.8rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.7rem, 3vw, 2.7rem); margin-bottom: .9rem; }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.15; letter-spacing: -.02em; margin-bottom: .5rem; }
:is(h1, h2, h3, .h-lit, .f-sign) em { font-style: normal; font-weight: 300; color: var(--gold); }
.dark :is(h1, h2, h3) em { color: var(--gold-l); }
p { margin-bottom: .9rem; max-width: 62ch; }
.eyebrow { font: 600 .68rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: .9rem; }
.lead { font-size: clamp(1rem, 1.25vw, 1.15rem); line-height: 1.5; color: var(--stone); }
.stack { font: 500 clamp(1.15rem, 1.7vw, 1.5rem)/1.25 var(--display); letter-spacing: -.02em; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; max-width: none; }

/* buttons: a gold (or ink) fill rises from the bottom on hover, and the button lifts */
.btn { --fill: var(--gold-l); display: inline-flex; align-items: center; gap: .6rem; padding: .85rem 1.3rem; border: 1px solid var(--ink); border-radius: 99px; background: linear-gradient(var(--fill), var(--fill)) no-repeat 0 100% / 100% 0 var(--ink); color: var(--paper); text-decoration: none; font: 600 .72rem/1 var(--sans); letter-spacing: .07em; text-transform: uppercase; cursor: pointer; box-shadow: var(--sh-1); transition: background-size .4s var(--ease), color .3s, border-color .3s, transform .35s var(--ease), box-shadow .35s; }
.btn:hover { background-size: 100% 100%; color: var(--ink); border-color: var(--gold-l); transform: translateY(-2px); box-shadow: var(--sh-2); }
.btn.ghost { --fill: var(--ink); background-color: transparent; color: var(--ink); box-shadow: none; }
.btn.ghost:hover { color: var(--paper); border-color: var(--ink); }
.dark .btn { --fill: var(--paper); background-color: var(--gold-l); border-color: var(--gold-l); color: var(--ink); }
.dark .btn:hover { border-color: var(--paper); }
.dark .btn.ghost { background-color: transparent; color: var(--paper); border-color: #f6f1e680; }
.dark .btn.ghost:hover { color: var(--ink); border-color: var(--paper); }
.more { display: inline-block; margin-top: .5rem; padding-bottom: 3px; color: var(--gold); text-decoration: none; font: 600 .7rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px; transition: background-size .35s var(--ease); }
.dark .more { color: var(--gold-l); }
.more:hover { background-size: 100% 1px; }

/* ---------- header: a floating glass pill ---------- */
header.site { position: fixed; z-index: 50; top: calc(var(--u) + 8px); left: calc(var(--u) + 8px); right: calc(var(--u) + 8px); pointer-events: none; }
.bar { pointer-events: auto; isolation: isolate; position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--nav-h); padding: 0 7px; color: var(--paper); }
/* the blur lives on a pseudo-element so it doesn't trap the fixed mobile menu */
.bar::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 99px; background: #0e0d0bd1; -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); box-shadow: var(--sh-2), inset 0 0 0 1px #ffffff1f; }
.mark, .burger { position: relative; z-index: 2; } /* stay above the full-screen mobile menu */
.mark { display: flex; align-items: center; gap: .7rem; white-space: nowrap; text-decoration: none; font: 600 1.02rem/1 var(--display); letter-spacing: -.02em; }
/* the mark is half matte black, so it sits on a light tile to stay visible on the dark glass */
.logo { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 12px; background: var(--paper); box-shadow: inset 0 0 0 1px #0e0d0b1a, 0 2px 10px #00000059; }
.logo img { height: 27px; width: auto; }
nav { display: flex; align-items: center; gap: 2px; }
nav a { padding: .6rem .95rem; border-radius: 99px; text-decoration: none; font: 500 .78rem/1 var(--sans); transition: background .25s, color .25s; }
nav a:hover { background: #ffffff1f; }
nav a[href="/contact"] { margin-left: 6px; background: var(--gold-l); color: var(--ink); font-weight: 600; }
nav a[href="/contact"]:hover { background: var(--paper); }
.burger { display: none; background: #ffffff1f; border: 0; border-radius: 99px; padding: .7rem 1.05rem; font: 600 .7rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: inherit; cursor: pointer; }

/* ---------- layout blocks ---------- */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--pad); align-items: center; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--pad); align-items: start; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: var(--u); }
.card { display: block; background: var(--sand); border-radius: var(--r-s); padding: var(--pad) calc(var(--pad) * .8); text-decoration: none; box-shadow: var(--sh-1), inset 0 1px 0 #ffffff80; transition: transform .4s var(--ease), box-shadow .4s, background .3s, color .3s; }
.alt .card { background: var(--paper); }
a.card:hover { transform: translateY(-5px); background: var(--ink); color: var(--paper); box-shadow: var(--sh-3); }
a.card:hover .eyebrow, a.card:hover .more, a.card:hover .price { color: var(--gold-l); }
.dark .card { background: #ffffff0d; box-shadow: inset 0 0 0 1px #ffffff1a; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: var(--pad) var(--u); }
.plain, .ticks, .rows, .tags { list-style: none; padding: 0; }
.cols .plain li { padding: .45rem 0; border-bottom: 1px solid var(--line); }
.ticks li::before { content: "✓"; color: var(--gold); margin-right: .7rem; }
.ticks li { padding: .25rem 0; }
.rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.rows strong { font: 500 1.3rem/1.2 var(--display); letter-spacing: -.02em; }
.rows span { color: var(--stone); }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.tags li, .filters button { border: 1px solid currentColor; border-radius: 99px; padding: .5rem 1rem; font: 600 .68rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.steps { list-style: none; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: var(--pad) var(--u); }
.steps li { counter-increment: s; border-top: 1px solid var(--line); padding-top: 1rem; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; margin-bottom: .6rem; font: 600 .7rem/1 var(--sans); letter-spacing: .1em; color: var(--gold); }
.dark .steps li::before { color: var(--gold-l); }
.flow { list-style: none; padding: 0; max-width: 420px; }
.flow li { background: var(--sand); border-radius: var(--r-s); box-shadow: var(--sh-1); padding: .8rem 1.1rem; text-align: center; }
.flow li + li::before { content: "↓"; display: block; margin: -1.5rem auto .4rem; color: var(--gold); width: 2rem; line-height: 1.4; }
.statement { text-align: center; }
.statement h2 { font-size: clamp(1.8rem, 4vw, 3.4rem); margin: 0; }
.center { text-align: center; }
.center p { margin-inline: auto; }
.center .actions { justify-content: center; }

/* placeholder frames: swap for photography */
.ph { aspect-ratio: 1; display: flex; align-items: flex-end; padding: 1rem; border-radius: var(--r-s); background: repeating-linear-gradient(135deg, transparent 0 9px, #0e0d0b12 9px 10px), var(--table); box-shadow: inset 0 0 0 1px var(--line); }
.ph .eyebrow { margin: 0; color: var(--ink); opacity: .7; }
.ph.tall { aspect-ratio: 5 / 6; }
.prod .ph { margin: calc(var(--pad) * -1) calc(var(--pad) * -.8) 1.2rem; border-radius: var(--r-s) var(--r-s) 0 0; box-shadow: none; }

/* shop */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: var(--pad); }
.filters button { background: none; color: var(--ink); cursor: pointer; transition: background .25s, color .25s; }
.filters button.on, .filters button:hover { background: var(--ink); color: var(--paper); }
.price { font: 500 1.25rem/1.3 var(--display); letter-spacing: -.02em; }
.price.big { font-size: 1.9rem; margin-bottom: 1.2rem; }
.badge { margin-left: .5rem; padding: .25rem .6rem; border: 1px solid var(--gold); border-radius: 99px; color: var(--gold); font: 600 .58rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; vertical-align: middle; }
a.card:hover .badge { color: var(--gold-l); border-color: var(--gold-l); }
.opts { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.4rem; margin-bottom: 1.5rem; }
.opts dt { font: 600 .68rem/1.9 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }

/* faq + prose */
details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
summary { cursor: pointer; list-style: none; font: 500 1.25rem/1.25 var(--display); letter-spacing: -.02em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--gold); }
details[open] summary::after { content: "–"; }
details p { margin: .7rem 0 0; }
.prose h2 { font-size: 1.6rem; margin: 2rem 0 .5rem; }
.prose ul { padding-left: 1.2rem; margin-bottom: 1rem; }

/* ---------- footer: a parcel. Revealed from behind the page like a curtain, on roomy screens ---------- */
footer { position: relative; z-index: 0; overflow: hidden; background: var(--table); color: var(--ink); }
@media (min-width: 861px) and (min-height: 760px) { footer { position: sticky; bottom: 0; } }
.f-main { display: grid; grid-template-columns: minmax(0, 27rem) 1fr; gap: calc(var(--pad) * 2); align-items: start; padding: calc(var(--pad) * 1.2) calc(var(--u) + var(--pad)) var(--pad); }
.f-label { --rx: 0deg; --ry: 0deg; position: relative; padding: 14px; background: #fbf8f0; border-radius: 6px; box-shadow: var(--sh-3); transform: perspective(900px) rotate(-1.6deg) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .35s var(--ease); }
/* two strips of tape holding it down */
.f-label::before, .f-label::after { content: ""; position: absolute; top: -13px; width: 86px; height: 26px; background: #e9d7a5b8; box-shadow: 0 2px 6px #281c0833; }
.f-label::before { left: 22px; transform: rotate(-5deg); }
.f-label::after { right: 22px; transform: rotate(4deg); }
.f-cut { padding: 18px 18px 16px; border: 1.5px dashed #0e0d0b59; border-radius: 3px; }
.f-row { display: grid; grid-template-columns: 5.4rem 1fr; gap: .8rem; align-items: baseline; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.f-row span { font: 600 .62rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--stone); }
.f-row b { font: 500 1.02rem/1.25 var(--display); letter-spacing: -.02em; }
.f-code { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: .9rem 0 .7rem; }
.f-bars { flex: 1; height: 44px; background: repeating-linear-gradient(90deg, #0e0d0b 0 2px, transparent 2px 4px, #0e0d0b 4px 5px, transparent 5px 8px, #0e0d0b 8px 11px, transparent 11px 12px, #0e0d0b 12px 13px, transparent 13px 15px); }
.f-stamp { padding: .35rem .6rem; border: 2px solid var(--gold); border-radius: 4px; color: var(--gold); font: 700 .66rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; transform: rotate(-7deg); }
.f-label .actions { margin-top: .9rem; }
.f-time { font: 600 .62rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--stone); }
.f-right { display: flex; flex-direction: column; justify-content: space-between; gap: var(--pad); align-self: stretch; }
.f-sign { margin: 0; max-width: none; font: 500 clamp(1.5rem, 2.8vw, 2.5rem)/1.05 var(--display); letter-spacing: -.04em; }
.f-sign em { font-weight: 300; }
.f-links { display: grid; grid-template-columns: repeat(5, auto); justify-content: space-between; gap: var(--pad) var(--u); padding-top: .4rem; }
footer h4 { font: 600 .66rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: .8rem; }
footer ul { list-style: none; padding: 0; }
footer li { margin-bottom: .1rem; }
.f-links a { display: inline-block; padding: .2rem 0; text-decoration: none; font: 500 1.05rem/1.25 var(--display); letter-spacing: -.02em; transition: transform .35s var(--ease), color .2s; }
.f-links a:hover { transform: translateX(7px); color: var(--gold); }
/* crossing strips of packing tape */
.f-tapes { position: relative; height: 128px; margin-block: var(--u); }
.f-tape { position: absolute; left: -4%; width: 108%; height: 46px; overflow: hidden; display: flex; align-items: center; box-shadow: 0 10px 22px -8px #1e140a73; }
.f-tape.a { top: 22px; transform: rotate(-2.4deg); background: var(--ink); color: var(--paper); }
.f-tape.b { top: 44px; transform: rotate(1.8deg); background: var(--gold-l); color: var(--ink); }
.f-tape .trk { display: flex; width: max-content; animation: marq 40s linear infinite; }
.f-tape.b .trk { animation-direction: reverse; animation-duration: 52s; }
.f-tape span { padding-right: 1.6rem; white-space: nowrap; font: 700 .72rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; }
.f-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 2rem; padding: var(--pad) calc(var(--u) + var(--pad)) calc(var(--pad) + 4px); font: 500 .76rem/1.6 var(--sans); color: var(--stone); }
.f-base a { text-decoration: none; }
.f-base a:hover { color: var(--gold); }
.f-credit a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold-l); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.f-credit a:hover { text-decoration-color: currentColor; }
.f-top { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.1rem; background: var(--ink); color: var(--paper); border: 0; border-radius: 99px; box-shadow: var(--sh-1); font: 600 .68rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: transform .35s var(--ease), background .25s, color .25s; }
.f-top:hover { transform: translateY(-3px); background: var(--gold-l); color: var(--ink); }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- floating bulk button + dialog ---------- */
.float { position: fixed; right: calc(var(--u) + 8px); bottom: calc(var(--u) + 8px); z-index: 60; padding: .9rem 1.2rem; background: #0e0d0bd9; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--paper); border: 1px solid #ffffff2b; border-radius: 99px; font: 600 .68rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; box-shadow: var(--sh-2); transition: background .25s, color .25s, opacity .3s, transform .35s var(--ease); }
.float:hover { background: var(--gold-l); color: var(--ink); transform: translateY(-2px); }
/* on the homepage it waits until the hero has scrolled away, so it never sits on the hero buttons */
body:has(.h-hero):not(.scrolled) .float, .at-foot .float { opacity: 0; pointer-events: none; transform: translateY(8px); }
dialog { border: 0; border-radius: var(--r); padding: var(--pad); width: min(92vw, 460px); margin: auto; background: var(--paper); color: var(--ink); box-shadow: var(--sh-3); }
dialog::backdrop { background: #0e0d0bb3; backdrop-filter: blur(6px); }
dialog h2 { font-size: 2rem; }
dialog .x { float: right; margin: -.6rem -.6rem 0 0; background: none; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; }

@media (max-width: 1000px) { .f-links { grid-template-columns: repeat(3, auto); justify-content: start; gap: var(--pad) calc(var(--pad) * 1.5); } .f-main { grid-template-columns: 1fr; } .f-label { max-width: 27rem; } }
@media (max-width: 860px) {
  .hero, .split { grid-template-columns: 1fr; }
  .burger { display: block; }
  /* full-screen menu */
  nav { position: fixed; inset: 0; z-index: 1; flex-direction: column; align-items: flex-start; justify-content: center; gap: .3rem; padding: calc(var(--nav-h) + var(--u) * 3) var(--pad) var(--pad); background: var(--ink); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  nav a { padding: .3rem 0; border-radius: 0; font: 500 clamp(2rem, 9.5vw, 2.8rem)/1.1 var(--display); letter-spacing: -.03em; }
  nav a:hover { background: none; color: var(--gold-l); }
  nav a[href="/contact"] { margin: .8rem 0 0; padding: .7rem 1.2rem; border-radius: 99px; font-size: 1.1rem; }
  .nav-open nav { opacity: 1; visibility: visible; }
  .nav-open .bar::before { background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (max-width: 520px) { .f-links { grid-template-columns: repeat(2, auto); } .rows li { flex-direction: column; gap: .2rem; } }
@media (prefers-reduced-motion: reduce) { .f-tape .trk { animation: none; } .f-label { transition: none; } }
