/* OJORI core stylesheet. One file, CSS custom properties, no framework, nothing loaded from other sites.
   Brand: Obsidian #171515 · Porcelain #F7F3EE · Champagne #C5A77B · Oxblood #682B36 · Warm Stone #D9CEC2 · Graphite #47413F
   Identity 2.0: Bodoni Moda for display, Inter for UI and body, square corners, a larger editorial scale.
   Contrast of every token pair is checked by tests/test_ojori.py (Brand). */

@font-face { font-family: "Bodoni Moda"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/bodoni-moda-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Bodoni Moda"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/bodoni-moda-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Bodoni Moda"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/bodoni-moda-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-600-normal.woff2") format("woff2"); }

:root {
  /* palette */
  --obsidian: #171515; --porcelain: #F7F3EE; --champagne: #C5A77B; --oxblood: #682B36; --stone: #D9CEC2; --graphite: #47413F;
  --champagne-deep: #8A6A3B;
  /* semantic tokens, light */
  --bg: var(--porcelain); --surface: #FFFDFA; --text: var(--obsidian); --muted: var(--graphite);
  --accent: var(--oxblood); --accent-text: var(--porcelain); --accent-hover: #4F1F28;
  --gold: var(--champagne-deep); --border: var(--stone); --focus: var(--oxblood);
  --stage: var(--obsidian); --stage-text: var(--porcelain); --stage-muted: var(--stone); --stage-gold: var(--champagne);
  /* type */
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* space and shape */
  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 40px; --s6: 64px; --s7: 104px;
  --radius: 0; --wrap: 1180px; --gutter: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--obsidian); --surface: #211E1D; --text: var(--porcelain); --muted: var(--stone);
    --accent: var(--champagne); --accent-text: var(--obsidian); --accent-hover: #D6BD96;
    --gold: var(--champagne); --border: #3D3735; --focus: var(--champagne);
  }
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 var(--s3); text-wrap: balance; }
h1 { font-size: clamp(44px, 8vw, 96px); }
h2 { font-size: clamp(36px, 5vw, 64px); }
h3 { font-size: clamp(22px, 3vw, 28px); }
p { margin: 0 0 var(--s3); max-width: 64ch; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font: 500 11px/1.4 var(--sans); letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); margin: 0 0 var(--s3); }
.lede { font: italic 400 clamp(20px, 2.6vw, 26px)/1.45 var(--serif); color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-text); padding: 8px 14px; z-index: 20; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.site-head { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 64px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 40px; width: auto; }
.on-dark { display: none; }
@media (prefers-color-scheme: dark) { .on-light { display: none; } .on-dark { display: block; } }
.nav { display: flex; gap: var(--s4); font: 500 12px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; }
.nav a { text-decoration: none; padding: 12px 0; border-bottom: 1px solid transparent; }
.nav a[aria-current="page"] { border-color: var(--gold); }
.menu-toggle { display: none; }
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid var(--border); background: none; color: var(--text); font: 600 12px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: var(--s2) var(--gutter) var(--s3); }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .js .nav:not(.open) { display: none; }
}

/* sections */
section { padding: var(--s6) 0; }
@media (min-width: 720px) { section { padding: var(--s7) 0; } }
.stage { background: var(--stage); color: var(--stage-text); }
.stage .eyebrow { color: var(--stage-gold); }
.stage .lede, .stage p { color: var(--stage-muted); }
.stage a:hover { color: var(--stage-gold); }
.rule { width: 72px; height: 1px; background: var(--gold); border: 0; margin: var(--s4) 0; }
.stage .rule { background: var(--stage-gold); }

