/* anzacivic.org — shared stylesheet
 * Design direction: H (Refined Heritage)
 * Spec: docs/superpowers/specs/2026-05-17-anzacivic-modernization-design.md
 */

/* ===== Design tokens ===== */
:root {
  --bg-page: #efd886;
  --bg-card: #fdfaf2;
  --bg-card-deep: #f6efdc;
  --ink: #2a221a;
  --ink-soft: #5c4a2a;
  --ink-mute: #8a7a55;
  --rule: #ede2c4;
  --rule-deep: #d4c290;
  --red: #8b1a1a;
  --red-deep: #6e1313;
  --gold: #c49c00;
  --gold-deep: #a78400;
  --cream-dark: #3a2e1a;
}

/* ===== Reset / base ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg-page);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  padding: 24px 16px 40px;
}

/* ===== Page container ===== */
.page {
  max-width: 920px;
  margin: 0 auto;
  background: var(--bg-card);
  box-shadow: 0 4px 20px rgba(58, 46, 26, 0.18);
  border-radius: 6px;
  overflow: hidden;
}

/* ===== Topbar (address · phone · email) ===== */
.topbar {
  background: var(--bg-card-deep);
  color: var(--ink-soft);
  font-size: 12.5px;
  padding: 8px 24px;
  text-align: center;
  border-bottom: 1px solid var(--rule);
}
.topbar a { color: var(--red); text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar .sep { color: var(--ink-mute); margin: 0 10px; }

/* ===== Masthead (logo + tagline) ===== */
header.masthead {
  padding: 24px 24px 18px;
  text-align: center;
  border-bottom: 1px solid var(--rule);
}
.logo {
  display: inline-block;
  width: 340px;
  max-width: 100%;
  height: auto;
}
.tagline {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  text-transform: uppercase;
  margin-top: 10px;
}

/* ===== Primary nav ===== */
nav.primary {
  background: var(--bg-card);
  border-bottom: 2px solid var(--gold);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
nav.primary a {
  color: var(--ink);
  text-decoration: none;
  padding: 13px 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
}
nav.primary a.active {
  color: var(--red);
  border-bottom-color: var(--red);
  font-weight: 600;
}
nav.primary a:hover { color: var(--red); }

/* ===== Hero (postcard + text) ===== */
.hero {
  background: var(--bg-card-deep);
  padding: 44px 32px 40px;
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 36px;
  align-items: center;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top left, rgba(196,156,0,0.08), transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(139,26,26,0.05), transparent 60%);
  pointer-events: none;
}
.postcard {
  background: #fff;
  padding: 12px 12px 14px;
  box-shadow:
    0 1px 0 rgba(0,0,0,0.05),
    0 4px 14px rgba(58,46,26,0.18),
    0 12px 30px rgba(58,46,26,0.08);
  border: 1px solid var(--rule);
  transform: rotate(-1deg);
  position: relative;
  z-index: 1;
}
.postcard img {
  display: block;
  width: 100%;
  max-width: 416px;
  height: auto;
  border: 1px solid #eee5cc;
}
.postcard .caption {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: 12.5px;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dotted var(--rule-deep);
}
.hero-text { position: relative; z-index: 1; }
.hero-label {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
}
.hero-text h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 14px;
  font-style: italic;
  color: var(--red);
}
.hero-text p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 22px;
  max-width: 360px;
}
.hero-cta {
  display: inline-block;
  background: var(--red);
  color: #fdf6e8;
  padding: 11px 22px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 3px;
  transition: background 0.15s;
}
.hero-cta:hover { background: var(--red-deep); }

