:root {
  --navy: #14152d;
  --red: #6d0f00;
  --bronze: #c18a49;
  --parchment: #eddfba;
  --ink: #0c0c0c;
  --paper: #fbf8ef;
  --paper-deep: #f3ecd9;
  --line: #d7caa7;
  --muted: #655f55;
  --white: #fffefa;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
  --shadow: 0 16px 40px rgba(20, 21, 45, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(109, 15, 0, .025) 1px, transparent 1px) 0 0 / 100% 32px,
    var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}
a { color: inherit; }
button, input, select { font: inherit; }
button, a, summary, select, input { outline-offset: 4px; }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  transform: translateY(-180%);
  padding: .65rem 1rem;
  color: var(--white);
  background: var(--red);
  border-radius: 2px;
}
.skip-link:focus { transform: none; }
.wrap { width: min(1320px, calc(100% - 48px)); margin-inline: auto; }

.site-header {
  min-height: 108px;
  padding: 18px max(24px, calc((100vw - 1320px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--white);
  background: var(--navy);
  border-bottom: 4px solid var(--bronze);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; width: 92px; height: 72px; object-fit: contain; object-position: center 48%; }
.header-kicker {
  margin: 0;
  color: var(--parchment);
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .55fr);
  gap: clamp(36px, 7vw, 110px);
  padding-block: clamp(72px, 10vw, 144px) clamp(64px, 8vw, 112px);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  top: 45px;
  left: 0;
  width: 72px;
  height: 5px;
  background: var(--red);
}
.hero > .eyebrow { grid-column: 1; grid-row: 1; align-self: end; }
.hero > h1 { grid-column: 1; grid-row: 2; }
.hero-intro { grid-column: 1; grid-row: 3; }
.eyebrow {
  margin: 0 0 16px;
  color: var(--red);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.03; }
h1 { margin: 0; color: var(--navy); font-size: clamp(3.1rem, 6vw, 6.2rem); letter-spacing: -.045em; }
.hero-intro { max-width: 680px; margin: 32px 0 0; color: var(--muted); font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.55rem); }
.edition-note {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: end;
  margin-bottom: 8px;
  padding: 28px;
  background: var(--parchment);
  border-top: 5px solid var(--bronze);
  box-shadow: var(--shadow);
}
.edition-note p { margin: 0; }
.edition-note strong { display: block; margin-bottom: 8px; color: var(--red); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.edition-mark { display: block; margin-bottom: 12px; color: var(--red); font-family: var(--serif); font-size: 3rem; line-height: 1; }

.months-section { padding-block: clamp(64px, 8vw, 112px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 34px; }
.section-heading h2, .method h2 { margin: 0; color: var(--navy); font-size: clamp(2.3rem, 4vw, 4rem); }
.section-heading > p { margin: 0 0 6px; color: var(--muted); font-size: .88rem; }
.month-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.month-card {
  position: relative;
  min-height: 210px;
  padding: 28px;
  overflow: hidden;
  background: rgba(255, 254, 250, .72);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}
.month-card:hover, .month-card:focus-visible { z-index: 1; color: var(--white); background: var(--red); transform: translateY(-4px); box-shadow: var(--shadow); }
.month-roman { display: block; color: var(--bronze); font-family: var(--serif); font-size: 4.5rem; line-height: .8; opacity: .48; }
.month-name { position: absolute; left: 28px; bottom: 48px; font-family: var(--serif); font-size: 1.75rem; }
.month-meta { position: absolute; left: 28px; bottom: 20px; color: var(--muted); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.month-card:hover .month-meta, .month-card:focus-visible .month-meta { color: var(--parchment); }

.method { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(48px, 8vw, 120px); padding-block: 72px 96px; border-top: 1px solid var(--line); }
.method-copy { columns: 2; column-gap: 48px; color: var(--muted); }
.method-copy p { margin: 0 0 1rem; break-inside: avoid; }

.month-hero { padding-block: 44px 38px; }
.breadcrumbs { display: flex; align-items: center; gap: 10px; margin-bottom: 40px; color: var(--muted); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.breadcrumbs a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.month-title-row { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.month-title-row h1 { font-size: clamp(3.4rem, 7vw, 6.4rem); }
.month-title-row p { max-width: 440px; margin: 0 0 12px; color: var(--muted); font-family: var(--serif); font-size: 1.12rem; }

.toolbar-shell { position: sticky; z-index: 20; top: 0; background: rgba(251, 248, 239, .96); border-block: 1px solid var(--line); backdrop-filter: blur(10px); }
.toolbar { min-height: 76px; display: grid; grid-template-columns: minmax(240px, 1fr) auto auto; align-items: center; gap: 14px; }
.search-wrap { position: relative; }
.search-wrap svg { position: absolute; left: 16px; top: 50%; width: 19px; transform: translateY(-50%); color: var(--red); }
.search-wrap input, .month-select {
  width: 100%;
  min-height: 44px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
}
.search-wrap input { padding: 10px 42px; }
.month-select { padding: 9px 38px 9px 12px; }
.clear-search {
  position: absolute;
  right: 5px;
  top: 50%;
  min-width: 34px;
  min-height: 34px;
  transform: translateY(-50%);
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
}
.results-count { min-width: 106px; color: var(--muted); font-size: .78rem; text-align: right; }

.calendar-section { padding-block: 32px 80px; }
.calendar-frame { overflow: clip; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.calendar-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.calendar-table col.date { width: 11%; }
.calendar-table col.feast { width: 24%; }
.calendar-table col.evidence { width: 32.5%; }
.calendar-table thead th {
  padding: 17px 18px;
  color: var(--white);
  background: var(--navy);
  border-right: 1px solid rgba(255,255,255,.18);
  font-size: .7rem;
  letter-spacing: .13em;
  text-align: left;
  text-transform: uppercase;
}
.calendar-table thead th:last-child { border-right: 0; }
.calendar-table td { padding: 19px 18px; vertical-align: top; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.calendar-table td:last-child { border-right: 0; }
.calendar-table tbody:last-child tr:last-child td { border-bottom: 0; }
.calendar-table tbody:nth-of-type(even) td { background: rgba(237, 223, 186, .16); }
.date-cell { color: var(--navy); background: var(--paper-deep) !important; }
.date-number { display: block; color: var(--red); font-family: var(--serif); font-size: 2.4rem; line-height: .9; }
.date-month { display: block; margin-top: 8px; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.feast-name { margin: 0; color: var(--navy); font-family: var(--serif); font-size: 1.14rem; line-height: 1.25; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.badge { display: inline-flex; padding: 3px 7px; color: var(--red); background: var(--parchment); border-radius: 2px; font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.badge.review { color: var(--white); background: var(--red); }
.source-details { margin-top: 13px; color: var(--muted); font-size: .76rem; }
.source-details summary { color: var(--red); cursor: pointer; font-weight: 700; }
.source-details dl { margin: 10px 0 0; }
.source-details dt { margin-top: 8px; color: var(--navy); font-weight: 700; }
.source-details dd { margin: 2px 0 0; }
.evidence-text { margin: 0; color: #2d2b27; font-family: var(--serif); font-size: .94rem; line-height: 1.55; }
.evidence summary { color: #2d2b27; cursor: pointer; font-family: var(--serif); font-size: .94rem; list-style-position: outside; }
.evidence[open] summary { margin-bottom: 10px; color: var(--red); }
.other-note { margin: 12px 0 0; padding-top: 10px; color: var(--muted); border-top: 1px dotted var(--line); font-size: .74rem; }
.empty-state { padding: 64px 24px; color: var(--muted); font-family: var(--serif); font-size: 1.2rem; text-align: center; }
.month-pagination { display: flex; justify-content: space-between; gap: 20px; margin-top: 30px; }
.month-pagination a { display: inline-flex; align-items: center; gap: 8px; color: var(--red); font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; text-underline-offset: 4px; }

.site-footer { padding-block: 54px; color: var(--parchment); background: var(--navy); border-top: 5px solid var(--bronze); }
.footer-grid { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 40px; }
.footer-logo { width: 88px; height: 94px; object-fit: contain; }
.site-footer p { max-width: 980px; margin: 0; font-size: .72rem; line-height: 1.65; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .edition-note { grid-column: 1; grid-row: 4; max-width: 620px; }
  .month-grid { grid-template-columns: repeat(3, 1fr); }
  .method { grid-template-columns: 1fr; }
  .month-title-row { align-items: start; flex-direction: column; }
  .calendar-table col.date { width: 13%; }
  .calendar-table col.feast { width: 25%; }
  .calendar-table td, .calendar-table thead th { padding-inline: 13px; }
}

@media (max-width: 720px) {
  .wrap { width: min(100% - 28px, 1320px); }
  .site-header { min-height: 84px; padding-inline: 16px; }
  .brand img { width: 70px; height: 52px; }
  .header-kicker { max-width: 150px; text-align: right; }
  .hero { padding-top: 84px; }
  h1 { font-size: clamp(2.8rem, 13.5vw, 4.5rem); }
  .month-title-row h1 { font-size: clamp(3rem, 13vw, 4.4rem); }
  .section-heading { align-items: start; flex-direction: column; }
  .month-grid { grid-template-columns: repeat(2, 1fr); }
  .month-card { min-height: 170px; padding: 20px; }
  .month-name, .month-meta { left: 20px; }
  .method-copy { columns: 1; }
  .toolbar { grid-template-columns: 1fr auto; padding-block: 12px; }
  .search-wrap { grid-column: 1 / -1; }
  .results-count { text-align: left; }
  .calendar-frame { overflow: visible; border: 0; box-shadow: none; }
  .calendar-table, .calendar-table tbody, .calendar-table tr, .calendar-table td { display: block; width: 100%; }
  .calendar-table colgroup, .calendar-table thead { display: none; }
  .calendar-table tbody { margin-bottom: 18px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 8px 22px rgba(20, 21, 45, .07); }
  .calendar-table td { padding: 16px; border-right: 0; }
  .calendar-table .date-cell { display: flex; align-items: baseline; gap: 9px; padding-block: 13px; }
  .date-number { font-size: 2rem; }
  .date-month { margin-top: 0; }
  .calendar-table td[data-label]::before { display: block; margin-bottom: 7px; color: var(--red); content: attr(data-label); font-size: .62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
}

@media print {
  .site-header, .toolbar-shell, .month-pagination, .site-footer, .source-details { display: none !important; }
  body { background: #fff; font-size: 10pt; }
  .wrap { width: 100%; }
  .month-hero { padding: 0 0 18px; }
  .calendar-section { padding: 0; }
  .calendar-frame { border: 0; box-shadow: none; overflow: visible; }
  .calendar-table { table-layout: auto; }
  .calendar-table tbody { break-inside: avoid; }
}