/* hero: text left, mood portrait right, on an obsidian blueprint grid */
.grid-ground { background-color: var(--obsidian);
  background-image: linear-gradient(rgba(247,243,238,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(247,243,238,.09) 1px, transparent 1px),
    linear-gradient(rgba(247,243,238,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(247,243,238,.045) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px; }
.hero { position: relative; overflow: hidden; padding: var(--s6) 0; }
@media (min-width: 720px) { .hero { padding: var(--s7) 0; } }
.hero-split { display: grid; gap: var(--s5); align-items: center; }
@media (min-width: 860px) { .hero-split { grid-template-columns: 1.25fr 1fr; gap: var(--s6); } }
.hero h1 { font-size: clamp(64px, 11vw, 132px); line-height: .98; letter-spacing: 0.01em; margin-bottom: var(--s3); }
.hero .lede { max-width: 30ch; color: var(--stage-text); }
.hero .sub { max-width: 44ch; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.edit-head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23,21,21,.82) 0%, rgba(23,21,21,.45) 42%, rgba(23,21,21,0) 62%); }
.hero .wrap, .edit-head .wrap { position: relative; z-index: 1; width: 100%; }
.cue { display: flex; gap: var(--s4); flex-wrap: wrap; margin-top: var(--s5); font: 500 11px/1 var(--sans); letter-spacing: 0.26em; text-transform: uppercase; color: var(--stage-gold); }

/* mood images: generated concept art from the brand board, always captioned, never a product */
.mood { margin: 0; justify-self: center; width: 100%; max-width: 420px; }
.mood img { width: 100%; height: auto; border: 1px solid #3D3735; }
.mood figcaption { margin-top: var(--s2); font: 500 11px/1.4 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--stage-muted); }
.mood.still { max-width: 240px; justify-self: start; margin-top: var(--s5); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-text); font: 600 13px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; border-radius: var(--radius); transition: background .25s var(--ease); }
.btn:hover { background: var(--accent-hover); color: var(--accent-text); }
.btn-quiet { background: transparent; color: var(--text); border-color: var(--border); }
.btn-quiet:hover { background: transparent; color: var(--accent); border-color: var(--accent); }
.stage .btn { background: var(--stage-gold); border-color: var(--stage-gold); color: var(--obsidian); }
.stage .btn-quiet { background: transparent; color: var(--stage-text); border-color: #5A524F; }

/* collection panels */
.panels { display: grid; gap: var(--s3); grid-template-columns: 1fr; }
@media (min-width: 860px) { .panels { grid-template-columns: repeat(3, 1fr); } }
.panel { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 520px; background: var(--obsidian); padding: var(--s4); color: var(--porcelain); text-decoration: none; overflow: hidden; isolation: isolate; }
.panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform 1.2s var(--ease); }
.panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(23,21,21,.94) 0%, rgba(23,21,21,.75) 30%, rgba(23,21,21,0) 52%); }
.panel:hover img { transform: scale(1.04); }
.panel:hover { color: var(--porcelain); }
.panel .eyebrow { color: var(--champagne); margin-bottom: var(--s2); }
.panel h3 { font-size: clamp(30px, 3.4vw, 40px); margin-bottom: var(--s2); }
.panel p { color: var(--stone); margin: 0; }
.panel .more { margin-top: var(--s3); font: 600 12px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--champagne); }

/* product cards */
.grid { display: grid; gap: var(--s5) var(--s4); grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card { display: flex; flex-direction: column; gap: var(--s2); }
.card figure { margin: 0; background: var(--surface); aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--border); }
.card figure img { width: 100%; height: 100%; object-fit: contain; padding: var(--s4); }
.card .brandline { font: 600 11px/1.4 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin: var(--s2) 0 0; }
.card h3 { font-size: 22px; margin: 0; }
.card h3 a { text-decoration: none; }
.card .why { color: var(--muted); font-size: 15px; margin: 0; }
.card .actions { display: flex; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s2); }
.card .actions .btn { min-height: 44px; padding: 0 18px; font-size: 12px; }
.inline-disclosure { font-size: 13px; color: var(--muted); margin-top: var(--s3); }

