
/* ==========================================================================
   The Tin Finder — shared stylesheet
   A vintage editorial system: paper, ink, brass, and tobacco leaf.
   ========================================================================== */

:root {
  --paper: #f3ebdc;
  --paper-2: #ece1cc;
  --paper-3: #e3d5bb;
  --cream: #fbf7ee;
  --ink: #241a12;
  --ink-2: #3a2b1f;
  --muted: #7a6653;
  --faint: #9b8a77;
  --line: rgba(56, 38, 22, 0.16);
  --line-strong: rgba(56, 38, 22, 0.32);
  --tobacco: #6b4226;
  --oxblood: #7c2f28;
  --brass: #b0843f;
  --brass-soft: #c9a76a;
  --sage: #5f6a52;
  --dark: #21180f;
  --dark-2: #2e2318;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --container: 1200px;
  --shadow-sm: 0 1px 0 rgba(56, 38, 22, 0.06);
  --shadow-md: 0 20px 44px -28px rgba(40, 25, 10, 0.5);
  --shadow-lg: 0 46px 100px -46px rgba(35, 20, 8, 0.6);
  --ease: cubic-bezier(0.19, 0.61, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(90rem 60rem at 15% -10%, rgba(255, 250, 236, 0.9) 0%, rgba(255, 250, 236, 0) 55%),
    radial-gradient(70rem 50rem at 105% 8%, rgba(206, 178, 132, 0.22) 0%, rgba(206, 178, 132, 0) 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.has-menu { overflow: hidden; }

::selection { background: var(--tobacco); color: var(--cream); }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ink); text-decoration-color: var(--brass); text-underline-offset: 3px; }
a:hover { color: var(--oxblood); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.015em;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 999;
  background: var(--ink); color: var(--cream);
  padding: 10px 16px; font-family: var(--sans); font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

/* ------------------------------------------------------------------
   Type helpers
   ------------------------------------------------------------------ */

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--tobacco);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--brass);
  display: inline-block;
}
.eyebrow--plain::before { display: none; }

