/* Ritus Per Diem, preview build. Same palette, type, and mood as the current site; mobile first. */
@font-face { font-family: "Cormorant Garamond"; src: url("/assets/fonts/cormorant-garamond.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/assets/fonts/cormorant-garamond-italic.woff2") format("woff2"); font-weight: 400 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/assets/fonts/jost.woff2") format("woff2"); font-weight: 300 500; font-style: normal; font-display: swap; }

:root {
  --black: #0c0b09;
  --black-deep: #080706;
  --ivory: #f3eee4;
  --ivory-dim: #b9b1a4;
  --stone: #8a8174;
  --gold: #b89c62;
  --gold-line: rgba(184, 156, 98, 0.38);
  --gold-faint: rgba(184, 156, 98, 0.18);
  --serif: "Cormorant Garamond", "Times New Roman", Times, serif;
  --sans: "Jost", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(1.25rem, 5vw, 3rem);
  --chrome-h: 3.6rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--black-deep); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1rem + 0.35vw, 1.22rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  text-align: center;
  background-color: var(--black);
  background-image:
    radial-gradient(1200px 700px at 50% 8%, rgba(184, 156, 98, 0.06), transparent 58%),
    linear-gradient(180deg, #100e0b 0%, #0c0b09 28%, #0a0908 100%);
  background-attachment: fixed;
}
body::before { /* warm grain, depth not wallpaper */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 80; opacity: 0.08;
  background-image: url("/assets/grain.webp"); background-size: 128px 128px; mix-blend-mode: overlay;
}
body::after { /* vignette */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 81;
  background: radial-gradient(ellipse at 50% 40%, transparent 45%, rgba(0, 0, 0, 0.34) 100%);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .25s var(--ease); }
a:hover, a:focus-visible { color: var(--ivory); }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }

