/* ============================================================
   Athens Parent — design system
   Warm print-magazine DNA, built for speed and readability.
   ============================================================ */

:root {
  --paper: #F9F7F1;
  --paper-deep: #EEF0E7;
  --ink: #243536;
  --ink-soft: #4E6263;
  --ink-faint: #7C8D8E;
  --red: #0F6E7E;        /* masthead teal (primary) */
  --red-deep: #0A525F;
  --green: #2F8A57;      /* kid-crayon green */
  --green-soft: #E2F1E5;
  --gold: #ED7D2B;       /* crayon-orange accent */
  --gold-soft: #FBE7D2;
  --sky: #D8E7F4;
  --line: #DDDCD0;
  --card: #FFFFFF;
  --shadow: 0 1px 2px rgba(30,45,46,.06), 0 8px 24px rgba(30,45,46,.07);
  --radius: 14px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--red-deep); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--green); color: #fff; text-align: center;
  padding: 8px 16px; font-size: 14.5px; font-weight: 600;
}
.announce a { color: #fff; }

/* ---------- Masthead ---------- */
header.masthead { background: var(--paper); border-bottom: 3px double var(--line); }
.mast-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 18px 0 10px;
}
.brand { text-decoration: none; color: var(--ink); display: flex; align-items: baseline; gap: 10px; }
.brand .logotype {
  font-family: var(--font-display);
  font-weight: 900; font-style: normal;
  font-size: clamp(28px, 5vw, 44px);
  letter-spacing: -0.5px; line-height: 1;
}
.brand .logotype .accent { color: var(--red); }
.brand .est {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 700; white-space: nowrap;
}
.tagline {
  font-size: 13.5px; color: var(--ink-soft); font-style: italic;
  font-family: var(--font-display); margin: 0 0 4px;
}

