@import url('./tokens.css');

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body { margin: 0; min-width: 0; background: var(--cream); color: var(--ink); font: 400 1.125rem/1.6 var(--sans); }
img, svg { max-width: 100%; }
img { display: block; }
a { color: var(--rust-dark); text-decoration-thickness: .1em; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .16em; }
button, input, select { font: inherit; }
button, a, input, select { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }

.skip-link { position: fixed; z-index: 2000; left: 12px; top: 12px; transform: translateY(-180%); background: var(--paper); color: var(--ink); padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { transform: none; }
.site-shell { min-height: 100vh; background: var(--paper); }
html[data-viewport='phone'] .site-shell { max-width: 375px; margin-inline: auto; box-shadow: var(--shadow); }
html[data-viewport='tablet'] .site-shell { max-width: 768px; margin-inline: auto; box-shadow: var(--shadow); }
html[data-viewport='desktop'] .site-shell { max-width: 1280px; margin-inline: auto; box-shadow: var(--shadow); }
.wrap { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.narrow { width: min(100% - 32px, 760px); margin-inline: auto; }

.site-header { position: relative; z-index: 20; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 94%, transparent); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 82px; }
.brand { min-height: 44px; display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; line-height: 1.1; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: var(--cream); font-family: var(--display); font-size: 20px; }
.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.site-nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 8px 10px; border-radius: 9px; color: var(--ink); font-weight: 700; font-size: .94rem; text-decoration: none; white-space: nowrap; }
.site-nav a[aria-current='page'], .site-nav a:hover { background: var(--green-light); }

