:root {
  --forest: #12281f;
  --forest-deep: #0c1b15;
  --ink: #1c1612;
  --ink-soft: #4e453c;
  --cream: #f4efe6;
  --paper: #fbf7f1;
  --paper-2: #f6f0e6;
  --burgundy: #722433;
  --burgundy-deep: #4c1520;
  --gold: #a6843d;
  --gold-bright: #e4c98a;
  --gold-deep: #7a5c22;
  --line: rgba(28, 22, 18, 0.12);
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --text: "Newsreader", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--cream);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.6;
  background-color: var(--forest-deep);
  background-image:
    radial-gradient(ellipse 80% 50% at 8% -10%, rgba(228, 201, 138, 0.16), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(114, 36, 51, 0.38), transparent 46%),
    radial-gradient(ellipse 70% 40% at 50% 120%, rgba(28, 70, 54, 0.7), transparent 50%),
    linear-gradient(180deg, #16352b, #0e221b 40%, #0c1b15);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: radial-gradient(rgba(255, 248, 230, 0.18) 0.6px, transparent 0.6px);
  background-size: 3px 3px;
}
::selection { background: #e7d3a1; color: var(--ink); }
a { color: var(--burgundy); text-underline-offset: 0.18em; }
a:hover { color: var(--burgundy-deep); }
img, svg { max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--paper);
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  z-index: 5;
}
.skip:focus { top: 1rem; }

.wrap { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(12, 27, 21, 0.94);
  backdrop-filter: blur(10px);
}
.brand { display: inline-flex; align-items: center; gap: 0.45rem; }
.brand-mark { width: 1.35rem; height: 1.35rem; display: inline-flex; }
.brand-mark svg { width: 100%; height: 100%; }
.garland { height: 28px; margin-top: -0.2rem; opacity: 0.95; }
.garland svg { display: block; width: 100%; height: 28px; }
.scene { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.snow, .snow-slow {
  position: absolute;
  inset: -20% 0 0;
  background-image: radial-gradient(circle, rgba(255, 248, 236, 0.85) 1px, transparent 1.6px);
  background-size: 120px 160px;
  animation: snowfall 16s linear infinite;
  opacity: 0.55;
}
.snow-slow {
  background-size: 180px 220px;
  animation-duration: 28s;
  opacity: 0.35;
}
@keyframes snowfall { to { transform: translateY(160px); } }
.pine {
  position: fixed;
  bottom: -8px;
  width: min(200px, 16vw);
  height: auto;
  z-index: 0;
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.28));
}
.pine-left { left: -12px; }
.pine-right { right: -12px; transform: scaleX(-1); }
.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 0 0.4rem;
}
.brand {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 520;
  font-size: 1.35rem;
  color: var(--cream);
  text-decoration: none;
}
.nav { display: flex; gap: 1.1rem; align-items: center; }
.nav a { color: var(--cream); text-decoration: none; }
.nav a:hover { color: var(--gold-bright); }

.btn, button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--burgundy);
  color: #fbf7f1;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.72rem 1.15rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 560;
  letter-spacing: 0.01em;
  cursor: pointer;
}
.btn:hover { background: var(--burgundy-deep); color: #fff; }
.btn-small { padding: 0.48rem 0.85rem; font-size: 0.86rem; }
.btn-ghost {
  background: transparent;
  color: var(--burgundy);
  border-color: rgba(114, 36, 51, 0.35);
}
.btn-ghost:hover { background: rgba(114, 36, 51, 0.06); color: var(--burgundy-deep); }
.btn-ghost.light, .mast .btn-ghost, .hero .btn-ghost {
  color: var(--cream);
  border-color: rgba(244, 239, 230, 0.35);
}
.btn-ghost.light:hover, .mast .btn-ghost:hover, .hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--gold-bright);
}
.text-btn {
  background: none;
  border: 0;
  color: var(--burgundy);
  font-family: var(--sans);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.2rem;
}

.hero, .mast { position: relative; z-index: 1; padding: 2.2rem 0 2.6rem; }
.hero h1, .mast h1, .sheet > h1, .narrow h1 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0.2rem 0 0.8rem;
}
.hero h1 {
  max-width: 16ch;
  font-size: clamp(2.7rem, 6.4vw, 5.1rem);
  color: #f7f1e6;
}
.mast h1 { font-size: clamp(2.6rem, 6vw, 4.7rem); color: #f7f1e6; max-width: 16ch; }
.kicker {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 0.35rem;
}
.kicker.on-dark, .hero .kicker, .mast .kicker { color: var(--gold-bright); }
.governing {
  font-family: var(--serif);
  font-weight: 520;
  font-size: clamp(2.3rem, 5vw, 4.15rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #f7f1e6;
  margin: 0.4rem 0 0.8rem;
  max-width: 16ch;
}
.governing em { font-style: italic; color: var(--gold-bright); }
.therefore { display: block; font-size: 0.58em; font-style: italic; color: #f3e6c8; margin-top: 0.15rem; }
.hero-copy, .aside, .lean {
  max-width: 42rem;
  color: #f3eadc;
  font-size: 1.2rem;
}
.lean { color: #e7d7b0; font-style: italic; }
.mast-actions, .row-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.3rem; }
.place { color: var(--gold-bright); margin: -0.3rem 0 0.6rem; font-family: var(--sans); }
.today-banner {
  margin-top: 1rem;
  color: #f7f1e6;
  font-family: var(--sans);
  font-size: 0.95rem;
}
.mast-compact { padding-bottom: 1.4rem; }
.mast-compact h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }

.sheet {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 2rem));
  margin: 0.4rem auto 4rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent 90px),
    var(--paper);
  color: var(--ink);
  border-radius: 22px;
  box-shadow: var(--shadow);
  border-top: 5px solid #c6a15a;
  padding: clamp(1.3rem, 4vw, 3rem);
}
.sheet.narrow { width: min(640px, calc(100% - 2rem)); }
.sheet.reader { width: min(760px, calc(100% - 2rem)); }
.wizard-sheet { width: min(1120px, calc(100% - 1.2rem)); }

.block { margin: 2.8rem 0; scroll-margin-top: 8.4rem; }
.block.tight { margin-top: 0.4rem; }
.block h2, .sheet h2, .subhead {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.03em;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  line-height: 1.12;
  margin: 0 0 0.7rem;
}
.subhead { margin-top: 2rem; font-size: 1.7rem; }
.letter p, .lede p, .hint, .note, .tradition p, .week dd, .sunday p, .reading p {
  max-width: 68ch;
}
.letter > p:first-of-type::first-letter {
  font-family: var(--serif);
  font-weight: 560;
  float: left;
  font-size: 3.3rem;
  line-height: 0.8;
  padding: 0.18rem 0.45rem 0 0;
  color: var(--burgundy);
}
.pull {
  font-family: var(--serif);
  font-weight: 520;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  line-height: 1.35;
  color: var(--burgundy-deep);
  margin: 1.2rem 0 1.4rem;
  padding: 0.1rem 0 0.1rem 1rem;
  border-left: 3px solid var(--gold);
  max-width: 40rem;
}
.pull.closing { margin-top: 1.6rem; }
.hint { color: var(--ink-soft); font-size: 1.02rem; }
.note {
  background: #f8f1e4;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  color: var(--ink);
}
.sample-banner {
  background: #f4e5c6;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  margin: 0;
}

