/* Meridian site-wide styles. One palette, drawn from the flag and the golden-hour photographs. */
:root {
  /* Flag */
  --navy: #1c2834;      /* flag top band */
  --flag-cream: #eceae4;/* flag middle band */
  --forest: #243d30;    /* flag bottom band */
  /* Golden hour */
  --gold: #e0a24a;      /* accents & buttons (navy text on it: 6.7:1) */
  --terracotta: #a94f36;/* awning, small highlights (5.1:1 on paper) */
  --sage: #cfdccd;      /* text on forest (8.3:1) */
  /* Paper & ink */
  --cream: #f4ede0;     /* page background */
  --paper: #fbf7ef;     /* cards */
  --line: #e4d9c5;
  --ink: #22262b;       /* body text (13:1) */
  --muted: #5a564d;     /* secondary text (6.3:1) */
  --leaf: #2f5a3f;      /* links & kickers (6.8:1) */
  --on-dark: #f4ede0;   /* text on navy/forest */
  --on-dark-soft: #b8c2cc;

  --serif: "Newsreader","Iowan Old Style",Palatino,"Palatino Linotype","Book Antiqua",Georgia,serif;
  --sans: "Outfit","Avenir Next","Segoe UI",system-ui,-apple-system,sans-serif;
  --radius: 1.25rem;
  --radius-sm: .85rem;
  --shadow: 0 .5rem 1.5rem rgba(28,40,52,.10), 0 .1rem .3rem rgba(28,40,52,.06);
  --shadow-lift: 0 1.2rem 2.6rem rgba(28,40,52,.18);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1.05rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--leaf); text-underline-offset: .18em; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: -.02em; line-height: 1.12; color: var(--navy); margin: 0; }
p { margin: 0; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 46rem; }
.kicker { display: inline-block; letter-spacing: .16em; text-transform: uppercase; font-size: .76rem; font-weight: 600; color: var(--leaf); }
.lede { font-size: clamp(1.08rem, 2vw, 1.25rem); }
.muted { color: var(--muted); }

