@font-face {
  font-family: Figtree;
  src: url("../fonts/figtree-latin-ext.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Figtree;
  src: url("../fonts/figtree-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #1b2d42;
  --ink-soft: #4d6174;
  --header: #1a66d1;
  --header-2: #134fa8;
  --accent: #1a66d1;
  --holiday: #1a66d1;
  --vacation: #e7f1fb;
  --vacation-ink: #1a4f9c;
  --special: #b6792a;
  --today: #d45238;
  --paper: #f4f7fb;
  --card: #ffffff;
  --line: #e3eaf2;
  --muted: #6a7d8f;
  --radius: 14px;
  --max: 1080px;
  --font: "Figtree", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
button, input, select { font: inherit; }
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
}
.skip:focus {
  left: 8px;
  z-index: 80;
  background: #fff;
  padding: 8px 12px;
  border-radius: 8px;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  max-width: var(--max);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header);
  color: #fff;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}
.nav {
  display: flex;
  gap: 2px;
  align-items: center;
}
.nav a {
  color: #e8f1fc;
  text-decoration: none;
  padding: 7px 11px;
  border-radius: 8px;
  font-size: .92rem;
  font-weight: 500;
}
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255,255,255,.12); color: #fff; }
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  border-radius: 8px;
  padding: 7px 10px;
}

.trustbar {
  border-bottom: 1px solid var(--line);
  font-size: .88rem;
  color: var(--ink-soft);
  background: #fff;
}
.trustbar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  align-items: center;
  min-height: 38px;
}
.trustbar strong { color: var(--ink); font-weight: 600; }

.hero {
  padding: 40px 0 8px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 40px;
  align-items: center;
}
.eyebrow {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .72rem;
  margin: 0 0 10px;
}
.hero h1 {
  font-weight: 650;
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
  line-height: 1.18;
  margin: 0 0 12px;
  letter-spacing: -0.035em;
}
.lede { font-size: 1.05rem; color: var(--ink-soft); margin: 0; max-width: 36rem; }
.hero-art img { width: 100%; height: auto; }

.calendar-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 22px 16px;
  margin: 20px 0 28px;
  min-width: 0;
  overflow: hidden;
}
.year-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 16px;
}
.year-head h1,
.year-head h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.03em;
}
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn:disabled { opacity: .35; cursor: not-allowed; }

