/* Mighty Pen Editing & Design: "Parish Press" (light only).
   Cream paper, ink-navy type, feather gold as ornament only, plum reserved for the one primary action.
   Palette contrast is recorded in docs/design.json. A11y overrides are last. */
:root {
  color-scheme: light;
  --paper: #fcf8f2; --paper-2: #f5efe4; --white: #fff;
  --ink: #182429; --ink-2: #2c3a40; --muted: #4c5f67; --slate: #647b84;
  --sky: #7fb3c8; --sky-tint: #e6f0f4; --sky-ink: #2f5a6b;
  --plum: #5b495b; --plum-dark: #463746;
  --gold: #b08d5b; --gold-dark: #7d5f32; --rule: #e3dccf;
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", P052, Georgia, serif;
  --body: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1180px;
  --radius: 6px;
  --shadow-page: 0 1px 1px rgba(24,36,41,.06), 0 10px 24px -8px rgba(24,36,41,.22), 0 30px 60px -30px rgba(24,36,41,.35);
  --ease: cubic-bezier(.22,.7,.2,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: 116px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--body); overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky-ink); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--ink); text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.15; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.005em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4.1rem); line-height: 1.04; letter-spacing: -.015em; }
h2 { font-size: clamp(1.75rem, 1.25rem + 1.8vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; margin: 0 0 1em; }
li + li { margin-top: .35em; }
strong { font-weight: 700; }
.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.narrow { max-width: 760px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }

/* ---------- eyebrow + rules */
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font: 700 .78rem/1.3 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold); flex: none; }
.eyebrow.c { justify-content: center; }
.eyebrow.c::after { content: ""; width: 34px; height: 1px; background: var(--gold); flex: none; }
.lead { font-size: clamp(1.1rem, 1rem + .35vw, 1.28rem); line-height: 1.6; color: var(--ink-2); max-width: 60ch; }
.fleuron { display: block; width: 120px; height: 18px; margin: 0 auto 18px; color: var(--gold); }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: var(--radius); font: 700 1rem/1.2 var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--plum); color: #fff; box-shadow: 0 6px 16px -8px rgba(70,55,70,.7); }
.btn-primary:hover { background: var(--plum-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.text-link { font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: .25em; }
.text-link:hover { text-decoration-color: var(--plum); }

/* ---------- skip, header, nav */
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--radius); font-weight: 700; }
.skip:focus { top: 12px; }
/* Header pattern C: nav split left and right of a centered logo, CTA last on the right, printer's double rule beneath.
   The bar never changes height on scroll (no layout shift); only the logo scales down and the rule gains a soft shadow. */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(252,248,242,.97); border-bottom: 1px solid var(--rule); transition: box-shadow .3s var(--ease); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--rule); }
