/* ===== Design tokens ===== */
:root {
  --ink: #12110f;
  --paper: #f3f0ea;
  --graphite: #3c3b38;
  --ash: #6f6d68;        /* darkened from #8D8B86 for AA text contrast on paper */
  --ash-soft: #8d8b86;
  --bone: #e8e4dc;
  --ember: #c44816;
  --ember-deep: #8a300e;
  --metal: #b7b1a6;
  --rule: rgba(18, 17, 15, 0.12);
  --rule-light: rgba(243, 240, 234, 0.16);

  --f-sans: "Inter Tight", "Helvetica Neue", Arial, system-ui, sans-serif;
  --f-serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px; --s6: 48px;
  --s8: 64px; --s10: 80px; --s12: 96px; --s16: 128px;

  --max: 1400px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-sans); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 14px; text-decoration: none; }
.skip-link:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ===== Type roles ===== */
.spec { font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ash); }
.spec-light { color: var(--metal); }
.h2 { font-weight: 600; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -0.02em; margin-top: 10px; }
.h2-light { color: var(--paper); }
.h3 { font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.serif-lede { font-family: var(--f-serif); font-size: clamp(19px, 1.7vw, 23px); line-height: 1.45; color: var(--graphite); }

/* ===== Buttons & links ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px; border: 0; border-radius: 0;
  font-family: var(--f-sans); font-weight: 600; font-size: 14px; letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer; transition: background-color .2s var(--ease);
}
.btn-ember { background: var(--ember); color: var(--paper); }
.btn-ember:hover { background: var(--ember-deep); }
.btn[disabled] { opacity: .6; cursor: wait; }
.text-link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15px;
  text-decoration: none; padding-bottom: 3px; border-bottom: 1px solid currentColor;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.text-link::after { content: "→"; font-weight: 400; }
.text-link:hover { color: var(--ember); }
.text-link-light { color: var(--paper); }
.text-link-light:hover { color: var(--metal); }
.soon-link { color: var(--ash); }
.soon-link em { font-style: normal; font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; margin-left: 6px; color: var(--ash-soft); }

/* ===== 1. Announcement ===== */
.announce { position: relative; background: var(--ink); color: var(--paper); font-size: 13px; }
.announce-text { max-width: var(--max); margin: 0 auto; padding: 9px 48px; text-align: center; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 10px; }
.announce-text a { color: var(--paper); text-underline-offset: 3px; }
.announce-text a:hover { color: var(--metal); }
.announce-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ember); }
.announce-close { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; display: grid; place-items: center; background: none; border: 0; color: var(--metal); cursor: pointer; }
.announce-close:hover { color: var(--paper); }

/* ===== 2. Header ===== */
.header { position: sticky; top: 0; z-index: 50; background: rgba(243, 240, 234, 0.94); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--rule); }
.header-row { height: var(--header-h); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s2); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.seal { width: 22px; height: 22px; display: grid; place-items: center; background: var(--ink); border-radius: 50%; }
.seal img { width: 13px; height: auto; }
.wordmark { font-weight: 800; font-size: 15px; letter-spacing: 0.16em; white-space: nowrap; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; }
.nav { display: none; justify-self: center; }
.nav-list { display: flex; gap: var(--s4); }
.nav-link { display: inline-block; line-height: 1.5; font-family: var(--f-sans); background: none; border: 0; padding: 8px 0; font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer; border-bottom: 1px solid transparent; }
.nav-link:hover, .nav-link[aria-expanded="true"] { border-bottom-color: var(--ink); }
.tools { display: flex; align-items: center; gap: 2px; justify-self: end; }
.tool { display: inline-flex; align-items: center; gap: 8px; height: 40px; min-width: 40px; justify-content: center; padding: 0 8px; background: none; border: 0; cursor: pointer; font-size: 13px; color: var(--graphite); }
.tool:hover { color: var(--ink); }
.tool-label { display: none; }
.search-btn { border: 1px solid transparent; }