main { min-height: 64vh; }
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 8vw, 110px); }
.hero-grid { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
.page-hero-grid { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1, .page-hero h1 { max-width: 16ch; margin: 0 0 18px; font: 700 clamp(2.7rem, 8vw, 5.6rem)/.96 var(--display); letter-spacing: -.035em; }
.hero .lede, .page-hero .lede { max-width: 56ch; font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.48; }
.page-hero { padding-block: clamp(46px, 7vw, 90px); border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 12px; color: var(--rust-dark); font-size: .78rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.tagline { font-family: var(--display); font-size: clamp(1.35rem, 2.5vw, 2rem); font-style: italic; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--green); border-radius: 999px; padding: 10px 20px; background: transparent; color: var(--green); font-weight: 800; text-decoration: none; cursor: pointer; }
.button--primary { background: var(--green); color: #fff; }
.button--secondary { border-color: var(--rust); color: var(--rust-dark); }
.button--quiet { border-color: var(--line); background: var(--paper); color: var(--ink); }

.section { padding-block: clamp(52px, 8vw, 96px); }
.section--tint { background: var(--cream); }
.section h2 { max-width: 22ch; margin: 0 0 18px; font: 700 clamp(2rem, 4.8vw, 3.5rem)/1.04 var(--display); letter-spacing: -.025em; }
.section h3 { font: 700 clamp(1.35rem, 2vw, 1.8rem)/1.15 var(--display); }
.section p { max-width: var(--measure); }
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.door { display: flex; flex-direction: column; align-items: start; min-height: 260px; padding: clamp(24px, 4vw, 38px); border-top: 5px solid var(--rust); background: var(--paper); box-shadow: var(--shadow); }
.door p { flex: 1; }
.detail-list { display: grid; gap: 0; margin: 28px 0; border-top: 1px solid var(--line); }
.detail-row { display: grid; grid-template-columns: minmax(110px, .35fr) 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.detail-row dt { font-weight: 850; }
.detail-row dd { margin: 0; }
.callout { padding: clamp(24px, 5vw, 46px); border-left: 8px solid var(--gold); background: #fff6dc; }
.callout h2, .callout h3 { margin-top: 0; }
.phone-link { display: inline-flex; min-height: 56px; align-items: center; font-size: clamp(1.6rem, 5vw, 2.55rem); font-weight: 900; line-height: 1.05; }
.plain-list { padding-left: 1.25em; }
.plain-list li { margin-block: 10px; }
.steps { counter-reset: steps; list-style: none; padding: 0; }
.steps li { position: relative; padding: 16px 0 16px 58px; border-bottom: 1px solid var(--line); }
.steps li::before { counter-increment: steps; content: counter(steps); position: absolute; left: 0; top: 13px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: #fff; font-weight: 900; }
.fact { display: inline; }
.unverified-chip { display: inline-flex; align-items: center; margin-left: 7px; min-height: 24px; padding: 2px 7px; border: 1px solid #8b5b00; border-radius: 4px; background: #fff1bf; color: #5f3d00; font: 800 .68rem/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; vertical-align: .15em; }
.mode-banner { padding: 20px 0; background: var(--green); color: #fff; }
.mode-banner .wrap { display: grid; gap: 12px; align-items: center; }
.mode-banner h2 { margin: 0; font: 700 clamp(1.4rem, 3vw, 2.2rem)/1.1 var(--display); }
.mode-banner p { margin: 4px 0 0; max-width: 70ch; }
.mode-banner a { color: #fff; }
.mode-banner .button--quiet { color: var(--green); }

.photo-placeholder { aspect-ratio: var(--shot-ratio, 16/9); min-height: 260px; display: flex; flex-direction: column; justify-content: end; gap: 6px; padding: 22px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--green) 35%, var(--line)); background: repeating-linear-gradient(135deg, var(--green-light) 0 16px, #c8d9ce 16px 32px); color: var(--green); }
.photo-placeholder strong { max-width: 40ch; font: 700 1.3rem/1.2 var(--display); }
.photo-placeholder span { max-width: 55ch; font-size: .8rem; line-height: 1.35; }
.photo-placeholder__eyebrow { font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }

.site-photo { position: relative; margin: 0; overflow: hidden; background: var(--green-light); box-shadow: var(--shadow); }
.site-photo img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.site-photo figcaption { position: absolute; right: 10px; bottom: 8px; max-width: calc(100% - 20px); padding: 4px 7px; border-radius: 4px; background: rgb(20 24 22 / 78%); color: #fff; font-size: .66rem; line-height: 1.2; }
.site-photo figcaption a { color: inherit; }
.page-photo { aspect-ratio: 4 / 3; }
.story-intro { display: grid; grid-template-columns: minmax(150px, .45fr) 1.55fr; gap: clamp(28px, 6vw, 76px); align-items: center; }
.story-number { color: var(--rust); font: 900 clamp(7rem, 18vw, 13rem)/.75 var(--display); letter-spacing: -.08em; }

.reminder-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; max-width: 620px; }
.reminder-form label { grid-column: 1 / -1; font-weight: 750; }
.reminder-form input { min-height: 50px; min-width: 0; border: 2px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 1rem; }
.reminder-form [role='status'] { grid-column: 1 / -1; min-height: 1.6em; margin: 0; font-weight: 750; color: var(--green); }
.stub { min-height: 44vh; display: grid; place-items: center; text-align: center; }
.placeholder-copy { max-width: 50ch; padding: 32px; border: 2px dashed var(--line); background: var(--cream); }
.timeline { border-left: 3px solid var(--rust); margin-left: 12px; padding-left: 28px; }
.timeline article { position: relative; padding: 0 0 42px; }
.timeline article::before { content: ''; position: absolute; left: -39px; top: 8px; width: 18px; height: 18px; border-radius: 50%; background: var(--rust); border: 4px solid var(--paper); }
.timeline time { color: var(--rust-dark); font-weight: 900; }

.site-footer { padding-block: 42px 96px; border-top: 1px solid var(--line); background: var(--cream); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: end; }
.footer-grid p { margin: 5px 0; }
.fine-print { color: var(--muted); font-size: .86rem; }
.integration-marker { display: none; }

.modal-backdrop { position: fixed; z-index: 3000; inset: 0; display: grid; place-items: center; padding: 18px; background: rgb(16 25 22 / 70%); }
.modal { width: min(100%, 600px); position: relative; padding: clamp(28px, 6vw, 52px); border-radius: var(--radius); background: var(--paper); box-shadow: 0 24px 80px #0007; }
.modal h2 { margin: 0 44px 16px 0; font: 700 clamp(2rem, 6vw, 3rem)/1 var(--display); }
.modal__close { position: absolute; right: 14px; top: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--cream); color: var(--ink); font-size: 28px; cursor: pointer; }
.modal__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

@media (min-width: 760px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
  .page-hero-grid { grid-template-columns: 1.05fr .95fr; }
  .mode-banner .wrap { grid-template-columns: 1fr auto; }
}

@media (max-width: 860px) {
  .header-inner { align-items: flex-start; flex-direction: column; padding-block: 16px; }
  .site-nav { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 3px; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .story-intro { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .wrap, .narrow { width: min(100% - 24px, var(--max)); }
  .hero { padding-block: 42px; }
  .hero h1, .page-hero h1 { font-size: clamp(2.45rem, 13vw, 4rem); }
  .site-photo img { min-height: 230px; }
  .detail-row { grid-template-columns: 1fr; gap: 4px; }
  .reminder-form { grid-template-columns: 1fr; }
  .reminder-form label, .reminder-form [role='status'] { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  prototype-toolbar, .site-header, .site-footer, .screen-only, .skip-link, .unverified-chip, .site-photo { display: none !important; }
  body, .site-shell { background: #fff; color: #000; }
  .page-hero, .section { padding: 16px 0; }
  .page-hero h1 { font-size: 30pt; }
  .page-hero-grid { display: block; }
  .page-hero .lede, body { font-size: 12pt; line-height: 1.35; }
  .detail-list { margin: 10px 0; }
  .detail-row { padding: 8px 0; grid-template-columns: 120px 1fr; }
  .callout { padding: 14px 18px; border-left-width: 5px; background: #fff; border-top: 1px solid #777; border-bottom: 1px solid #777; }
  .phone-link { font-size: 22pt; }
  .meal-sheet > .narrow > .tagline { display: none; }
  a { color: #000; text-decoration: none; }
}

/* Shared refinement: original board-demo branch retains the earlier treatment. */
.brand-logo { width: 142px; height: auto; }
.header-inner { padding-block: 12px; }
.hero { padding-block: 44px 56px; }
.hero h1, .page-hero h1 { font-size: clamp(2.2rem, 4vw, 3.5rem); line-height: 1.08; }
.button { border-radius: 3px; }
.eyebrow { letter-spacing: .06em; }
.door { box-shadow: none; border-top: 1px solid var(--line); padding-inline: 0; }
.callout { background: var(--cream); border-left: 3px solid var(--green); }
.attendance-invitation { margin-block: 24px; padding-left: 20px; border-left: 3px solid var(--green); }
.attendance-invitation h2 { font: 750 1.15rem/1.4 var(--sans); margin: 0; }
.attendance-invitation p { font-size: 1rem; max-width: 48ch; margin: 8px 0 16px; }
.org-photo { background: transparent; overflow: visible; box-shadow: none; }
.org-photo img { height: auto; min-height: 0; aspect-ratio: 4 / 3; object-fit: contain; }
.org-photo figcaption { position: static; padding: 8px 0; background: transparent; color: var(--muted); font-size: .78rem; }
.attendance-note { font-weight: 450; font-size: .95rem; }
@media (max-width: 860px) {
 .brand-logo { width: 120px; }
 .header-inner { gap: 8px; }
 .hero h1, .page-hero h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
}

.org-photo img,.stock-photo img{border-radius:16px;border:1px solid #d9dfd7;box-shadow:0 8px 24px rgb(24 49 33 / 9%)}
.org-photo img{aspect-ratio:auto;}
.stock-photo{border-radius:16px;}

.tradition-photo{max-width:660px;margin:0 0 32px;}