/* ===== Main content & sections ===== */
main { padding: 0; }
.section { padding: 40px 32px; }
.section + .section { border-top: 1px solid var(--rule); }
.section-eyebrow {
  display: block;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 8px;
}
.section-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 28px;
  font-weight: 500;
  font-style: italic;
  color: var(--red);
  text-align: center;
  margin: 0 0 20px;
}
.section-body {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* ===== Then & now (two-photo grid) ===== */
.then-now { background: var(--bg-card-deep); padding: 40px 32px; }
.then-now-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 28px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.frame {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  padding: 10px;
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(58, 46, 26, 0.08);
}
.frame img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.frame .caption {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: 13.5px;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 8px;
  padding: 4px 0;
}
.frame .caption .year {
  color: var(--gold-deep);
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.06em;
  font-size: 11px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 2px;
}

/* ===== Three-up feature cards ===== */
.three-up {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.feature {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 22px 18px;
  text-align: center;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.feature:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(196, 156, 0, 0.15);
}
.feature h3 {
  font-family: 'Lora', Georgia, serif;
  font-size: 20px;
  color: var(--red);
  margin: 0 0 8px;
  font-weight: 600;
}
.feature p {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0 0 14px;
}
.feature a {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  text-decoration: none;
  font-weight: 600;
}
.feature a:hover { color: var(--red-deep); text-decoration: underline; }

/* ===== Events list ===== */
.events { background: var(--bg-card-deep); padding: 40px 32px; }
.events-list { max-width: 720px; margin: 24px auto 0; }
.event {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule-deep);
  align-items: center;
}
.event:last-child { border-bottom: none; }
.event-date {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 6px 0;
}
.event-date .mon {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--gold-deep);
  text-transform: uppercase;
  font-weight: 600;
}
.event-date .day {
  font-family: 'Lora', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--red);
  line-height: 1;
}
.event-title { font-size: 15px; font-weight: 500; color: var(--ink); }
.event-meta { font-size: 12.5px; color: var(--ink-mute); margin-top: 2px; }
.event a {
  font-size: 12px;
  color: var(--red);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ===== CTA row ===== */
.cta-row {
  background: var(--cream-dark);
  color: #f6efdc;
  padding: 32px;
  text-align: center;
}
.cta-row h2 {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: 24px;
  margin: 0 0 8px;
  color: #f6efdc;
}
.cta-row p { margin: 0 0 18px; font-size: 14px; opacity: 0.9; }
.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--cream-dark);
  padding: 11px 24px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 3px;
  transition: background 0.15s;
}
.btn:hover { background: #e0b400; }

/* ===== Footer ===== */
footer {
  background: var(--cream-dark);
  color: #d0c8b0;
  padding: 24px 32px;
  text-align: center;
  font-size: 12px;
  line-height: 1.7;
  border-top: 3px solid var(--gold);
}
footer .org {
  color: #f6efdc;
  font-weight: 600;
  font-family: 'Lora', serif;
  font-size: 14px;
}
footer a { color: var(--gold); text-decoration: none; }
footer a:hover { color: #e0b400; text-decoration: underline; }
footer .fine { margin-top: 12px; font-size: 10.5px; color: #a08a55; }

/* ===== Sub-page hero (used on all non-home pages) ===== */
.page-hero {
  background: var(--bg-card-deep);
  padding: 36px 32px 32px;
  text-align: center;
  border-bottom: 1px solid var(--rule);
}
.page-hero .hero-label {
  margin-bottom: 10px;
}
.page-hero h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: 34px;
  font-weight: 600;
  font-style: italic;
  color: var(--red);
  margin: 0;
  line-height: 1.15;
}
.page-hero .lede {
  font-size: 15.5px;
  color: var(--ink-soft);
  margin: 12px auto 0;
  max-width: 580px;
  line-height: 1.6;
}

/* ===== Prose (long-form content) ===== */
.prose {
  max-width: 680px;
  margin: 0 auto;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink);
}
.prose p { margin: 0 0 16px; }
.prose p + p { margin-top: 0; }
.prose h2 {
  font-family: 'Lora', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--red);
  margin: 32px 0 12px;
  font-style: italic;
}
.prose h3 {
  font-family: 'Lora', Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--red-deep);
  margin: 24px 0 10px;
}
.prose a {
  color: var(--red);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 2px;
}
.prose a:hover { color: var(--red-deep); text-decoration-color: var(--red); }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 16px; }
.prose li { margin-bottom: 4px; }
.prose blockquote {
  margin: 18px 0;
  padding: 12px 18px;
  border-left: 3px solid var(--gold);
  background: var(--bg-card-deep);
  color: var(--ink-soft);
  font-style: italic;
}

/* ===== Two-column layout (article + sidebar) ===== */
.with-sidebar {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 40px;
  max-width: 920px;
  margin: 0 auto;
  align-items: start;
}
.with-sidebar .prose { max-width: none; }
.sidebar {
  background: var(--bg-card-deep);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 18px 18px;
  font-size: 13.5px;
}
.sidebar h3 {
  font-family: 'Lora', Georgia, serif;
  font-size: 16px;
  color: var(--red);
  margin: 0 0 10px;
  font-weight: 600;
  font-style: italic;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rule-deep);
}
.sidebar .member {
  margin-bottom: 10px;
}
.sidebar .member .name {
  display: block;
  font-weight: 600;
  color: var(--ink);
  font-size: 14px;
}
.sidebar .member .role {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 1px;
}

