:root {
  color-scheme: light;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #251b35;
  background: #f8f6fb;
  --ink: #281b38;
  --muted: #544766;
  --accent: #593485;
  --edge: #e0d7ec;
}
* { box-sizing: border-box; }
body { margin: 0; }
.wrap { width: min(68rem, calc(100% - 3rem)); margin-inline: auto; }
.masthead { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem 1.2rem; border-bottom: 1px solid var(--edge); padding-block: 1rem; }
.masthead span { font-family: Georgia, serif; font-size: 1.35rem; font-weight: 700; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid #7e42ad; outline-offset: 4px; }
.intro { padding-block: clamp(2rem, 5vw, 4rem) clamp(1.4rem, 4vw, 2.8rem); }
.eyebrow { color: var(--accent); font-size: .78rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; margin: 0 0 .6rem; }
h1, h2 { font-family: Georgia, serif; font-weight: 500; }
h1 { color: var(--ink); font-size: clamp(2.65rem, 6.4vw, 5.3rem); letter-spacing: -.05em; line-height: .98; margin: 0; }
.intro > p:last-child { color: var(--muted); font-size: 1.05rem; line-height: 1.6; max-width: 36rem; margin: 1rem 0 0; }
.planner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--edge); border-radius: 1.25rem; background: white; }
.settings, .result { padding: clamp(1.2rem, 4vw, 2.5rem); }
.settings h2, .result h2 { font-size: 1.75rem; line-height: 1.18; margin: 0 0 1rem; letter-spacing: -.025em; }
.field + .field { margin-top: 1.4rem; }
label { display: block; font-weight: 700; }
.hint { color: var(--muted); font-size: .9rem; line-height: 1.5; margin: .35rem 0 .65rem; }
input, select, button { font: inherit; }
input, select { display: block; width: min(100%, 18rem); min-width: 0; min-height: 3rem; padding: .55rem .7rem; border: 1px solid #8e819e; border-radius: .5rem; background: #fff; color: var(--ink); }
[aria-invalid="true"] { border: 2px solid #982d49; }
.problem { color: #84223b; margin: .85rem 0 0; font-size: .9rem; line-height: 1.4; }
.result { background: #ede4f7; border-radius: 0 1.2rem 1.2rem 0; }
.date-card { display: inline-flex; flex-direction: column; align-items: center; min-width: 4.3rem; overflow: hidden; border: 1px solid #bba4d4; border-radius: .7rem; background: #faf7fe; }
#badge-month { display: block; align-self: stretch; text-align: center; background: #dcd0ef; padding: .24rem .55rem; font-size: .8rem; font-weight: 700; }
#badge-day { padding: .1rem .55rem .24rem; font-size: 1.65rem; line-height: 1.15; font-family: Georgia, serif; }
.reminder { margin: .6rem 0 .85rem; max-width: 26rem; }
button { min-height: 2.9rem; max-width: 100%; border: 1px solid transparent; border-radius: .55rem; color: #fff; background: #54307c; padding: .6rem .95rem; font-weight: 700; }
button:enabled { cursor: pointer; }
button:enabled:hover { background: #382052; }
button:disabled { background: #dcd0e9; color: #594966; }
.result .hint { margin-bottom: 0; }
.urgent, footer { font-size: .9rem; line-height: 1.55; color: var(--muted); }
.urgent { margin: 1rem 0 1.5rem; }
footer { border-top: 1px solid var(--edge); padding: .95rem 0 1.5rem; }
@media (max-width: 40rem) {
  .wrap { width: calc(100% - 1.5rem); }
  .planner { grid-template-columns: minmax(0, 1fr); }
  .settings, .result { padding-inline: clamp(12px, 5vw, 28px); }
  .result { border-radius: 0 0 1.2rem 1.2rem; }
  .title-break { display: none; }
}