.display {
  font-size: clamp(2.6rem, 5.4vw, 4.9rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
  font-weight: 400;
}
.display em { font-style: italic; color: var(--tobacco); }

.h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.h3 {
  font-size: clamp(1.3rem, 1.9vw, 1.6rem);
  line-height: 1.25;
}
.lead {
  font-size: clamp(1.08rem, 1.4vw, 1.22rem);
  line-height: 1.62;
  color: var(--ink-2);
}
.small-caps {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 0.86em; letter-spacing: 0.02em; }

/* ------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 24px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--cream); transform: translateY(-1px); }
.btn--primary { background: var(--ink); color: var(--cream); }
.btn--primary:hover { background: var(--tobacco); border-color: var(--tobacco); color: var(--cream); }
.btn--ghost { border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--small { min-height: 38px; padding: 8px 16px; font-size: 10px; letter-spacing: 0.16em; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--brass);
  padding-bottom: 5px;
  transition: gap 0.25s var(--ease), color 0.25s var(--ease);
}
.link-arrow:hover { gap: 14px; color: var(--oxblood); }
.link-arrow svg { width: 14px; height: 14px; }

/* ------------------------------------------------------------------
   Header
   ------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243, 235, 220, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 84px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
  flex: 0 0 auto;
}
.brand__mark { width: 44px; height: 44px; flex: 0 0 auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--serif);
  font-size: 1.22rem;
  letter-spacing: 0.01em;
}
.brand__sub {
  font-family: var(--sans);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a {
  position: relative;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-2);
  padding: 6px 0;
}
.site-nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--brass);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--tobacco); }

.header-actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }

.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-strong);
  padding: 11px 16px;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  transition: border-color 0.25s ease, background 0.25s ease;
}
.cart-link:hover { border-color: var(--ink); background: rgba(255, 250, 236, 0.6); }
.cart-link svg { width: 16px; height: 16px; }
.cart-count {
  min-width: 19px; height: 19px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.02em;
}
.cart-link--empty .cart-count { background: var(--paper-3); color: var(--ink-2); }

.menu-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  align-items: center; justify-content: center;
  cursor: pointer;
}
.menu-toggle svg { width: 20px; height: 20px; }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 20px 32px 26px;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
}
.mobile-nav a:last-child { border-bottom: 0; }

/* ------------------------------------------------------------------
   Shell / page heads
   ------------------------------------------------------------------ */

main { display: block; }

.section { padding: clamp(64px, 9vw, 118px) 0; }
.section--tight { padding: clamp(46px, 6vw, 72px) 0; }
.section--tint {
  background:
    linear-gradient(180deg, rgba(227, 213, 187, 0.0) 0%, rgba(227, 213, 187, 0.5) 18%, rgba(227, 213, 187, 0.5) 82%, rgba(227, 213, 187, 0) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section--dark { background: var(--dark); color: var(--cream); }
.section--dark .eyebrow { color: var(--brass-soft); }
.section--dark .h2 { color: var(--cream); }
.section--dark p { color: rgba(251, 247, 238, 0.72); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(32px, 4.6vw, 56px);
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.section-head__text { max-width: 640px; }
.section-head .h2 { margin-top: 2px; }
.section-head__aside { flex: 0 0 auto; padding-bottom: 4px; }

.page-head {
  padding: clamp(54px, 8vw, 96px) 0 clamp(36px, 5vw, 60px);
  border-bottom: 1px solid var(--line);
}
.page-head__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
}
.page-head h1 { font-size: clamp(2.5rem, 4.8vw, 4rem); line-height: 1.04; letter-spacing: -0.03em; }
.page-head__aside { max-width: 340px; justify-self: end; color: var(--muted); font-size: 0.95rem; line-height: 1.6; }
.page-head__aside .stamp { margin-bottom: 16px; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs span { color: var(--line-strong); }

.stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--oxblood);
  color: var(--oxblood);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transform: rotate(-2deg);
  opacity: 0.82;
}
.stamp--brass { border-color: var(--brass); color: var(--brass); }

/* ------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------ */

.hero { position: relative; overflow: hidden; padding: clamp(52px, 7.5vw, 104px) 0 clamp(58px, 8vw, 110px); }
.hero::before {
  content: "";
  position: absolute;
  right: -12rem; top: -16rem;
  width: 44rem; height: 44rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(176, 132, 63, 0.14) 0%, rgba(176, 132, 63, 0) 62%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.hero__kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--tobacco);
  margin-bottom: 30px;
}
.hero__kicker::before { content: ""; width: 42px; height: 1px; background: var(--brass); }
.hero__title { margin-bottom: 26px; }
.hero__lede { max-width: 560px; font-size: clamp(1.08rem, 1.5vw, 1.24rem); color: var(--ink-2); line-height: 1.62; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta i { width: 5px; height: 5px; border-radius: 50%; background: var(--brass); display: inline-block; }

.hero-visual { position: relative; padding: 22px 10px 10px 0; }
.ledger-ghost {
  position: absolute;
  inset: 34px 0 6px 26px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  transform: rotate(3.4deg);
  box-shadow: var(--shadow-md);
}
.ledger-card {
  position: relative;
  z-index: 1;
  background: var(--cream);
  border: 1px solid var(--line);
  padding: clamp(24px, 3vw, 34px);
  transform: rotate(-1.7deg);
  box-shadow: var(--shadow-lg);
}
.ledger-card::after {
  content: "";
  position: absolute;
  inset: 11px;
  border: 1px solid var(--line);
  pointer-events: none;
}
.ledger-card__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.ledger-card__top b { color: var(--oxblood); font-weight: 700; }
.ledger-card__body {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  padding: 22px 0 18px;
}
.ledger-card__tin { width: 100%; }
.ledger-card__house {
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tobacco);
  margin-bottom: 6px;
}
.ledger-card__name { font-size: clamp(1.25rem, 1.8vw, 1.55rem); line-height: 1.15; margin-bottom: 14px; }
.ledger-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dotted var(--line-strong);
  font-size: 0.83rem;
  color: var(--muted);
}
.ledger-row span:last-child { color: var(--ink); font-family: var(--mono); font-size: 0.78rem; }
.ledger-price {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding-top: 16px;
}
.ledger-price__label { font-family: var(--sans); font-size: 9px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.ledger-price__value { font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1; }
.ledger-card .stamp { position: absolute; right: 8px; bottom: -17px; z-index: 2; transform: rotate(6deg); background: var(--cream); }
.hero-visual__caption {
  position: relative;
  z-index: 1;
  margin: 26px 0 0 6px;
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ------------------------------------------------------------------
   Stats strip
   ------------------------------------------------------------------ */

.stats-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(251, 247, 238, 0.5); }
.stats-strip__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat {
  padding: 26px 30px 24px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat:first-child { border-left: 0; }
.stat__value { font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1; letter-spacing: -0.02em; }
.stat__label { font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

/* ------------------------------------------------------------------
   Product cards
   ------------------------------------------------------------------ */

.tin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
}
.tin-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tin-grid--shop { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.tin-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.tin-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.tin-card__media {
  position: relative;
  display: block;
  padding: 20px 20px 14px;
  background:
    radial-gradient(120% 110% at 30% 16%, #fdf8ec 0%, #f0e5d0 58%, #e5d5ba 100%);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.tin-card__media img { width: 100%; height: auto; transition: transform 0.45s var(--ease); }
.tin-card:hover .tin-card__media img { transform: translateY(-4px) rotate(-1.2deg) scale(1.015); }
.tin-card__badges { position: absolute; left: 12px; top: 12px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; z-index: 1; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.badge--sage { background: var(--sage); }
.badge--brass { background: var(--brass); color: var(--ink); }
.badge--oxblood { background: var(--oxblood); }
.badge--paper { background: rgba(251, 247, 238, 0.92); color: var(--ink-2); border: 1px solid var(--line-strong); }

.tin-card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1 1 auto; }
.tin-card__house {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tobacco);
}
.tin-card__name { font-size: 1.28rem; line-height: 1.16; letter-spacing: -0.01em; }
.tin-card__name a { text-decoration: none; color: inherit; }
.tin-card__name a:hover { color: var(--oxblood); }
.tin-card__meta {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.tin-card__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dotted var(--line-strong);
}
.price { display: flex; flex-direction: column; gap: 2px; }
.price__label { font-family: var(--sans); font-size: 8.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.price__value { font-size: 1.25rem; line-height: 1; letter-spacing: -0.01em; }
.price__old { font-family: var(--sans); font-size: 10px; color: var(--muted); text-decoration: line-through; margin-left: 6px; }

.icon-btn {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.icon-btn:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.icon-btn svg { width: 16px; height: 16px; }

.tin-card__note {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--faint);
  font-style: italic;
}

/* ------------------------------------------------------------------
   Ledger notes (home)
   ------------------------------------------------------------------ */

.notes-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(36px, 6vw, 90px);
  align-items: start;
}
.notes-intro p { color: var(--muted); max-width: 380px; margin-top: 18px; }
.note-list { border-top: 1px solid var(--line-strong); }
.note-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) auto minmax(0, 0.8fr);
  gap: 20px;
  align-items: center;
  padding: 24px 6px;
  border-bottom: 1px solid var(--line);
}
.note-row__blend { display: flex; flex-direction: column; gap: 3px; }
.note-row__blend a { text-decoration: none; }
.note-row__blend a:hover { color: var(--oxblood); }
.note-row__name { font-size: 1.16rem; line-height: 1.2; }
.note-row__house { font-family: var(--sans); font-size: 9px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--tobacco); }
.note-row__move { font-family: var(--mono); font-size: 0.86rem; color: var(--muted); text-align: right; white-space: nowrap; }
.note-row__move b { color: var(--ink); font-weight: 400; }
.note-row__delta { text-align: right; font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; }
.delta-up { color: var(--oxblood); }
.delta-down { color: var(--sage); }
.note-foot { margin-top: 18px; font-family: var(--sans); font-size: 10px; letter-spacing: 0.1em; color: var(--faint); }

/* ------------------------------------------------------------------
   Story teaser
   ------------------------------------------------------------------ */

.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}
.founder-card {
  position: relative;
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 34px 30px 30px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.founder-card::before {
  content: "";
  position: absolute; inset: 12px;
  border: 1px solid var(--line);
  pointer-events: none;
}
.founder-card__monogram {
  width: 112px; height: 112px;
  margin: 0 auto 22px;
  border-radius: 50%;
  border: 1px solid var(--brass);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem;
  letter-spacing: 0.04em;
  color: var(--tobacco);
  background: radial-gradient(circle at 34% 28%, #fdf8ec, #eee0c6);
  box-shadow: inset 0 0 0 6px var(--cream), inset 0 0 0 7px var(--line);
}
.founder-card__name { font-size: 1.35rem; margin-bottom: 4px; }
.founder-card__dates { font-family: var(--sans); font-size: 9.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.founder-card__quote { font-style: italic; font-size: 0.98rem; color: var(--ink-2); line-height: 1.6; }
.founder-card__quote::before { content: "\201C"; color: var(--brass); }
.founder-card__quote::after { content: "\201D"; color: var(--brass); }

.story-copy .h2 { margin-bottom: 22px; }
.story-copy p { color: var(--ink-2); max-width: 620px; }
.story-copy .link-arrow { margin-top: 10px; }

/* ------------------------------------------------------------------
   Knowledge cards
   ------------------------------------------------------------------ */

.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 30px); }
.article-card {
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 28px 26px 26px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.article-card__num { font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: 0.18em; color: var(--brass); margin-bottom: 34px; }
.article-card h3 { font-size: 1.35rem; line-height: 1.2; margin-bottom: 12px; }
.article-card p { font-size: 0.92rem; color: var(--muted); line-height: 1.6; margin-bottom: 22px; }
.article-card__more { margin-top: auto; font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--tobacco); display: inline-flex; align-items: center; gap: 8px; }

/* ------------------------------------------------------------------
   Visit / CTA panel
   ------------------------------------------------------------------ */

.visit-panel {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: var(--cream);
  padding: clamp(36px, 5.4vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: end;
}
.visit-panel::before {
  content: "";
  position: absolute;
  right: -8rem; top: -10rem;
  width: 34rem; height: 34rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(176, 132, 63, 0.22), rgba(176, 132, 63, 0) 65%);
}
.visit-panel .eyebrow { color: var(--brass-soft); }
.visit-panel .eyebrow::before { background: var(--brass); }
.visit-panel h2 { color: var(--cream); max-width: 560px; }
.visit-panel p { color: rgba(251, 247, 238, 0.7); max-width: 480px; margin-top: 16px; }
.visit-panel__details { position: relative; display: flex; flex-direction: column; gap: 18px; }
.visit-line { display: flex; gap: 14px; align-items: flex-start; border-top: 1px solid rgba(251, 247, 238, 0.18); padding-top: 16px; }
.visit-line:first-child { border-top: 0; padding-top: 0; }
.visit-line .small-caps { color: var(--brass-soft); flex: 0 0 90px; padding-top: 4px; }
.visit-line p, .visit-line a { color: var(--cream); margin: 0; font-size: 0.95rem; line-height: 1.5; text-decoration: none; }
.visit-line a:hover { color: var(--brass-soft); }

/* ------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------ */

.site-footer { background: var(--dark); color: rgba(251, 247, 238, 0.72); padding: clamp(52px, 7vw, 84px) 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.7fr) minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 40px;
  padding-bottom: 56px;
}
.footer-brand { display: flex; flex-direction: column; gap: 18px; max-width: 300px; }
.footer-brand__top { display: flex; align-items: center; gap: 13px; color: var(--cream); }
.footer-brand__mark { width: 40px; height: 40px; }
.footer-brand__name { font-size: 1.15rem; }
.footer-brand p { font-size: 0.88rem; line-height: 1.6; color: rgba(251, 247, 238, 0.6); }
.footer-col h4 { font-family: var(--sans); font-size: 9.5px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass-soft); margin-bottom: 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(251, 247, 238, 0.78); text-decoration: none; font-size: 0.9rem; }
.footer-col a:hover { color: var(--cream); }
.footer-col p { font-size: 0.88rem; line-height: 1.65; color: rgba(251, 247, 238, 0.6); }
.footer-col address { font-style: normal; font-size: 0.9rem; line-height: 1.7; color: rgba(251, 247, 238, 0.78); }
.footer-bottom {
  border-top: 1px solid rgba(251, 247, 238, 0.14);
  padding: 22px 0 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(251, 247, 238, 0.45);
}
.footer-bottom__legal { max-width: 780px; line-height: 1.7; letter-spacing: 0.04em; text-transform: none; font-size: 10px; }