nav.mainnav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; padding: 6px 0 14px; }
nav.mainnav a {
  text-decoration: none; color: var(--ink); font-weight: 800;
  font-size: 14.5px; letter-spacing: .3px; text-transform: uppercase;
  padding: 7px 13px; border-radius: 999px;
}
nav.mainnav a:hover { background: var(--paper-deep); color: var(--red-deep); }
nav.mainnav a.active { background: var(--ink); color: var(--paper); }
nav.mainnav a.cta { background: var(--red); color: #fff; margin-left: auto; }
nav.mainnav a.cta:hover { background: var(--red-deep); color: #fff; }
nav.mainnav a.searchlink { border: 1.5px solid var(--line); }

.navtoggle { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 44px 0 36px; }
.hero .kicker {
  color: var(--red); font-weight: 800; letter-spacing: 2.5px;
  text-transform: uppercase; font-size: 13px; margin: 0 0 10px;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(34px, 5.6vw, 58px); line-height: 1.08;
  margin: 0 0 16px; letter-spacing: -1px;
}
.hero p.lede { font-size: 20px; color: var(--ink-soft); max-width: 640px; margin: 0 0 22px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-block; text-decoration: none; font-weight: 800;
  padding: 12px 22px; border-radius: 999px; font-size: 15.5px;
  border: 2px solid transparent;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-deep); color: #fff; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--paper); }
.btn-ghost { color: var(--red); border-color: var(--line); background: var(--card); }

/* ---------- Sections ---------- */
section.band { padding: 40px 0; }
section.band.deep { background: var(--paper-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.band.green { background: var(--green-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head h2 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(24px, 3.4vw, 34px); margin: 0; letter-spacing: -.5px;
}
.section-head h2 .flag {
  display: inline-block; background: var(--gold); color: var(--ink);
  font-family: var(--font-body); font-size: 12px; font-weight: 800;
  letter-spacing: 1.5px; text-transform: uppercase; border-radius: 4px;
  padding: 3px 8px; vertical-align: middle; margin-right: 10px; transform: translateY(-3px);
}
.section-head .more { font-weight: 800; font-size: 15px; white-space: nowrap; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 18px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 8px; position: relative;
}
.card h3 { font-family: var(--font-display); font-weight: 800; font-size: 20px; margin: 0; line-height: 1.25; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--red); }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.card .meta { font-size: 13.5px; color: var(--ink-faint); font-weight: 700; }
.card .chips { position: relative; z-index: 1; }

/* Event card with big date block */
.event-card { flex-direction: row; gap: 16px; align-items: flex-start; }
.datebox {
  flex: 0 0 auto; width: 64px; text-align: center;
  background: var(--paper-deep); border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 4px 10px; font-family: var(--font-display);
}
.datebox .mo { display: block; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; font-weight: 800; color: var(--red); font-family: var(--font-body); }
.datebox .da { display: block; font-size: 30px; font-weight: 900; line-height: 1.05; }
.datebox .dw { display: block; font-size: 11.5px; color: var(--ink-faint); font-weight: 700; font-family: var(--font-body); }
.event-card .body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .5px;
  padding: 3px 10px; border-radius: 999px; background: var(--paper-deep);
  color: var(--ink-soft); border: 1px solid var(--line); text-transform: uppercase;
}
.chip.free { background: var(--green-soft); color: var(--green); border-color: #C5DCCB; }
.chip.featured { background: var(--gold-soft); color: #A85417; border-color: #F2CFA9; }
.chip.cat { background: var(--sky); color: #2F5F86; border-color: #C3D7EA; }

/* Emoji tile for venues/guides */
.tile-emoji {
  font-size: 34px; line-height: 1; width: 58px; height: 58px;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper-deep); border-radius: 12px; border: 1px solid var(--line);
  flex: 0 0 auto;
}

/* ---------- Calendar grid ---------- */
.cal-month { margin-bottom: 36px; }
.cal-month h3 { font-family: var(--font-display); font-size: 26px; font-weight: 900; margin: 0 0 12px; }
table.cal { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); table-layout: fixed; }
table.cal th { background: var(--ink); color: var(--paper); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; padding: 8px 4px; font-weight: 800; }
table.cal td { border: 1px solid var(--line); vertical-align: top; padding: 6px; height: 92px; font-size: 13px; }
table.cal td .dnum { font-weight: 800; color: var(--ink-faint); font-size: 13px; display: block; margin-bottom: 3px; font-family: var(--font-display); }
table.cal td.today { background: var(--gold-soft); }
table.cal td.today .dnum { color: var(--red); }
table.cal td.dim { background: var(--paper-deep); }
table.cal td a { display: block; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 12.5px; line-height: 1.3; margin-bottom: 4px; padding: 2px 5px; background: var(--green-soft); border-radius: 5px; overflow: hidden; }
table.cal td a:hover { background: var(--green); color: #fff; }
.cal-scroll { overflow-x: auto; }

/* ---------- Detail pages ---------- */
.detail-hero { padding: 40px 0 8px; }
.breadcrumbs { font-size: 13.5px; color: var(--ink-faint); margin: 18px 0 0; }
.breadcrumbs a { color: var(--ink-faint); }
.detail-hero h1 { font-family: var(--font-display); font-weight: 900; font-size: clamp(30px, 4.6vw, 46px); line-height: 1.12; margin: 10px 0 12px; letter-spacing: -.8px; }
.factbox {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 6px 22px; margin: 20px 0;
}
.factbox dl { display: grid; grid-template-columns: 130px 1fr; gap: 0 18px; margin: 0; }
.factbox dt { font-weight: 800; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--red); padding: 12px 0 2px; }
.factbox dd { margin: 0; padding: 12px 0 12px; border-bottom: 1px dashed var(--line); grid-column: 2; }
.factbox dt { border-bottom: 1px dashed var(--line); }
.factbox dl > :nth-last-child(-n+2) { border-bottom: none; }

.prose { max-width: 720px; }
.prose h2 { font-family: var(--font-display); font-weight: 900; font-size: 28px; margin: 38px 0 12px; letter-spacing: -.4px; }
.prose h3 { font-family: var(--font-display); font-weight: 800; font-size: 21px; margin: 28px 0 8px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 16px; }
.prose li { margin-bottom: 6px; }
.prose blockquote {
  margin: 22px 0; padding: 14px 22px; border-left: 4px solid var(--gold);
  background: var(--card); border-radius: 0 10px 10px 0; font-style: italic; color: var(--ink-soft);
}
.prose hr { border: none; border-top: 3px double var(--line); margin: 32px 0; }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 4px 20px; margin-bottom: 10px;
}
.faq summary { font-weight: 800; font-size: 16.5px; cursor: pointer; padding: 12px 0; font-family: var(--font-display); }
.faq details p { color: var(--ink-soft); margin: 0 0 14px; }

/* ---------- Sponsors ---------- */
.sponsor-band { text-align: center; }
.sponsor-label { font-size: 11.5px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--ink-faint); font-weight: 800; margin-bottom: 14px; }
.sponsor-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.sponsor-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 22px; min-width: 200px; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow); font-weight: 800;
}
.sponsor-card img { max-height: 56px; width: auto; }
.sponsor-card.house { border-style: dashed; color: var(--ink-faint); font-weight: 700; }
.sponsor-card.house:hover { color: var(--red); border-color: var(--red); }