.site-header.condensed { box-shadow: 0 10px 24px -18px rgba(24,36,41,.3); }
.header-in { position: relative; display: flex; align-items: center; justify-content: center; min-height: 108px; }
.brand { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; text-decoration: none; color: var(--ink); }
.brand img { height: 80px; width: auto; transition: transform .3s var(--ease); transform-origin: 50% 50%; }
.site-header.condensed .brand img { transform: scale(.8); }
.brand-text { display: none; }
.site-nav { width: 100%; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; justify-content: center; gap: 2px; }
.nav-list li + li { margin: 0; }
.nav-list li.after-logo { margin-left: 156px; }
.nav-list a { display: block; padding: 10px 11px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; border-radius: 4px; position: relative; }
.nav-list a::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 5px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.nav-list a[aria-current="page"] { color: var(--plum); }
.nav-list .nav-cta { margin-left: 10px; }
.nav-list .nav-cta a { text-transform: none; letter-spacing: 0; font-size: .95rem; color: #fff; }
.nav-list .nav-cta a::after { display: none; }
.nav-list .nav-cta a[aria-current="page"] { color: #fff; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap; font-size: .95rem; min-height: 44px; }
.header-phone svg { width: 18px; height: 18px; color: var(--gold-dark); }
.header-cta { min-height: 44px; padding: 10px 18px; white-space: nowrap; }
.menu-btn { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; background: transparent; border: 1px solid var(--ink); border-radius: var(--radius); color: var(--ink); font: 700 .95rem var(--body); cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; }
@media (max-width: 1180px) { .nav-list li.after-logo { margin-left: 132px; } .nav-list a { padding: 10px 8px; letter-spacing: .06em; } }
@media (max-width: 1020px) {
  .header-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; min-height: 80px; }
  .menu-btn { display: inline-flex; justify-self: start; }
  .brand { position: static; transform: none; justify-self: center; }
  .site-header.condensed .brand img { transform: none; }
  /* Mobile: menu left, logo centered, right cell empty. The fixed bottom bar (.mbar) already carries the quote CTA, so a second one in the header would be clutter. */
  .header-phone, .nav-list .nav-cta { display: none; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; width: auto; background: var(--paper); border-bottom: 1px solid var(--rule); box-shadow: 0 18px 30px -18px rgba(24,36,41,.35); display: none; }
  .site-nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 18px; }
  .nav-list li.after-logo { margin-left: 0; }
  .nav-list a { padding: 14px 4px; border-bottom: 1px solid var(--rule); font-size: 1.05rem; text-transform: none; letter-spacing: 0; }
  .nav-list a::after { display: none; }
  .brand img { height: 60px; }
}
@media (max-width: 400px) { .menu-btn { padding: 8px 11px; } }
@media (prefers-reduced-motion: reduce) { .site-header, .brand img, .nav-list a::after { transition: none; } }

/* ---------- sections */
.sec { padding-block: clamp(64px, 8vw, 112px); display: flow-root; }
.sec-tight { padding-block: clamp(48px, 6vw, 80px); display: flow-root; }
.sec-alt { background: var(--paper-2); }
.sec-white { background: var(--white); }
.sec-sky { background: var(--sky-tint); }
.sec-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.sec-head.c { margin-inline: auto; text-align: center; }
.sec-head.c .lead { margin-inline: auto; }
.sec-head p:last-child { margin-bottom: 0; }

/* ---------- home hero */
.hero { position: relative; padding-block: clamp(40px, 6vw, 84px) clamp(56px, 7vw, 100px); display: flow-root; overflow: clip; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 85% 30%, rgba(127,179,200,.18), transparent 70%), radial-gradient(40% 50% at 10% 100%, rgba(176,141,91,.10), transparent 70%); pointer-events: none; }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 em { font-style: italic; color: var(--plum); }
.hero .lead { margin-bottom: 28px; }
.trust { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .92rem; color: var(--ink-2); }
.trust li { margin: 0; display: flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--gold-dark); flex: none; }
.stack { position: relative; aspect-ratio: 1 / 1.02; max-width: 560px; margin-left: auto; width: 100%; }
.stack figure { margin: 0; position: absolute; background: #fff; padding: 6px; box-shadow: var(--shadow-page); }
.stack img { width: 100%; height: auto; }
.stack .s1 { width: 58%; left: 21%; top: 2%; z-index: 3; }
.stack .s2 { width: 40%; left: 0; top: 24%; transform: rotate(-7deg); z-index: 2; }
.stack .s3 { width: 40%; right: 0; top: 30%; transform: rotate(6deg); z-index: 1; }
.stack .note { position: absolute; z-index: 4; left: -2%; bottom: 3%; width: 46%; color: var(--plum); font: italic 700 1.05rem/1.25 var(--serif); }
.stack .note svg { display: block; width: 90px; height: 54px; margin: 0 0 4px 30%; color: var(--plum); }
@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; }
  .stack { max-width: 440px; margin: 8px auto 0; }
}

