/* OXUS traditions pages. Tokens follow ~/Oxus/brand/palette/oxus-tokens.css exactly. */
:root {
  --ivory: #F3EEE5; --paper: #FAF7F1; --ink: #161513; --graphite: #5A564E; --stone: #D9D2C5;
  --gold: #A8844E; --deep-gold: #7E6136; --lapis: #1E2C55; --emerald: #1F5B4A;
  --display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Jost", "Futura", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --gutter: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font: 300 17px/1.65 var(--sans); letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.label {
  font: 400 11px/1.4 var(--sans); text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--deep-gold); margin: 0;
}

/* Top bar */
.top { padding: 22px var(--gutter) 20px; display: flex; justify-content: center; border-bottom: 1px solid var(--stone); }
.top a { display: block; }
.top img { height: 54px; width: auto; }

/* Hero */
.hero { padding: 56px var(--gutter) 0; max-width: 1120px; margin: 0 auto; }
.hero h1 {
  font: 300 44px/1.08 var(--display); letter-spacing: -0.005em; margin: 18px 0 22px; max-width: 14ch;
}
.hero h1 em { font-style: italic; font-weight: 400; }
.hero .intro { color: var(--graphite); margin: 0; max-width: 34em; }
.rule { width: 48px; height: 1px; background: var(--gold); border: 0; margin: 28px 0 0; }

.hero-img { margin: 44px 0 0; }
.hero-img.bleed { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); }
.hero-img.bleed img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero-img.bleed.sq img { aspect-ratio: 1 / 1; }
.panel { background: var(--paper); padding: 28px; }
.panel img { margin: 0 auto; width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.panel.tall img { aspect-ratio: 4 / 5; }
.panel.wide img { aspect-ratio: 16 / 10; }
.panel.land img { aspect-ratio: 6 / 5; }
.panel.fill { padding: 0; }
.panel.fill img { object-fit: cover; }

/* Moments */
.moments { max-width: 1120px; margin: 0 auto; padding: 24px var(--gutter) 0; }
.moment { padding: 56px 0; border-bottom: 1px solid var(--stone); }
.moment:last-child { border-bottom: 0; }
.moment figure { margin: 0 0 30px; }
.moment .num { font: 400 italic 20px/1 var(--display); color: var(--deep-gold); margin: 0 0 12px; }
.moment h2 { font: 400 32px/1.15 var(--display); margin: 0 0 14px; }
.moment h2 em { font-style: italic; }
.moment p { margin: 0 0 12px; color: var(--graphite); max-width: 32em; }
.moment p:last-child { margin-bottom: 0; }

.four { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.four .panel { padding: 0; }
.four .panel img { aspect-ratio: 1 / 1; width: 100%; object-fit: cover; }

.steps-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.steps-imgs img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
figcaption { font: 400 italic 17px/1.5 var(--display); color: var(--graphite); margin-top: 14px; }

/* Lineage: the art beside the jewel */
.lineage { background: var(--paper); padding: 64px var(--gutter); margin-top: 24px; }
.lineage-inner { max-width: 1120px; margin: 0 auto; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 26px 0 22px; }
.pair img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--ivory); }
.lineage blockquote { margin: 0; font: 300 italic 26px/1.3 var(--display); max-width: 24em; }

/* Appointment */
.appt { background: var(--lapis); color: var(--ivory); padding: 72px var(--gutter) 80px; text-align: center; }
.appt img.mono { width: 56px; height: 56px; margin: 0 auto 28px; }
.appt h2 { font: 300 40px/1.1 var(--display); margin: 0 0 18px; }
.appt p { margin: 0 auto 10px; max-width: 26em; color: rgba(243, 238, 229, 0.82); }
.appt .open { font: 400 11px/1.6 var(--sans); text-transform: uppercase; letter-spacing: 0.18em; color: rgba(243, 238, 229, 0.7); margin-top: 22px; }
.btn {
  display: inline-block; margin-top: 30px; padding: 16px 30px; min-height: 48px;
  border: 1px solid var(--ivory); color: var(--ivory); text-decoration: none;
  font: 400 12px/1.3 var(--sans); text-transform: uppercase; letter-spacing: 0.18em;
  transition: background 600ms var(--ease), color 600ms var(--ease);
}
.btn:hover, .btn:focus-visible { background: var(--ivory); color: var(--lapis); outline: none; }

/* Footer */
.foot { padding: 56px var(--gutter) 48px; max-width: 1120px; margin: 0 auto; }
.foot ul { list-style: none; padding: 0; margin: 18px 0 40px; }
.foot li { border-bottom: 1px solid var(--stone); }
.foot li a { display: block; padding: 14px 0; text-decoration: none; font: 400 22px/1.3 var(--display); }
.foot li a[aria-current] { color: var(--deep-gold); font-style: italic; }
.foot .sign { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; color: var(--graphite); font-size: 14px; }
.foot .sign img { height: 48px; width: auto; }

/* Slow reveal, only when scripting is on and motion is welcome */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 1.4s var(--ease), transform 1.4s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* Larger screens */
@media (min-width: 900px) {
  :root { --gutter: 48px; }
  body { font-size: 18px; }
  .top img { height: 60px; }
  .hero { padding-top: 96px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; }
  .hero h1 { font-size: 72px; }
  .hero-img { margin-top: 0; }
  .hero-img.bleed { margin: 0; }
  .moments { padding-top: 48px; }
  .moment { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; padding: 88px 0; }
  .moment figure { margin: 0; }
  .moment:nth-child(even) figure { order: 2; }
  .moment h2 { font-size: 42px; }
  .moment.text-only { display: block; max-width: 40em; }
  .lineage { padding: 112px var(--gutter); }
  .lineage-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: center; }
  .pair { margin: 0; }
  .lineage blockquote { font-size: 34px; }
  .appt { padding: 120px var(--gutter); }
  .appt h2 { font-size: 56px; }
  .foot ul { display: grid; grid-template-columns: 1fr 1fr 1fr; column-gap: 32px; }
}

/* White studio renders melt into the Paper panel instead of sitting in a white box */
.panel img { mix-blend-mode: multiply; }