@media (max-width: 899px) {
  .header-row { grid-template-columns: 40px 1fr auto; }
  .logo { justify-self: center; }
  .logo .wordmark { font-size: 13px; letter-spacing: .14em; }
  .tools .store-soon:first-of-type { display: none; }
}
@media (min-width: 900px) {
  .menu-btn { display: none; }
  .header-row { grid-template-columns: 1fr auto 1fr; }
  .nav { display: block; }
  .tool-label { display: inline; }
  .search-btn { border-color: var(--rule); padding: 0 14px; min-width: 180px; justify-content: flex-start; color: var(--ash); margin-right: 8px; }
}

/* Mega-menu */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--rule); box-shadow: 0 24px 40px -32px rgba(18,17,15,.35); }
.mega-grid { display: grid; grid-template-columns: repeat(5, 1fr) 1.3fr; gap: var(--s4); padding-top: var(--s5); padding-bottom: var(--s6); }
.mega-col ul { margin-top: var(--s2); display: grid; gap: 10px; }
.mega-col a { text-decoration: none; font-size: 15px; }
.mega-col a:hover { color: var(--ember); }
.mega-feature { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; text-decoration: none; }
.mega-feature img { width: 100%; height: 100%; object-fit: cover; }
.mega-feature-text { position: absolute; left: 16px; bottom: 14px; color: var(--paper); font-weight: 500; font-size: 14px; border-bottom: 1px solid currentColor; }

/* Search */
.search-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--rule); }
.search-inner { padding-top: var(--s4); padding-bottom: var(--s4); }
.search-inner input { width: 100%; font: 400 clamp(22px, 3vw, 32px) var(--f-sans); letter-spacing: -0.01em; border: 0; border-bottom: 1px solid var(--ink); background: transparent; padding: 10px 0; color: var(--ink); border-radius: 0; }
.search-inner input:focus { outline: none; border-bottom-color: var(--ember); }
.search-note { margin-top: 12px; font-size: 14px; color: var(--ash); }

/* Drawer */
.drawer { position: fixed; inset: 0; z-index: 100; background: rgba(18,17,15,.4); }
.drawer-panel { position: absolute; left: 0; top: 0; bottom: 0; width: min(88vw, 380px); background: var(--paper); padding: 16px 24px 32px; overflow-y: auto; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; height: 48px; margin-bottom: var(--s3); }
.drawer .spec { margin-top: var(--s3); }
.drawer-list { margin-top: 8px; }
.drawer-list a { display: block; padding: 12px 0; font-size: 20px; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--rule); }

/* ===== 3. Hero ===== */
.hero { position: relative; background: var(--ink); color: var(--paper); height: clamp(440px, 66vh, 640px); overflow: hidden; display: flex; align-items: flex-end; }
.hero-video, .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.hero-poster-fallback { display: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .hero-poster-fallback { display: block; }
}
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,17,15,.16) 0%, rgba(18,17,15,.34) 45%, rgba(18,17,15,.84) 100%); }
.hero-copy { position: relative; padding-bottom: clamp(40px, 7vh, 72px); }
.hero-title { margin-top: 14px; font-weight: 800; font-style: italic; font-size: clamp(40px, 6.4vw, 92px); line-height: .95; letter-spacing: -0.03em; }
.hero-actions { margin-top: var(--s4); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); }

/* ===== Chapters ===== */
.chapter { padding: clamp(64px, 9vw, 120px) 0; }
.chapter-tight { padding-top: 0; }
.chapter-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--s2) var(--s4); margin-bottom: var(--s5); }
.chapter-note { max-width: 36ch; font-size: 14px; color: var(--ash); }

/* ===== 4. Product rail / cards ===== */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 72%); gap: var(--s2); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: thin; }
.rail > li { scroll-snap-align: start; }
@media (min-width: 640px) { .rail { grid-auto-columns: minmax(240px, 44%); } }
@media (min-width: 1000px) { .rail { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0; padding: 0; gap: var(--s3); } }
.card-link { display: block; text-decoration: none; }
.card-media { position: relative; aspect-ratio: 4 / 5; background: var(--bone); overflow: hidden; }
.card-photo { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .55s var(--ease); }
.flag { position: absolute; z-index: 2; left: 12px; top: 12px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; background: rgba(243, 240, 234, 0.92); padding: 4px 7px; }
.card-hover { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 12px 14px; background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 500; transform: translateY(100%); transition: transform .3s var(--ease); }
.card-link:hover .card-hover, .card-link:focus-visible .card-hover { transform: none; }
.card-link:hover .card-photo { transform: scale(1.035); }
.card-meta { padding-top: 14px; display: grid; gap: 3px; }
.swatches { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.sw { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--rule); }
.sw-ink { background: var(--ink); } .sw-bone { background: var(--bone); } .sw-ember { background: var(--ember); } .sw-graphite { background: var(--graphite); } .sw-metal { background: var(--metal); }
.sw-count { font-size: 12px; color: var(--ash); margin-left: 4px; }
.card-name { font-size: 15px; font-weight: 600; }
.card-cat { font-size: 14px; color: var(--ash); }
.card-price { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--graphite); margin-top: 4px; }