.toolbar,
.filters,
.region-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.toolbar {
  justify-content: space-between;
  margin-bottom: 12px;
}
.region-row { margin-top: 8px; }
.btn, .chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .9rem;
  font-weight: 500;
}
.btn:hover, .chip:hover { border-color: var(--accent); }
.btn.primary { background: var(--header); color: #fff; border-color: var(--header); }
.chip[aria-pressed="true"] {
  background: var(--header);
  color: #fff;
  border-color: var(--header);
}
.chip.soft[aria-pressed="true"] {
  background: var(--vacation);
  color: var(--vacation-ink);
  border-color: #c5daf5;
}
.view-toggle { display: flex; gap: 4px; }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: .82rem;
  margin: 12px 0 14px;
}
.swatch {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  vertical-align: 0;
}
.swatch.holiday { background: var(--holiday); }
.swatch.vacation { background: var(--vacation); border: 1px solid #b5cfee; }
.swatch.special { background: var(--special); }
.swatch.today { background: var(--today); }

.year-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 24px;
  min-width: 0;
}
.month { min-width: 0; }
.month h3 {
  margin: 0 0 8px;
  font-size: .92rem;
  text-transform: lowercase;
  font-weight: 650;
}
.month-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: .78rem;
}
.month-table th {
  color: var(--muted);
  font-weight: 500;
  padding: 0 0 6px;
  text-align: center;
}
.month-table td {
  text-align: center;
  padding: 1px 0;
  color: var(--ink);
}
.weeknum {
  color: var(--muted);
  font-size: .68rem;
  width: 16px;
}
.day {
  width: 26px;
  height: 26px;
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.day.out { color: #c5d0dc; cursor: default; }
.day.weekend:not(.out) { color: var(--ink-soft); }
.day.vacation:not(.out) { background: var(--vacation); }
.day.holiday:not(.out) {
  background: var(--holiday);
  color: #fff;
  font-weight: 650;
}
.day.special:not(.out):not(.holiday) {
  box-shadow: inset 0 0 0 1.5px var(--special);
}
.day.today:not(.out) {
  outline: 2px solid var(--today);
  outline-offset: 1px;
}
.day[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--header); }

.list-view { display: none; min-width: 0; }
.list-view.on { display: block; }
.year-grid.off { display: none; }
.list-month { margin-bottom: 22px; }
.list-month h3 {
  font-size: 1.15rem;
  margin: 0 0 8px;
  font-weight: 650;
}
.event-table {
  width: 100%;
  border-collapse: collapse;
}
.event-table th, .event-table td {
  text-align: left;
  padding: 9px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.event-table th { color: var(--muted); font-size: .78rem; font-weight: 600; }
.tag {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: .72rem;
  background: var(--vacation);
  color: var(--vacation-ink);
}
.tag.holiday { background: #e7f0fb; color: var(--accent); }
.tag.special { background: #f7ead3; color: #8a5a12; }

.day-pop {
  margin: 12px 0 0;
  min-height: 24px;
  color: var(--ink-soft);
  font-size: .9rem;
}
.day-pop strong { color: var(--ink); }

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 auto 40px;
  min-width: 0;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 14px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 6px;
}
.card:hover { border-color: #b8cce8; }
.card h3 {
  margin: 0;
  font-size: .98rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .9rem;
  flex: 1;
}
.card .more {
  font-weight: 600;
  color: var(--accent);
  font-size: .88rem;
}

.prose {
  max-width: 42rem;
  margin: 0 auto 36px;
}
.prose h2 {
  font-size: 1.35rem;
  margin: 28px 0 8px;
  letter-spacing: -0.03em;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 1.05rem;
  margin: 20px 0 6px;
}
.prose p, .prose li { color: var(--ink-soft); }
.prose ul {
  margin: 8px 0 16px;
  padding-left: 1.2rem;
  display: grid;
  gap: 4px;
}

.page-hero { padding: 28px 0 8px; }
.note {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 14px;
  color: var(--ink-soft);
  margin: 0 0 16px;
  font-size: .92rem;
}

.site-footer {
  background: var(--header-2);
  color: #d5e4f6;
  margin-top: 16px;
  padding: 32px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h2, .site-footer h3 { color: #fff; margin: 0 0 10px; font-size: 1rem; }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.copy { margin: 22px 0 0; opacity: .7; font-size: .85rem; }

.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 30, 36, .45);
  display: grid;
  place-items: center;
  z-index: 60;
  padding: 20px;
}
.modal-card {
  background: #fff;
  max-width: 480px;
  width: 100%;
  border-radius: 16px;
  padding: 22px;
}
.modal-card h2 { margin-top: 0; font-size: 1.2rem; }

@media (max-width: 900px) {
  .hero-grid, .cards, .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .year-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--header);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 12px 16px;
  }
  .nav a { text-align: left; }
  .nav.open { display: flex; }
  .hero-grid, .cards, .footer-grid, .year-grid { grid-template-columns: minmax(0, 1fr); }
  .calendar-panel { padding: 14px; }
  .year-head h2, .year-head h1 { font-size: 1.15rem; }
}

@media print {
  .site-header, .trustbar, .hero, .toolbar, .filters, .region-row, .cards, .prose, .site-footer, .menu-toggle, .legend, .day-pop {
    display: none !important;
  }
  .calendar-panel {
    border: 0;
    padding: 0;
  }
  .year-head { display: block; text-align: center; }
  .year-grid { display: grid !important; grid-template-columns: repeat(3, 1fr); }
  .list-view { display: none !important; }
  body { background: #fff; }
}