.traditions { display: grid; gap: 0; }
.tradition {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 0.8rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.tradition span, .flow li > span, .permanent li > span, .after-list span {
  font-family: var(--serif);
  color: var(--gold-deep);
  font-size: 1.25rem;
}
.tradition h3, .week h3, .sunday h3, .hymn h4, .subblock h3, .permanent h3 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.02em;
  margin: 0 0 0.25rem;
  font-size: 1.45rem;
}
.subblock { margin-top: 1.8rem; }
.when { color: var(--burgundy); font-family: var(--sans); font-size: 0.92rem; margin: 0.1rem 0 0.6rem; }
.refs {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin: 0.15rem 0 0.55rem;
}
.meta { margin: 0.25rem 0; }
.meta strong, .week dt {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
}
.sunday {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 1rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}
.weeks { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.week {
  background: var(--paper-2);
  border-radius: 16px;
  padding: 1rem 1.05rem 0.4rem;
  border: 1px solid rgba(28, 22, 18, 0.05);
}
.week dd { margin: 0.15rem 0 0.75rem; }
.decision-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; margin: 1rem 0; }
.decision-grid article, .refine {
  background: #f8f1e4;
  border-radius: 16px;
  padding: 1rem 1.05rem;
}
.decision-grid h3 { font-family: var(--serif); font-size: 1.25rem; margin: 0 0 0.4rem; }
.flow, .permanent, .after-list { list-style: none; padding: 0; margin: 0; }
.flow li, .permanent li {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.7rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}
.flow h3 { margin: 0; font-family: var(--serif); font-size: 1.25rem; }
.flow p, .permanent p { margin: 0.2rem 0 0; }
.after-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.after-list li {
  background: var(--paper-2);
  border-radius: 14px;
  padding: 0.8rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
}
.after-list p { margin: 0.2rem 0 0; font-size: 0.98rem; }

