/* ===========================================================================
   CAYLA MORRIS PHOTOGRAPHY — the design system.

   Extracted 2026-09-18 from Direction F (".r2 .dir-f") in
   docs/CMP-homepage-directions.html — the direction Cayla chose on 2026-09-13.
   The mockup scoped every rule to .r2 so directions A-E would keep rendering
   as she first saw them. Nothing scopes them here; this file IS the site.

   CARRIED ACROSS FROM THE 2026-09-18 WCAG AUDIT — ALL FOUR CORRECTIONS:
     --sand            #886C40   (was #A8854F, 3.17:1 on the mini-session dates)
     --chip-line       #9A8B74   (was --line at 1.31:1 on the town chips)
     footer chip       33% white (was 28%, 2.53:1)
     .pull cite        #6C6962   (was --ink-soft at 4.39:1)
   --line-soft IS DROPPED. It measured 1.15:1 and was near-invisible; every
   place that used it now uses --line.

   TWO HERO RULES THAT MUST SURVIVE ANY EDIT:
     1. The desktop scrim is a PLATEAU over the text then a fast falloff
        (.72 -> .62 at 46% -> .18 at 74% -> .04). Do not flatten it into a
        uniform darker wash: darkening dulls the photograph, and the reshape
        shows MORE of it.
     2. Hero text is capped at min(46%, 620px) so it cannot drift out of the
        plateau. On mobile the scrim is bottom-weighted instead, because a
        left-to-right fade is wrong on a narrow screen.

   LIGHT ONLY. No dark-theme variant, ever. The page declares its own
   color-scheme and paints its own background whatever the viewer's OS says.

   Solve any NEW colour to a MARGIN, never to the threshold — 8-bit rounding
   put two values under on the first attempt, and only reading them back off
   disk caught it.
   =========================================================================== */

:root{
  color-scheme:light;

  /* surfaces */
  --ground:#F7F6F3; --raise:#FFFFFF; --wash:#F0EEE9;
  --line:#DDD8D0;
  --chip-line:#9A8B74;          /* WCAG 1.4.11 — town chips, 3:1 non-text */

  /* ink */
  --ink:#33322E; --ink-strong:#1C1B18; --ink-soft:#6E6B64;

  /* accents */
  --accent:#41675B; --accent-wash:#E4EBE7;
  --sand:#886C40;               /* WCAG 1.4.3 — dates and numerals, 4.5:1 */

  --shadow:0 1px 2px rgba(40,38,34,.05), 0 18px 40px -26px rgba(40,38,34,.4);

  --display:"Marcellus",Georgia,"Times New Roman",serif;
  --body:"Jost",system-ui,-apple-system,"Segoe UI",sans-serif;
  --serif2:"Cormorant Garamond",Georgia,serif;

  --pad:clamp(18px,4vw,56px);
  --gut:clamp(16px,3vw,44px);
}

/* ===== base ===== */
*{box-sizing:border-box}
body{margin:0;background:var(--ground);color:var(--ink);font-family:var(--body);font-weight:400;font-size:15.5px;line-height:1.55;-webkit-font-smoothing:antialiased}
h1,h2,h3{font-family:var(--display);font-weight:400;color:var(--ink-strong);text-wrap:balance;margin:0;line-height:1.14}
p{margin:0}
a{color:inherit}
figure{margin:0}
img{max-width:100%;height:auto}
.lbl{font-size:10.5px;font-weight:500;letter-spacing:.2em;text-transform:uppercase;color:var(--accent)}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* photographs: a block that crops to its own aspect-ratio */
.im{background-size:cover;background-position:center;background-repeat:no-repeat;background-color:var(--wash);display:block;width:100%;height:100%}
.frame-im{position:relative;overflow:hidden;display:block}