.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--ivory); color: var(--black); padding: .5rem 1rem; font-family: var(--sans); font-size: .85rem; }
.skip-link:focus { top: 1rem; color: var(--black); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Preview banner (removed in the live build) */
.preview-bar { position: relative; z-index: 70; background: #2a1f0a; color: #f1d9a0; font-family: var(--sans); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; padding: .45rem var(--pad); }

/* Top bar */
.chrome { position: sticky; top: 0; z-index: 60; min-height: var(--chrome-h); display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 0 var(--pad); background: rgba(8, 7, 6, .94); border-bottom: 1px solid var(--gold-faint); }
.chrome__mark { display: block; flex: 0 0 auto; padding: .3rem 0; }
.chrome__mark img { height: 2.35rem; width: auto; }
.chrome__nav { display: flex; align-items: center; gap: clamp(.9rem, 3.2vw, 2rem); }
.chrome__nav a { font-family: var(--sans); font-weight: 300; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ivory-dim); padding: .95rem 0; }
.chrome__nav a:hover, .chrome__nav a:focus-visible, .chrome__nav a[aria-current="page"] { color: var(--ivory); }
.chrome__nav a.chrome__join { color: var(--gold); border: 1px solid var(--gold); padding: .8rem .8rem; letter-spacing: .18em; }
.chrome__nav a.chrome__join:hover, .chrome__nav a.chrome__join:focus-visible { color: var(--black); background: var(--gold); }

/* Shared type */
.eyebrow { display: block; font-family: var(--sans); font-weight: 300; font-size: .66rem; letter-spacing: .4em; text-transform: uppercase; color: var(--gold); padding-left: .4em; margin: 0 auto 1.4rem; }
.h-page { font-weight: 400; font-size: clamp(2.1rem, 7vw, 3.4rem); line-height: 1.12; letter-spacing: .02em; }
.h-section { font-weight: 400; font-size: clamp(1.7rem, 4.5vw, 2.3rem); line-height: 1.2; letter-spacing: .03em; }
.lede { color: var(--ivory-dim); font-size: clamp(1.12rem, 1rem + .5vw, 1.32rem); line-height: 1.6; max-width: 34rem; margin: 0 auto; }
.rule { width: 3rem; height: 1px; border: 0; background: var(--gold-line); margin: 1.6rem auto; }
.prose { max-width: 34rem; margin: 0 auto; text-align: left; }
.prose p + p { margin-top: 1.1rem; }
.prose--center { text-align: center; }
.house-line { font-style: italic; line-height: 1.5; font-size: clamp(1.25rem, 3.6vw, 1.6rem); color: var(--ivory-dim); }
.house-line span { display: block; }
.house-line span:last-child { color: var(--ivory); margin-top: .5rem; }
.band { padding: clamp(3rem, 9vw, 5.5rem) var(--pad); }
.band--ruled { border-top: 1px solid var(--gold-faint); }

/* Signup */
.signup { max-width: 30rem; margin: 1.6rem auto 0; }
.signup__note { font-family: var(--sans); font-weight: 300; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ivory-dim); margin-bottom: .9rem; line-height: 1.7; }
.signup__row { display: flex; flex-direction: column; gap: .7rem; }
.signup input[type="email"] { width: 100%; min-height: 3.1rem; background: rgba(243, 238, 228, .04); border: 1px solid var(--gold-line); border-radius: 0; color: var(--ivory); font-family: var(--serif); font-size: 1.15rem; padding: .5rem .9rem; text-align: center; }
.signup input[type="email"]::placeholder { color: var(--stone); opacity: 1; }
.signup input[type="email"]:focus { outline: 0; border-color: var(--gold); background: rgba(243, 238, 228, .07); }
.btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; min-height: 3.1rem; padding: .6rem 1.6rem; background: var(--gold); border: 1px solid var(--gold); border-radius: 0; color: var(--black); font-family: var(--sans); font-weight: 400; font-size: .74rem; letter-spacing: .26em; text-transform: uppercase; cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease); }
.btn:hover, .btn:focus-visible { background: var(--ivory); border-color: var(--ivory); color: var(--black); }
.btn:disabled { opacity: .55; cursor: default; }
.btn--ghost { background: transparent; color: var(--gold); }
.form-status { min-height: 1.5rem; margin-top: .7rem; font-family: var(--sans); font-size: .82rem; letter-spacing: .04em; color: var(--ivory-dim); }
.form-status.is-ok { color: #cdbb8a; }
.form-status.is-err { color: #e0a08a; }
.signup__fine { font-family: var(--sans); font-weight: 300; font-size: .74rem; letter-spacing: .04em; color: var(--stone); }
.signup__fine a { color: var(--ivory-dim); border-bottom: 1px solid var(--gold-faint); }
.noscript { font-family: var(--sans); font-size: .85rem; color: var(--ivory-dim); }

/* Home hero */
.hero { display: flex; flex-direction: column; }
.hero__stills { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; height: min(34svh, 20rem); overflow: hidden; }
/* no fade over the strip: the feet must stay fully visible and level */
.hero__still { height: 100%; }
.hero__still img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }

.hero__copy { padding: 0 var(--pad) 2.5rem; margin-top: 0; padding-top: 1rem; position: relative; z-index: 2; }
.hero__copy h1 { font-weight: 400; font-size: clamp(2.05rem, 8.4vw, 3.5rem); line-height: 1.1; letter-spacing: .015em; margin: 0 auto 1rem; max-width: 20ch; }
.hero__copy .lede { max-width: 30rem; }

/* What you get */
.ledger { max-width: 36rem; margin: 2rem auto 0; padding: 0; list-style: none; text-align: left; border-top: 1px solid var(--gold-faint); }
.ledger li { display: grid; grid-template-columns: 2.4rem 1fr; gap: .6rem; padding: 1rem 0; border-bottom: 1px solid var(--gold-faint); line-height: 1.5; }
.ledger b { font-family: var(--sans); font-weight: 300; font-size: .7rem; letter-spacing: .2em; color: var(--gold); padding-top: .42rem; }

/* Cards */
.cards { display: grid; gap: 1.4rem; max-width: 62rem; margin: 2rem auto 0; }
.card { display: block; color: var(--ivory); border: 1px solid var(--gold-faint); background: rgba(243, 238, 228, .02); text-align: center; }
.card:hover, .card:focus-visible { border-color: var(--gold-line); color: var(--ivory); }
.card__media { aspect-ratio: 16 / 10; overflow: hidden; display: grid; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media--strip { grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--black); }
.card__media--strip img { object-position: 50% 50%; }
.card__body { padding: 1.3rem 1.2rem 1.6rem; }
.card__kicker { font-family: var(--sans); font-weight: 300; font-size: .64rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); margin-bottom: .4rem; }
.card__title { font-size: 1.55rem; font-weight: 400; line-height: 1.2; }
.card__text { color: var(--ivory-dim); margin-top: .5rem; font-size: 1.05rem; line-height: 1.5; }
.card__go { display: inline-block; margin-top: .9rem; font-family: var(--sans); font-weight: 300; font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); border-bottom: 1px solid var(--gold-line); padding-bottom: .2rem; }