.jump {
  position: sticky;
  top: 4.35rem;
  z-index: 12;
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.45rem 0 0.7rem;
  margin: 0 0 0.2rem;
  background: var(--paper);
  box-shadow: 0 12px 16px var(--paper);
}
.jump a {
  flex: 0 0 auto;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--burgundy-deep);
  background: #fffdf9;
  border: 1px solid rgba(114, 36, 51, 0.18);
  border-radius: 999px;
  padding: 0.38rem 0.75rem;
}
.jump a:hover, .jump a.is-here {
  background: var(--burgundy);
  color: #fff;
  border-color: var(--burgundy);
}
.month {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.45rem;
  margin: 1rem 0 0.6rem;
}
.dow {
  text-align: center;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  padding-bottom: 0.15rem;
}
.door-gap { min-height: 1px; }
a.door {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.05rem;
  min-height: 104px;
  padding: 0.85rem 0.25rem 0.45rem;
  border-radius: 14px 14px 18px 18px;
  text-decoration: none;
  color: #f6f1e6;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 236, 196, 0.35), transparent 42%),
    linear-gradient(180deg, #214c3c, #13281f);
  border: 1px solid rgba(228, 201, 138, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 8px 16px rgba(28, 22, 18, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
a.door::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 16px;
  height: 9px;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 4px 6px, #e4c98a 4px, transparent 4.5px),
    radial-gradient(circle at 12px 6px, #e4c98a 4px, transparent 4.5px);
}
a.door.tone-0 { background: linear-gradient(180deg, #8d3144, #541824); }
a.door.tone-1 { background: linear-gradient(180deg, #1e4a38, #12281f); }
a.door.tone-2 { background: linear-gradient(180deg, #6d5424, #3c2c10); }
a.door:hover { transform: translateY(-3px); border-color: #fff1cc; color: #fff; }
.door .icon { width: 16px; height: 16px; color: var(--gold-bright); }
.door-num { font-family: var(--serif); font-size: 1.45rem; line-height: 1; font-weight: 560; }
.door-cap {
  min-height: 2em;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: #f0e2c4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.door.kind-christmas { box-shadow: inset 0 0 0 2px #e4c98a, 0 10px 18px rgba(114, 36, 51, 0.18); }
.door.kind-feast { border-color: #fff1cc; border-width: 2px; }
.door.kind-sunday { box-shadow: inset 0 4px 0 #e4c98a; }
.door.door-late { opacity: 0.78; }
.door.is-today { box-shadow: 0 0 0 2px #fff6df, 0 12px 24px rgba(0, 0, 0, 0.22); }

.hymns { display: grid; gap: 0.8rem; }
.hymn {
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}
.hymn header { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.stanza {
  white-space: pre-line;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  margin: 0.35rem 0 0.6rem;
}
.badge {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: #f3e4c4;
  color: var(--gold-deep);
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
}
.event-row { display: flex; flex-wrap: wrap; gap: 0.35rem; }

table.plain { width: 100%; border-collapse: collapse; margin: 0.8rem 0 1rem; }
table.plain th {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
  color: var(--gold-deep);
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid var(--line);
}
table.plain td {
  padding: 0.75rem 0.6rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.money, table .money { text-align: right; font-family: var(--sans); font-variant-numeric: tabular-nums; white-space: nowrap; }
.total-row td { font-weight: 600; border-bottom: none; }
.timeline { list-style: none; padding: 0; margin: 0.5rem 0 1.2rem; }
.timeline li {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.8rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}
.timeline time { font-family: var(--sans); font-weight: 600; color: var(--burgundy); }
.timeline p { margin: 0; }

.meter { height: 7px; background: rgba(28, 22, 18, 0.08); border-radius: 99px; overflow: hidden; margin: 0.4rem 0 1rem; }
.meter span { display: block; height: 100%; width: var(--p); background: linear-gradient(90deg, #1e4a3a, var(--gold)); border-radius: inherit; }
.meter-label { font-family: var(--sans); font-size: 0.95rem; }
.checks form, .checks .check { margin: 0; }
.check {
  width: 100%;
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 0.75rem;
  text-align: left;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 0.8rem 0;
  color: inherit;
  cursor: default;
}
button.check { cursor: pointer; }
button.check:hover { color: var(--burgundy-deep); }
.check .box {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.28rem;
  border: 1.5px solid var(--burgundy);
  border-radius: 4px;
}
.check.is-done .box { background: var(--burgundy); box-shadow: inset 0 0 0 2px #fbf7f1; }
.check.is-done span:last-child { color: var(--ink-soft); }

.reading { padding: 1.35rem 0 1.5rem; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.reading h2 { margin-bottom: 0.3rem; }
.ask, .pray {
  background: #f6f0e4;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  margin-top: 0.8rem;
}
.ask strong, .pray strong {
  display: block;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.25rem;
}
.ask p, .pray p { margin: 0; }

dialog.daybook { border: 0; padding: 0; background: transparent; max-width: 640px; width: calc(100% - 1.5rem); }
dialog.daybook::backdrop { background: rgba(8, 16, 13, 0.72); }
.daybook article {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  border-radius: 18px;
  border-top: 4px solid var(--gold);
  padding: 1.4rem 1.3rem 1.1rem;
  box-shadow: var(--shadow);
  max-height: min(82vh, 760px);
  overflow: auto;
}
.daybook h2 { font-family: var(--serif); font-size: 2rem; margin: 0.2rem 0 0.4rem; }
.close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  border: 0;
  background: transparent;
  font-family: var(--sans);
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--ink-soft);
}
.day-nav { display: flex; justify-content: space-between; gap: 0.6rem; margin-top: 1rem; }
.day-nav button {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-family: var(--sans);
  cursor: pointer;
}
.passage { font-family: var(--sans); font-size: 0.92rem; }

.wizard { display: grid; grid-template-columns: 220px 1fr; gap: 1.4rem; align-items: start; }
.steps { position: sticky; top: 0.8rem; display: grid; gap: 0.15rem; }
.step-link {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 0.86rem;
  padding: 0.32rem 0.3rem;
  border-radius: 8px;
}
a.step-link:hover { background: rgba(166, 132, 61, 0.1); color: var(--ink); }
.step-link.is-current { color: var(--burgundy-deep); font-weight: 600; background: #f8f1e4; }
.step-link.is-locked { opacity: 0.45; }
.wizard-form { display: flex; flex-direction: column; min-width: 0; }
.fields { order: 1; }
.fields h1 {
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0.15rem 0 0.4rem;
}
.lede-line { font-size: 1.2rem; margin-top: 0; }
.context { font-family: var(--sans); font-size: 0.92rem; color: var(--ink-soft); }
.fields { padding-bottom: 4.5rem; }
.savebar {
  order: 2;
  position: sticky;
  bottom: 0;
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.8rem 0 0.2rem;
  margin-top: -4rem;
  background: linear-gradient(180deg, rgba(251, 247, 241, 0), var(--paper) 42%);
  pointer-events: none;
}
.savebar .btn { pointer-events: auto; }
.field { display: block; margin: 0.9rem 0; }
.field span, fieldset legend {
  display: block;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 0.3rem;
}
input, textarea {
  width: 100%;
  background: #fffdf9;
  border: 1px solid rgba(28, 22, 18, 0.16);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  color: var(--ink);
}
textarea { resize: vertical; line-height: 1.5; }
input:focus, textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(166, 132, 61, 0.2); }
fieldset.choices, fieldset.repeat {
  border: 0;
  padding: 0;
  margin: 1.2rem 0;
}
.choices { display: grid; gap: 0.45rem; }
.choice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  padding: 0.75rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffdf9;
  cursor: pointer;
}
.choice:has(input:checked) {
  border-color: var(--burgundy);
  background: #fbf6ee;
  box-shadow: inset 0 0 0 1px var(--burgundy);
}
.choice strong { display: block; font-family: var(--serif); font-size: 1.15rem; font-weight: 560; }
.choice small { display: block; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.4; }
.choice input { width: auto; margin-top: 0.35rem; accent-color: var(--burgundy); }
.repeat { border-top: 1px solid var(--line); padding-top: 0.8rem; }
.inline-row {
  display: grid;
  grid-template-columns: 8rem 1fr auto;
  gap: 0.6rem;
  align-items: end;
  margin-bottom: 0.4rem;
}
.inline-row .amount { max-width: 9rem; }
.inline-row .grow { min-width: 0; }
.check-line { display: flex; gap: 0.5rem; align-items: center; font-family: var(--sans); font-size: 0.95rem; }
.check-line input { width: auto; }
.check-edit { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem; align-items: center; margin: 0.45rem 0; }
.reading-edit { border-top: 1px solid var(--line); padding: 0.6rem 0; }
.reading-edit summary { cursor: pointer; font-family: var(--serif); font-size: 1.15rem; }
.reading-edit summary span { color: var(--gold-deep); margin-right: 0.35rem; }
.reading-edit summary em { font-family: var(--sans); font-style: normal; font-size: 0.78rem; letter-spacing: 0.06em; color: var(--burgundy); margin-left: 0.35rem; }
.form-error {
  background: #f8e4e4;
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  color: var(--burgundy-deep);
}
.refine p { margin: 0.35rem 0; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.preview { margin-top: 1.5rem; border-top: 1px solid var(--line); }
.mine { padding-left: 1.1rem; }
.mine a { font-family: var(--serif); font-size: 1.25rem; }
.flash {
  position: relative;
  z-index: 2;
  background: #f7f1e6;
  color: var(--ink);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  margin: 0.8rem 0 0;
}
.flash-bad { background: #f8e4e4; }
.site-footer { position: relative; z-index: 1; padding: 0 0 3rem; color: #e7dcc8; }
.footer-mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--gold-bright);
  margin-bottom: 0.2rem;
}
.site-footer p { max-width: 40rem; }

@media (max-width: 900px) {
  .wizard, .weeks, .decision-grid, .sunday { grid-template-columns: 1fr; }
  .steps { position: static; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: 0.4rem; }
  .step-link { white-space: nowrap; }
  .after-list { grid-template-columns: 1fr 1fr; }
  .inline-row { grid-template-columns: 1fr; }
  .pine { width: 92px; opacity: 0.72; }
}
@media (max-width: 560px) {
  body { font-size: 1.05rem; }
  .bar { flex-wrap: wrap; }
  .after-list { grid-template-columns: 1fr 1fr; }
  .tradition { grid-template-columns: 2.2rem 1fr; }
  .check-edit { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .month { gap: 0.28rem; }
  a.door { min-height: 64px; padding: 0.7rem 0.1rem 0.25rem; border-radius: 10px; }
  .door .icon, .door-cap { display: none; }
  .door-num { font-size: 1rem; }
  .pine { width: 64px; top: 5.2rem; bottom: auto; opacity: 0.4; }
  .jump { top: 6.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a.door { transition: none; }
  a.door:hover { transform: none; }
  .snow, .snow-slow { animation: none; }
}

body.page-board {
  height: 100dvh;
  overflow: hidden;
  background: #efe6d4;
  color: #f6f1e6;
}
body.page-board::before { display: none; }
body.page-board #content { height: 100%; }
.stage {
  height: 100%;
  padding: clamp(0.7rem, 1.6vw, 1.35rem);
}
.board {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: clamp(0.75rem, 1.5vw, 1.15rem) clamp(0.8rem, 1.6vw, 1.25rem) clamp(0.7rem, 1.3vw, 1rem);
  border-radius: 22px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.16) 0 1px, transparent 1.6px),
    radial-gradient(circle at 72% 28%, rgba(255, 255, 255, 0.2) 0 1.2px, transparent 1.8px),
    radial-gradient(circle at 40% 70%, rgba(255, 255, 255, 0.14) 0 1px, transparent 1.5px),
    #141414;
  background-size: 140px 160px, 180px 200px, 120px 150px, auto;
  box-shadow: 0 24px 60px rgba(40, 28, 16, 0.28);
  overflow: hidden;
}
.flake {
  position: absolute;
  width: min(120px, 12vw);
  color: rgba(255, 255, 255, 0.16);
  pointer-events: none;
}
.flake svg { width: 100%; height: auto; }
.flake-left { left: -1.2rem; top: 38%; }
.flake-right { right: -1.4rem; bottom: 8%; transform: rotate(18deg); }
.snowfield {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.board-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 1rem;
  position: relative;
  z-index: 6;
}
.month-nav {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}
.month-arrow {
  flex: none;
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(246, 241, 230, 0.45);
  color: #f6f1e6;
  text-decoration: none;
  font-size: 1.25rem;
  line-height: 1;
}
.month-arrow:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.month-arrow svg { width: 1rem; height: 1rem; display: block; }
.board-bar h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 620;
  font-size: clamp(2.4rem, 4.6vw, 4.4rem);
  letter-spacing: -0.045em;
  line-height: 0.9;
  color: #f7f2e8;
  white-space: nowrap;
}
.when { position: relative; }
.when-open {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.when-open:hover { color: #fff; }
.when-panel {
  position: absolute;
  z-index: 8;
  top: calc(100% + 0.55rem);
  left: 0;
  width: 18.5rem;
  padding: 0.7rem 0.7rem 0.75rem;
  border-radius: 16px;
  background: #1c1c1c;
  border: 1px solid rgba(246, 241, 230, 0.22);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.board-bar.is-when { z-index: 6; }
.when-months {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.28rem;
}
.when-months a,
.when-years a {
  text-decoration: none;
  color: #f6f1e6;
}
.when-months a {
  text-align: center;
  font-family: var(--serif);
  font-size: 0.92rem;
  font-weight: 520;
  line-height: 1.1;
  padding: 0.38rem 0.15rem;
  border-radius: 999px;
}
.when-months a:hover,
.when-years a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.when-months a.is-on,
.when-years a.is-on { background: #f6f1e6; color: #1b1b1b; }
.when-years {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(246, 241, 230, 0.16);
}
.when-years a {
  width: 1.85rem;
  height: 1.85rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(246, 241, 230, 0.45);
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
}
.when-years a.is-on { border-color: #f6f1e6; }
.board-year {
  font-family: var(--sans);
  font-size: 0.38em;
  font-weight: 600;
  letter-spacing: 0.04em;
  vertical-align: 0.85em;
}
.board-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
}
.day-filters { display: contents; }
.mobile-menu { display: none; }
.board.make-paused .make-own,
.board.make-paused .mobile-menu { display: none; }
.mobile-sheet { display: contents; }
.board-scene { display: none; }
.weekdays { display: flex; gap: 0.28rem; }
.weekdays button {
  width: 1.85rem;
  height: 1.85rem;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(246, 241, 230, 0.45);
  background: transparent;
  color: #f6f1e6;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.weekdays button[data-weekday="0"] { border-color: #e4c98a; color: #e4c98a; }
.weekdays button.is-on,
.weekdays button[data-weekday="0"].is-on {
  background: #f6f1e6;
  border-color: #f6f1e6;
  color: #1b1b1b;
}
.sunday-mark {
  position: absolute;
  z-index: 6;
  top: 0.38rem;
  right: 0.45rem;
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e23d3d;
}
.skin-red .sunday-mark,
.skin-wine .sunday-mark,
.skin-burgundy .sunday-mark,
.skin-ember .sunday-mark,
.board.is-making .tile.is-filled.skin-red .sunday-mark,
.board.is-making .tile.skin-red .sunday-mark,
.board.is-making .tile.skin-wine .sunday-mark,
.board.is-making .tile.skin-burgundy .sunday-mark,
.board.is-making .tile.skin-ember .sunday-mark,
.card-front.tile.is-blank.is-filled.skin-red .sunday-mark { color: #fff; }
.feasts { display: flex; gap: 0.28rem; }
.feasts button {
  width: 1.85rem;
  height: 1.85rem;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #e23d3d;
  background: transparent;
  color: #f0b4b0;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.feasts button.is-on { background: #e23d3d; border-color: #e23d3d; color: #fff; }
.make-own {
  width: 1.85rem;
  height: 1.85rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(246, 241, 230, 0.45);
  background: transparent;
  color: #f6f1e6;
  cursor: pointer;
}
.make-own { position: relative; }
.make-own svg { width: 0.95rem; height: 0.95rem; fill: currentColor; }
.make-own span {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.make-own:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.board-btn[hidden] { display: none !important; }
.feast-bubble {
  position: absolute;
  z-index: 8;
  max-width: 11.5rem;
  padding: 0.42rem 0.7rem;
  border: 2px solid #1b1b1b;
  border-radius: 16px 18px 15px 13px;
  background: #fff8ee;
  color: #2a241c;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.25;
  box-shadow: 3px 3px 0 #1b1b1b;
  pointer-events: none;
}
.feast-bubble i {
  position: absolute;
  bottom: -8px;
  width: 12px;
  height: 12px;
  background: #fff8ee;
  border-right: 2px solid #1b1b1b;
  border-bottom: 2px solid #1b1b1b;
  transform: rotate(45deg);
}
.feast-bubble.is-below i {
  bottom: auto;
  top: -8px;
  border: 0;
  border-left: 2px solid #1b1b1b;
  border-top: 2px solid #1b1b1b;
}
.board.is-filtering .tile.is-dim { opacity: 0.22; }
.board-tools {
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
}
.board-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.22rem;
  text-align: center;
}
.brand-title { max-width: 100%; }
.brand-name {
  display: block;
  max-width: min(16rem, 42vw);
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #f6f1e6;
  cursor: pointer;
}
.brand-name:not(.is-named) { cursor: default; }
.brand-name.is-named:hover { color: #fff; }
.brand-name.is-named { letter-spacing: 0.14em; cursor: pointer; }
.board.is-admin:not(.is-own) .brand-name { cursor: pointer; }
.board.is-admin:not(.is-own) .brand-name:hover { color: #fff; }
.mark {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f6f1e6;
  text-decoration: none;
}
.mark img {
  height: 2.85rem;
  width: auto;
  max-width: none;
  display: block;
  flex: none;
  background: transparent;
}
.mark:hover { color: #fff; }
.board-kicker {
  margin: 0;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246, 241, 230, 0.72);
}
.board-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 1.85rem;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f6f1e6;
  border: 1px solid rgba(246, 241, 230, 0.45);
  border-radius: 999px;
  padding: 0 0.8rem;
  line-height: 1;
}
.board-btn:hover, .board-btn.is-on { background: rgba(255, 255, 255, 0.08); color: #fff; }
.account {
  position: relative;
  display: flex;
  align-items: center;
}
.account-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.account-glyph { display: none; width: 1.15rem; height: 1.15rem; }
.account-btn.is-in { padding: 0 0.65rem 0 0.18rem; }
.account-btn img,
.account-btn .avatar {
  width: 1.45rem;
  height: 1.45rem;
  min-width: 0;
  min-height: 0;
  border-radius: 50%;
  flex: none;
}
.account-btn img { object-fit: cover; display: block; }
.account-btn .avatar {
  display: grid;
  place-items: center;
  background: #f6f1e6;
  color: #1b1b1b;
  font-size: 0.68rem;
  letter-spacing: 0;
}
.account-btn .avatar[hidden],
.account-btn img[hidden] { display: none; }
.account-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  width: max-content;
  min-width: 12.5rem;
  max-width: min(40rem, calc(100vw - 1.5rem));
  padding: 0.4rem;
  border-radius: 14px;
  background: #1c1c1c;
  border: 1px solid rgba(246, 241, 230, 0.22);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  z-index: 8;
}
.account-menu[hidden] { display: none; }
.account-menu button {
  display: block;
  width: auto;
  max-width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: #f6f1e6;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  padding: 0.48rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.account-menu button:hover { background: rgba(255, 255, 255, 0.08); }
.account-menu button.is-on { background: #f6f1e6; color: #1b1b1b; }
.account-row {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.account-row > [data-calendar] { flex: 0 0 auto; }
.account-menu [data-calendar-list] > button,
.account-menu [data-signout] { width: 100%; }
.account-menu [data-delete-calendar] {
  width: auto;
  flex: none;
  padding: 0.4rem 0.55rem;
  color: #e7b7a8;
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.account-delete { padding: 0.4rem 0.55rem 0.5rem; }
.account-delete p {
  margin: 0 0 0.4rem;
  color: #f6f1e6;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
}
.account-delete div { display: flex; gap: 0.35rem; }
.account-delete button {
  width: auto;
  flex: 1;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.64rem;
}
.account-delete [data-delete-confirm] { background: #e23d3d; color: #fff; }
.account-menu [data-signout] {
  margin-top: 0.3rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(246, 241, 230, 0.16);
  border-radius: 0 0 10px 10px;
  color: rgba(246, 241, 230, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.66rem;
}
.name-modal {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: center;
  background: rgba(8, 10, 12, 0.62);
}
.name-modal[hidden] { display: none; }
.name-modal form {
  width: min(24rem, calc(100% - 2rem));
  margin: 0;
  padding: 1.25rem 1.3rem 1.15rem;
  border-radius: 16px;
  background: #f7f2e8;
  color: #2a241c;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.42);
}
.name-modal h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 620;
  font-size: 1.8rem;
  letter-spacing: -0.03em;
}
.name-modal p { margin: 0.45rem 0 0; font-family: var(--sans); font-size: 0.92rem; }
.name-modal input {
  width: 100%;
  margin-top: 0.85rem;
  border: 1px solid rgba(42, 36, 28, 0.22);
  border-radius: 10px;
  background: #fff;
  color: #2a241c;
  font: inherit;
  font-family: var(--sans);
  padding: 0.55rem 0.7rem;
}
.name-note { color: #9a3d4a; }
.name-actions { display: flex; justify-content: flex-end; gap: 0.45rem; margin-top: 0.9rem; }
.name-actions button {
  border: 1px solid rgba(42, 36, 28, 0.28);
  background: transparent;
  color: #2a241c;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
}
.name-actions button[type="submit"] { background: #1b1b1b; color: #f6f1e6; border-color: #1b1b1b; }
.board.is-making .tile .num,
.board.is-making .tile .cap { text-shadow: none; }
.board.is-making .tile .art,
.board.is-making .tile .cap { visibility: hidden; }
.board.is-making .tile.is-filled { background-image: none; }
.board.is-making .tile.is-filled .art,
.board.is-making .tile.is-wide.is-filled .cap { visibility: visible; }
.board.is-making .tile.is-filled.skin-cream { background: #f4efe4; color: #2a241c; }
.board.is-making .tile.is-filled.skin-ivory { background: #f3e0c4; color: #2a241c; }
.board.is-making .tile.is-filled.skin-blush { background: #e7b7a8; color: #2a241c; }
.board.is-making .tile.is-filled.skin-gold { background: #d4b483; color: #2a241c; }
.board.is-making .tile.is-filled.skin-sage { background: #8eae9b; color: #243028; }
.board.is-making .tile.is-filled.skin-red { background: #e23d3d; color: #f7f2e8; }
.board.is-making .tile.is-filled.skin-wine { background: #9a3d4a; color: #f7f2e8; }
.board.is-making .tile.is-filled.skin-burgundy { background: #722433; color: #f7f2e8; }
.board.is-making .tile.is-filled.skin-pine { background: #3d6b58; color: #f7f2e8; }
.board.is-making .tile.is-filled.skin-forest { background: #1e3a32; color: #f7f2e8; }
.board.is-making .tile.is-filled.skin-ink { background: #1b1b1b; color: #f7f2e8; }
.board.is-making .tile.skin-cream { background-color: #f4efe4; color: #2a241c; }
.board.is-making .tile.skin-ivory { background-color: #f3e0c4; color: #2a241c; }
.board.is-making .tile.skin-frost { background-color: #d5e0ea; color: #24344a; }
.board.is-making .tile.skin-blush { background-color: #e7b7a8; color: #2a241c; }
.board.is-making .tile.skin-blossom { background-color: #f3d2cb; color: #5c3a42; }
.board.is-making .tile.skin-gold { background-color: #d4b483; color: #2a241c; }
.board.is-making .tile.skin-wheat { background-color: #e6c98a; color: #3a2e16; }
.board.is-making .tile.skin-sage { background-color: #8eae9b; color: #243028; }
.board.is-making .tile.skin-leaf { background-color: #7d9a72; color: #243028; }
.board.is-making .tile.skin-red { background-color: #e23d3d; color: #f7f2e8; }
.board.is-making .tile.skin-wine { background-color: #9a3d4a; color: #f7f2e8; }
.board.is-making .tile.skin-burgundy { background-color: #722433; color: #f7f2e8; }
.board.is-making .tile.skin-ember { background-color: #c4622d; color: #f7f2e8; }
.board.is-making .tile.skin-pine { background-color: #3d6b58; color: #f7f2e8; }
.board.is-making .tile.skin-forest { background-color: #1e3a32; color: #f7f2e8; }
.board.is-making .tile.skin-sea { background-color: #3f6f78; color: #f7f2e8; }
.board.is-making .tile.skin-violet { background-color: #5c4a6e; color: #f7f2e8; }
.board.is-making .tile.skin-midnight { background-color: #24344a; color: #f7f2e8; }
.board.is-making .tile.skin-ink { background-color: #1b1b1b; color: #f7f2e8; }
.board.is-making .tile.is-filled.skin-cream .art,
.board.is-making .tile.is-filled.skin-ivory .art,
.board.is-making .tile.is-filled.skin-blush .art,
.board.is-making .tile.is-filled.skin-gold .art,
.board.is-making .tile.is-filled.skin-sage .art { color: #c4513a; }
.board.is-making .tile.is-filled.skin-red .art,
.board.is-making .tile.is-filled.skin-wine .art,
.board.is-making .tile.is-filled.skin-burgundy .art,
.board.is-making .tile.is-filled.skin-pine .art,
.board.is-making .tile.is-filled.skin-forest .art,
.board.is-making .tile.is-filled.skin-ink .art { color: #f6ead0; }
.board.is-own .tile .art,
.board.is-own .tile .cap { visibility: hidden; }
.board.is-own .tile.is-filled { background-image: none; }
.board.is-own .tile.is-filled .art,
.board.is-own .tile.is-wide.is-filled .cap { visibility: visible; }
.card-front.tile.is-blank {
  background: #242424;
  background-image: none;
  color: #f7f2e8;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.card-front.tile.is-blank .num,
.card-front.tile.is-blank .cap { text-shadow: none; }
.card-front.tile.is-blank .art,
.card-front.tile.is-blank .cap { visibility: hidden; }
.card-front.tile.is-blank.is-filled { background-image: none; }
.card-front.tile.is-blank.is-filled .art,
.card-front.tile.is-blank.is-wide.is-filled .cap { visibility: visible; }
.card-front.tile.is-blank.is-filled.skin-cream { background: #f4efe4; color: #2a241c; }
.card-front.tile.is-blank.is-filled.skin-ivory { background: #f3e0c4; color: #2a241c; }
.card-front.tile.is-blank.is-filled.skin-blush { background: #e7b7a8; color: #2a241c; }
.card-front.tile.is-blank.is-filled.skin-gold { background: #d4b483; color: #2a241c; }
.card-front.tile.is-blank.is-filled.skin-sage { background: #8eae9b; color: #243028; }
.card-front.tile.is-blank.is-filled.skin-red { background: #e23d3d; color: #f7f2e8; }
.card-front.tile.is-blank.is-filled.skin-wine { background: #9a3d4a; color: #f7f2e8; }
.card-front.tile.is-blank.is-filled.skin-burgundy { background: #722433; color: #f7f2e8; }
.card-front.tile.is-blank.is-filled.skin-pine { background: #3d6b58; color: #f7f2e8; }
.card-front.tile.is-blank.is-filled.skin-forest { background: #1e3a32; color: #f7f2e8; }
.card-front.tile.is-blank.is-filled.skin-ink { background: #1b1b1b; color: #f7f2e8; }
.card-front.tile.is-blank.is-filled.skin-ivory { background-color: #f3e0c4; color: #2a241c; }
.card-front.tile.is-blank.is-filled.skin-frost { background-color: #d5e0ea; color: #24344a; }
.card-front.tile.is-blank.is-filled.skin-blush { background-color: #e7b7a8; color: #2a241c; }
.card-front.tile.is-blank.is-filled.skin-blossom { background-color: #f3d2cb; color: #5c3a42; }
.card-front.tile.is-blank.is-filled.skin-gold { background-color: #d4b483; color: #2a241c; }
.card-front.tile.is-blank.is-filled.skin-wheat { background-color: #e6c98a; color: #3a2e16; }
.card-front.tile.is-blank.is-filled.skin-leaf { background-color: #7d9a72; color: #243028; }
.card-front.tile.is-blank.is-filled.skin-wine { background-color: #9a3d4a; color: #f7f2e8; }
.card-front.tile.is-blank.is-filled.skin-burgundy { background-color: #722433; color: #f7f2e8; }
.card-front.tile.is-blank.is-filled.skin-ember { background-color: #c4622d; color: #f7f2e8; }
.card-front.tile.is-blank.is-filled.skin-pine { background-color: #3d6b58; color: #f7f2e8; }
.card-front.tile.is-blank.is-filled.skin-forest { background-color: #1e3a32; color: #f7f2e8; }
.card-front.tile.is-blank.is-filled.skin-sea { background-color: #3f6f78; color: #f7f2e8; }
.card-front.tile.is-blank.is-filled.skin-violet { background-color: #5c4a6e; color: #f7f2e8; }
.card-front.tile.is-blank.is-filled.skin-midnight { background-color: #24344a; color: #f7f2e8; }
.color-grid { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.35rem; }
.color-pick {
  width: 1.7rem;
  height: 1.7rem;
  padding: 0;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}
.color-pick.is-on { outline: 2px solid #2a241c; outline-offset: 2px; }
.todos { margin-top: 0.9rem; }
.todo-add { display: flex; gap: 0.4rem; margin-top: 0.45rem; }
.todo-add input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 0.45rem 0.65rem;
}
.todo-add button, .todo button {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  font-family: var(--sans);
  cursor: pointer;
  color: var(--ink);
}
.todo-add button { padding: 0.4rem 0.75rem; }
.todos ul { list-style: none; margin: 0.35rem 0 0; padding: 0; display: grid; gap: 0.35rem; }
.todo { display: grid; grid-template-columns: 1.4rem 1fr auto; gap: 0.45rem; align-items: center; }
.todo button[data-todo-toggle] {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 4px;
  padding: 0;
}
.todo.is-done span { text-decoration: line-through; color: var(--ink-soft); }
.todo button[data-todo-remove] { border: 0; font-size: 0.75rem; color: var(--ink-soft); }
.todo-gate { margin: 0.4rem 0 0; font-size: 0.95rem; }
.todo-gate button {
  margin-right: 0.25rem;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-family: var(--sans);
  color: var(--ink);
  cursor: pointer;
}
.maker-choice, .maker-actions { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.maker-choice button, .maker-actions button {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-family: var(--sans);
  cursor: pointer;
  color: var(--ink);
}
.maker-choice button.is-on, .maker-actions button {
  background: #2a241c;
  color: #f7f2e8;
  border-color: #2a241c;
}
.maker-label {
  margin: 0.85rem 0 0.2rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.maker-copy p { margin: 0 0 0.55rem; }
.maker-field { display: grid; gap: 0.25rem; margin-top: 0.7rem; }
.maker-field span {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.maker-field input, .maker-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 0.55rem 0.7rem;
}
.maker-field textarea { min-height: 6.5rem; resize: vertical; }
.icon-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
  margin-top: 0.35rem;
}
.icon-pick {
  display: grid;
  justify-items: center;
  gap: 0.12rem;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 0.35rem 0.1rem 0.28rem;
  cursor: pointer;
  color: #722433;
  font-family: var(--sans);
  font-size: 0.58rem;
  letter-spacing: 0.02em;
}
.icon-pick svg { width: 26px; height: 26px; }
.icon-pick.is-on { border-color: var(--gold-deep); background: #f6f0e4; box-shadow: inset 0 0 0 1px var(--gold); }
.maker-note { margin: 0.6rem 0 0; color: var(--burgundy); font-size: 0.95rem; }
.sample-hint { margin: 0.15rem 0 0; color: var(--ink-soft); font-size: 0.92rem; }
.maker-actions { margin-top: 0.9rem; }
.count {
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
}
.count span {
  min-width: 3.1rem;
  background: #1e1e1e;
  border-radius: 8px;
  padding: 0.28rem 0.35rem 0.32rem;
  text-align: center;
}
.count strong {
  display: block;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.count small, .count em {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(246, 241, 230, 0.62);
}
.count em { align-self: center; margin-left: 0.25rem; max-width: 5.5rem; line-height: 1.2; }
.mosaic {
  position: relative;
  z-index: auto;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 0.48rem;
}
.tile {
  position: relative;
  z-index: 1;
  overflow: visible;
  border: 0;
  border-radius: 12px;
  grid-column: var(--col) / span var(--w);
  grid-row: var(--row) / span var(--h);
  padding: 0.45rem 0.6rem 0.4rem;
  text-align: left;
  cursor: pointer;
  color: #f7f2e8;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: transform 0.22s ease;
}
.tile:hover {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  transform: translateY(-8px);
}
.tile:focus-visible { outline: 2px solid #f3e6c4; outline-offset: 2px; }
.tile .num {
  position: relative;
  z-index: 6;
  display: block;
  font-family: var(--serif);
  font-weight: 620;
  font-size: clamp(1.7rem, 3.5vw, 3.5rem);
  line-height: 0.82;
  letter-spacing: -0.05em;
}
.tile .cap {
  position: relative;
  z-index: 6;
  display: block;
  max-width: 12ch;
  margin-top: 0.2rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 520;
  font-size: clamp(0.85rem, 1.25vw, 1.25rem);
  line-height: 1.05;
}
.tile .art {
  position: absolute;
  z-index: 6;
  right: 6%;
  top: 50%;
  width: min(42%, 78px);
  transform: translateY(-50%);
  pointer-events: none;
}
.tile .art svg { width: 100%; height: auto; display: block; }
.tile.is-wide .art { width: min(28%, 86px); }
.skin-red { background: #e23d3d; }
.skin-cream { background: #f4efe4; color: #2a241c; }
.skin-sage { background: #8eae9b; color: #243028; }
.skin-ink { background: #1b1b1b; color: #f7f2e8; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.skin-ivory { background-color: #f3e0c4; color: #2a241c; }
.skin-frost { background-color: #d5e0ea; color: #24344a; }
.skin-blush { background-color: #e7b7a8; color: #2a241c; }
.skin-blossom { background-color: #f3d2cb; color: #5c3a42; }
.skin-gold { background-color: #d4b483; color: #2a241c; }
.skin-wheat { background-color: #e6c98a; color: #3a2e16; }
.skin-leaf { background-color: #7d9a72; color: #243028; }
.skin-wine { background-color: #9a3d4a; color: #f7f2e8; }
.skin-burgundy { background-color: #722433; color: #f7f2e8; }
.skin-ember { background-color: #c4622d; color: #f7f2e8; }
.skin-pine { background-color: #3d6b58; color: #f7f2e8; }
.skin-forest { background-color: #1e3a32; color: #f7f2e8; }
.skin-sea { background-color: #3f6f78; color: #f7f2e8; }
.skin-violet { background-color: #5c4a6e; color: #f7f2e8; }
.skin-midnight { background-color: #24344a; color: #f7f2e8; }
.skin-ivory .art,
.skin-frost .art,
.skin-blush .art,
.skin-blossom .art,
.skin-gold .art,
.skin-wheat .art,
.skin-leaf .art { color: #9a3d4a; }
.skin-wine .art,
.skin-burgundy .art,
.skin-ember .art,
.skin-pine .art,
.skin-forest .art,
.skin-sea .art,
.skin-violet .art,
.skin-midnight .art { color: #f6ead0; }
.skin-red .num, .skin-red .cap, .skin-ink .num, .skin-ink .cap { text-shadow: 0 1px 1px rgba(20, 16, 12, 0.4); }
.skin-red .art, .skin-ink .art { color: #f6ead0; }
.skin-cream .art { color: #d64545; }
.skin-sage .art { color: #2f4a3c; }
.pat-chev { background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.16) 0 8px, transparent 8px 16px); }
.pat-stripe { background-image: repeating-linear-gradient(-18deg, rgba(180, 90, 70, 0.18) 0 10px, transparent 10px 18px); }
.pat-dot { background-image: radial-gradient(rgba(255,255,255,0.28) 1.1px, transparent 1.3px); background-size: 12px 12px; }
.skin-cream.pat-dot { background-image: radial-gradient(rgba(42, 36, 28, 0.12) 1.1px, transparent 1.3px); }
.skin-ivory.pat-dot,
.skin-frost.pat-dot,
.skin-blush.pat-dot,
.skin-blossom.pat-dot,
.skin-gold.pat-dot,
.skin-wheat.pat-dot,
.skin-leaf.pat-dot { background-image: radial-gradient(rgba(42, 36, 28, 0.16) 1.1px, transparent 1.3px); }
.skin-sage.pat-chev { background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.28) 0 8px, transparent 8px 16px); }
.skin-red.pat-chev { background-image: repeating-linear-gradient(135deg, rgba(0,0,0,0.08) 0 10px, transparent 10px 18px); }
.tile.is-today { box-shadow: 0 0 0 2px #f6ead0, 0 10px 24px rgba(0, 0, 0, 0.28); }
.tile.is-lifted { visibility: hidden; }
.card-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(8, 10, 12, 0);
  transition: background 0.45s ease;
  perspective: 1600px;
}
.card-modal.is-open { background: rgba(8, 10, 12, 0.62); }
.card-modal.is-closing { background: rgba(8, 10, 12, 0); }
.card-flight {
  position: fixed;
  z-index: 1;
  margin: 0;
}
.card-flight.is-moving {
  transition:
    left 0.68s cubic-bezier(0.22, 0.8, 0.24, 1),
    top 0.68s cubic-bezier(0.22, 0.8, 0.24, 1),
    width 0.68s cubic-bezier(0.22, 0.8, 0.24, 1),
    height 0.68s cubic-bezier(0.22, 0.8, 0.24, 1);
}
.card-flight-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.45, 0.05, 0.2, 1);
}
.card-modal.is-open .card-flight-inner {
  transform: rotateY(180deg);
  transition-delay: 0.3s;
}
.card-face {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.42);
}
.card-front.tile {
  z-index: auto;
  overflow: hidden;
  width: 100%;
  height: 100%;
  cursor: default;
  transform: rotateY(0deg);
}
.card-front .num,
.card-front .cap,
.card-front .art {
  z-index: auto;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.card-front .art {
  top: 0;
  height: 100%;
  transform: none;
  display: flex;
  align-items: center;
}
.card-modal.is-open .card-front {
  visibility: hidden;
  transition: visibility 0s linear 0.64s;
}
.card-modal.is-closing .card-front {
  visibility: visible;
  transition: visibility 0s linear 0.34s;
}
.card-front.tile:hover { transform: rotateY(0deg); box-shadow: 0 28px 60px rgba(0, 0, 0, 0.42); }
.card-back {
  transform: rotateY(180deg);
  background: var(--paper);
  color: var(--ink);
  border-top: 4px solid var(--gold);
  padding: 1.45rem 1.35rem 1.15rem;
  overflow: auto;
}
.card-back h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0.15rem 0 0.45rem;
  line-height: 1.05;
}
.card-back.is-day {
  border-top: 0;
  background: #f7f3ea;
  padding: 1.15rem 1.35rem 0.95rem;
}
.card-back.is-day .close {
  top: 0.85rem;
  right: 0.95rem;
  font-size: 1.35rem;
  line-height: 1;
  color: #2a241c;
}
.card-head {
  display: grid;
  grid-template-columns: 1fr 4.6rem;
  gap: 0.75rem;
  align-items: start;
  padding-right: 1.2rem;
}
.card-back.is-day .kicker {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8d8478;
}
.card-back.is-day h2 {
  margin: 0.28rem 0 0;
  font-weight: 620;
  font-size: clamp(2rem, 3.4vw, 2.55rem);
  letter-spacing: -0.035em;
  text-transform: capitalize;
  color: #1c1916;
}
.card-rule {
  display: block;
  width: 2.6rem;
  height: 3px;
  margin: 0.55rem 0 0.15rem;
  border-radius: 2px;
  background: #d23c3c;
}
.card-mark {
  color: #3a2e24;
  margin-top: 0.15rem;
}
.card-mark svg { width: 100%; height: auto; display: block; }
.art svg.lucide,
.card-mark svg.lucide {
  width: 100%;
  height: auto;
  display: block;
  fill: none;
  stroke: currentColor;
}
.card-back.is-day .today-do {
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin: 0;
}
.card-back.is-day .today-do.verse {
  margin-top: 1.05rem;
  padding: 0.72rem 0.95rem 0.78rem 0.9rem;
  background: #f1e6d2;
  border-left: 3px solid #b08948;
  border-radius: 0 12px 12px 0;
}
.card-back.is-day .today-do strong,
.card-back.is-day .todos .maker-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.38rem;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
  color: #8a7044;
}
.card-back.is-day .today-do.verse strong { margin-bottom: 0.32rem; }
.card-back.is-day .today-do strong svg,
.card-back.is-day .todos .maker-label svg { width: 0.95rem; height: 0.95rem; flex: none; }
.card-back.is-day .today-do p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.5;
  color: #2c2824;
}
.card-back.is-day .today-do.verse p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.5;
  color: #3a2e24;
}
.card-back.is-day .today-do.plan {
  min-width: 0;
  max-width: 100%;
  padding-top: 1rem;
}
.card-back.is-day .today-do.plan [data-intro] { margin: 0; }
.card-back.is-day .today-do .feast-label {
  margin: 0 0 0.45rem;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
  color: #6d5838;
}
.card-back.is-day .today-do [data-groups]:not(:empty) {
  margin-top: 1rem;
  padding: 0.85rem 0.9rem 0.9rem;
  background: #fff;
  border: 1px solid rgba(42, 36, 28, 0.08);
  border-radius: 14px;
}
.card-back.is-day .today-do.plan [data-intro][hidden] + [data-groups]:not(:empty) { margin-top: 0; }
.card-back.is-day .today-do [data-groups] > .feast-label:first-child { margin-top: 0; }
.card-back.is-day .today-do .feast-tasks + .feast-label {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(42, 36, 28, 0.1);
}
.card-back.is-day .feast-tasks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.38rem;
  min-width: 0;
  max-width: 100%;
  font-size: 1.02rem;
  line-height: 1.5;
  color: #2c2824;
}
.card-back.is-day .feast-tasks li {
  position: relative;
  min-width: 0;
  padding-left: 1.65rem;
}
.card-back.is-day .feast-tasks input {
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 1rem;
  height: 1rem;
  min-width: 1rem;
  max-width: 1rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  box-shadow: none;
  accent-color: #6e8f62;
}
.card-back.is-day .feast-tasks span {
  display: block;
  min-width: 0;
  overflow-wrap: break-word;
}
.card-back.is-day .today-do [data-notes]:not(:empty) {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.75rem;
  padding: 0;
  border: 0;
  background: none;
}
.card-back.is-day .feast-note {
  margin: 0;
  padding: 0.62rem 0.85rem 0.68rem;
  background: #efe4d2;
  border-radius: 12px;
}
.card-back.is-day [data-notes] > .feast-note + .feast-note { margin-top: 0; }
.card-back.is-day .today-do .feast-note strong {
  display: block;
  margin: 0 0 0.22rem;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 600;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
  color: #8a7044;
}
.card-back.is-day .today-do .feast-note p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
  color: #3f3832;
}
.card-back.is-day .todos {
  margin: 0.75rem 0 0;
  padding: 0.8rem 0.9rem 0.75rem;
  background: #fff;
  border: 1px solid rgba(42, 36, 28, 0.08);
  border-radius: 14px;
}
.card-back.is-day .todos ul { margin-top: 0.1rem; gap: 0.38rem; }
.card-back.is-day .todo {
  grid-template-columns: 1rem 1fr auto;
  gap: 0.65rem;
  align-items: start;
  padding: 0.02rem 0;
}
.card-back.is-day .todo span {
  min-width: 0;
  font-size: 1.02rem;
  line-height: 1.5;
}
.card-back.is-day .todo button[data-todo-toggle] {
  width: 1rem;
  height: 1rem;
  margin-top: 0.2rem;
  border-radius: 3px;
  border: 1.5px solid #c4b8a8;
  background: #fff;
}
.card-back.is-day .todo.is-done button[data-todo-toggle] {
  background: #6e8f62;
  border-color: #6e8f62;
  color: #fff;
}
.card-back.is-day .todo button[data-todo-remove] { margin-top: 0.18rem; }
.card-back.is-day .todo-add {
  display: grid;
  grid-template-columns: 1.65rem 1fr;
  gap: 0;
  align-items: center;
  margin-top: 0.4rem;
  padding: 0.05rem 0 0;
  border-radius: 0;
  background: transparent;
}
.card-back.is-day .todo-add button {
  width: 1rem;
  height: 1rem;
  justify-self: start;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #6e8f62;
  font-size: 1.15rem;
  line-height: 1;
}
.card-back.is-day .todo-add input {
  width: 100%;
  min-width: 0;
  border: 0;
  border-bottom: 1px solid rgba(42, 36, 28, 0.16);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0.28rem 0.05rem;
  font-family: var(--sans);
  font-size: 0.95rem;
}
.card-back.is-day .todo-add input:focus {
  outline: none;
  border-bottom-color: #8a7044;
  box-shadow: none;
}
.card-back.is-day .day-nav {
  align-items: center;
  margin: 1.15rem -1.35rem -0.95rem;
  padding: 0.72rem 1.05rem 0.78rem;
  border-top: 1px solid rgba(42, 36, 28, 0.1);
}
.card-back.is-day .day-nav button {
  border: 1px solid rgba(42, 36, 28, 0.16);
  background: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.82rem;
  color: #2a241c;
}
.card-back.is-day .day-nav button:disabled { opacity: 0.35; }
.day-meter {
  flex: 1;
  display: grid;
  justify-items: center;
  gap: 0.28rem;
}
.day-meter span {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8d8478;
}
.day-meter i {
  display: block;
  width: min(7.5rem, 100%);
  height: 4px;
  border-radius: 999px;
  background: #e4ddd2;
  overflow: hidden;
}
.day-meter b {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: #6e8f62;
}
.board-flash {
  position: fixed;
  z-index: 30;
  top: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
}
.today-do {
  background: #f6f0e4;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  margin: 0.35rem 0 0.8rem;
}
.today-do strong {
  display: block;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.25rem;
}
.today-do p { margin: 0; }
.today-do p + p { margin-top: 0.45rem; }
.today-do.verse p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.5;
  color: #3a2e24;
}
.today-do.plan {
  min-width: 0;
  max-width: 100%;
}
.today-do.plan [data-intro] {
  margin-bottom: 0.45rem;
}
.feast-label {
  margin: 1.22rem 0 0.36rem;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.feast-tasks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.38rem;
  min-width: 0;
  max-width: 100%;
  font-size: 1.02rem;
  line-height: 1.5;
}
.feast-tasks li {
  position: relative;
  min-width: 0;
  padding-left: 1.65rem;
}
.feast-tasks input {
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 1rem;
  height: 1rem;
  min-width: 1rem;
  max-width: 1rem;
  margin: 0;
  padding: 0;
  accent-color: #6e8f62;
}
.feast-tasks span {
  display: block;
  min-width: 0;
}
.feast-note {
  margin-top: 1.05rem;
}
.feast-note strong {
  margin-bottom: 0.5rem;
}
.feast-note p { margin: 0; }
[hidden] { display: none !important; }

@media (max-width: 800px) {
  body.page-board { height: auto; overflow: auto; }
  body.page-board #content, .stage, .board { height: auto; }
  .stage { padding: 0.5rem; }
  .board {
    min-height: 100dvh;
    overflow: visible;
    gap: 0.85rem;
    padding: 0.85rem 0.8rem 0.75rem;
    border-radius: 28px;
  }
  .board-bar,
  .board-bar.is-when {
    z-index: auto;
    grid-template-columns: 2.4rem 1fr 2.4rem;
    grid-template-areas:
      "menu logo account"
      "month month month"
      "title title title"
      "kicker kicker kicker"
      "count count count"
      "days days days";
    justify-items: center;
    row-gap: 0.55rem;
    width: 100%;
  }
  .board-bar.is-when .month-nav { z-index: 8; }
  .board-brand,
  .board-tools,
  .board-actions { display: contents; }
  .mobile-menu {
    display: grid;
    place-items: center;
    grid-area: menu;
    justify-self: start;
    z-index: 5;
    width: 2.2rem;
    height: 2.2rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #f6f1e6;
    cursor: pointer;
  }
  .mobile-menu svg { width: 1.35rem; height: 1.35rem; }
  .mark { grid-area: logo; z-index: 5; }
  .mark img { height: 2.45rem; }
  .account { grid-area: account; justify-self: end; z-index: 7; }
  .account-btn {
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
    border-radius: 50%;
    border-width: 1.5px;
    border-color: rgba(246, 241, 230, 0.85);
    overflow: hidden;
  }
  .account-btn [data-auth-name] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .account-btn img,
  .account-btn .avatar { width: 100%; height: 100%; }
  .account-btn:not(.is-in) .account-glyph { display: block; }
  .month-nav {
    grid-area: month;
    z-index: 5;
    width: 100%;
    justify-content: space-between;
    margin-top: 0.45rem;
    padding: 0 0.1rem;
  }
  .month-arrow { width: 2.35rem; height: 2.35rem; }
  .month-arrow svg { width: 1.15rem; height: 1.15rem; }
  .brand-title { grid-area: title; z-index: 5; max-width: 100%; }
  .brand-name {
    max-width: calc(100vw - 2.2rem);
    font-size: 0.68rem;
    letter-spacing: 0.16em;
  }
  .board-kicker {
    grid-area: kicker;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    font-size: 0.66rem;
    letter-spacing: 0.2em;
  }
  .board-kicker::before,
  .board-kicker::after {
    content: "";
    width: 2.15rem;
    height: 1px;
    background: rgba(246, 241, 230, 0.55);
  }
  .board-scene {
    display: block;
    position: absolute;
    z-index: 0;
    grid-column: 1 / -1;
    grid-row: 1 / 6;
    top: -0.85rem;
    right: -0.8rem;
    bottom: 0;
    left: -0.8rem;
    width: auto;
    height: auto;
    margin: 0;
    border-radius: 28px 28px 0 0;
    background-image:
      linear-gradient(to bottom, rgba(8, 7, 8, 0.32) 0%, rgba(8, 7, 8, 0.12) 28%, rgba(8, 7, 8, 0.02) 52%, rgba(8, 7, 8, 0.16) 82%, rgba(8, 7, 8, 0.45) 100%),
      var(--scene);
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 84%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 84%, transparent 100%);
    pointer-events: none;
  }
  .count {
    grid-area: count;
    z-index: 5;
    align-self: start;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.42rem;
    width: 100%;
    margin-top: -0.12rem;
    padding: 0 0.05rem 0.2rem;
  }
  .count span {
    min-width: 0;
    background: rgba(14, 12, 12, 0.58);
    border-radius: 16px;
    padding: 0.7rem 0.15rem 0.55rem;
  }
  .count strong { font-size: 1.55rem; font-weight: 560; letter-spacing: 0.02em; }
  .count small { margin-top: 0.12rem; font-size: 0.52rem; letter-spacing: 0.11em; }
  .count em {
    grid-column: 1 / -1;
    margin: 0.4rem 0 0;
    max-width: none;
    text-align: center;
    letter-spacing: 0.22em;
    font-size: 0.6rem;
    color: rgba(246, 241, 230, 0.8);
  }
  .day-filters {
    display: flex;
    grid-area: days;
    z-index: 5;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.38rem;
    width: 100%;
  }
  .weekdays button,
  .feasts button { width: 2rem; height: 2rem; }
  .weekdays button[data-weekday="0"],
  .weekdays button[data-weekday="0"].is-on {
    background: #e4c98a;
    border-color: #e4c98a;
    color: #1c1408;
  }
  .board.is-filtering .weekdays button[data-weekday="0"]:not(.is-on) {
    background: transparent;
    color: #e4c98a;
  }
  .mobile-sheet {
    display: none;
    position: absolute;
    z-index: 9;
    top: 2.7rem;
    left: 0;
    min-width: 12.5rem;
    padding: 0.4rem;
    border-radius: 14px;
    background: #1c1c1c;
    border: 1px solid rgba(246, 241, 230, 0.22);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  }
  .mobile-sheet.is-open { display: flex; }
  .mobile-sheet .make-own {
    width: 100%;
    height: auto;
    border: 0;
    border-radius: 10px;
    justify-content: flex-start;
    gap: 0.5rem;
    padding: 0.55rem 0.7rem;
  }
  .mobile-sheet .make-own span {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    clip: auto;
    overflow: visible;
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
  }
  .when-panel {
    left: 50%;
    width: min(18.5rem, calc(100vw - 2.4rem));
    transform: translateX(-50%);
  }
  .board-bar h1 { font-size: clamp(2.45rem, 11vw, 3.1rem); }
  .mosaic {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: minmax(88px, auto);
    min-height: 0;
  }
  .tile {
    grid-column: var(--mcol) / span var(--mw);
    grid-row: var(--mrow) / span var(--mh);
  }
  .tile .num { font-size: 1.7rem; }
  .tile .cap { font-size: 0.78rem; }
  .flake { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .tile:hover { transform: none; }
  .card-flight.is-moving,
  .card-flight-inner,
  .card-modal { transition: none; }
  .card-modal.is-open .card-flight-inner { transition-delay: 0s; }
}

@media print {
  .snowfield { display: none !important; }
  body { background: white; color: black; }
  body::before, .scene, .site-header, .site-footer, .jump, .no-print, .savebar, dialog, .card-modal { display: none !important; }
  .sheet, .sheet.reader { box-shadow: none; margin: 0; width: auto; max-width: none; border-top: 0; }
  a { color: black; text-decoration: none; }
  .reading, .week, .sunday { break-inside: avoid; }
}
