/* Fox of Bunker Hill — one stylesheet, no dependencies */

:root {
  --navy: #0A3161;
  --red: #B31942;
  --white: #FFFFFF;
  --parchment: #FBF7EF;
  --gray: #5B6472;
  --serif: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
}

.page {
  max-width: 780px;
  margin: 0 auto;
  padding: 24px 20px 64px;
}

/* Nav */
.masthead { text-align: center; padding-top: 8px; }
.masthead a.brand {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.stripe {
  height: 6px;
  background: linear-gradient(
    to bottom,
    var(--red) 0 2px,
    var(--white) 2px 4px,
    var(--navy) 4px 6px
  );
  margin: 12px 0 16px;
}
nav.primary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 20px;
  font-family: var(--sans);
  padding-bottom: 8px;
}
nav.primary a {
  color: var(--navy);
  text-decoration: none;
  padding: 10px 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
}
nav.primary a:hover,
nav.primary a[aria-current="page"] {
  border-bottom-color: var(--red);
}

/* Type */
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.25; }
h1 { font-size: 34px; margin: 24px 0 8px; }
h2 { font-size: 24px; margin: 32px 0 8px; color: var(--red); }
h3 { font-size: 20px; margin: 24px 0 6px; }
p, li { max-width: 62ch; }
a { color: var(--red); }
a:hover { text-decoration-thickness: 2px; }

.tagline { color: var(--gray); font-size: 17px; margin: 0 0 8px; max-width: 60ch; }
.willa-voice { font-family: var(--serif); font-size: 19px; line-height: 1.55; }

/* Cards + callouts */
.card {
  background: var(--parchment);
  border: 1px solid #ece3cf;
  border-radius: 6px;
  padding: 18px 20px;
  margin: 14px 0;
}
.card h3 { margin-top: 0; }
.card .meta, .about { color: var(--gray); font-size: 15px; font-style: italic; }

/* Book review row */
.book { margin: 20px 0; }
.book .title { font-family: var(--serif); font-size: 19px; }
.book .rating { color: var(--red); letter-spacing: 2px; font-size: 17px; }
.book .rating .empty { color: var(--gray); }
.book blockquote {
  margin: 6px 0;
  padding: 0 0 0 14px;
  border-left: 3px solid var(--red);
  font-family: var(--serif);
  color: var(--navy);
}
.book .links { font-size: 15px; margin-top: 4px; }
.book .links a { margin-right: 10px; }

/* Age tier headers */
.tier { margin-top: 28px; }
.tier > h3 { color: var(--red); border-bottom: 1px solid var(--parchment); padding-bottom: 4px; }

/* Home buttons */
.buttons { display: grid; gap: 12px; margin: 20px 0; }
.buttons a.button {
  display: block;
  background: var(--parchment);
  border: 1px solid #ece3cf;
  border-left: 4px solid var(--red);
  padding: 14px 16px;
  color: var(--navy);
  text-decoration: none;
  border-radius: 4px;
  min-height: 44px;
}
.buttons a.button:hover { border-left-color: var(--navy); }
.buttons a.button strong { display: block; font-family: var(--serif); font-size: 18px; margin-bottom: 2px; }
.buttons a.button span { color: var(--gray); font-size: 15px; }

/* Book Days table */
table.calendar { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 16px; }
table.calendar th, table.calendar td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--parchment); }
table.calendar th { color: var(--gray); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; }
table.calendar .live { color: var(--red); font-weight: 600; }

/* Footer */
footer.site {
  margin-top: 48px;
  font-size: 14px;
  color: var(--gray);
  text-align: center;
}
footer.site .authors { font-family: var(--serif); font-size: 16px; color: var(--navy); }
footer.site p { margin: 6px auto; max-width: 60ch; }

/* Disclosures */
.disclosure { font-size: 14px; color: var(--gray); font-style: italic; margin: 8px 0 16px; }

/* Print — clean one-pager for Society meetings and the fair */
@media print {
  body { font-size: 12pt; color: #000; background: #fff; }
  .page { max-width: none; padding: 0.5in; }
  nav.primary, .buttons, footer.site .stripe { display: none; }
  .stripe { background: #000; height: 2px; }
  h2 { color: #000; }
  .card, .book blockquote { background: transparent; border-color: #999; }
  a { color: #000; text-decoration: none; }
  a[href]:after { content: ""; } /* keep clean; librarian pages hand out to kids */
  .book .rating { color: #000; }
  .print-hide { display: none; }
}

/* Fox hero image — Meet the Fox page */
.hero-figure {
  margin: 24px 0 32px;
  padding: 0;
  text-align: center;
}
.hero-figure img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(10, 49, 97, 0.12);
}
.hero-figure figcaption {
  margin-top: 10px;
  font-size: 14px;
  font-style: italic;
  color: var(--gray);
}

/* Fox hero image — home page (compact, right-side on desktop) */
.home-hero {
  margin: 0 0 20px;
  padding: 0;
  text-align: center;
}
.home-hero img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(10, 49, 97, 0.12);
}
@media (min-width: 640px) {
  .home-hero {
    float: right;
    width: 42%;
    margin: 0 0 12px 24px;
  }
}

/* Print: keep hero small */
@media print {
  .hero-figure img, .home-hero img { max-width: 3in; box-shadow: none; }
}