/* ---------- page hero (inner) */
.page-hero { padding-block: clamp(36px, 5vw, 64px) clamp(44px, 5vw, 72px); border-bottom: 1px solid var(--rule); display: flow-root; position: relative; }
.page-hero .in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.page-hero.solo .in { grid-template-columns: 1fr; max-width: 860px; }
.page-hero h1 { font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.5rem); }
.page-hero .lead { margin-bottom: 24px; }
.page-hero .art { justify-self: center; width: 100%; max-width: 380px; }
.page-hero .art figure { margin: 0; background: #fff; padding: 6px; box-shadow: var(--shadow-page); transform: rotate(2deg); }
@media (max-width: 860px) { .page-hero .in { grid-template-columns: 1fr; } .page-hero .art { max-width: 300px; } }
.crumbs ol { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px; font-size: .9rem; color: var(--muted); }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--gold); }
.crumbs a { color: var(--muted); }
.answer { background: var(--white); border-left: 4px solid var(--gold); padding: 16px 20px; margin: 0 0 24px; max-width: 64ch; box-shadow: 0 1px 0 var(--rule); }
.answer p { margin: 0; }
.answer strong { display: block; font: 700 .78rem/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 6px; }

/* key facts */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.facts > div { padding: 18px 20px; border-left: 1px solid var(--rule); }
.facts > div:first-child { border-left: 0; padding-left: 0; }
.facts dt { font: 700 .76rem/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 4px; }
.facts dd { margin: 0; font: 700 1.2rem/1.3 var(--serif); color: var(--ink); }
@media (max-width: 640px) { .facts > div { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); } .facts > div:first-child { border-top: 0; } }

