/* Central Coast Phoenix Festival: comp styles
   Look: Born of Fire, framed like a field guide (approved style tile, 2026-11-16) */

:root {
  --bg: #F4EEE2;      /* Paper */
  --card: #FBF7EF;
  --ink: #1E1A17;
  --muted: #6B5E52;
  --rule: #C9BBA3;
  --kraft: #E2D8C5;
  --red: #FE3633;     /* Logo red: ridge and logo only */
  --accent: #D92A27;  /* Deep red: buttons and type */
  --display: 'Young Serif', Georgia, serif;
  --body: 'Figtree', system-ui, sans-serif;
  /* The field guide frame: thin ink border with a hairline inside it */
  --frame: inset 0 0 0 5px var(--card), inset 0 0 0 6px var(--rule);
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { font-family: var(--body); background: var(--bg); color: var(--ink); line-height: 1.6; font-size: 1.06rem; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--accent); }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* ---------- Review bar (comp only) ---------- */
.review { background: #141414; color: #ddd; font: 500 13px/1.4 system-ui, -apple-system, sans-serif; }
.review .wrap { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; }

/* ---------- Site header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 3px double var(--ink); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand span { font: 400 1.1rem/1.1 var(--display); }
.brand .name-short { display: none; }
.nav { display: flex; gap: 20px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--accent); }
@media (max-width: 900px) { .nav { display: none; } }
@media (max-width: 520px) { .brand .name-full { display: none; } .brand .name-short { display: inline; } }

/* ---------- Buttons and labels ---------- */
.btn { display: inline-block; padding: 13px 26px; font: 700 1rem/1.2 var(--body); text-decoration: none; border: 0; cursor: pointer; }
.btn.primary { background: var(--accent); color: var(--card); }
.btn.primary:hover { background: #B8221F; }
.btn.secondary { color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); background: none; }
.btn.small { padding: 10px 18px; font-size: .92rem; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.plate-label { font: 700 .74rem/1.3 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.sample { color: var(--muted); font-size: .85rem; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 48px 0 0; }
.hero .logo { width: 108px; height: 108px; object-fit: contain; margin: 0 auto 14px; }
.eyebrow { font: 700 .78rem/1.2 var(--body); letter-spacing: .24em; text-transform: uppercase; color: var(--accent); }
.hero h1 { font: 400 clamp(2.3rem, 6.4vw, 4.6rem)/1.02 var(--display); margin: .2em 0 .3em; text-wrap: balance; }
.meta { font-weight: 600; }
.lead { font: 400 1.35rem/1.2 var(--display); margin: .5em auto 1.1em; max-width: 34ch; text-wrap: balance; }
.hero .actions { justify-content: center; }

.plate { margin: 44px 0 0; text-align: left; }
.section .plate { margin-top: 0; }
.meter-labels { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; font-size: .95rem; margin-bottom: 10px; }
.meter-labels b { font: 400 1.5rem/1 var(--display); color: var(--accent); }
.plate-frame { background: var(--card); border: 1px solid var(--ink); box-shadow: var(--frame); padding: 26px 14px 8px; }
.ridge { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 330; }
.plate figcaption { margin-top: 10px; font-size: .95rem; }
.plate figcaption .plate-label { margin-right: 6px; }
.plate figcaption em { font-style: normal; font-family: var(--display); }
@media (max-width: 700px) {
  .ridge { aspect-ratio: auto; height: 220px; }  /* taller on phones: shows the middle peaks */
  .peak-names { display: none; }
}

/* ---------- Sections ---------- */
.rule { border: 0; border-bottom: 4px double var(--ink); margin: 0; }
.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--rule); }
.kicker { margin-bottom: 10px; }
.prose .kicker { font-size: .94rem; }
h2 { font: 400 clamp(1.8rem, 4vw, 2.7rem)/1.1 var(--display); margin-bottom: .6em; text-wrap: balance; }
h3 { font: 400 1.35rem/1.2 var(--display); }
.prose p { max-width: 64ch; font-size: 1.125rem; }
.prose p + p { margin-top: 1em; }
.prose .big { font-size: 1.125rem; }
.prose .actions { margin-top: 28px; }
.prose .give-by-mail { margin-top: 20px; }

.split { display: grid; gap: 40px 56px; grid-template-columns: 1.25fr 1fr; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Photos in plate frames */
.fig { margin: 0; }
.fig img { width: 100%; object-fit: cover; border: 1px solid var(--ink); padding: 6px; background: var(--card); outline: 1px solid var(--rule); outline-offset: 4px; }
.fig.landscape img { aspect-ratio: 4 / 3; }
.fig.portrait img { aspect-ratio: 4 / 5; }
.fig figcaption { margin-top: 12px; font-size: .92rem; color: var(--muted); }
.fig figcaption .plate-label { margin-right: 6px; }
.fig-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* Framed card */
.card { background: var(--card); border: 1px solid var(--ink); box-shadow: var(--frame); padding: 26px; }

/* ---------- The goal ---------- */
.outcomes { list-style: none; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); margin: 32px 0; counter-reset: step; }
.outcomes li { counter-increment: step; }
.outcomes li::before { content: counter(step, upper-roman) "."; display: block; font: 400 1.4rem/1 var(--display); color: var(--accent); margin-bottom: 12px; }
.outcomes b { display: block; font: 400 1.3rem/1.25 var(--display); margin-bottom: 4px; }
.outcomes li:nth-child(1) { background: var(--accent); color: var(--card); box-shadow: inset 0 0 0 5px var(--accent), inset 0 0 0 6px rgba(251, 247, 239, .5); border-color: var(--accent); }
.outcomes li:nth-child(1)::before { color: var(--card); }
.outcomes.stacked { grid-template-columns: 1fr; gap: 10px; margin: 20px 0 24px; }
.outcomes.stacked li { padding: 14px 18px; font-size: .95rem; line-height: 1.5; }
.outcomes.stacked li::before { display: inline; margin: 0 .4em 0 0; font-size: 1.1rem; }
.outcomes.stacked b { display: inline; font-size: 1.1rem; }
.outcomes.stacked b::after { content: "\A"; white-space: pre; }
.qa { margin-top: 40px; }
.qa h3 { margin-bottom: .5em; }
#radio .qa { margin-top: 0; }

/* ---------- Donor levels ---------- */
.levels { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); margin-top: 36px; }
.level { display: flex; flex-direction: column; padding-top: 16px; }
.level .peak { display: block; width: 120px; height: 60px; margin-bottom: 14px; }
.level .peak.none { height: 0; margin: 0; }
.level h3 { margin-top: 4px; }
.level .amount { font: 400 1.2rem/1.3 var(--display); color: var(--accent); margin-top: 2px; }
.level .elev { font-size: .88rem; color: var(--muted); }
.level ul { padding-left: 1.1em; margin-top: 14px; font-size: .97rem; }
.level li + li { margin-top: 4px; }
.level details { margin-top: 10px; font-size: .97rem; }
.level summary { cursor: pointer; font-weight: 700; color: var(--accent); }
.level details ul { margin-top: 8px; }
.level .btn { margin-top: auto; align-self: flex-start; }
.level .btn-space { flex: 1; min-height: 18px; }
.closing-line { margin-top: 36px; font: 400 1.3rem/1.4 var(--display); }