/* ---------- Meridian Time banner (both pages) ---------- */
.banner { position: sticky; top: 0; z-index: 50; background: var(--navy); color: var(--on-dark); box-shadow: 0 .25rem 1rem rgba(0,0,0,.18); }
.banner::after { content: ""; display: block; height: 4px; background: linear-gradient(90deg, var(--gold) 0 33.33%, var(--flag-cream) 33.33% 66.66%, #3d6b4f 66.66%); }
.banner .wrap { display: flex; align-items: center; gap: 1rem; padding-top: .55rem; padding-bottom: .55rem; }
.banner .home { display: flex; align-items: center; gap: .6rem; color: var(--on-dark); text-decoration: none; flex: none; }
.banner .mini-flag { width: 2.3rem; height: auto; border-radius: .25rem; box-shadow: 0 0 0 1px rgba(255,255,255,.18); transform-origin: left center; animation: wave 4.5s ease-in-out infinite; }
.clock { flex: 1; min-width: 0; display: flex; align-items: baseline; flex-wrap: wrap; column-gap: .55rem; row-gap: 0; }
.clock .say { font-size: .95rem; color: var(--on-dark-soft); }
.clock .mt { font-family: var(--serif); font-size: clamp(1.45rem, 4vw, 2.1rem); font-weight: 600; font-variant-numeric: tabular-nums; color: #fff; white-space: nowrap; line-height: 1.15; }
.clock .mt .sec { color: var(--gold); }
.clock .tag { font-size: .92rem; color: var(--gold); margin-left: .35rem; }
.ref { text-align: right; font-size: .8rem; line-height: 1.3; color: var(--on-dark-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ref b { font-weight: 600; color: #fff; }
.banner nav { display: flex; gap: .15rem; }
.banner nav a { color: var(--on-dark); text-decoration: none; font-size: .85rem; padding: .35rem .65rem; border-radius: 99px; }
.banner nav a:hover, .banner nav a[aria-current="page"] { background: rgba(255,255,255,.12); }
@media (max-width: 64rem) { .banner nav { display: none; } }
@media (max-width: 40rem) {
  .banner .wrap { gap: .65rem; padding-top: .45rem; padding-bottom: .45rem; }
  .banner .mini-flag { width: 1.8rem; }
  .clock .say { font-size: .8rem; }
  .clock .tag { font-size: .76rem; width: 100%; margin-left: 0; }
  .ref { font-size: .7rem; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.3rem; border-radius: 99px; text-decoration: none; font-weight: 600; font-size: 1rem; line-height: 1.2; border: 0; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--gold); color: var(--navy); box-shadow: 0 .5rem 1.4rem rgba(224,162,74,.35); }
.btn.dark { background: var(--navy); color: var(--on-dark); }
.btn.ghost { background: rgba(20,28,36,.35); color: #fff; border: 1px solid rgba(255,255,255,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.cta { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Photo hero (both pages) ---------- */
.hero { position: relative; min-height: min(86vh, 46rem); display: grid; align-items: end; color: #fff; overflow: hidden; background: var(--navy); }
.hero picture, .hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero img.bg { object-fit: cover; object-position: 50% 45%; animation: drift 26s ease-in-out infinite alternate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background:
  linear-gradient(90deg, rgba(20,28,36,.62) 0%, rgba(20,28,36,.25) 45%, rgba(20,28,36,0) 70%),
  linear-gradient(180deg, rgba(20,28,36,0) 40%, rgba(20,28,36,.55) 75%, rgba(20,28,36,.85)); }
@media (max-width: 40rem) { .hero img.bg { object-position: 14% 45%; } }
.hero .wrap { position: relative; z-index: 2; padding-top: 12rem; padding-bottom: 3rem; }
.hero .kicker { background: rgba(251,247,239,.92); color: var(--navy); padding: .32rem .8rem; border-radius: 99px; }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 7vw, 4.6rem); margin: .8rem 0 .7rem; max-width: 17ch; text-shadow: 0 .15rem 1.2rem rgba(0,0,0,.35); }
.hero .motto { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 2.6vw, 1.55rem); color: var(--gold); margin-bottom: .9rem; }
.hero .lede { max-width: 40rem; color: #fbf3e3; margin-bottom: 1.5rem; text-shadow: 0 .1rem .6rem rgba(0,0,0,.3); }
.badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.badge { background: rgba(251,247,239,.94); color: var(--navy); border-radius: 99px; padding: .35rem .8rem; font-size: .88rem; font-weight: 600; box-shadow: var(--shadow); animation: bob 5s ease-in-out infinite; }
.badge:nth-child(2) { animation-delay: -1.25s; } .badge:nth-child(3) { animation-delay: -2.5s; } .badge:nth-child(4) { animation-delay: -3.75s; }

/* ---------- Sections & cards ---------- */
section.block { padding: 4.5rem 0 1rem; }
.head { max-width: 46rem; margin-bottom: 2rem; }
.head h2 { font-size: clamp(2rem, 4.8vw, 3rem); margin: .4rem 0 .65rem; }
.head p { color: var(--muted); font-size: 1.08rem; }
.card { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.card figure { margin: 0; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #e8dcc6; }
.card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.card:hover figure img { transform: scale(1.05); }
.card .body { padding: 1.2rem 1.15rem 1.3rem; display: grid; gap: .4rem; align-content: start; }
.card h3 { font-size: 1.4rem; }
.card p { color: var(--muted); font-size: .98rem; }
.pill { display: inline-block; background: rgba(28,40,52,.85); color: #fff; font-size: .74rem; font-weight: 600; padding: .25rem .6rem; border-radius: 99px; }
.photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.photo img { width: 100%; height: auto; }
.tilt-r { transform: rotate(1.2deg); } .tilt-l { transform: rotate(-1.2deg); }

/* Dark band (forest) */
.band { background: var(--forest); color: var(--on-dark); padding: 4.5rem 0; margin-top: 4.5rem; }
.band h2, .band h3 { color: #fff; }
.band .kicker { color: var(--gold); }
.band .head p, .band p { color: var(--sage); }

/* Honest note */
.honest { background: var(--navy); color: var(--on-dark); border-radius: var(--radius); padding: 1.4rem; display: flex; gap: 1.1rem; align-items: center; }
.honest img { width: 4.5rem; border-radius: .3rem; flex: none; box-shadow: 0 0 0 2px var(--flag-cream); }
.honest p { color: var(--on-dark-soft); }
.honest strong { color: #fff; }
@media (max-width: 30rem) { .honest { flex-direction: column; align-items: flex-start; } }

/* Anthem */
.anthem { text-align: center; padding: 4.5rem 0 1rem; }
.anthem pre { font: italic 600 clamp(1.25rem, 3.2vw, 1.75rem)/1.55 var(--serif); color: var(--navy); margin: .9rem 0 0; white-space: pre-wrap; }

/* Footer (text is fixed by the package) */
footer.site { margin-top: 4rem; background: var(--navy); color: var(--on-dark-soft); font-size: .88rem; }
footer.site::before { content: ""; display: block; height: 4px; background: linear-gradient(90deg, var(--gold) 0 33.33%, var(--flag-cream) 33.33% 66.66%, #3d6b4f 66.66%); }
footer.site .wrap { padding-top: 1.6rem; padding-bottom: 2.2rem; display: grid; gap: .4rem; }
footer.site p:first-child { color: #fff; }
footer.site a { color: var(--gold); }
footer.site .links { margin-top: .6rem; display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(1.2rem); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@keyframes wave { 0%,100% { transform: skewY(0) } 50% { transform: skewY(-4deg) scaleX(.97) } }
@keyframes drift { from { transform: scale(1.04) } to { transform: scale(1.11) translate(-1.2%, -.8%) } }
@keyframes bob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-5px) } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(224,162,74,.7) } 70% { box-shadow: 0 0 0 .6rem rgba(224,162,74,0) } 100% { box-shadow: 0 0 0 0 rgba(224,162,74,0) } }
@keyframes tick { from { opacity: .35 } to { opacity: 1 } }
.sec.t { animation: tick .35s ease-out; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