/* ---------- contents list (three paths), dotted leaders */
.contents { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.contents li { margin: 0; border-bottom: 1px solid var(--rule); position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 8px 22px; align-items: baseline; padding: 26px 4px; transition: background-color .3s var(--ease); }
.contents li:hover { background: rgba(127,179,200,.10); }
.contents h3 a { color: var(--ink); text-decoration: none; }
.contents h3 a::after { content: ""; position: absolute; inset: 0; }
.contents h3 a:focus-visible { outline: none; }
.contents li:has(a:focus-visible) { outline: 3px solid var(--sky-ink); outline-offset: 2px; }
.contents .no { font: 400 2.4rem/1 var(--serif); color: var(--gold); font-variant-numeric: oldstyle-nums; }
.contents h3 { margin: 0 0 6px; font-size: clamp(1.35rem, 1.1rem + .8vw, 1.8rem); }
.contents p { margin: 0; color: var(--muted); max-width: 60ch; }
.contents .go { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; white-space: nowrap; color: var(--plum); }
.contents .go svg { width: 20px; height: 20px; transition: transform .3s var(--ease); }
.contents li:hover .go svg { transform: translateX(4px); }
@media (max-width: 700px) { .contents li { grid-template-columns: 44px minmax(0, 1fr); } .contents .go { grid-column: 2; } .contents .no { font-size: 1.9rem; } }

/* ---------- signature: liturgical season previewer */
.seasons { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .seasons { grid-template-columns: 1fr; } }
.sp-controls fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.sp-controls legend, .sp-controls .lbl { display: block; font-weight: 700; margin-bottom: 10px; padding: 0; }
.sp-controls input[type="text"] { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--slate); border-radius: var(--radius); font: 400 1.05rem var(--body); background: #fff; color: var(--ink); }
.season-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.season-grid label { position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); cursor: pointer; font-weight: 600; transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.season-grid label:hover { border-color: var(--slate); }
.season-grid input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.season-grid .sw { width: 22px; height: 22px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }
.season-grid input:checked + .sw { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ink); }
.season-grid label:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.season-grid label:has(input:focus-visible) { outline: 3px solid var(--sky-ink); outline-offset: 2px; }
.season-grid small { display: block; font-weight: 400; color: var(--muted); font-size: .82rem; line-height: 1.3; }
.sp-why { font-size: .95rem; color: var(--ink-2); background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 14px 16px; margin: 0 0 22px; }
.sp-why p { margin: 0; }
.cover-wrap { position: relative; }
.cover { --lit: #1f5f3a; --lit-ink: #fff; --lit-accent: #b08d5b; background: #fff; box-shadow: var(--shadow-page); padding: 16px; max-width: 560px; margin-inline: auto; font-family: var(--serif); color: var(--ink); }
.cover-mast { background: var(--lit); color: var(--lit-ink); padding: 22px 22px 20px; position: relative; overflow: hidden; transition: background-color .5s var(--ease), color .5s var(--ease); }
.cover-mast::after { content: ""; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.28), transparent 65%); }
.cover-mast svg { position: absolute; right: 22px; top: 18px; width: 64px; height: 96px; color: var(--lit-accent); opacity: .95; transition: color .5s var(--ease); }
.cover-sunday { font: 700 .72rem/1.3 var(--body); letter-spacing: .16em; text-transform: uppercase; margin: 0 0 8px; max-width: 75%; }
.cover-parish { font: 700 clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem)/1.05 var(--serif); margin: 0 0 8px; max-width: 78%; overflow-wrap: anywhere; }
.cover-date { font: 400 .95rem var(--serif); margin: 0; font-style: italic; }
.cover-body { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; padding-top: 14px; }
.cover-body h3 { font-size: 1rem; margin: 0 0 6px; padding-bottom: 4px; border-bottom: 2px solid var(--lit); transition: border-color .5s var(--ease); }
.cover-body .lines span { display: block; height: 7px; background: #e6e2da; border-radius: 2px; margin-bottom: 6px; }
.cover-body .lines span:nth-child(3n) { width: 82%; }
.cover-body .lines span:nth-child(4n) { width: 64%; }
.cover-side { background: var(--lit); color: var(--lit-ink); padding: 12px; font-size: .85rem; line-height: 1.5; transition: background-color .5s var(--ease), color .5s var(--ease); }
.cover-side h3 { color: inherit; border-color: currentColor; font-size: .95rem; }
.cover-side p { margin: 0 0 6px; }
.cover-foot { margin-top: 14px; padding: 10px 12px; background: var(--paper-2); font: italic .88rem/1.4 var(--serif); text-align: center; border-top: 3px solid var(--lit-accent); transition: border-color .5s var(--ease); }
.cover-tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); z-index: 2; background: var(--ink); color: #fff; font: 700 .72rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; padding: 7px 12px; border-radius: 3px; white-space: nowrap; }
/* season themes (CSS-only, so the picker works without JS) */
.sp:has(#season-advent:checked) .cover, .cover[data-season="advent"] { --lit: #4b2a6e; --lit-ink: #fff; --lit-accent: #e4c98f; }
.sp:has(#season-christmas:checked) .cover, .cover[data-season="christmas"] { --lit: #fbf6ea; --lit-ink: #182429; --lit-accent: #b08d5b; }
.sp:has(#season-lent:checked) .cover, .cover[data-season="lent"] { --lit: #4a3350; --lit-ink: #fff; --lit-accent: #c9b6d3; }
.sp:has(#season-easter:checked) .cover, .cover[data-season="easter"] { --lit: #fffdf6; --lit-ink: #182429; --lit-accent: #c9a24a; }
.sp:has(#season-pentecost:checked) .cover, .cover[data-season="pentecost"] { --lit: #8f1d1d; --lit-ink: #fff; --lit-accent: #f2c76b; }
.sp:has(#season-ordinary:checked) .cover, .cover[data-season="ordinary"] { --lit: #1f5f3a; --lit-ink: #fff; --lit-accent: #e4c98f; }
.cover[data-light] .cover-mast, .sp:has(#season-christmas:checked) .cover-mast, .sp:has(#season-easter:checked) .cover-mast { box-shadow: inset 0 0 0 1px var(--lit-accent); }
.sp:has(#season-christmas:checked) .cover-side, .sp:has(#season-easter:checked) .cover-side { box-shadow: inset 0 0 0 1px var(--lit-accent); }
.sp-texts > [data-for] { display: none; }
.sp:has(#season-advent:checked) [data-for="advent"], .sp:has(#season-christmas:checked) [data-for="christmas"], .sp:has(#season-lent:checked) [data-for="lent"],
.sp:has(#season-easter:checked) [data-for="easter"], .sp:has(#season-pentecost:checked) [data-for="pentecost"], .sp:has(#season-ordinary:checked) [data-for="ordinary"] { display: block; }
.sp-cta { margin-top: 26px; text-align: center; }

/* ---------- story / quote */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } }
.dropcap::first-letter { float: left; font: 700 4.4em/.8 var(--serif); color: var(--plum); padding: .06em .1em 0 0; }
.pull { margin: 0; padding: 28px 0 0; border-top: 2px solid var(--ink); }
.pull p { font: italic 400 clamp(1.4rem, 1.1rem + 1.2vw, 2rem)/1.3 var(--serif); color: var(--ink); margin: 0 0 14px; }
.pull p::before { content: "\201C"; color: var(--gold); margin-right: .05em; }
.pull p::after { content: "\201D"; color: var(--gold); }
.pull cite { font: 700 .82rem/1.4 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); font-style: normal; }
.timeline { list-style: none; padding: 0; margin: 28px 0 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--gold); }
.timeline li { position: relative; padding: 0 0 22px 34px; margin: 0; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--paper); border: 2px solid var(--gold); }
.timeline strong { display: block; font-family: var(--serif); font-size: 1.15rem; }
.timeline span { color: var(--muted); }

/* ---------- work gallery */
.work { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.5vw, 32px); align-items: start; }
.work figure { margin: 0; }
.work .frame { background: #fff; padding: 6px; box-shadow: var(--shadow-page); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.work figure:hover .frame { transform: translateY(-4px) rotate(-.6deg); }
.work figcaption { margin-top: 14px; font-size: .92rem; color: var(--muted); }
.work figcaption strong { display: block; color: var(--ink); font-family: var(--serif); font-size: 1.08rem; }
@media (max-width: 960px) { .work { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .work { grid-template-columns: 1fr 1fr; gap: 14px; } .work figcaption { font-size: .85rem; } }
.thumbs { display: flex; flex-wrap: wrap; gap: 16px; margin: 0; padding: 0; list-style: none; }
.thumbs li { margin: 0; width: 150px; }
.thumbs .frame { background: #fff; padding: 5px; box-shadow: var(--shadow-page); }
.thumbs span { display: block; font-size: .85rem; color: var(--muted); margin-top: 8px; }

/* ---------- price sheet (dotted leaders) */
.prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
@media (max-width: 820px) { .prices { grid-template-columns: 1fr; } }
.price-card { background: #fff; padding: clamp(22px, 3vw, 34px); box-shadow: 0 1px 0 var(--rule), 0 16px 34px -24px rgba(24,36,41,.35); border-top: 4px solid var(--ink); }
.price-card h3 { margin-bottom: 4px; }
.price-card > p { color: var(--muted); font-size: .95rem; }
.sheet { width: 100%; border-collapse: collapse; margin: 6px 0 0; }
.sheet caption { text-align: left; font: 700 .76rem/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); padding: 14px 0 4px; }
.sheet th, .sheet td { padding: 9px 0; vertical-align: bottom; border-bottom: 1px dotted #c9bfae; }
.sheet th { text-align: left; font-weight: 600; padding-right: 12px; }
.sheet td { text-align: right; font: 700 1.1rem var(--serif); white-space: nowrap; }
.sheet td small { font: 400 .8rem var(--body); color: var(--muted); display: block; }
.fine { font-size: .88rem; color: var(--muted); margin-top: 12px; }

/* ---------- steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); counter-reset: s; }
.steps li { margin: 0; counter-increment: s; border-top: 2px solid var(--ink); padding-top: 18px; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font: 400 2.6rem/1 var(--serif); color: var(--gold); margin-bottom: 12px; font-variant-numeric: oldstyle-nums; }
.steps h3 { font-size: 1.2rem; }
.steps p { margin: 0; color: var(--ink-2); font-size: .98rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- two-column prose with TOC */
.article { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.toc { position: sticky; top: 104px; font-size: .95rem; }
.toc h2 { font: 700 .76rem/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 12px; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--rule); }
.toc li { margin: 0; }
.toc a { display: block; padding: 7px 0 7px 14px; color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--plum); text-decoration: underline; }
@media (max-width: 900px) { .article { grid-template-columns: minmax(0, 1fr); } .toc { position: static; } }
.prose { max-width: 70ch; }
.prose > section + section { margin-top: clamp(40px, 5vw, 64px); }
.prose h2 { font-size: clamp(1.6rem, 1.25rem + 1.2vw, 2.2rem); }
.prose h3 { margin-top: 1.4em; }
.prose ul li::marker { color: var(--gold-dark); }
.deflist { margin: 0 0 1em; }
.deflist dt { font: 700 1.15rem var(--serif); margin-top: 16px; }
.deflist dd { margin: 4px 0 0; color: var(--ink-2); }
.inline-cta { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--rule); border-left: 4px solid var(--plum); padding: 20px 22px; margin: 32px 0; }
.inline-cta p { margin: 0; font: 700 1.15rem/1.35 var(--serif); }
.callout { background: var(--sky-tint); padding: 18px 20px; border-radius: var(--radius); margin: 20px 0; }
.callout p:last-child { margin: 0; }
blockquote.source { margin: 20px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--gold); font: italic 1.05rem/1.6 var(--serif); color: var(--ink-2); }
blockquote.source footer { font: 400 .88rem var(--body); font-style: normal; color: var(--muted); margin-top: 6px; }
.table-wrap { overflow-x: auto; margin: 16px 0 24px; }
.cmp { width: 100%; border-collapse: collapse; font-size: .97rem; background: #fff; min-width: 520px; }
.cmp caption { text-align: left; font: 700 1.05rem var(--serif); padding-bottom: 10px; }
.cmp th, .cmp td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.cmp thead th { background: var(--ink); color: #fff; font-weight: 700; }
.cmp tbody th { font-weight: 700; }

/* ---------- editing demo (proof marks) */
.proof { background: #fff; padding: clamp(20px, 3vw, 30px); box-shadow: var(--shadow-page); font: 400 1.1rem/1.9 var(--serif); position: relative; }
.proof del { color: #a3282a; text-decoration-thickness: 2px; text-decoration-color: #a3282a; }
.proof ins { text-decoration: none; color: var(--sky-ink); font-weight: 700; border-bottom: 2px solid var(--sky); }
.proof .label { position: absolute; top: -12px; left: 18px; background: var(--ink); color: #fff; font: 700 .7rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; padding: 6px 10px; border-radius: 3px; }
.proof-key { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .88rem; color: var(--muted); margin-top: 14px; }

/* ---------- FAQ */
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-of-type { border-top: 2px solid var(--ink); }
.faq summary { list-style: none; cursor: pointer; display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 20px 2px; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: clamp(1.08rem, 1rem + .3vw, 1.25rem); }
.faq summary::after { content: ""; width: 14px; height: 14px; flex: none; border-right: 2px solid var(--plum); border-bottom: 2px solid var(--plum); transform: rotate(45deg) translateY(-4px); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq .a { padding: 0 2px 20px; max-width: 70ch; color: var(--ink-2); }
.faq .a p:last-child { margin: 0; }

/* ---------- team */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
@media (max-width: 760px) { .team { grid-template-columns: 1fr; } }
.person { background: #fff; padding: clamp(22px, 3vw, 32px); border-top: 4px solid var(--plum); box-shadow: 0 16px 34px -24px rgba(24,36,41,.35); }
.person .portrait { width: 96px; height: 96px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; font: 700 1.9rem var(--serif); color: var(--gold-dark); margin-bottom: 16px; border: 1px solid var(--rule); }
.person h3 { margin-bottom: 2px; }
.person .role { font: 700 .8rem/1.3 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 14px; }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.values > div { border-top: 2px solid var(--ink); padding-top: 16px; }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; } }

/* ---------- reviews placeholder */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.review { background: #fff; padding: 22px; border: 1px dashed var(--slate); }
.review p { margin: 0; color: var(--ink-2); }
@media (max-width: 860px) { .reviews { grid-template-columns: 1fr; } }

/* ---------- form */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card { background: #fff; padding: clamp(22px, 3.5vw, 40px); box-shadow: 0 1px 0 var(--rule), 0 18px 40px -26px rgba(24,36,41,.4); border-top: 4px solid var(--plum); }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--slate); border-radius: var(--radius); font: 400 1.0625rem/1.5 var(--body); color: var(--ink); background: #fff; }
.field textarea { min-height: 150px; resize: vertical; }
.field [aria-invalid="true"] { border-color: #a3282a; border-width: 2px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.hint { font-size: .88rem; color: var(--muted); margin: 6px 0 0; }
.err { color: #a3282a; font-weight: 600; font-size: .92rem; margin: 6px 0 0; }
.err:empty { display: none; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.reassure { margin: 0; font-size: .92rem; color: var(--muted); flex: 1 1 220px; }
.status { margin-top: 18px; padding: 0; }
.status:empty { display: none; }
.status.ok, .status.bad { padding: 14px 16px; border-radius: var(--radius); font-weight: 600; }
.status.ok { background: #e7f3ec; color: #1d4d33; }
.status.bad { background: #fbecec; color: #7a1f20; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.side-card { background: #fff; border: 1px solid var(--rule); padding: 22px; margin-bottom: 18px; }
.side-card h2 { font-size: 1.25rem; }
.side-card ol { margin: 0; }
.side-card p:last-child { margin: 0; }

/* ---------- CTA band + footer (light, per house rule) */
.cta-band { background: var(--sky-tint); padding-block: clamp(52px, 6vw, 84px); display: flow-root; border-top: 1px solid #d3e3ea; }
.cta-band .in { display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 24px 48px; align-items: center; }
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { margin: 0; color: var(--ink-2); max-width: 58ch; }
@media (max-width: 820px) { .cta-band .in { grid-template-columns: 1fr; } }
.site-footer { background: var(--paper-2); border-top: 1px solid var(--rule); padding-top: clamp(48px, 6vw, 72px); display: flow-root; font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font: 700 .78rem/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 8px; }
.site-footer a { color: var(--ink); }
.foot-brand img { height: 72px; width: auto; margin-bottom: 14px; }
.foot-brand p { color: var(--ink-2); max-width: 36ch; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; border-top: 1px solid var(--rule); margin-top: 40px; padding-block: 22px; color: var(--muted); font-size: .88rem; }
.foot-base a { color: var(--muted); }

/* mobile sticky bar */
.mbar { display: none; }
@media (max-width: 760px) {
  .mbar { display: grid; grid-template-columns: 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(252,248,242,.98); border-top: 1px solid var(--rule); box-shadow: 0 -8px 20px -12px rgba(24,36,41,.3); }
  .mbar .btn { min-height: 48px; padding: 10px 12px; }
  .site-footer { padding-bottom: 80px; }
}

/* 404 */
.notfound { padding-block: clamp(80px, 12vw, 160px); text-align: center; display: flow-root; }

/* ---------- reveal (JS adds .js; safety net in main.js) */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- a11y overrides (keep last) */
:focus-visible { outline: 3px solid var(--sky-ink); outline-offset: 3px; }
.btn-primary:focus-visible { outline-color: var(--ink); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--sky-ink); outline-offset: 1px; border-color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .rv { opacity: 1; transform: none; }
}
@media print { .site-header, .mbar, .cta-band, .preview-banner { display: none; } body { background: #fff; } }

/* no-orphans (website skill checklist 13) */
body{text-wrap:pretty}
h1,h2,h3,h4,h5,h6,blockquote,figcaption,caption,legend,.eyebrow,.lede,.btn,button{text-wrap:balance}