/* ------------------------------------------------------------------
   Shop toolbar
   ------------------------------------------------------------------ */

.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 34px;
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-2);
  padding: 9px 14px;
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.shop-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.search-field { position: relative; }
.search-field input {
  width: 230px;
  border: 1px solid var(--line-strong);
  background: rgba(251, 247, 238, 0.7);
  padding: 11px 14px 11px 38px;
  font-family: var(--serif);
  font-size: 0.9rem;
  color: var(--ink);
}
.search-field input::placeholder { color: var(--faint); font-style: italic; }
.search-field svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--muted); pointer-events: none; }
.select-field {
  border: 1px solid var(--line-strong);
  background: rgba(251, 247, 238, 0.7);
  padding: 11px 34px 11px 14px;
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237a6653' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  cursor: pointer;
}
.shop-count {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.shop-count b { color: var(--ink); }
.empty-state {
  padding: 80px 24px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  background: rgba(251, 247, 238, 0.45);
}
.empty-state h3 { margin-bottom: 10px; }
.empty-state p { color: var(--muted); }

/* ------------------------------------------------------------------
   Product detail
   ------------------------------------------------------------------ */

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  padding: clamp(36px, 5vw, 64px) 0 clamp(58px, 7vw, 92px);
}
.product-media { position: sticky; top: 112px; }
.product-media__frame {
  position: relative;
  background:
    radial-gradient(120% 110% at 32% 18%, #fdf8ec 0%, #f0e5d0 58%, #e3d2b4 100%);
  border: 1px solid var(--line);
  padding: clamp(26px, 4vw, 54px);
  box-shadow: var(--shadow-md);
}
.product-media__frame::after { content: ""; position: absolute; inset: 12px; border: 1px solid var(--line); pointer-events: none; }
.product-media__frame img { width: 100%; }
.product-media__cap {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.product-info { padding-top: 6px; }
.product-info__house { font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--tobacco); margin-bottom: 12px; }
.product-title { font-size: clamp(2.1rem, 3.6vw, 3.1rem); line-height: 1.04; letter-spacing: -0.025em; margin-bottom: 16px; }
.product-info__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; }
.product-info__meta span { display: inline-flex; align-items: center; gap: 8px; }
.product-info__meta i { width: 4px; height: 4px; border-radius: 50%; background: var(--brass); }
.product-lede { font-size: 1.05rem; line-height: 1.68; color: var(--ink-2); margin-bottom: 26px; max-width: 560px; }

