:root {
  color-scheme: dark;
  --red: #ff2445;
  --ink: #09090b;
  --panel: #141416;
  --line: #303035;
  --muted: #b0b0ba;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--ink);
  color: #f4f4f4;
  font: 17px/1.6 Arial, Helvetica, sans-serif;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}
.site-header {
  min-height: 84px;
  padding: 25px 6vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid #29292d;
}
.brand { font-size: 25px; font-weight: 900; letter-spacing: -1.5px; }
.brand span, h1 span { color: var(--red); }
nav { display: flex; flex-wrap: wrap; gap: 26px; font-size: 14px; }
nav a:hover, nav [aria-current="page"] { color: var(--red); }
main { width: min(1500px, 100%); margin: auto; padding: 0 6vw; }
.intro { padding: 62px 0 35px; }
.eyebrow { color: var(--red); font-size: 12px; letter-spacing: 2px; font-weight: 700; text-transform: uppercase; }
h1 { margin: 8px 0 12px; font-size: clamp(48px, 8vw, 100px); line-height: .95; letter-spacing: -.065em; }
.lede { color: var(--muted); margin: 0; font-size: 18px; }
.calendar-shell { padding-bottom: 64px; }
.toolbar, .year-control, .month-control { display: flex; align-items: center; gap: 12px; }
.toolbar { justify-content: space-between; padding: 18px 0; border-top: 1px solid var(--line); }
.year-control { gap: 8px; }
.icon-button, .button, select, input {
  color: #f4f4f4; background: var(--panel); border: 1px solid var(--line); border-radius: 5px;
  font: inherit; min-height: 42px;
}
.icon-button { width: 44px; font-size: 21px; cursor: pointer; }
input { width: 112px; padding: 7px 12px; font-size: 20px; font-weight: 700; text-align: center; }
.button { padding: 9px 14px; cursor: pointer; font-weight: 700; }
.button:hover, .icon-button:hover { border-color: var(--red); }
.button.secondary { background: transparent; }
.button:disabled, .icon-button:disabled { opacity: .45; cursor: not-allowed; }
.month-control { flex-wrap: wrap; padding: 16px; background: #111114; border: 1px solid var(--line); }
.month-control label { color: var(--muted); margin-left: auto; }
select { min-width: 152px; padding: 7px 12px; }
.current-date { min-height: 27px; color: var(--muted); margin: 18px 0; }
.current-date strong { color: #fff; }
.months-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.month-card { scroll-margin-top: 18px; background: var(--panel); border: 1px solid var(--line); padding: 17px; }
.month-card.selected { border-color: #7d1729; box-shadow: inset 0 2px var(--red); }
.month-card h2 { margin: 0 0 12px; font-size: 17px; letter-spacing: .02em; }
.day-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.day {
  display: grid; place-items: center; min-height: 37px; border: 1px solid transparent; border-radius: 4px;
  background: #202025; color: #eee; font: inherit; cursor: pointer;
}
.day:hover { border-color: #8e2033; }
.day.is-today { background: var(--red); color: white; font-weight: 800; }
.special-days { display: grid; grid-template-columns: minmax(190px, .8fr) 2fr; gap: 12px 26px; margin-top: 25px; padding: 24px; border: 1px solid var(--line); background: #111114; }
.special-days h2 { margin: 0; font-size: 22px; }
.special-list { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.special-day { min-width: 160px; padding: 13px 16px; border-left: 3px solid var(--red); background: var(--panel); }
.special-day strong, .special-day span { display: block; }
.special-day span { color: var(--muted); font-size: 13px; }
.special-day.is-today { background: #35121b; }
.note { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 13px; }
.status { min-height: 24px; color: var(--muted); }
footer { display: flex; justify-content: center; gap: 9px; padding: 25px; border-top: 1px solid #29292d; color: var(--muted); font-size: 13px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
@media (max-width: 900px) { .months-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  nav { flex-wrap: wrap; gap: 10px 18px; }
  main { padding: 0 18px; }
  .intro { padding-top: 42px; }
  .months-grid { grid-template-columns: 1fr; }
  .month-control { align-items: stretch; }
  .month-control label { width: 100%; margin-left: 0; }
  .month-control select { flex: 1; }
  .month-control .button { flex: 1; }
  .special-days { grid-template-columns: 1fr; padding: 18px; }
}

/* AETHEREON introduction and month-at-a-time interface */
.ae-intro { width: min(980px, 100%); margin: 0 auto; padding: 54px 0 0; }
.ae-calendar { width: min(980px, 100%); margin: 0 auto; padding: 0 0 72px; }
.ae-header { text-align: center; padding-bottom: 34px; }
.ae-eyebrow { margin: 0 0 12px; color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .22em; }
.ae-header h1 { margin: 0; color: #f6f3f3; font-size: clamp(48px, 10vw, 92px); letter-spacing: .04em; }
.ae-subtitle { margin: 12px 0 0; color: var(--muted); font-size: clamp(16px, 2.6vw, 21px); }
.ae-controls { display: grid; grid-template-columns: 58px 1fr 58px; align-items: center; gap: 18px; padding: 20px; border: 1px solid var(--line); background: var(--panel); }
.ae-arrow { min-width: 52px; min-height: 52px; border: 1px solid #555560; border-radius: 0; background: transparent; color: #fff; font-size: 28px; cursor: pointer; }
.ae-arrow:hover:not(:disabled), .ae-today:hover { border-color: var(--red); background: #281217; }
.ae-arrow:disabled { opacity: .4; cursor: not-allowed; }
.ae-current { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.ae-current h2 { margin: 0; font-size: clamp(22px, 4vw, 32px); }
.ae-current label { color: var(--muted); }
.ae-current input { width: 116px; border-radius: 0; }
.ae-current input[readonly] { color: #f4f4f4; cursor: default; }
.ae-month-meaning { max-width: 780px; margin: 16px auto 8px; color: #dedee2; text-align: center; }
.ae-status { min-height: 28px; margin: 19px 0; color: var(--muted); text-align: center; }
.ae-weekdays, .ae-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 9px; }
.ae-weekdays { padding: 0 20px 8px; color: var(--red); font-size: 12px; font-weight: 800; text-align: center; }
.ae-days { gap: 9px; padding: 20px; border: 1px solid var(--line); background: var(--panel); }
.ae-day { display: flex; min-height: 68px; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 1px solid var(--line); border-radius: 0; background: #1b1b1e; color: #f4f4f4; font: inherit; cursor: pointer; }
.ae-day-number { font-size: 20px; font-weight: 700; line-height: 1.1; }
.ae-civil-date { max-width: 100%; overflow: hidden; color: var(--muted); font-size: 10px; line-height: 1.2; white-space: nowrap; }
.ae-day:hover { border-color: #8e2033; background: #26151a; }
.ae-day.is-today { border-color: var(--red); background: var(--red); color: #fff; font-weight: 800; }
.ae-day.is-today .ae-civil-date { color: #fff; }
.ae-special-days { margin-top: 26px; padding: 22px; border: 1px solid var(--line); background: var(--panel); }
.ae-special-days h3 { margin: 0 0 16px; font-size: 18px; }
.ae-special-list { display: flex; flex-wrap: wrap; gap: 12px; }
.ae-special { min-width: 190px; padding: 14px 16px; border-left: 3px solid var(--red); background: #1b1b1e; }
.ae-special-day { min-width: 190px; padding: 14px 16px; border-left: 3px solid var(--red); background: #1b1b1e; }
.ae-special-day.is-today { background: #35121b; }
.ae-special strong, .ae-special span { display: block; }
.ae-special span { margin-top: 4px; color: var(--muted); font-size: 13px; }
.ae-special.is-today { background: #35121b; }
.ae-today { display: block; min-height: 46px; margin: 22px auto 0; padding: 11px 22px; border: 1px solid var(--red); border-radius: 0; background: var(--red); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.ae-today:hover { background: #cf1232; border-color: #cf1232; }
.ae-note { max-width: 760px; margin: 18px auto 0; color: var(--muted); font-size: 12px; text-align: center; }
.ae-source-note { max-width: 760px; margin: 10px auto 0; color: var(--muted); font-size: 11px; text-align: center; }
.ae-info { margin: 0 0 38px; padding: clamp(22px, 4vw, 42px); border: 1px solid var(--line); background: #101013; }
.ae-info > .ae-eyebrow { margin: 0 0 8px; text-align: left; }
.ae-info > h2 { margin: 0; font-size: clamp(28px, 5vw, 42px); line-height: 1.1; }
.ae-info-lede { max-width: 760px; margin: 14px 0 28px; color: var(--muted); font-size: 17px; }
.ae-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.ae-info-card { padding: 18px; border: 1px solid var(--line); border-top: 2px solid var(--red); background: var(--panel); }
.ae-info-card h3, .ae-info-subhead, .ae-revision h2 { margin: 0 0 9px; font-size: 18px; }
.ae-info-card p, .ae-revision p { margin: 0; color: #d0d0d6; font-size: 14px; line-height: 1.65; }
.ae-info-subhead { margin-top: 34px; }
.ae-month-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 8px; }
.ae-month-list article { min-height: 76px; padding: 12px 14px; border-left: 2px solid #6f1c2b; background: #19191d; }
.ae-month-list strong, .ae-month-list span { display: block; }
.ae-month-list strong { color: #fff; font-size: 14px; }
.ae-month-list span { margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.ae-revision { margin-top: 28px; padding: 19px; border: 1px solid #54202b; background: #1a1014; }
.ae-revision h2 { color: #ff8395; }
.ae-revision strong { color: #fff; }
.ae-info .ae-note { margin-top: 22px; }
.ae-post-calendar { width: min(980px, 100%); margin: 0 auto; padding: 0 0 56px; }
.ae-post-calendar .ae-revision { margin-top: 0; }
.ae-post-calendar > .ae-note { margin: 12px 0 28px; }
.ae-months { width: min(980px, 100%); margin: 0 auto; padding: 0 0 56px; }
.ae-months .ae-info-subhead { margin: 0 0 16px; font-size: 24px; }
@media (max-width: 560px) {
  .ae-intro { padding-top: 40px; }
  .ae-controls { grid-template-columns: 48px 1fr 48px; gap: 8px; padding: 14px 10px; }
  .ae-arrow { min-width: 46px; min-height: 46px; }
  .ae-current { gap: 8px 12px; }
  .ae-current h2 { width: 100%; text-align: center; }
  .ae-current input { width: 98px; }
  .ae-weekdays, .ae-days { gap: 3px; }
  .ae-weekdays { padding: 0 8px 7px; font-size: 9px; }
  .ae-days { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; padding: 8px; }
  .ae-day { min-height: 54px; padding: 2px 0; }
  .ae-day-number { font-size: 16px; }
  .ae-civil-date { font-size: 8px; }
  .ae-special-days { padding: 17px; }
  .ae-special { width: 100%; }
}