/* curation-in-progress state (no verified products yet) */
.pending { border: 1px solid var(--border); padding: var(--s5) var(--s4); text-align: center; background: var(--surface); }
.pending p { margin-left: auto; margin-right: auto; color: var(--muted); }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); max-width: 420px; margin: var(--s4) auto 0; }
@media (min-width: 560px) { .slots { grid-template-columns: repeat(6, 1fr); } }
.slots span { aspect-ratio: 4 / 5; border: 1px solid var(--border); display: grid; place-items: center; font: 400 18px var(--serif); color: var(--gold); }

/* editorial split */
.split { display: grid; gap: var(--s5); align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1.1fr 1fr; gap: var(--s6); } .split.flip > :first-child { order: 2; } }
.split figure { margin: 0; }
.quote { font: italic 400 clamp(26px, 3.6vw, 40px)/1.3 var(--serif); margin: 0 0 var(--s4); max-width: 26ch; }

/* scene edit */
.scenes { display: grid; gap: var(--s3); grid-template-columns: 1fr; counter-reset: scene; }
@media (min-width: 860px) { .scenes { grid-template-columns: repeat(3, 1fr); } }
.scene { border-top: 1px solid #4A4341; padding-top: var(--s4); }
.scene::before { counter-increment: scene; content: "Scene " counter(scene, upper-roman); display: block; font: 600 11px/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--stage-gold); margin-bottom: var(--s3); }
.scene h3 { font-style: italic; }
.scene a { font: 600 12px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--stage-gold); text-decoration: none; }

/* journal */
.teasers { display: grid; gap: var(--s4); grid-template-columns: 1fr; }
@media (min-width: 860px) { .teasers { grid-template-columns: repeat(3, 1fr); } }
.teaser { border-top: 1px solid var(--border); padding-top: var(--s3); }
.teaser h3 a { text-decoration: none; }
.teaser p { color: var(--muted); font-size: 15px; }
.article { max-width: 720px; }
.article p { font-size: 18px; line-height: 1.75; }
.article h2 { font-size: 30px; margin-top: var(--s5); }

/* product detail */
.pdp { display: grid; gap: var(--s5); }
@media (min-width: 860px) { .pdp { grid-template-columns: 1.1fr 1fr; gap: var(--s6); } }
.pdp figure { margin: 0; background: var(--surface); border: 1px solid var(--border); }
.pdp figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; padding: var(--s5); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: var(--s2) var(--s4); margin: var(--s4) 0; font-size: 15px; }
.facts dt { font: 600 11px/1.9 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; }
.crumbs { font: 500 12px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding-top: var(--s4); }
.crumbs a { text-decoration: none; }

/* page head for inner pages */
.page-head { padding: var(--s6) 0 var(--s5); border-bottom: 1px solid var(--border); }
.edit-head { position: relative; overflow: hidden; padding: var(--s6) 0; background: var(--obsidian); display: grid; align-items: center; }
@media (min-width: 860px) { .edit-head { min-height: min(62.5vw, 800px); } .edit-head .wrap > :not(.mood) { max-width: 46%; } }
.edit-head h1 { font-size: clamp(52px, 7.4vw, 96px); line-height: 1; }
.edit-head .hero-art { opacity: 1; }
.prose { max-width: 720px; }
.prose h2 { font-size: 28px; margin-top: var(--s5); }
.prose li { margin-bottom: var(--s2); }

/* footer */
.site-foot { border-top: 1px solid var(--border); padding: var(--s6) 0 var(--s5); font-size: 14px; color: var(--muted); }
.site-foot .cols { display: grid; gap: var(--s4); grid-template-columns: 1fr; }
.site-foot .sign { display: flex; align-items: center; gap: var(--s3); }
.site-foot .sign img { height: 64px; width: auto; }
.site-foot .sign .seal { height: 56px; }
@media (min-width: 720px) { .site-foot .cols { grid-template-columns: 2fr 1fr 1fr; } }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: var(--s2); }
.site-foot a { text-decoration: none; }
.site-foot .fine { margin-top: var(--s5); font-size: 12px; }
.disclose { font-size: 13px; color: var(--muted); }

/* motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .site-head, .site-foot, .btn { display: none; } }