/* ===== 5. Discipline tiles ===== */
.tiles { display: grid; gap: var(--s2); grid-template-columns: 1fr; }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(3, 1fr); gap: var(--s3); } }
.tile { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink); color: var(--paper); text-decoration: none; }
@media (max-width: 719px) { .tile { aspect-ratio: 16 / 10; } }
.tile img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; transition: transform .8s var(--ease); }
.tile:hover img { transform: scale(1.04); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(18,17,15,.6)); }
.tile-copy { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 20px; display: grid; gap: 2px; }
.tile-name { font-weight: 800; font-style: italic; font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -0.02em; line-height: 1; }
.tile-sub { font-size: 14px; color: var(--metal); }
.tile-name::after { content: " →"; font-style: normal; font-weight: 400; font-size: .6em; vertical-align: middle; }

/* ===== 6. Signature ===== */
.signature { background: var(--bone); }
.sig-grid { display: grid; gap: var(--s5); align-items: center; }
@media (min-width: 900px) { .sig-grid { grid-template-columns: 1.1fr 1fr; gap: var(--s10); } }
.sig-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--ink); }
.sig-media img { width: 100%; height: 100%; object-fit: cover; }
.sig-copy { display: grid; gap: var(--s3); max-width: 520px; }
.sig-copy .h2 { margin-top: -8px; }
.specs { border-top: 1px solid var(--rule); }
.specs div { display: grid; grid-template-columns: 90px 1fr; gap: var(--s2); padding: 12px 0; border-bottom: 1px solid var(--rule); }
.specs dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ash); padding-top: 3px; }
.specs dd { font-size: 15px; }
.sig-copy .text-link { justify-self: start; }

/* ===== 7. Lookbook ===== */
.lookbook { display: grid; grid-template-columns: 1fr; gap: 4px; background: var(--ink); }
@media (min-width: 760px) { .lookbook { grid-template-columns: repeat(2, 1fr); } }
.look { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
@media (min-width: 760px) { .look { height: clamp(340px, 36vw, 520px); aspect-ratio: auto; } }
.look img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.look-cap { position: absolute; left: auto; right: 20px; bottom: 18px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--paper); text-shadow: 0 1px 8px rgba(0,0,0,.65); }
@media (max-width: 759px) { .look-cap { top: 14px; bottom: auto; right: 14px; } }

/* ===== 8. Essay ===== */
.essay-wrap { max-width: 820px; text-align: center; display: grid; justify-items: center; }
.essay-media { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bone); margin-bottom: var(--s5); }
.essay-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.essay-mark { width: 18px; height: auto; margin-bottom: var(--s2); opacity: .85; }
.essay-title { margin-top: 14px; font-family: var(--f-serif); font-weight: 400; font-style: italic; font-size: clamp(36px, 5vw, 64px); line-height: 1.05; letter-spacing: -0.01em; }
.essay-body { margin-top: var(--s4); display: grid; gap: var(--s2); font-family: var(--f-serif); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--graphite); text-align: left; }
.essay-sign { margin-top: var(--s4); }

/* ===== 9. Craft ===== */
.craft { padding-top: 0; }
.craft-list { display: grid; gap: 0; border-top: 1px solid var(--ink); }
@media (min-width: 800px) { .craft-list { grid-template-columns: repeat(3, 1fr); } }
.craft-list li { padding: var(--s4) 0; border-bottom: 1px solid var(--rule); display: grid; gap: 10px; align-content: start; }
@media (min-width: 800px) { .craft-list li { padding: var(--s4) var(--s4) var(--s4) 0; border-bottom: 0; } .craft-list li + li { padding-left: var(--s4); border-left: 1px solid var(--rule); } }
.craft-num { font-family: var(--f-mono); font-size: 11px; color: var(--ember); letter-spacing: .12em; }
.craft-list p { color: var(--graphite); font-size: 15px; max-width: 38ch; }