/* ===== Rate tables ===== */
.rate-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 18px;
  font-size: 14px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 3px;
  overflow: hidden;
}
.rate-table th, .rate-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
}
.rate-table thead th {
  background: var(--bg-card-deep);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.rate-table tbody tr:last-child td { border-bottom: none; }
.rate-table tbody td:first-child { font-weight: 500; color: var(--ink); }
.rate-table .price { font-family: 'Lora', Georgia, serif; color: var(--red); font-weight: 600; font-size: 15px; }

/* ===== Callout / highlight box ===== */
.callout {
  background: linear-gradient(135deg, #fff8e0, #f6efdc);
  border: 1px solid var(--rule-deep);
  border-left: 4px solid var(--gold);
  border-radius: 3px;
  padding: 16px 20px;
  margin: 20px 0;
}
.callout strong { color: var(--red); }
.callout .callout-title {
  display: block;
  font-family: 'Lora', Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  font-style: italic;
  color: var(--red);
  margin-bottom: 6px;
}

/* ===== Document download list (preview + download two-action) ===== */
.doc-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.doc-list li {
  display: flex;
  align-items: stretch;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 3px;
  overflow: hidden;
  transition: border-color 0.15s;
}
.doc-list li:hover { border-color: var(--gold); }
.doc-list .doc-link {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 14px;
  flex: 1 1 auto;
  text-decoration: none;
  color: var(--ink);
  font-size: 14.5px;
  transition: background 0.15s;
}
.doc-list .doc-link:hover { background: #fffaeb; }
.doc-list .doc-icon {
  flex: 0 0 auto;
  font-family: 'Lora', Georgia, serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--red);
  background: #fdf6e8;
  border: 1px solid var(--rule-deep);
  padding: 2px 8px;
  border-radius: 2px;
  text-transform: uppercase;
}
.doc-list .doc-name { flex: 1 1 auto; }
.doc-list .doc-meta {
  color: var(--ink-mute);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.doc-list .doc-download {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 16px;
  border-left: 1px solid var(--rule);
  background: var(--bg-card-deep);
  text-decoration: none;
  color: var(--gold-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.doc-list .doc-download:hover {
  background: var(--gold);
  color: var(--cream-dark);
}

/* ===== Google Calendar embed wrapper ===== */
.calendar-embed {
  max-width: 820px;
  margin: 24px auto 0;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 8px;
  box-shadow: 0 2px 8px rgba(58, 46, 26, 0.08);
}
.calendar-embed iframe {
  width: 100%;
  height: 600px;
  border: 0;
  display: block;
}

/* ===== Gallery grid ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.gallery-item {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 3px;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}
.gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(58, 46, 26, 0.15);
}
.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.gallery-item figcaption {
  padding: 10px 12px;
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: 13px;
  color: var(--ink-soft);
}
.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: var(--ink-mute);
  background: var(--bg-card);
  border: 1px dashed var(--rule-deep);
  border-radius: 4px;
}

/* ===== PayPal donate form wrapper ===== */
.paypal-form {
  display: flex;
  justify-content: center;
  margin: 24px 0;
}
.paypal-form input[type="image"] {
  cursor: pointer;
  transition: transform 0.1s;
}
.paypal-form input[type="image"]:hover { transform: translateY(-1px); }

/* ===== Inline buttons / links list ===== */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 18px 0;
}

/* ===== Error page ===== */
.error-block {
  text-align: center;
  padding: 64px 32px 80px;
}
.error-block .big-404 {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: 96px;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.error-block h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 12px;
}
.error-block p { color: var(--ink-soft); margin: 0 0 24px; }

/* ===== Mobile (≤720px) ===== */
@media (max-width: 720px) {
  body { padding: 8px; }
  .topbar { font-size: 11.5px; padding: 8px 16px; }
  .topbar .sep { display: block; height: 0; visibility: hidden; }
  header.masthead { padding: 20px 16px 14px; }
  .logo { width: 260px; }
  nav.primary a { padding: 10px 11px; font-size: 11.5px; }
  .hero {
    grid-template-columns: 1fr;
    padding: 32px 20px;
    gap: 24px;
  }
  .postcard { transform: rotate(0); margin: 0 auto; max-width: 360px; }
  .hero-text { text-align: center; }
  .hero-text h1 { font-size: 26px; }
  .hero-text p { margin-left: auto; margin-right: auto; }
  .section, .then-now, .events { padding: 28px 20px; }
  .three-up { grid-template-columns: 1fr; }
  .then-now-grid { grid-template-columns: 1fr; }
  .frame img { height: 220px; }
  .event { grid-template-columns: 64px 1fr; row-gap: 4px; }
  .event a { grid-column: 2; justify-self: start; }
  .page-hero { padding: 28px 20px 24px; }
  .page-hero h1 { font-size: 26px; }
  .with-sidebar { grid-template-columns: 1fr; gap: 24px; }
  .calendar-embed iframe { height: 500px; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .gallery-item img { height: 140px; }
  .error-block { padding: 40px 20px 60px; }
  .error-block .big-404 { font-size: 72px; }
  .rate-table th, .rate-table td { padding: 8px; font-size: 13px; }
  .doc-list li { flex-wrap: wrap; }
  .doc-list .doc-link { width: 100%; }
  .doc-list .doc-download {
    border-left: none;
    border-top: 1px solid var(--rule);
    width: 100%;
    padding: 10px 14px;
    justify-content: center;
  }
}