.price-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.price-panel__value { display: flex; flex-direction: column; gap: 6px; }
.price-panel__big { font-size: clamp(2rem, 3vw, 2.6rem); line-height: 1; letter-spacing: -0.02em; }
.price-panel__label { font-family: var(--sans); font-size: 9px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.price-panel__ref { font-family: var(--sans); font-size: 10px; color: var(--faint); max-width: 220px; line-height: 1.5; }
.product-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.product-note {
  border-left: 2px solid var(--brass);
  padding: 4px 0 4px 18px;
  font-size: 0.92rem;
  color: var(--ink-2);
  font-style: italic;
  margin-bottom: 30px;
}

.spec-table { border-top: 1px solid var(--line); }
.spec-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.spec-row dt { font-family: var(--sans); font-size: 9.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.spec-row dd { margin: 0; color: var(--ink-2); }

.history-card { margin-top: 34px; border: 1px solid var(--line); background: rgba(251, 247, 238, 0.55); padding: 24px 24px 18px; }
.history-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 8px; }
.history-card__head h3 { font-size: 1.05rem; }
.history-chart { width: 100%; overflow: hidden; }
.history-chart svg { width: 100%; height: auto; display: block; }
.history-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.04em; }
.history-table th { text-align: left; font-weight: 600; color: var(--faint); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; padding: 6px 0; border-bottom: 1px solid var(--line); }
.history-table td { padding: 7px 0; border-bottom: 1px dotted var(--line); color: var(--ink-2); }
.history-table td:last-child, .history-table th:last-child { text-align: right; }