/* ===== 10. Notify ===== */
.notify { background: var(--ink); color: var(--paper); }
.notify-grid { display: grid; gap: var(--s5); }
@media (min-width: 900px) { .notify-grid { grid-template-columns: 1fr 1fr; align-items: end; gap: var(--s10); } }
.notify-lede { margin-top: var(--s2); font-family: var(--f-serif); font-size: 19px; color: var(--metal); }
.field-label { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--metal); margin-bottom: 10px; }
.notify-row { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 520px) { .notify-row { flex-direction: row; gap: 0; } }
.notify-row input { flex: 1; min-width: 0; min-height: 48px; padding: 0 16px; background: transparent; color: var(--paper); border: 1px solid rgba(243,240,234,.35); border-radius: 0; font: 400 16px var(--f-sans); }
.notify-row input::placeholder { color: var(--ash-soft); }
.notify-row input:focus { outline: none; border-color: var(--paper); }
.notify-status { min-height: 1.4em; margin-top: 12px; font-size: 14px; color: var(--metal); }
.notify-status.is-success { color: var(--paper); }
.notify-status.is-success::before { content: "✓ "; color: var(--ember); }
.notify-status.is-error { color: #f0a988; }
.notify-fallback { font-size: 13px; color: var(--ash-soft); }
.notify-fallback a { color: var(--metal); text-underline-offset: 3px; }
.socials { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--rule-light); }
.social { font-size: 14px; color: var(--metal); }
.social em { font-style: normal; font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ash-soft); margin-left: 6px; }

/* ===== 12. Footer ===== */
.footer { background: var(--paper); padding: var(--s10) 0 var(--s4); border-top: 1px solid var(--rule); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s3); padding-bottom: var(--s6); }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s5) var(--s3); padding-bottom: var(--s6); }
@media (min-width: 800px) { .footer-cols { grid-template-columns: repeat(4, 1fr); } }
.footer-cols ul { margin-top: var(--s2); display: grid; gap: 10px; font-size: 14px; }
.footer-cols a { text-decoration: none; }
.footer-cols a:hover { color: var(--ember); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px var(--s4); padding-top: var(--s3); border-top: 1px solid var(--rule); font-size: 13px; color: var(--ash); }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.legal-links a { color: var(--graphite); text-underline-offset: 3px; }
.preview-note { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

/* ===== Toast ===== */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 120; background: var(--ink); color: var(--paper); padding: 12px 18px; font-size: 14px; max-width: calc(100vw - 32px); }
.toast a { color: var(--paper); }

/* ===== Brand mark overlay on garment photos ===== */
.dw-mark {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px 5px 6px;
  border-radius: 999px;
  background: rgba(18, 17, 15, 0.68);
  border: 1px solid rgba(243, 240, 234, 0.16);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--paper);
  pointer-events: none;
  box-shadow: 0 1px 8px rgba(18, 17, 15, 0.28);
}
.dw-mark img {
  width: auto;
  height: 20px;
  flex: 0 0 auto;
}
.dw-mark-name {
  font-family: var(--f-sans);
  font-weight: 800;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}
@media (max-width: 719px) {
  .dw-mark { left: 10px; bottom: 10px; gap: 5px; padding: 4px 8px 4px 5px; }
  .dw-mark img { height: 16px; }
  .dw-mark-name { font-size: 8px; letter-spacing: 0.12em; }
}
/* Lift the card badge above the 'Notify me' hover bar */
.card-media .dw-mark { transition: bottom .3s var(--ease); }
.card-link:hover .dw-mark,
.card-link:focus-visible .dw-mark { bottom: 52px; }
@media (max-width: 719px) {
  .card-link:hover .dw-mark,
  .card-link:focus-visible .dw-mark { bottom: 48px; }
}
/* Discipline tiles: keep the same bottom edge, but use the right corner
   so the mark does not cover the lane title at bottom-left. */
.tile .dw-mark { left: auto; right: 12px; }
@media (max-width: 719px) { .tile .dw-mark { right: 10px; } }
