@font-face {
  font-family: "Noto Serif";
  src: url("/assets/NotoSerif-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f8f5ef;
  --card: #fffcf7;
  --ink: #26213c;
  --muted: #625b70;
  --purple: #32225e;
  --purple-dark: #251647;
  --lavender: #eae4f6;
  --line: #ded6cc;
  --gold: #f4d99a;
  --holiday: #963a25;
  --serif: "Noto Serif", Georgia, serif;
  --sans: system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--sans); }
::selection { background: var(--gold); color: var(--purple-dark); }
a { color: var(--purple); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #8048b1; outline-offset: 4px; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; }
p { max-width: 69ch; }
h1, h2, h3, p { margin: 0 0 1rem; }
h1, h2 { font-family: var(--serif); line-height: 1.17; letter-spacing: -.027em; }
h2 { font-size: clamp(1.35rem, 2.45vw, 1.85rem); }
h3 { margin-top: 1.5rem; font-size: 1rem; }
.wrap { width: min(72rem, calc(100% - 3rem)); margin-inline: auto; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip-link:focus { position: absolute; top: .75rem; left: .75rem; z-index: 2; background: var(--card); padding: .5rem 1rem; }

.site-header { border-bottom: 1px solid var(--line); }
.header-row, .footer-row { display: flex; min-height: 4.65rem; align-items: center; justify-content: space-between; gap: .75rem 2rem; }
.brand, .footer-brand { display: inline-flex; align-items: center; font-weight: 760; letter-spacing: -.025em; text-decoration: none; }
.brand { gap: 0; font-size: 1.43rem; white-space: nowrap; }
.brand span { color: var(--muted); }
.brand svg { width: 1.65rem; height: 1.65rem; margin-right: .5rem; stroke: currentColor; fill: none; stroke-width: 1.55; stroke-linecap: round; }
.site-header nav, .site-footer nav { display: flex; flex-wrap: wrap; gap: .45rem 1.55rem; }
.site-header nav a { text-decoration: none; font-size: .94rem; padding-block: .4rem; }
.site-header nav a:hover, .site-header nav a[aria-current] { text-decoration: underline; }
.site-header nav a[aria-current] { font-weight: 750; }

main { padding-block: 2.15rem 4.75rem; min-height: 65vh; }
.today-hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(12rem, 16.5rem); gap: 2rem;
  background: var(--purple-dark); color: #fffaf0; border-radius: .88rem;
  padding: clamp(1.4rem, 4.75vw, 3.65rem);
}
.today-hero::before, .today-hero::after {
  content: ""; z-index: -1; position: absolute; border: 1px solid #594875;
  border-radius: 50%; width: 29rem; height: 29rem; right: -13rem; top: -16rem;
}
.today-hero::after { width: 33rem; height: 33rem; right: -15rem; top: -18rem; }
.today-hero a { color: inherit; }
.today-hero :focus-visible { outline-color: var(--gold); }
.today-hero h1 { font: 650 clamp(.98rem, 2vw, 1.2rem)/1.4 var(--sans); letter-spacing: 0; color: #f1e6f8; margin-bottom: 1.25rem; }
.display-date { display: block; font: 700 clamp(2.2rem, 5.85vw, 5.35rem)/1.01 var(--serif); letter-spacing: -.036em; }
.display-weekday { display: block; color: var(--gold); margin-bottom: .35rem; }
.today-details { display: flex; flex-wrap: wrap; gap: .7rem clamp(.85rem, 3vw, 2.5rem); margin-top: 1.85rem; }
.today-details > div { display: flex; flex-direction: column; gap: .15rem; }
.detail-label { color: #d8cae6; font-size: .89rem; }
.detail-value { font-size: 1.17rem; line-height: 1.4; font-weight: 700; font-variant-numeric: tabular-nums; }
.today-observance { margin: 1rem 0 0; color: var(--gold); font-weight: 650; }
.today-aside { align-self: end; min-width: 0; }
.button, button {
  display: inline-block; padding: .55rem .95rem; border: 1px solid var(--purple);
  border-radius: .35rem; background: var(--purple); color: white; font-weight: 700; text-decoration: none;
}
.button:hover, button:hover { background: #4c367d; }
.today-hero .button-inverse { background: var(--gold); color: var(--purple-dark); border-color: var(--gold); }
.today-hero .button-inverse:hover { background: #ffe9b8; }
.speech { margin-top: .84rem; }
.speech summary { cursor: pointer; width: fit-content; font-weight: 650; }
.speech p, .speech-unavailable { margin: .4rem 0 0; color: #e3d7ed; font-size: .9rem; }
.speech audio { width: 100%; display: block; margin-top: .6rem; }

.dashboard { display: grid; grid-template-columns: 1.12fr 1fr; gap: 1.35rem; margin-block: 1.35rem 2.75rem; }
.month-panel, .download-panel { background: var(--card); border: 1px solid var(--line); border-radius: .75rem; min-width: 0; padding: clamp(.88rem, 2.5vw, 1.7rem); }
.section-head h2 { margin-bottom: .8rem; }
.calendar { width: 100%; table-layout: fixed; border-collapse: collapse; text-align: center; font-variant-numeric: tabular-nums; }
.calendar caption, .reference-table caption { text-align: left; font-weight: 720; caption-side: top; margin-bottom: .5rem; color: var(--purple); }
.calendar th, .calendar td { padding: .29rem .09rem; border-bottom: 1px solid var(--line); }
.calendar thead th { color: var(--muted); font-size: .88rem; }
.calendar th:first-child { color: var(--muted); background: #f2edf7; font-size: .88rem; }
.calendar td time { display: inline-grid; min-width: 2rem; min-height: 2rem; align-items: center; border-radius: .32rem; }
.calendar td.holiday { color: var(--holiday); font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; }
.calendar td.today time { color: white; background: var(--purple); font-weight: 800; }
.month-links, .subnav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem .8rem; }
.month-links { margin-top: 1rem; font-size: .9rem; }
.download-list, .text-list { margin: 0; padding: 0; list-style: none; }
.download-list li { border-bottom: 1px solid var(--line); }
.download-list a, .download-list .unavailable { display: flex; align-items: center; justify-content: space-between; gap: .45rem; padding-block: .57rem; }
.format { color: var(--purple); background: var(--lavender); padding: .08rem .38rem; border-radius: .26rem; font-size: .79rem; font-weight: 720; }
.compact-info { margin-top: 1rem; }
.compact-info p { margin: .1rem 0 0; color: var(--muted); font-size: .89rem; }
.info-label { display: flex; justify-content: space-between; gap: .55rem; }
progress { width: 100%; height: .54rem; accent-color: var(--purple); vertical-align: middle; }
.content-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3.3rem; }
.extra-section { border-top: 1px solid var(--line); padding-top: 1.2rem; }
.extra-section h2 { margin-bottom: .78rem; }
.text-list li { margin-bottom: .3rem; }
.date-poster { width: 10.5rem; border-radius: .35rem; display: block; margin-bottom: .75rem; }
.data-list { display: grid; grid-template-columns: minmax(0, 1fr) auto; margin: 0 0 .6rem; }
.data-list dt, .data-list dd { margin: 0; padding: .35rem 0; border-bottom: 1px solid var(--line); }
.data-list dd { font-variant-numeric: tabular-nums; text-align: right; padding-left: .4rem; }
.data-list small, .small, .unavailable { color: var(--muted); }
.data-list small { display: block; font-size: .88rem; }

.page-title h1 { margin-block: .4rem 1.35rem; font-size: clamp(2.1rem, 5.6vw, 4rem); }
.standfirst { font-size: clamp(1.15rem, 2.4vw, 1.55rem); }
.page-toolbar, .year-form { display: flex; align-items: center; flex-wrap: wrap; gap: .62rem; }
.page-toolbar { justify-content: space-between; margin-bottom: 1.25rem; }
.year-form input { width: 7rem; background: var(--card); border: 1px solid #9e94ac; border-radius: .32rem; padding: .43rem .55rem; }
.year-form input[type="date"] { width: 10rem; }
.subnav, .single-calendar, .reference-table { max-width: 48rem; margin-bottom: 1.3rem; }
.calendar-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.calendar-grid section, .single-calendar { padding: .85rem; background: var(--card); border: 1px solid var(--line); border-radius: .5rem; }
.calendar-grid section p { margin: .65rem 0 0; font-size: .91rem; }
.legend { margin-top: 1.2rem; }
.legend span { display: inline-block; width: .74rem; height: .74rem; border-radius: .15rem; background: var(--holiday); }
.reference-table { width: 100%; border-collapse: collapse; text-align: left; }
.reference-table th, .reference-table td { padding: .45rem .65rem; border-bottom: 1px solid var(--line); }
.reference-table thead, .reference-table tr.active-week { background: var(--lavender); }
.print-date { font: 700 clamp(1.9rem, 5vw, 4.1rem)/1.25 var(--serif); }
.site-footer { background: #eee7f5; border-top: 1px solid var(--line); }
.site-footer a { font-size: .92rem; }

@media (max-width: 53rem) {
  .dashboard { grid-template-columns: 1fr 1fr; gap: .8rem; }
  .calendar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-row { padding-block: .95rem; flex-wrap: wrap; }
}

@media (max-width: 41rem) {
  .wrap { width: calc(100% - 1.65rem); }
  .header-row { align-items: flex-start; flex-direction: column; gap: .18rem; padding-block: .55rem; }
  .site-header nav { gap: .25rem clamp(.55rem, 3vw, 1.2rem); }
  main { padding-block: .9rem 3rem; }
  .today-hero, .dashboard { grid-template-columns: 1fr; }
  .today-hero { gap: 1.15rem; }
  .today-aside { display: flex; flex-wrap: wrap; gap: .6rem .85rem; align-items: baseline; }
  .speech { margin-top: 0; }
  .speech[open] { flex: 1 0 100%; }
  .today-details { margin-top: 1.35rem; }
  .content-grid, .calendar-grid { grid-template-columns: 1fr; }
  .content-grid { gap: 1.4rem; }
}

@media print {
  body, .site-footer { background: #fff; color: #000; }
  .site-header, .site-footer, .print-button, .skip-link, .subnav, .page-toolbar { display: none; }
  .wrap { width: 100%; }
  main { padding: 0; }
  .page-print h1, .page-print noscript { display: none; }
  .page-print .print-date { width: 100%; max-width: none; text-align: center; padding-top: 27vh; font-size: 42pt; }
}