/* ===== page rhythm ===== */
.site{background:var(--raise);color:var(--ink)}
section{padding:clamp(28px,3.4vw,48px) var(--gut)}
h2{font-family:var(--serif2);font-weight:300;font-size:clamp(25px,3.4vw,40px);line-height:1.06;max-width:18ch;letter-spacing:-.01em}
.shead{margin-bottom:18px}
.shead .lbl{display:block;margin-bottom:7px}
.band{background:var(--wash)}
.lede{margin-top:10px;max-width:58ch;color:var(--ink-soft);font-size:14.5px}
.qor{margin-top:14px;font-size:12.5px;color:var(--ink-soft)}
.headrow{display:flex;justify-content:space-between;align-items:baseline;gap:18px;flex-wrap:wrap}
.headrow .note{font-size:12px;color:var(--ink-soft)}

/* ===== buttons ===== */
.btn{display:inline-block;font-family:var(--body);font-size:11px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;text-decoration:none;padding:13px 26px;border:1px solid var(--ink-strong);color:var(--ink-strong);background:transparent;transition:background .15s ease,color .15s ease}
.btn:hover{background:var(--wash)}
.btn.solid{background:var(--ink-strong);color:#fff}
.btn.solid:hover{background:var(--accent);border-color:var(--accent)}
.btn.light{border-color:#fff;color:#fff}
.btn.light:hover{background:rgba(255,255,255,.16)}
.btn.light.solid{background:#fff;color:var(--ink-strong)}
.btn.sm{padding:9px 16px;font-size:10px}

/* ===== masthead and rail (the shell itself is built at step 1.2) ===== */
/* One masthead across the whole page instead of a wordmark in the rail. The
   negative margin cancels the trailing letter-space so the name centres
   optically, not just mathematically. Letter-spacing is in em, so it scales
   with the clamped font size on narrow screens. */
.brandbar{display:flex;align-items:center;justify-content:center;padding:clamp(13px,1.5vw,18px) clamp(16px,3vw,40px);border-bottom:1px solid var(--line);background:var(--raise)}
.brandbar span{font-family:var(--display);font-size:clamp(12px,1.35vw,16px);letter-spacing:.26em;margin-right:-.26em;line-height:1.3;text-align:center;color:var(--ink-strong)}

.side{background:var(--wash);border-right:1px solid var(--line);padding:24px 18px;display:flex;flex-direction:column;gap:16px}
.side nav ul{list-style:none;margin:0;padding:0;display:grid;gap:7px}
.side nav li{font-size:11px;font-weight:500;letter-spacing:.16em;text-transform:uppercase;color:var(--ink-soft);padding-bottom:6px;border-bottom:1px solid var(--line)}
.side nav li.on{color:var(--ink-strong)}
.side .foot{margin-top:auto;font-size:11.5px;color:var(--ink-soft);line-height:1.6}

.layout{display:grid;grid-template-columns:1fr}
/* The rail is sticky and shorter than the page, so paint its column behind it —
   otherwise the left edge stops dead partway down and leaves a bare strip. */
@media(min-width:900px){
  .layout{grid-template-columns:210px minmax(0,1fr);background:linear-gradient(to right,var(--wash) 0 209px,var(--line) 209px 210px,transparent 210px)}
  .side{position:sticky;top:0;height:100vh;max-height:760px}
}
.main{min-width:0}

/* ===== hero: the big photograph with the headline across it ===== */
.hero{padding:0;position:relative}
/* width:100% is NOT decoration. Without it, aspect-ratio 16/7 resolves against
   min-height instead of the container: 320px tall x 16/7 = 731px wide, so any
   viewport under 731px scrolls sideways. The mockup never showed this because
   its fake browser frame had overflow:hidden. Found and fixed 2026-09-18 while
   extracting this file. With width pinned, the ratio sets the height and
   min-height stays what it was meant to be -- a floor on small screens. */
.hero .frame-im{aspect-ratio:16/7;min-height:320px;width:100%}
/* Mobile: bottom-weighted, because a left-to-right fade is wrong on a narrow screen. */
.hero .overlay{position:absolute;inset:0;display:flex;align-items:flex-end;padding:clamp(20px,3vw,44px);background:linear-gradient(180deg,rgba(28,27,24,.10) 0%,rgba(28,27,24,.64) 45%,rgba(28,27,24,.80) 100%)}
@media(min-width:900px){
  /* A plateau across the text zone, then a FASTER falloff: more of the
     photograph is clean than before (.04 at the right edge, against .06). */
  .hero .overlay{background:linear-gradient(90deg,rgba(28,27,24,.72) 0%,rgba(28,27,24,.62) 46%,rgba(28,27,24,.18) 74%,rgba(28,27,24,.04) 100%)}
  .hero .overlay>div{max-width:min(46%,620px)}
}
.hero h1{color:#fff;font-family:var(--serif2);font-weight:300;font-size:clamp(32px,6vw,74px);line-height:1.02;max-width:13ch;letter-spacing:-.01em}
.hero h1 em{font-style:italic;color:#E2ECE6}
.hero .cta{margin-top:18px;display:flex;gap:14px;align-items:center;flex-wrap:wrap}
.hero .cta a.plain{color:#fff;font-size:11px;font-weight:500;letter-spacing:.16em;text-transform:uppercase;text-decoration:none;border-bottom:1px solid rgba(255,255,255,.5);padding-bottom:3px}

/* ===== the four facts under the hero ===== */
.facts{display:grid;grid-template-columns:repeat(2,1fr);background:var(--accent);color:#fff}
@media(min-width:760px){.facts{grid-template-columns:repeat(4,1fr)}}
.facts div{padding:13px 16px;border-right:1px solid rgba(255,255,255,.18);border-bottom:1px solid rgba(255,255,255,.18)}
.facts strong{display:block;font-family:var(--display);font-size:19px;line-height:1.1;color:#fff}
.facts span{font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;color:rgba(255,255,255,.82)}

/* ===== the compact list of open dates ===== */
.dates{padding-top:clamp(22px,2.5vw,32px);padding-bottom:clamp(22px,2.5vw,32px)}
.dates h2{font-size:clamp(22px,2.6vw,31px)}
.dates .shead{margin-bottom:11px}
.list{display:grid;gap:0;border-top:1px solid var(--line)}
.list a{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:8px 10px;margin:0 -10px;border-bottom:1px solid var(--line);text-decoration:none;flex-wrap:wrap;transition:background .12s ease}
.list a:hover{background:var(--wash)}
.list .d{font-size:10.5px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--sand);min-width:92px}
.list .t{font-family:var(--display);font-size:15.5px;color:var(--ink-strong);flex:1;min-width:180px}
.list .p{font-size:13px;font-weight:600;color:var(--ink-strong);font-variant-numeric:tabular-nums}
/* The arrow is always visible, not a hover reveal — it is what says
   "you can book this yourself". */
.list .go{font-size:10px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--accent);white-space:nowrap;min-width:58px;text-align:right}
.list a:hover .go{color:var(--ink-strong)}

/* ===== the session cards, with times and prices ===== */
.work{display:grid;gap:14px;grid-template-columns:repeat(2,1fr)}
@media(min-width:880px){.work{grid-template-columns:repeat(4,1fr)}}
.work .frame-im{aspect-ratio:3/4}
.work h3{font-family:var(--display);font-size:16px;margin-top:9px}
.work .meta{display:flex;justify-content:space-between;gap:8px;align-items:baseline;margin-top:3px;border-top:1px solid var(--line);padding-top:5px}
.work .meta span{font-size:11.5px;color:var(--ink-soft)}
.work .meta b{font-size:13px;font-weight:600;color:var(--ink-strong);font-variant-numeric:tabular-nums}

/* ===== the numbered steps ===== */
.strip{display:grid;grid-template-columns:repeat(2,1fr);gap:1px;background:var(--line);border:1px solid var(--line);list-style:none;margin:0;padding:0}
@media(min-width:860px){.strip{grid-template-columns:repeat(4,1fr)}}
.strip li{background:var(--raise);padding:14px 16px 16px}
.strip .n{font-family:var(--display);font-size:12px;color:var(--sand);letter-spacing:.16em}
.strip h3{font-size:15px;margin:5px 0 3px}
.strip p{font-size:12.5px;color:var(--ink-soft);line-height:1.45}

/* ===== the quote beside the steps ===== */
.quoteband{background:var(--accent-wash);display:grid;grid-template-columns:1fr;gap:16px}
@media(min-width:820px){.quoteband{grid-template-columns:1.15fr 1fr;align-items:center;gap:34px}}
.pull{font-family:var(--serif2);font-weight:300;font-size:clamp(22px,3.2vw,36px);line-height:1.18;margin:0;color:var(--ink-strong)}
/* #6C6962 is an audited value, not --ink-soft: on --accent-wash that token
   measured 4.39:1 and this clears 4.5:1 with margin. Do not "tidy" it back. */
.pull cite{display:block;margin-top:12px;font-style:normal;font-family:var(--body);font-size:10.5px;letter-spacing:.18em;text-transform:uppercase;color:#6C6962}

/* ===== the About block ===== */
.split{display:grid;grid-template-columns:1fr;gap:20px;align-items:center}
@media(min-width:820px){.split{grid-template-columns:0.78fr 1.22fr;gap:40px}}
.split .frame-im{aspect-ratio:4/5}

/* ===== mini-session cards ===== */
.mini-row{display:grid;gap:1px;background:var(--line);grid-template-columns:1fr;border:1px solid var(--line)}
@media(min-width:560px){.mini-row{grid-template-columns:repeat(2,1fr)}}
@media(min-width:900px){.mini-row{grid-template-columns:repeat(3,1fr)}}
.mini{background:var(--raise);padding:14px 16px 15px;display:flex;flex-direction:column;gap:3px}
.mini .when{font-size:10px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--sand)}
.mini .what{font-family:var(--display);font-size:16px;line-height:1.2;color:var(--ink-strong)}
.mini .where{font-size:12px;color:var(--ink-soft);flex:1}
.mini .cost{font-size:13px;font-weight:600;font-variant-numeric:tabular-nums;color:var(--ink-strong)}

/* ===== questions and answers ===== */
.faq{display:grid;gap:14px 34px;grid-template-columns:1fr;margin:0}
@media(min-width:760px){.faq{grid-template-columns:repeat(2,1fr)}}
.faq div{border-top:1px solid var(--line);padding-top:10px}
.faq dt{font-family:var(--display);font-size:15.5px;color:var(--ink-strong);margin-bottom:3px}
.faq dd{margin:0;font-size:13px;color:var(--ink-soft);line-height:1.5}

/* ===== town chips ===== */
.towns{display:flex;flex-wrap:wrap;gap:6px}
.towns a{font-size:11px;letter-spacing:.1em;text-transform:uppercase;text-decoration:none;padding:6px 12px;border:1px solid var(--chip-line);color:var(--ink-soft)}

/* ===== footer ===== */
.sitefoot{background:var(--ink-strong);color:#fff;padding:clamp(24px,3vw,38px) clamp(16px,3vw,40px)}
.sitefoot h3{color:#fff;font-family:var(--display);font-size:clamp(20px,2.6vw,28px);max-width:22ch}
.sitefoot .cols{display:grid;gap:18px;grid-template-columns:repeat(2,1fr);margin-top:22px;font-size:12.5px;color:rgba(255,255,255,.72)}
@media(min-width:760px){.sitefoot .cols{grid-template-columns:repeat(4,1fr)}}
.sitefoot .lbl{color:rgba(255,255,255,.55)}
.sitefoot ul{list-style:none;margin:7px 0 0;padding:0;display:grid;gap:4px}
.sitefoot .towns a{border-color:rgba(255,255,255,.33);color:rgba(255,255,255,.8)}