/* ---------- Filter chips (directory) ---------- */
.filterbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.filterbar button {
  font: inherit; font-size: 13.5px; font-weight: 800; letter-spacing: .4px;
  padding: 7px 15px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--card); color: var(--ink-soft); cursor: pointer;
}
.filterbar button.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Search ---------- */
.searchbox { display: flex; gap: 10px; margin: 24px 0; }
.searchbox input {
  flex: 1; font: inherit; font-size: 18px; padding: 13px 18px;
  border: 2px solid var(--ink); border-radius: 12px; background: var(--card);
}
.searchbox button { font: inherit; font-weight: 800; padding: 12px 24px; border-radius: 12px; border: none; background: var(--red); color: #fff; cursor: pointer; }

/* ---------- Newsletter ---------- */
.newsband { text-align: center; padding: 48px 0; }
.newsband h2 { font-family: var(--font-display); font-weight: 900; font-size: clamp(24px, 3.4vw, 34px); margin: 0 0 8px; }
.newsband p { color: var(--ink-soft); margin: 0 auto 18px; max-width: 520px; }

/* ---------- Footer ---------- */
footer.colophon { background: var(--ink); color: #C3CFCB; margin-top: 56px; }
footer.colophon .wrap { padding: 44px 20px 30px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.foot-grid h4 { color: var(--paper); font-family: var(--font-display); font-size: 17px; margin: 0 0 10px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 7px; font-size: 14.5px; }
.foot-grid a { color: #C3CFCB; text-decoration: none; }
.foot-grid a:hover { color: var(--gold); }
.foot-logo { font-family: var(--font-display); font-weight: 900; font-size: 26px; color: var(--paper); }
.foot-logo .accent { color: var(--gold); }
.foot-tag { font-size: 14px; font-style: italic; margin: 6px 0 0; }
.foot-legal { border-top: 1px solid #39504E; margin-top: 30px; padding-top: 18px; font-size: 13px; color: #8FA09C; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Utility ---------- */
.center { text-align: center; }
.muted { color: var(--ink-faint); }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.notice {
  background: var(--gold-soft); border: 1px solid #F2CFA9; border-radius: 12px;
  padding: 14px 20px; font-size: 15px; margin: 18px 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .mast-top { flex-direction: column; align-items: flex-start; gap: 6px; }
  .navtoggle {
    display: inline-block; font: inherit; font-weight: 800; font-size: 14px;
    letter-spacing: 1px; text-transform: uppercase; background: var(--ink); color: var(--paper);
    border: none; border-radius: 999px; padding: 8px 18px; cursor: pointer; margin-bottom: 8px;
  }
  nav.mainnav { display: none; flex-direction: column; align-items: stretch; }
  nav.mainnav.open { display: flex; }
  nav.mainnav a { padding: 12px 14px; border-radius: 10px; }
  nav.mainnav a.cta { margin-left: 0; text-align: center; }
  .factbox dl { grid-template-columns: 1fr; }
  .factbox dt { padding-bottom: 0; border-bottom: none; }
  .factbox dd { grid-column: 1; padding-top: 2px; }
  .event-card { flex-direction: row; }
  table.cal td { height: 72px; font-size: 11.5px; padding: 4px; }
  table.cal td a { font-size: 10.5px; padding: 1px 3px; }
}

/* ---------- Print ---------- */
@media print {
  header.masthead nav, .hero-actions, footer.colophon, .announce, .sponsor-band { display: none; }
  body { background: #fff; }
}