/* Entry pages (couture, RPD) */
.entry-hero { padding-top: 0; }
.entry-hero__stills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; height: min(54svh, 34rem); overflow: hidden; }
.entry-hero__stills img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.entry-hero__type { padding: 2.2rem var(--pad) 2rem; }
.entry-title { font-weight: 400; font-size: clamp(2.3rem, 8vw, 3.6rem); letter-spacing: .06em; line-height: 1.1; }
.entry-line { font-style: italic; color: var(--ivory-dim); font-size: clamp(1.15rem, 3.2vw, 1.4rem); margin-top: .5rem; }
.tabs { display: flex; justify-content: center; gap: 1.1rem; padding: 1.1rem var(--pad); border-top: 1px solid var(--gold-faint); border-bottom: 1px solid var(--gold-faint); flex-wrap: wrap; }
.tabs a { font-family: var(--sans); font-weight: 300; font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: var(--ivory-dim); padding: .85rem .3rem; }
.tabs a:hover, .tabs a:focus-visible { color: var(--gold); }
.section-head { padding: clamp(2.5rem, 7vw, 4rem) var(--pad) 1.6rem; }
.section-head p { color: var(--ivory-dim); margin-top: .4rem; font-style: italic; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; max-width: 78rem; margin: 0 auto; padding: 0 2px; }
.tile { position: relative; background: #14120e; cursor: zoom-in; border: 0; padding: 0; color: inherit; font: inherit; text-align: center; display: block; }
.tile img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; object-position: 50% 12%; }
.tile__cap { display: block; position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem .6rem .6rem; background: linear-gradient(180deg, rgba(8,7,6,0), rgba(8,7,6,.82)); font-family: var(--sans); font-weight: 300; font-size: .56rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ivory); }
.tile:focus-visible { outline-offset: -3px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 120; display: none; align-items: center; justify-content: center; flex-direction: column; background: rgba(6, 5, 4, .96); padding: 3.5rem 1rem 1.5rem; }
.lightbox.is-open { display: flex; }
.lightbox img { max-height: calc(100svh - 8rem); max-width: 100%; width: auto; object-fit: contain; }
.lightbox__cap { margin-top: .8rem; font-family: var(--sans); font-weight: 300; font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ivory-dim); min-height: 1rem; }
.lightbox button { position: absolute; background: none; border: 0; color: var(--ivory); font-size: 2.2rem; line-height: 1; width: 3rem; height: 3rem; cursor: pointer; font-family: var(--serif); }
.lightbox button:hover, .lightbox button:focus-visible { color: var(--gold); }
.lightbox__close { top: .6rem; right: .6rem; }
.lightbox__prev { left: .2rem; top: 50%; }
.lightbox__next { right: .2rem; top: 50%; }
body.lightbox-open { overflow: hidden; }

/* Join / thanks */
.join-wrap { max-width: 40rem; margin: 0 auto; padding: clamp(2.2rem, 7vw, 4rem) var(--pad) 3rem; }
.join-wrap img.lockup { margin: 0 auto 1.6rem; width: 90px; height: auto; }
.steps { max-width: 30rem; margin: 2rem auto 0; padding: 0; list-style: none; text-align: left; border-top: 1px solid var(--gold-faint); }
.steps li { padding: 1rem 0; border-bottom: 1px solid var(--gold-faint); }
.steps strong { font-weight: 500; color: var(--ivory); }

/* Closing signup strip */
.strip { border-top: 1px solid var(--gold-faint); padding: clamp(2.6rem, 8vw, 4rem) var(--pad); background: rgba(8, 7, 6, .5); }
.strip .h-section { margin-bottom: .6rem; }
.strip .lede { font-size: 1.12rem; }