.product-side-note {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  max-width: 470px;
}
.product-side-note h3 { font-size: 1.05rem; margin: 14px 0 8px; }
.product-side-note p { font-size: 0.86rem; line-height: 1.65; color: var(--muted); margin-bottom: 10px; }
.product-side-note .small-caps { color: var(--faint); letter-spacing: 0.14em; }


/* Photography for the real collector's-cabinet tins */
.tin-card__media--photo { background: var(--paper); padding: 22px; }
.tin-card__media--photo img,
.product-media__frame--photo img { mix-blend-mode: multiply; }
.tin-card__media--photo img { aspect-ratio: 1 / 1; object-fit: contain; }
.product-media__frame--photo { background: var(--paper); }
.product-media__frame--photo img { aspect-ratio: 1 / 1; object-fit: contain; width: 100%; }

.related { padding-top: clamp(44px, 6vw, 72px); border-top: 1px solid var(--line); }

/* ------------------------------------------------------------------
   Cabinet / cart
   ------------------------------------------------------------------ */

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  padding: clamp(36px, 5vw, 64px) 0 clamp(60px, 8vw, 100px);
}
.cart-list { border-top: 1px solid var(--line-strong); }
.cart-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto auto;
  gap: 22px;
  align-items: center;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
}
.cart-item__thumb { display: block; background: var(--paper-2); border: 1px solid var(--line); padding: 6px; }
.cart-item__thumb img { width: 100%; }
.cart-item__house { font-family: var(--sans); font-size: 9px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--tobacco); margin-bottom: 4px; }
.cart-item__name { font-size: 1.22rem; line-height: 1.2; }
.cart-item__name a { text-decoration: none; }
.cart-item__name a:hover { color: var(--oxblood); }
.cart-item__meta { font-family: var(--sans); font-size: 10px; color: var(--muted); margin-top: 5px; }
.cart-item__price { font-family: var(--mono); font-size: 0.9rem; white-space: nowrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); }
.qty button {
  width: 32px; height: 34px;
  border: 0; background: transparent; cursor: pointer;
  font-family: var(--sans); font-size: 14px; color: var(--ink-2);
}
.qty button:hover { background: var(--paper-3); }
.qty span { min-width: 28px; text-align: center; font-family: var(--mono); font-size: 0.82rem; }
.cart-item__remove { border: 0; background: transparent; cursor: pointer; color: var(--faint); font-family: var(--sans); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; padding: 6px 0; }
.cart-item__remove:hover { color: var(--oxblood); }

