:root {
  --paper: #f4f0e8;
  --paper-deep: #e9e3d7;
  --ink: #16140f;
  --muted: #6b655a;
  --line: #16140f2e;
  --ivory: #f7f3ea;
  --gutter: clamp(16px, 4vw, 56px);
  --display: "Bodoni Moda", "Didot", "Times New Roman", serif;
  --serif: "Cormorant", "Georgia", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, figure { margin: 0; padding: 0; }
ol { list-style: none; }
img { display: block; max-width: 100%; }
.wrap { padding-inline: var(--gutter); max-width: 1500px; margin-inline: auto; }

/* Top bar */
.bar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 56px;
  padding-inline: var(--gutter);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.bar-logo { display: flex; align-items: center; gap: 10px; font: 500 22px/1 var(--display); letter-spacing: .12em; }
.bar-logo img { width: 34px; height: 34px; }
.bar-links { display: flex; gap: clamp(16px, 3vw, 40px); }
.bar-links a, .lang button {
  font: 500 12px/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.bar-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.lang { display: flex; gap: 2px; }
.lang button {
  min-width: 36px;
  min-height: 36px;
  padding: 0 6px;
  color: var(--muted);
  background: none;
  border: 0;
  cursor: pointer;
}
.lang button[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }

/* Photo slots: the tone and label show until the real image loads */
.slot {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #cfc6b5, #a89d89);
}
.slot::after {
  content: "PHOTO · " attr(data-slot);
  position: absolute;
  left: 12px;
  bottom: 10px;
  font: 500 11px/1 var(--sans);
  letter-spacing: .14em;
  color: #16140f99;
}
.slot.has-photo::after { display: none; }
.slot img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.js .slot img { opacity: 0; transition: opacity .8s ease; }
.js .slot.has-photo img { opacity: 1; }
.tall { aspect-ratio: 2 / 3; }
.wide { aspect-ratio: 3 / 2; }
.square { aspect-ratio: 1; }

/* Cover */
.cover {
  position: relative;
  min-height: calc(100svh - 56px);
  display: flex;
  color: var(--ivory);
  background: #050505;
}
.cover-photo { position: absolute; inset: 0; background: #050505; }
.cover-photo img { object-position: 70% 20%; }
.cover-photo::after { left: auto; right: var(--gutter); bottom: 12px; color: #f7f3ea80; z-index: 2; }
.cover-photo.has-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, #16140f73 0%, #16140f00 38%, #16140f00 55%, #16140fa6 100%);
}
.cover-type {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px var(--gutter) 36px;
  overflow: hidden;
}
.cover-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
  font: 500 12px/1.4 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.masthead {
  font: 400 min(13vw, 34svh)/.95 var(--display);
  letter-spacing: .005em;
  white-space: nowrap;
  margin-top: 6px;
}
.cover-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.cover-head { max-width: 7.2em; font: 400 clamp(38px, 5.4vw, 84px)/1.02 var(--serif); }
.cover-head em { font-style: italic; }
.cover-sub { max-width: 36ch; font-size: 16px; }

/* Contents */
.contents { padding-block: clamp(40px, 6vw, 80px) 0; }
.label {
  font: 500 12px/1.4 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.contents-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 18px;
  border-top: 1px solid var(--ink);
}
.contents-list li + li { border-left: 1px solid var(--line); }
.contents-list a { display: block; padding: 16px 16px 20px; transition: background .25s; }
.contents-list li:first-child a { padding-left: 0; }
.contents-list a:hover { background: var(--paper-deep); }
.contents-list span { display: block; font-size: 13px; color: var(--muted); }
.contents-list strong { font: 400 clamp(26px, 3vw, 44px)/1.15 var(--serif); }

/* Manifesto */
.manifesto {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  padding-block: clamp(72px, 12vw, 180px);
}
.manifesto-quote {
  grid-column: 1 / span 9;
  font: italic 400 clamp(38px, 6.2vw, 96px)/1.04 var(--serif);
}
.manifesto-body { grid-column: 8 / span 4; font-size: 18px; }

/* Spreads */
.spread {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: end;
  padding-block-end: clamp(72px, 10vw, 150px);
}
.folio { font: 400 15px/1 var(--display); color: var(--muted); }
.section-title { font: 400 clamp(56px, 10.5vw, 168px)/.95 var(--display); margin-top: 10px; }
.feature { font: italic 400 clamp(28px, 3.4vw, 52px)/1.08 var(--serif); margin-top: 22px; }
.body { max-width: 42ch; margin-top: 16px; }

.spread-men .tall { grid-column: 1 / span 6; grid-row: 1 / span 2; }
.spread-men .spread-text { grid-column: 7 / -1; align-self: start; padding-top: 12px; }
.spread-men .wide { grid-column: 8 / -1; }

.spread-women { padding-top: clamp(72px, 10vw, 150px); }
.spread-women .spread-text { grid-column: 1 / span 6; align-self: center; }
.spread-women .tall { grid-column: 8 / -1; }

/* 3D studio */
.studio { display: grid; grid-template-columns: 7fr 5fr; align-items: center; background: #14130f; color: var(--ivory); }
.studio-stage { position: relative; height: min(92vh, 880px); min-width: 0; overflow: hidden; cursor: grab; background: radial-gradient(ellipse at 50% 42%, #3a362d 0%, #14130f 68%); }
.studio-stage:active { cursor: grabbing; }
.studio-stage canvas { display: block; position: absolute; inset: 0; }
.studio-status { position: absolute; inset: auto 0 50%; text-align: center; font-size: 14px; color: #f7f3eab3; }
.studio-panel { padding: clamp(32px, 5vw, 72px) var(--gutter); }
.studio-panel .label { color: #f7f3ea99; }
.studio-title { font: 400 clamp(38px, 4.6vw, 72px)/1.04 var(--serif); margin-top: 14px; }
.forms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.forms button { min-height: 44px; padding: 0 18px; color: inherit; background: none; border: 1px solid #f7f3ea40; cursor: pointer; font: 500 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; transition: background .2s, color .2s; }
.forms button:hover { border-color: var(--ivory); }
.forms button[aria-pressed="true"] { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.shirts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 10px; margin-top: 22px; max-width: 380px; }
.shirts button { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 4px; color: inherit; background: none; border: 0; cursor: pointer; font: 400 13px/1.2 var(--sans); }
.shirts i { display: block; width: 56px; height: 56px; border-radius: 50%; background-size: 56px; border: 1px solid #f7f3ea40; outline: 1px solid transparent; outline-offset: 3px; transition: outline-color .2s; }
.shirts button:hover i { outline-color: #f7f3ea80; }
.shirts button[aria-pressed="true"] i { outline: 2px solid var(--ivory); }
.shirts button[aria-pressed="true"] span { text-decoration: underline; text-underline-offset: 4px; }
.studio-note { margin-top: 24px; font-size: 13px; color: #f7f3ea99; }

/* Details */
.details { background: var(--paper-deep); padding-block: clamp(56px, 8vw, 110px); }
.details-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 40px); margin-top: 24px; }
.details h3 { font: 400 clamp(28px, 3vw, 42px)/1.1 var(--serif); margin-top: 16px; }
.details article p { color: var(--muted); margin-top: 4px; max-width: 30ch; }

/* Colophon */
.colophon { display: grid; grid-template-columns: 7fr 5fr; background: var(--ink); color: var(--ivory); }
.colophon-photo { min-height: min(80vh, 760px); background: linear-gradient(160deg, #4a4338, #1e1b16); }
.colophon-photo::after { color: #f7f3ea80; }
.colophon-text { align-self: center; padding: clamp(40px, 6vw, 88px) var(--gutter); }
.colophon .folio { color: #f7f3ea99; }
.colophon-title { font: 400 clamp(42px, 5.4vw, 84px)/1.02 var(--serif); margin-top: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--ivory);
  font: 500 13px/1 var(--sans);
  letter-spacing: .1em;
  transition: background .25s, color .25s;
}
.btn:hover, .btn-solid { background: var(--ivory); color: var(--ink); }
.btn-solid:hover { background: transparent; color: var(--ivory); }

/* Footer */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 24px;
  font-size: 13px;
  color: var(--muted);
}
.foot-logo { display: inline-flex; align-items: center; gap: 8px; font: 500 18px/1 var(--display); letter-spacing: .12em; color: var(--ink); }
.foot-logo img { width: 26px; height: 26px; }

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform .9s ease; }
.js .reveal.in { opacity: 1; transform: none; }

a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

@media (max-width: 760px) {
  .bar-links { display: none; }
  .masthead { font-size: 15.5vw; text-align: center; }
  .cover-photo { top: calc(31.5vw + 44px); }
  .cover-photo img { object-position: 68% top; }
  .cover-photo.has-photo::before { background: linear-gradient(180deg, #05050500 45%, #050505e6 88%); }
  .contents-list { grid-template-columns: repeat(2, 1fr); }
  .contents-list li:nth-child(3) { border-left: 0; }
  .contents-list li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .contents-list li:nth-child(3) a { padding-left: 0; }
  .manifesto-quote, .manifesto-body { grid-column: 1 / -1; }
  .spread .tall, .spread .wide, .spread .spread-text { grid-column: 1 / -1; grid-row: auto; }
  .spread-women .spread-text { order: -1; }
  .details-grid { grid-template-columns: 1fr; }
  .colophon { grid-template-columns: 1fr; }
  .studio { grid-template-columns: 1fr; }
  .studio-stage { height: 110vw; max-height: 72vh; }
  .colophon-photo { min-height: 0; aspect-ratio: 4 / 3; }
}

/* Pages: on big screens each section fills one screen and the next slides up over it (main.js adds .paged) */
.paged { --page: calc(100vh - 56px); scroll-behavior: auto; }
.paged main > * {
  position: sticky;
  top: 56px;
  height: var(--page);
  overflow: hidden;
  background: var(--paper);
}
.paged main > .wrap { max-width: none; padding-inline: max(var(--gutter), calc((100vw - 1500px) / 2 + var(--gutter))); }
.paged .cover { min-height: 0; background: #050505; }
.paged .section-title { font-size: min(10.5vw, 16vh); }

.paged .intro { display: flex; flex-direction: column; }
.paged .intro > .wrap { width: 100%; }
.paged .manifesto { flex: 1; align-content: center; padding-block: 24px; }

.paged .spread { padding-block: clamp(24px, 5vh, 56px); align-items: stretch; }
.paged .spread .tall, .paged .spread .wide { aspect-ratio: auto; height: 100%; min-height: 0; }
.paged .spread-men { grid-template-rows: auto 1fr; }
.paged .spread-women .spread-text { align-self: center; }

.paged .studio { background: #14130f; }
.paged .studio-stage { height: 100%; }
.paged .studio-panel { padding-block: clamp(16px, 4vh, 48px); }
.paged .studio-title { font-size: min(4.6vw, 7vh); }

.paged .details { display: flex; flex-direction: column; justify-content: center; padding-block: clamp(24px, 5vh, 56px); background: var(--paper-deep); }
.paged .details .wrap { width: 100%; }
.paged .details .square { aspect-ratio: auto; height: calc(var(--page) - 280px); }

.paged .colophon { background: var(--ink); }
.paged .colophon-photo { min-height: 0; }

.pager { display: none; }
.paged .pager {
  position: fixed;
  right: max(14px, calc(var(--gutter) / 2 - 7px));
  top: 50%;
  z-index: 9;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-50%);
  mix-blend-mode: difference;
}
.pager button { width: 22px; height: 22px; padding: 0; background: none; border: 0; cursor: pointer; display: grid; place-items: center; }
.pager button::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: .45; transition: opacity .3s, transform .3s; }
.pager button:hover::before { opacity: .8; }
.pager button[aria-current="true"]::before { opacity: 1; transform: scale(1.5); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .slot img { transition: none; transform: none; }
}