/* Footer */
.foot { border-top: 1px solid var(--gold-faint); padding: 2.2rem var(--pad) 2.6rem; font-family: var(--sans); font-weight: 300; }
.foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.4rem; margin-bottom: 1.1rem; }
.foot__links a { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ivory-dim); padding: .55rem 0; }
.foot__links a:hover, .foot__links a:focus-visible { color: var(--gold); }
.foot__links--contact { flex-wrap: nowrap; gap: .3rem 1.1rem; margin-bottom: .2rem; }
.foot__links--contact a { font-size: .8rem; letter-spacing: .05em; text-transform: none; color: var(--ivory-dim); white-space: nowrap; }
.foot__legal { font-size: .7rem; letter-spacing: .1em; color: var(--stone); }
.gallery-note { font-family: var(--sans); font-weight: 300; font-size: .74rem; letter-spacing: .06em; font-style: normal; color: var(--stone); margin-top: .8rem; }
.foot__est { font-size: .6rem; letter-spacing: .4em; color: var(--stone); margin-top: .5rem; }

/* Legal pages */
.legal { max-width: 40rem; margin: 0 auto; padding: clamp(2.2rem, 7vw, 4rem) var(--pad) 3rem; text-align: left; }
.legal h1 { text-align: center; margin-bottom: .3rem; }
.legal .updated { text-align: center; font-family: var(--sans); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--stone); margin-bottom: 2rem; }
.legal h2 { font-size: 1.35rem; font-weight: 500; margin: 1.8rem 0 .4rem; color: var(--ivory); }
.legal p, .legal li { color: var(--ivory-dim); }
.legal ul { padding-left: 1.2rem; margin: .5rem 0; }
.legal li + li { margin-top: .4rem; }