/* ---------- Team and supporters ---------- */
.names { list-style: none; padding: 0; display: grid; gap: 10px 24px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin-top: 28px; }
.names li { font: 400 1.12rem/1.3 var(--display); padding: 10px 0; border-bottom: 1px solid var(--rule); }
.names .role { display: block; margin-top: 6px; font: 400 .95rem/1.45 var(--body); color: var(--muted); }
.supporters { list-style: none; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin-top: 28px; }
.supporters li { text-align: center; font: 400 1.2rem/1.3 var(--display); }
.todo { color: var(--muted); font-style: italic; }

/* ---------- Footer ---------- */
.site-footer { border-top: 4px double var(--ink); padding: 40px 0 56px; font-size: .95rem; }
.site-footer .wrap { display: grid; gap: 32px 48px; grid-template-columns: 2fr 1fr 1fr; align-items: start; }
.site-footer img { width: 64px; height: 64px; object-fit: contain; margin-bottom: 12px; }
.site-footer p + p { margin-top: 4px; }
.site-footer .muted { color: var(--muted); }
.site-footer a { color: var(--ink); font-weight: 600; text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.footer-name { font: 400 1.25rem/1.25 var(--display); }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav, .footer-follow { align-self: end; }
.footer-nav li + li { margin-top: 6px; }
.footer-follow .social { display: flex; gap: 8px; margin: 6px 0 0 -4px; }
.footer-follow .social a { display: block; padding: 4px; }
.footer-follow .social svg { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.footer-legal { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--rule); color: var(--muted); font-size: .88rem; }
.footer-legal span { white-space: nowrap; }
@media (max-width: 700px) {
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Skills and assets form ---------- */
.page-title { font: 400 clamp(2.2rem, 5vw, 3.4rem)/1.05 var(--display); margin-bottom: .4em; text-wrap: balance; }
.offer-form { max-width: 640px; margin-top: 32px; }
.offer-form .field { margin: 0 0 20px; max-width: none; font-size: 1.06rem; }
.offer-form p + p { margin-top: 0; }
.offer-form label, .offer-form legend { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 6px; }
.offer-form .optional { font-weight: 400; color: var(--muted); }
.offer-form input[type="text"], .offer-form input[type="email"], .offer-form input[type="tel"], .offer-form textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--ink); border-radius: 0; padding: 11px 12px; }
.offer-form textarea { resize: vertical; }
.offer-form input:focus-visible, .offer-form textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.offer-form fieldset { border: 0; padding: 0; min-width: 0; }
.offer-form legend { padding: 0; }
.offer-form .check { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; font-size: 1rem; margin: 4px 24px 4px 0; }
.offer-form .check input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.offer-form .trap { position: absolute; left: -9999px; }
.contact-alt { margin-top: 24px; }

/* ---------- Phones: less space between sections ---------- */
@media (max-width: 700px) {
  .section { padding: 40px 0; }
  #story .actions, #who .actions, #goal .actions, #share .actions { justify-content: center; }
}

/* ---------- Press page ---------- */
.press-release { margin-top: 24px; }
.press-release h3 { margin: 6px 0 10px; }
.press-contact-head { margin-top: 36px; margin-bottom: .5em; }
.press-grid { list-style: none; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin-top: 28px; }
.press-grid li { text-align: center; }
.press-grid img { width: 100%; height: 180px; object-fit: contain; }
.press-grid img.photo { object-fit: cover; }
.press-grid p { margin-top: 10px; font-size: .95rem; }
.press-grid .press-name { font: 400 1.1rem/1.3 var(--display); }
