/* Phoenix: the shared stylesheet. Every page loads this first.
   Colour and type live in the variables; everything else reads them. */

:root {
  --ink: #1F1A17;          /* text, the header, the footer */
  --ink-soft: #4A423D;
  --paper: #FBF8F3;        /* page background */
  --sand: #F3ECE2;         /* tinted bands */
  --line: #E2D8CA;
  --ember: #C4542C;        /* the one accent */
  --ember-deep: #9E3F1F;
  --gold: #C89B4A;
  --serif: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 62ch;
  --gutter: clamp(16px, 4vw, 40px);
  --head-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--sans);
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.muted { color: var(--ink-soft); }
.center { text-align: center; }
.inner { width: min(1160px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.inner.narrow { max-width: 760px; }
.eyebrow {
  font: 600 .78rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--ember); margin-bottom: .9em;
}

/* Skip link */
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { top: 8px; }

/* Buttons */
.btn {
  display: inline-block; padding: 13px 22px; border: 1px solid currentColor; border-radius: 3px;
  font: 600 .9rem/1 var(--sans); letter-spacing: .04em; text-decoration: none; cursor: pointer;
  background: transparent; color: inherit; transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-solid { background: var(--ember); border-color: var(--ember); color: #fff; }
.btn-solid:hover { background: var(--ember-deep); border-color: var(--ember-deep); color: #fff; }

/* Header */
.site-head {
  position: sticky; top: 0; z-index: 50; background: var(--ink); color: var(--paper);
  min-height: var(--head-h); display: flex; align-items: center;
}
.site-head .inner { display: flex; align-items: center; gap: 24px; padding-block: 12px; }
.wordmark { display: flex; align-items: center; text-decoration: none; margin-right: auto; }
.wordmark .logo { display: block; height: 44px; width: auto; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.site-nav .menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu-item { position: relative; }
.menu-head { background: none; border: 0; color: inherit; font: 500 .92rem/1 var(--sans); padding: 10px 10px; cursor: pointer; border-bottom: 1px solid transparent; }
.menu-item.is-section > .menu-head, .menu-head:hover, .menu-head[aria-expanded="true"] { border-bottom-color: var(--gold); }
.menu-panel { display: none; position: absolute; left: 0; top: 100%; min-width: 320px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 18px 40px rgba(31,26,23,.18); padding: 14px 6px 8px; z-index: 60; }
.menu-item:hover > .menu-panel, .menu-item:focus-within > .menu-panel, .menu-item.open > .menu-panel { display: block; }
.menu-intro { margin: 0 14px 8px; font: 500 .8rem/1.4 var(--sans); color: var(--ink-soft); }
.menu-panel ul { list-style: none; margin: 0; padding: 0; }
.menu-panel a { display: block; padding: 9px 14px; border-radius: 3px; text-decoration: none; }
.menu-panel a:hover, .menu-panel a[aria-current="page"] { background: var(--sand); }
.menu-panel a b { display: block; font: 600 .95rem/1.3 var(--sans); }
.menu-panel a span { display: block; font: 400 .82rem/1.4 var(--sans); color: var(--ink-soft); }
.nav-toggle { display: none; background: none; border: 0; color: inherit; font: 600 .8rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; align-items: center; gap: 8px; cursor: pointer; }
.nav-bars { display: inline-block; width: 20px; }
.nav-bars i { display: block; height: 2px; background: currentColor; margin: 4px 0; }
@media (max-width: 960px) {
  .site-head .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); padding: 8px var(--gutter) 20px; border-top: 1px solid #3a322d; max-height: calc(100vh - var(--head-h)); overflow: auto; }
  .site-nav.open { display: block; }
  .site-nav .menu { flex-direction: column; gap: 0; }
  .menu-head { display: block; width: 100%; text-align: left; padding: 14px 0; border-bottom: 1px solid #3a322d; font-size: 1.05rem; }
  .menu-head::after { content: "+"; float: right; color: var(--gold); }
  .menu-head[aria-expanded="true"]::after { content: "\2013"; }
  .menu-panel { position: static; min-width: 0; background: none; color: inherit; border: 0; box-shadow: none; padding: 4px 0 10px; display: none; }
  .menu-item:hover > .menu-panel, .menu-item:focus-within > .menu-panel { display: none; }
  .menu-item.open > .menu-panel { display: block; }
  .menu-intro { color: #CFC5B8; margin-left: 0; }
  .menu-panel a { padding: 10px 0 10px 12px; border-left: 2px solid #3a322d; border-radius: 0; }
  .menu-panel a:hover, .menu-panel a[aria-current="page"] { background: none; border-left-color: var(--gold); }
  .menu-panel a span { color: #CFC5B8; }
}

/* Hero */
.hero { position: relative; display: grid; align-items: end; color: var(--paper); overflow: hidden; }
.hero-plain { background: linear-gradient(160deg, #2A221E 0%, var(--ink) 55%, #15110F 100%); min-height: 52vh; }
.hero-photo { min-height: 70vh; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(31,26,23,.15) 0%, rgba(31,26,23,.75) 100%); }
.hero-body { position: relative; z-index: 1; width: min(1160px, 100% - 2 * var(--gutter)); margin-inline: auto; padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); max-width: 100%; }
.hero-body > * { max-width: 34ch; }
.hero-body .eyebrow { color: var(--gold); }
.hero-body h1 { max-width: 16ch; }
.hero-body p { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #E6DDD1; max-width: 48ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; max-width: none; }
.hero-actions .btn:not(.btn-solid) { color: var(--paper); }

/* Bands and cards */
.band { padding: clamp(48px, 7vw, 96px) 0; }
.band-tint { background: var(--sand); }
.cards { display: grid; gap: 22px; }
.cards.two { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cards.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; display: flex; flex-direction: column; overflow: hidden; transition: transform .2s, box-shadow .2s; }
a.card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(31,26,23,.08); }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card-body { padding: 22px 24px 26px; }
.card-body p { margin: 0; color: var(--ink-soft); }
.ticks { list-style: none; padding: 0; margin: 0 0 1.5em; }
.ticks li { padding: 10px 0 10px 30px; border-bottom: 1px solid var(--line); position: relative; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 12px; height: 7px; border-left: 2px solid var(--ember); border-bottom: 2px solid var(--ember); transform: rotate(-45deg); }

/* Footer */
.site-foot { background: var(--ink); color: #CFC5B8; padding: clamp(40px, 6vw, 72px) 0 0; font-size: .95rem; }
.site-foot .inner { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.site-foot h3 { font: 600 .78rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin: 0 0 8px; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: #fff; }
.addr { font-style: normal; line-height: 1.7; }
.colophon { width: min(1160px, 100% - 2 * var(--gutter)); margin: 40px auto 0; padding: 20px 0 28px; border-top: 1px solid #3a322d; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: .82rem; color: #9C9186; }

/* Mobile inquiry bar */
.cta-bar { display: none; }
@media (max-width: 860px) {
  .cta-bar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(31,26,23,.92); backdrop-filter: blur(6px); }
  .cta-bar .btn { display: block; text-align: center; }
  body { padding-bottom: 72px; }
}

/* Working notes: the annotations behind ?notes. Hidden for everyone else. */
.note { display: none; }
.notes-off { display: none; }
html.notes .note { display: block; margin: 0 auto 8px; width: min(1160px, 100% - 2 * var(--gutter)); background: #FFF4C2; border-left: 4px solid #E0B62B; padding: 12px 16px; font-size: .9rem; color: #4d3f08; }
html.notes .note b { font-weight: 600; margin-right: 6px; }
html.notes .notes-on { display: none; }
html.notes .notes-off { display: inline; }

/* Dark band, two-column split, the fit and not-fit lists */
.band-dark { background: var(--ink); color: var(--paper); }
.band-dark .eyebrow { color: var(--gold); }
.band-dark h2 { color: #fff; }
.split { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.band-dark .ticks li, .crosses li { border-bottom-color: #3a322d; }
.ticks li b { display: block; font-weight: 600; }
.crosses { list-style: none; padding: 0; margin: 0 0 1.5em; }
.crosses li { padding: 10px 0 10px 30px; border-bottom: 1px solid var(--line); position: relative; color: #CFC5B8; }
.crosses li::before, .crosses li::after { content: ""; position: absolute; left: 4px; top: 21px; width: 14px; height: 2px; background: #9C9186; transform: rotate(45deg); }
.crosses li::after { transform: rotate(-45deg); }

/* Numbered steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 1.5em; display: grid; gap: 22px; }
.steps li { counter-increment: step; position: relative; padding-left: 64px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--ember); color: #fff; font: 600 1.2rem/44px var(--serif); text-align: center; }
.steps h3 { margin-bottom: .2em; }
.steps p { margin: 0; color: var(--ink-soft); }

/* Questions and answers */
.faq dt { font: 600 1.15rem/1.3 var(--serif); margin: 1.2em 0 .3em; }
.faq dd { margin: 0; color: var(--ink-soft); }

/* Photo cards and the mosaic */
.card-media { overflow: hidden; aspect-ratio: 4 / 3; }
.card-shift { height: 100%; }
.card-img { width: 100%; height: 100%; object-fit: cover; }
.cards.mosaic { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cards.mosaic .card:nth-child(1) { grid-column: span 2; }
.cards.mosaic .card:nth-child(1) .card-media { aspect-ratio: 2 / 1; }
@media (max-width: 640px) { .cards.mosaic .card:nth-child(1) { grid-column: auto; } .cards.mosaic .card:nth-child(1) .card-media { aspect-ratio: 4 / 3; } }

/* Portrait placeholder and the timeline */
.portrait { margin: 0; }
.portrait-frame { aspect-ratio: 4 / 5; background: var(--ink); border-radius: 4px; display: grid; place-items: center; }
.portrait-frame svg { width: 45%; height: auto; }
.portrait figcaption { font: 500 .85rem/1.5 var(--sans); color: var(--ink-soft); margin-top: 10px; }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--ember); }
.timeline li { padding: 0 0 18px 24px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--ember); }
.timeline b { display: block; font-family: var(--serif); font-size: 1.15rem; }

/* The two doors on the homepage, and cards that are links */
.doors { padding-top: clamp(32px, 5vw, 56px); }
.door { display: block; padding: clamp(22px, 3vw, 36px); background: #fff; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.door:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(31,26,23,.08); }
.door h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.door p { margin: 0; color: var(--ink-soft); }
a.card h3 { color: var(--ink); }
.contact-addr { font-size: 1.05rem; }