/* Wider screens */
@media (min-width: 560px) {
  .signup__row { flex-direction: row; }
  .signup__row input[type="email"] { text-align: left; flex: 1 1 auto; }
  .signup__row .btn { flex: 0 0 auto; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .tile__cap { font-size: .62rem; }
}
@media (min-width: 900px) {
  :root { --chrome-h: 4.2rem; }
  .chrome__mark img { height: 2.7rem; }
  .chrome__nav a { font-size: .7rem; }
  .hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; min-height: calc(100svh - var(--chrome-h)); max-width: 80rem; margin: 0 auto; gap: 1rem; padding: 1.5rem var(--pad); }
  .hero__stills { order: 2; height: min(54svh, 34rem); gap: 6px; align-items: stretch; }
  .hero__stills::after { display: none; }
  .hero__copy { order: 1; margin-top: 0; padding: 1rem 1rem 1rem 0; }
  .hero__copy h1 { font-size: clamp(2.8rem, 4.2vw, 4rem); }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 0 3px; }
  .entry-hero__stills { height: min(66svh, 40rem); }
  .ledger { margin-top: 2.2rem; }
}
@media (min-width: 1200px) { .grid--couture { grid-template-columns: repeat(4, 1fr); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
.gallery-note--page { text-align: center; padding: 1.4rem var(--pad) 0; margin: 0; }
.section-head .gallery-note { color: var(--stone); font-style: normal; margin-top: .8rem; }

/* Typography rule: a text block is one line, or wraps to balanced lines. Never a single word alone on the last line. */
h1, h2, h3, .eyebrow, .lede, .entry-line, .house-line span, .section-head p, .card__kicker, .card__title, .card__text, .card__go,
.btn, .signup__note, .signup__fine, .form-status, .gallery-note, .foot p, .tile__cap, .updated, .noscript { text-wrap: balance; }
p, li, .join-privacy { text-wrap: pretty; }
.ledger span, .steps li, .legal li, .legal p, .prose p, .join-privacy { text-wrap: pretty; }
.join-sub { margin-top: 2.6rem; }
.join-privacy { max-width: 30rem; margin: 1rem auto 0; color: var(--ivory-dim); }
.join-privacy a { border-bottom: 1px solid var(--gold-faint); }

/* Home cards: RPD is the featured line, couture is smaller and comes later */
.card--feature .card__media { aspect-ratio: 4 / 3; }
.card--feature .card__media img { object-position: 50% 50%; }
.card--feature .card__title { font-size: 2.2rem; }
.card--feature .card__text { font-size: 1.15rem; max-width: 34rem; margin-left: auto; margin-right: auto; }
.card--feature .card__body { padding: 1.6rem 1.2rem 2rem; }
.card--small { width: 100%; max-width: 34rem; margin: 0 auto; }
.card--small .card__media { aspect-ratio: 16 / 9; }
.card--small .card__media img { object-position: 50% 20%; }
.card--small .card__title { font-size: 1.3rem; }
.card--small .card__text { font-size: 1rem; }
.card--small .card__body { padding: 1.1rem 1.1rem 1.3rem; }
.entry-later { font-family: var(--sans); font-weight: 300; font-size: .74rem; letter-spacing: .1em; color: var(--stone); margin-top: 1rem; }
.entry-later a { color: var(--ivory-dim); border-bottom: 1px solid var(--gold-faint); }
/* Gallery columns chosen so the last row is never short */
.grid--rpd { grid-template-columns: repeat(2, 1fr); }
.grid--rpd .tile img { object-position: 50% 50%; }   /* RPD stills are pre-cropped to identical 2:3 framing (make_crops.py) */
/* RPD page top strip: never wider than 2:3 per column, so the models are shown whole (feet and head never cut) */
.entry-hero__stills--fit { --h: min(34svh, 20rem); height: var(--h); width: 100%; max-width: calc(var(--h) * 2 + 8px); margin: 0 auto; gap: 2px; }
.entry-hero__stills--fit img { object-position: 50% 50%; }
@media (min-width: 900px) { .entry-hero__stills--fit { --h: min(58svh, 36rem); gap: 4px; max-width: calc(var(--h) * 2 + 12px); } }
@media (min-width: 700px) { .grid--rpd { grid-template-columns: repeat(4, 1fr); } }
.grid--couture .tile:last-child:nth-child(odd) { grid-column: span 2; }
.grid--couture .tile:last-child:nth-child(odd) img { aspect-ratio: 3 / 2; }
@media (min-width: 560px) { .grid--couture .tile:last-child:nth-child(odd) { grid-column: auto; } .grid--couture .tile:last-child:nth-child(odd) img { aspect-ratio: 2 / 3; } }
@media (min-width: 1200px) { .grid--couture { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 900px) { .card--feature .card__media { aspect-ratio: 2 / 1; } }

/* AI note: visible, normal-size, above the first images (home, RPD, couture) */
.ai-note { padding: .8rem var(--pad) .7rem; border-bottom: 1px solid var(--gold-faint); }
.ai-note p { max-width: 36rem; margin: 0 auto; color: var(--ivory-dim); font-size: 1.05rem; line-height: 1.5; text-wrap: balance; }
.ai-note--end { border-bottom: 0; border-top: 1px solid var(--gold-faint); padding: 1.6rem var(--pad) 1.8rem; }
.ai-note a { color: var(--gold); border-bottom: 1px solid var(--gold-line); }
.ai-note a:hover, .ai-note a:focus-visible { color: var(--ivory); }

/* Blog */
.blog-list { list-style: none; margin: 2rem auto 0; padding: 0; max-width: 38rem; text-align: left; border-top: 1px solid var(--gold-faint); }
.blog-item { border-bottom: 1px solid var(--gold-faint); }
.blog-item a { display: block; padding: 1.3rem 0; color: var(--ivory); }
.blog-item a:hover, .blog-item a:focus-visible { color: var(--gold); }
.blog-item time, .post__meta { display: block; font-family: var(--sans); font-weight: 300; font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.blog-item__title { display: block; font-size: 1.5rem; line-height: 1.25; margin-top: .35rem; }
.blog-item__desc { display: block; color: var(--ivory-dim); margin-top: .35rem; font-size: 1.05rem; line-height: 1.5; }
.blog-empty { margin-top: 1.6rem; }
.blog-empty .lede + .lede { margin-top: 1rem; }
.post .h-page { max-width: 22ch; margin: 0 auto; text-wrap: balance; }
.post .eyebrow a { color: var(--gold); }
.post__meta { margin-top: 1rem; }
.post__figure { max-width: 44rem; margin: 0 auto 2rem; border: 1px solid var(--gold-faint); }
.post .prose h2, .post__h { font-weight: 400; font-size: 1.5rem; line-height: 1.25; margin: 1.8rem 0 .6rem; }
.post .prose ul { margin: 1rem 0 0; padding-left: 1.2rem; }
.post .prose li + li { margin-top: .4rem; }
.post .prose a { border-bottom: 1px solid var(--gold-line); }