.cart-summary {
  position: sticky;
  top: 112px;
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 28px;
  box-shadow: var(--shadow-md);
}
.cart-summary h2 { font-size: 1.5rem; margin-bottom: 6px; }
.cart-summary__sub { font-size: 0.88rem; color: var(--muted); margin-bottom: 22px; }
.summary-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dotted var(--line-strong); font-size: 0.92rem; color: var(--muted); }
.summary-row span:last-child { color: var(--ink); font-family: var(--mono); font-size: 0.86rem; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0 6px; }
.summary-total span:first-child { font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.summary-total span:last-child { font-size: 1.7rem; }
.cart-summary__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.cart-summary__fine { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.78rem; line-height: 1.6; color: var(--faint); }
.cart-empty { padding: 70px 20px; text-align: center; border: 1px dashed var(--line-strong); }
.cart-empty h2 { margin-bottom: 12px; }
.cart-empty p { color: var(--muted); margin-bottom: 24px; }

/* ------------------------------------------------------------------
   Prose pages (about / knowledge)
   ------------------------------------------------------------------ */

.story-hero { padding: clamp(44px, 6vw, 76px) 0 clamp(36px, 5vw, 60px); border-bottom: 1px solid var(--line); }
.story-hero__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: 48px; align-items: center; }
.story-hero h1 { font-size: clamp(2.5rem, 4.6vw, 4rem); line-height: 1.03; letter-spacing: -0.03em; }
.story-hero__side { justify-self: end; max-width: 300px; border-left: 1px solid var(--line-strong); padding-left: 24px; font-size: 0.92rem; color: var(--muted); line-height: 1.65; }

.prose { max-width: 720px; font-size: 1.02rem; line-height: 1.75; color: var(--ink-2); }
.prose > p:first-of-type::first-letter {
  float: left;
  font-family: var(--serif);
  font-size: 4.4rem;
  line-height: 0.82;
  padding: 8px 12px 0 0;
  color: var(--tobacco);
}
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 44px 0 16px; color: var(--ink); }
.prose h3 { font-size: 1.25rem; margin: 30px 0 12px; color: var(--ink); }
.prose blockquote {
  margin: 36px 0;
  padding: 6px 0 6px 26px;
  border-left: 2px solid var(--brass);
  font-size: 1.25rem;
  line-height: 1.55;
  font-style: italic;
  color: var(--ink);
}
.prose ul { padding-left: 22px; margin: 0 0 20px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--tobacco); }
.prose .drop-note { font-family: var(--sans); font-size: 10px; letter-spacing: 0.08em; color: var(--faint); margin-top: 30px; }

.article-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; padding: clamp(40px, 6vw, 72px) 0 clamp(60px, 8vw, 100px); }
.side-nav { position: sticky; top: 112px; border-top: 1px solid var(--line-strong); padding-top: 18px; }
.side-nav .small-caps { color: var(--faint); margin-bottom: 14px; display: block; }
.side-nav a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--ink-2);
  text-decoration: none;
}
.side-nav a:hover { color: var(--oxblood); }
.article-body .prose { max-width: 740px; }
.article-section { padding: 10px 0 34px; }
.article-section + .article-section { border-top: 1px solid var(--line); padding-top: 44px; }
.article-section h2 { margin-top: 0; }
.article-kicker { font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); margin-bottom: 10px; }

.callout {
  background: rgba(251, 247, 238, 0.7);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  padding: 22px 24px;
  margin: 26px 0;
  font-size: 0.92rem;
  line-height: 1.65;
}
.callout .small-caps { display: block; margin-bottom: 8px; color: var(--tobacco); }

.data-table { width: 100%; border-collapse: collapse; margin: 22px 0 28px; font-size: 0.9rem; }
.data-table th { text-align: left; font-family: var(--sans); font-size: 9px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); padding: 10px 12px; border-bottom: 1px solid var(--line-strong); }
.data-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table tr:nth-child(even) td { background: rgba(251, 247, 238, 0.5); }

/* timeline */
.timeline { margin: 40px 0 0; }
.timeline__row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 26px; }
.timeline__year { font-family: var(--mono); font-size: 0.95rem; color: var(--tobacco); padding-top: 2px; }
.timeline__body { position: relative; border-left: 1px solid var(--line-strong); padding: 0 0 34px 26px; }
.timeline__body::before { content: ""; position: absolute; left: -4.5px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--brass); }
.timeline__body h3 { font-size: 1.08rem; margin-bottom: 5px; }
.timeline__body p { font-size: 0.9rem; color: var(--muted); margin: 0; line-height: 1.6; }
.timeline__row:last-child .timeline__body { padding-bottom: 0; }

/* people */
.people-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 34px; }
.person { background: var(--cream); border: 1px solid var(--line); padding: 22px 20px; }
.person__initials { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--brass); display: flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--tobacco); margin-bottom: 16px; background: radial-gradient(circle at 34% 28%, #fdf8ec, #eee0c6); }
.person h3 { font-size: 1.02rem; margin-bottom: 3px; }
.person__role { font-family: var(--sans); font-size: 8.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.person p { font-size: 0.82rem; line-height: 1.55; color: var(--muted); }

.about-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(36px, 6vw, 90px); align-items: start; }
.about-aside { display: flex; flex-direction: column; gap: 22px; }
.aside-card { border: 1px solid var(--line); background: rgba(251, 247, 238, 0.6); padding: 24px; }
.aside-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.aside-card p { font-size: 0.86rem; color: var(--muted); line-height: 1.6; }
.aside-card .small-caps { color: var(--tobacco); display: block; margin-bottom: 10px; }

/* ------------------------------------------------------------------
   Archive Studio (editor)
   ------------------------------------------------------------------ */

.studio-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 64px); align-items: start; padding: clamp(36px, 5vw, 60px) 0 clamp(60px, 8vw, 96px); }
.studio-panel { background: var(--cream); border: 1px solid var(--line); padding: clamp(24px, 3vw, 34px); box-shadow: var(--shadow-sm); }
.studio-panel h2 { font-size: 1.5rem; margin-bottom: 6px; }
.studio-panel__sub { font-size: 0.88rem; color: var(--muted); margin-bottom: 24px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-family: var(--sans); font-size: 9.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 252, 244, 0.7);
  padding: 12px 14px;
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--ink);
}
.field textarea { min-height: 104px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brass); outline: none; box-shadow: 0 0 0 3px rgba(176, 132, 63, 0.14); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row--3 { grid-template-columns: repeat(3, 1fr); }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

.upload-box { border: 1px dashed var(--line-strong); padding: 18px; display: flex; gap: 18px; align-items: center; background: rgba(251, 247, 238, 0.5); margin-bottom: 18px; }
.upload-box__preview { width: 86px; height: 86px; flex: 0 0 auto; border: 1px solid var(--line); background: var(--paper-2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.upload-box__preview img { width: 100%; height: 100%; object-fit: contain; }
.upload-box__text { font-size: 0.82rem; color: var(--muted); line-height: 1.55; }
.upload-box__text strong { color: var(--ink-2); font-weight: 600; }
.upload-box input[type="file"] { margin-top: 8px; font-family: var(--sans); font-size: 10px; }

.saved-item { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.saved-item__thumb { width: 58px; height: 58px; border: 1px solid var(--line); background: var(--paper-2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.saved-item__thumb img { width: 100%; height: 100%; object-fit: contain; }
.saved-item__name { font-size: 1rem; line-height: 1.2; }
.saved-item__meta { font-family: var(--sans); font-size: 9.5px; color: var(--muted); margin-top: 3px; }
.saved-item__actions { display: flex; gap: 6px; }
.saved-item__actions button { border: 1px solid var(--line-strong); background: transparent; cursor: pointer; font-family: var(--sans); font-size: 9px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 7px 9px; color: var(--ink-2); }
.saved-item__actions button:hover { border-color: var(--ink); background: var(--ink); color: var(--cream); }
.studio-note { border: 1px solid var(--line); border-left: 3px solid var(--sage); background: rgba(95, 106, 82, 0.07); padding: 18px 20px; font-size: 0.84rem; line-height: 1.6; color: var(--ink-2); margin-bottom: 20px; }
.studio-note strong { color: var(--ink); }
.studio-empty { font-size: 0.9rem; color: var(--muted); font-style: italic; padding: 14px 0; }

/* ------------------------------------------------------------------
   Age gate + toast
   ------------------------------------------------------------------ */

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(24, 17, 10, 0.66);
  backdrop-filter: blur(6px);
}
.age-gate[hidden] { display: none; }
.age-gate__card {
  width: 100%;
  max-width: 470px;
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 42px 38px 34px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.age-gate__card::after { content: ""; position: absolute; inset: 11px; border: 1px solid var(--line); pointer-events: none; }
.age-gate__mark { width: 58px; height: 58px; margin: 0 auto 20px; }
.age-gate__title { font-size: 1.75rem; line-height: 1.15; margin-bottom: 12px; }
.age-gate__copy { font-size: 0.92rem; color: var(--muted); line-height: 1.65; margin-bottom: 24px; }
.age-gate__actions { display: flex; flex-direction: column; gap: 10px; }
.age-gate__fine { margin-top: 20px; font-family: var(--sans); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); line-height: 1.7; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  z-index: 1100;
  background: var(--ink);
  color: var(--cream);
  padding: 13px 22px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s var(--ease);
  max-width: calc(100vw - 40px);
  text-align: center;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------------
   Reveal animation
   ------------------------------------------------------------------ */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------ */

@media (max-width: 1100px) {
  .tin-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tin-grid--shop { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .site-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-inner { min-height: 72px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero-visual { max-width: 520px; }
  .page-head__grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .page-head__aside { justify-self: start; max-width: 520px; }
  .notes-layout, .story-layout, .about-split { grid-template-columns: minmax(0, 1fr); }
  .story-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .story-hero__side { justify-self: start; border-left: 0; border-top: 1px solid var(--line-strong); padding: 18px 0 0; max-width: 520px; }
  .product-layout { grid-template-columns: minmax(0, 1fr); }
  .product-media { position: static; max-width: 520px; }
  .cart-layout { grid-template-columns: minmax(0, 1fr); }
  .cart-summary { position: static; }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .side-nav { position: static; display: flex; flex-wrap: wrap; gap: 8px 18px; border-top: 0; padding-top: 0; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
  .side-nav a { border-bottom: 0; padding: 4px 0; }
  .side-nav .small-caps { width: 100%; }
  .studio-layout { grid-template-columns: minmax(0, 1fr); }
  .visit-panel { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .stats-strip__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tin-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .header-inner { gap: 12px; }
  .brand__sub { display: none; }
  .cart-link span.cart-link__label { display: none; }
  .tin-grid, .tin-grid--shop, .article-grid, .tin-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .tin-card__body { padding: 14px 14px 16px; }
  .tin-card__name { font-size: 1.05rem; }
  .tin-card__meta { font-size: 9.5px; }
  .price__value { font-size: 1.05rem; }
  .icon-btn { width: 34px; height: 34px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .note-row { grid-template-columns: minmax(0, 1fr) auto; }
  .note-row__move { grid-column: 1 / 2; text-align: left; }
  .note-row__delta { grid-column: 2 / 3; grid-row: 1 / 2; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .cart-item { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: start; }
  .cart-item__price, .cart-item__remove { grid-column: 2; }
  .cart-item__remove { justify-self: start; }
  .people-grid { grid-template-columns: minmax(0, 1fr); }
  .field-row, .field-row--3 { grid-template-columns: minmax(0, 1fr); }
  .prose { font-size: 1rem; }
  .timeline__row { grid-template-columns: 62px minmax(0, 1fr); gap: 14px; }
  .article-card { padding: 22px 20px; }
  .visit-panel { padding: 30px 24px; }
  .page-head { padding-top: 40px; }
  .hero { padding-top: 40px; }
  .hero__meta { gap: 10px 18px; }
  .ledger-card__body { grid-template-columns: 100px minmax(0, 1fr); gap: 16px; }
  .age-gate__card { padding: 34px 24px 28px; }
}

@media (max-width: 420px) {
  .tin-grid, .tin-grid--shop, .article-grid { grid-template-columns: minmax(0, 1fr); }
  .hero__actions .btn { width: 100%; }
}
