/* Fraunces (SIL Open Font License), served from this site so pages do not wait on another host. */
/* vietnamese */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/fraunces-italic-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/fraunces-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/fraunces-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/fraunces-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/fraunces-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/fraunces-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/fraunces-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/fraunces-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/fraunces-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* nunito-cyrillic-ext-wght-normal */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url(/fonts/nunito-cyrillic-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* nunito-cyrillic-wght-normal */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url(/fonts/nunito-cyrillic-wght-normal.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* nunito-vietnamese-wght-normal */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url(/fonts/nunito-vietnamese-wght-normal.woff2) format('woff2');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* nunito-latin-ext-wght-normal */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url(/fonts/nunito-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* nunito-latin-wght-normal */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url(/fonts/nunito-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* Advent BFF. Phone first: almost everyone arrives from a link in a chat app. */
:root {
  --font-ui: "Nunito", "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --sky-top: #0c1535;
  --sky-bottom: #26356f;
  --wall: #f6ecd9;
  --wall-line: rgba(122, 74, 43, 0.09);
  --roof: #b23a48;
  --roof-dark: #8f2b38;
  --frame: #7a4a2b;
  --pane: #18213f;
  --pane-number: #c9d2f5;
  --glow: #ffcf70;
  --ink: #1d2140;
  --card: #fffaf0;
  --accent: #c8364a;
  --accent-ink: #ffffff;
  --muted: #5f6385;
  --line: #e8dcc6;
  --on-sky: #f4f1ff;
  --on-sky-muted: #c0c6ea;
}
body[data-theme="gingerbread"] {
  --sky-top: #24121c;
  --sky-bottom: #5b2f3a;
  --wall: #c07d45;
  --wall-line: rgba(255, 255, 255, 0.13);
  --roof: #7a4526;
  --roof-dark: #5f331a;
  --frame: #fff6e6;
  --pane: #3a1f18;
  --pane-number: #f3d9bd;
  --accent: #b5462f;
  --on-sky-muted: #e6c9c0;
}
body[data-theme="blush"] {
  --sky-top: #2b1736;
  --sky-bottom: #6a3b68;
  --wall: #fde6ed;
  --wall-line: rgba(214, 110, 146, 0.12);
  --roof: #e58fa9;
  --roof-dark: #cf6f8e;
  --frame: #d9779a;
  --pane: #3b2148;
  --pane-number: #f1d3e6;
  --accent: #d2507c;
  --on-sky-muted: #e3c6e0;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--sky-bottom);
  line-height: 1.5;
}
h1, h2, h3, .display { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.wrap { max-width: 480px; margin: 0 auto; padding: 0 16px; }
[hidden] { display: none !important; }

/* ---------- night sky ---------- */
.sky {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1.5px 1.5px at 12% 14%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 82% 9%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 64% 22%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 30% 6%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 45% 16%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 28%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 32%, #fff 50%, transparent 51%),
    linear-gradient(var(--sky-top), var(--sky-bottom));
  color: var(--on-sky);
}
.snow, .snow::after {
  content: "";
  position: absolute;
  top: -120px;
  left: 0;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: transparent;
  box-shadow:
    22px 40px #fff, 86px 120px rgba(255,255,255,.8), 140px 20px #fff, 210px 160px rgba(255,255,255,.7),
    268px 70px #fff, 330px 190px rgba(255,255,255,.8), 54px 230px rgba(255,255,255,.7), 180px 260px #fff,
    300px 300px rgba(255,255,255,.8), 110px 340px #fff, 240px 380px rgba(255,255,255,.7), 360px 420px #fff,
    30px 460px rgba(255,255,255,.8), 400px 90px #fff, 430px 280px rgba(255,255,255,.7), 470px 180px #fff;
  animation: fall 14s linear infinite;
  pointer-events: none;
}
.snow::after { top: -500px; left: 60px; animation-duration: 22s; opacity: .7; }
@keyframes fall { to { transform: translateY(980px); } }

/* ---------- the house ---------- */
.house { position: relative; width: 100%; max-width: 420px; margin: 0 auto; }
.roof { display: block; width: 100%; height: auto; margin-bottom: -2px; }
.roof .tile { fill: var(--roof); }
.roof .tile-dark { fill: var(--roof-dark); }
.roof .brick { fill: var(--roof-dark); }
.smoke { fill: rgba(255, 255, 255, 0.5); animation: drift 5s ease-in-out infinite; }
.smoke.b { animation-delay: 1.6s; }
.smoke.c { animation-delay: 3.2s; }
@keyframes drift { 0% { transform: translate(0, 6px) scale(.7); opacity: 0; } 30% { opacity: .7; } 100% { transform: translate(14px, -26px) scale(1.25); opacity: 0; } }
.wall {
  position: relative;
  margin: 0 5.5%;
  padding: 12px 9px 18px;
  background:
    repeating-linear-gradient(0deg, transparent 0 21px, var(--wall-line) 21px 22px),
    var(--wall);
  border-radius: 0 0 10px 10px;
  box-shadow: inset 0 10px 14px -8px rgba(0, 0, 0, 0.28);
}
/* Six across, four down: a wide, low house, so the whole calendar and the main button fit on one phone screen. */
.grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 11px 6px; }
.hill { height: 30px; margin-top: -12px; background: #fff; border-radius: 50% 50% 0 0 / 100% 100% 0 0; position: relative; }

.win {
  position: relative;
  aspect-ratio: 1 / 1.28;
  padding: 0;
  border: 2.5px solid var(--frame);
  border-radius: 999px 999px 7px 7px;
  background: var(--pane);
  color: var(--pane-number);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  -webkit-tap-highlight-color: transparent;
  transition: transform .15s ease, box-shadow .3s ease, background .3s ease;
}
.win:active { transform: scale(.95); }
.win::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(transparent 49%, var(--frame) 49% 52%, transparent 52%), linear-gradient(90deg, transparent 48.5%, var(--frame) 48.5% 51.5%, transparent 51.5%); opacity: .55; pointer-events: none; }
.win::after { content: ""; position: absolute; left: -5px; right: -5px; bottom: -6px; height: 6px; border-radius: 4px; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.12); }
.win .n { position: absolute; top: 14%; left: 0; right: 0; text-align: center; font-size: 11px; font-weight: 700; z-index: 1; text-shadow: 0 1px 2px rgba(0,0,0,.45); }
.win .st { position: relative; z-index: 1; font-size: 19px; margin-top: 12%; line-height: 1; }
.win .plus { position: relative; z-index: 1; margin-top: 22%; font-size: 18px; font-weight: 300; opacity: .75; }
.win .who { position: absolute; bottom: 4%; left: 3%; right: 3%; z-index: 1; font-size: 8.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; color: #5a3a12; }
.win.lit { background: radial-gradient(circle at 50% 62%, #fff6d2, var(--glow) 58%, #f0a236); color: #6b3d0c; box-shadow: 0 0 16px 3px rgba(255, 201, 96, .55); }
.win.lit .n { text-shadow: none; color: #7a4a12; }
.win.lit::before { opacity: .3; }
.win.ready { animation: pulse 1.7s ease-in-out infinite; }
.win.ready .st { animation: wiggle 1.7s ease-in-out infinite; }
.win.opened { background: #fffaf0; color: #7a4a12; box-shadow: 0 0 10px 2px rgba(255, 220, 150, .35); }
.win.opened::before { opacity: .12; }
.win.mine { outline: 2px dashed rgba(255,255,255,.85); outline-offset: 2px; }
.win.pop { animation: pop .5s ease; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 14px 3px rgba(255, 201, 96, .5); } 50% { box-shadow: 0 0 26px 9px rgba(255, 214, 120, .95); } }
@keyframes wiggle { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes pop { 0% { transform: scale(.7); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }

/* ---------- cards, forms, buttons ---------- */
.card { background: var(--card); color: var(--ink); border-radius: 20px; padding: 18px; box-shadow: 0 10px 30px rgba(8, 10, 40, .28); }
.sky .card .fine { color: var(--muted); }
.sky .card a { color: var(--ink); }
.field { display: block; margin-bottom: 12px; }
.field span { display: block; font-size: 13px; font-weight: 700; margin-bottom: 5px; }
.input, textarea.input {
  width: 100%; padding: 13px 14px; font-size: 16px; border: 2px solid var(--line); border-radius: 13px; background: #fff; outline: none;
}
.input:focus { border-color: var(--accent); }
textarea.input { min-height: 104px; resize: none; }
.btn {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 52px; padding: 12px 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 80%, #30241e);
  border-radius: 9px 13px 9px 12px / 12px 9px 12px 8px;
  background-color: var(--accent);
  background-image: linear-gradient(105deg, color-mix(in srgb, var(--accent) 93%, transparent), color-mix(in srgb, var(--accent) 96%, transparent)), var(--art-wall, none);
  background-size: auto, 205px auto;
  color: var(--accent-ink); font: 600 17px/1.25 var(--font-display); text-decoration: none; text-align: center;
  box-shadow: 0 2px 0 #49382b27;
}
.btn:not(.ghost)::before {
  content: ""; position: absolute; inset: 3px; border: 1px solid #fff1cc55; border-radius: 6px 10px 6px 9px / 9px 6px 9px 5px; pointer-events: none;
}
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.btn[disabled] { opacity: .6; }
.btn.ghost { background: #fffaf0; color: var(--ink); border: 1px solid color-mix(in srgb, var(--ink) 30%, #dfcfb4); box-shadow: none; }
.btn.small { min-height: 44px; font-size: 15px; padding: 9px 12px; }
.row { display: flex; gap: 8px; }
.row > * { flex: 1; }
.chips { display: flex; gap: 8px; }
.chip { flex: 1; padding: 9px 4px 8px; border: 2px solid var(--line); border-radius: 13px; background: #fff; font-size: 13px; font-weight: 700; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.chip[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.swatch { width: 44px; height: 26px; border-radius: 7px 7px 3px 3px; position: relative; overflow: hidden; }
.swatch::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 11px; height: 13px; margin-left: -5.5px; border-radius: 6px 6px 1px 1px; background: #ffd27a; box-shadow: 0 0 6px 1px rgba(255, 210, 122, .9); }
.swatch.midnight { background: linear-gradient(#b23a48 0 34%, #f6ecd9 34%); }
.swatch.gingerbread { background: linear-gradient(#7a4526 0 34%, #c07d45 34%); }
.swatch.blush { background: linear-gradient(#e58fa9 0 34%, #fde6ed 34%); }
.fine { font-size: 13px; color: var(--muted); }
.sky .fine { color: var(--on-sky-muted); }
.center { text-align: center; }
.link { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; font-weight: 700; }

/* ---------- home ---------- */
.top { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 4px; }
.brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 19px; text-decoration: none; color: var(--on-sky); }
.brand svg { width: 26px; height: 26px; }
.pill { font: 600 13.5px/1.4 var(--font-display); padding: 7px 12px; border-radius: 7px 10px 7px 9px; background: rgba(255,255,255,.14); color: var(--on-sky); text-decoration: none; border: 1px solid rgba(255,255,255,.22); }
/* Small pages (code, privacy, terms, 404) open with a plain heading on the night sky. */
.hero h1 { margin: 10px 0 6px; font-size: 30px; line-height: 1.12; }
.hero p.lead { margin: 0 0 12px; font-size: 15.5px; color: var(--on-sky-muted); }
.calhead h1 em { font-style: italic; color: var(--glow); white-space: nowrap; }
/* Home page: the same house as a real calendar, shown as a sample. */
.home .win { pointer-events: none; }
.home .calhead { padding-bottom: 14px; }
.home .calhead p { max-width: 330px; margin: 0 auto; }
.home .panel h2 { font-size: 22px; }
.pitch { display: none; }
.section { background: var(--card); padding: 34px 0; }
.section.alt { background: color-mix(in srgb, var(--card) 88%, var(--skin-wall)); }
.section h2 { font-size: 25px; line-height: 1.2; margin: 0 0 14px; }
#how .wrap { max-width: 1220px; }
.guide-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.guide-heading h2 { margin: 0; }
.guide-heading a, .sample-link { color: var(--accent); font-weight: 700; text-underline-offset: 3px; }
.guide-heading a { font-size: 14px; white-space: nowrap; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.steps li { min-width: 0; }
.steps img { display: block; width: 100%; height: auto; border-radius: 12px 10px 14px 8px; }
.step-copy { padding: 12px 2px 0; }
.steps h3 { display: flex; align-items: baseline; gap: 8px; font-size: 21px; line-height: 1.15; margin: 0 0 5px; }
.step-num { flex: none; color: var(--accent); font: italic 500 19px/1 var(--font-display); }
.step-num::after { content: "."; }
.steps p { font-size: 15px; line-height: 1.45; color: var(--muted); margin: 0; }
.sample-link { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; border: 0; border-radius: 6px; background: transparent; padding: 0 3px; font-size: 15px; text-decoration: underline; }
.sample-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (min-width: 600px) and (max-width: 999px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) {
  #how { padding: 44px 0 32px; }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
  .guide-heading { margin-bottom: 22px; }
}
@media (max-width: 599px) {
  #how .wrap { max-width: 470px; }
  .steps li:nth-child(-n+2) { display: grid; grid-template-columns: minmax(0, 46%) 1fr; gap: 14px; align-items: center; }
  .steps li:nth-child(-n+2) .step-copy { padding: 0; }
  .steps li:nth-child(-n+2) h3 { font-size: 19px; }
}
.faq details { border-bottom: 1px solid var(--line); padding: 13px 0; }
.faq summary { font-weight: 700; font-size: 16px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 8px 0 0; font-size: 15px; color: var(--muted); }
.section.extras { background: radial-gradient(120% 90% at 50% 0%, var(--sky-bottom) 0%, var(--sky-top) 75%); color: #fff; }
.section.extras h2 { color: #fff; margin-bottom: 8px; }
.extras .sub { margin: 0 0 18px; font-size: 15.5px; color: var(--on-sky-muted); }
#extras .wrap { max-width: 1220px; }
.extras-grid { display: grid; gap: 14px; }
.extra { display: grid; gap: 12px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); border-radius: 18px; padding: 12px; }
.extra img { width: 100%; height: auto; border-radius: 12px; display: block; }
.extra .body { padding: 0 4px 4px; }
.extra h3 { margin: 0 0 4px; font-size: 19px; color: #ffe2a3; }
.extra p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.45; color: var(--on-sky-muted); }
.prices { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.prices li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 7px 10px; border-radius: 10px; background: rgba(255, 255, 255, .09); font-size: 14px; color: #fff; }
.prices b { font-size: 16px; color: #ffd27a; white-space: nowrap; }
.extras .fine { margin: 16px 0 0; font-size: 13px; line-height: 1.5; color: var(--on-sky-muted); }
.extras .fine a { color: #fff; }
.prose p { font-size: 15.5px; color: var(--muted); margin: 0 0 12px; }
.prose h3 { font-size: 18px; margin: 18px 0 6px; }
.prose ul { padding-left: 20px; margin: 0 0 12px; color: var(--muted); font-size: 15.5px; }
footer { background: var(--sky-top); color: var(--on-sky-muted); padding: 26px 0 34px; font-size: 13.5px; }
footer a { color: #fff; margin-right: 14px; }

/* ---------- calendar page ---------- */
.calhead { padding: 6px 0 12px; text-align: center; }
.calhead h1 { margin: 4px 0 4px; font-size: 26px; line-height: 1.15; }
.calhead p { margin: 0; font-size: 14.5px; color: var(--on-sky-muted); }
.progress { margin: 12px auto 0; max-width: 250px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.16); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--glow); border-radius: inherit; transition: width .6s ease; }
.panel { background: #fffaf0; padding: 20px 0 30px; }
.panel .card { box-shadow: none; border: 1px solid var(--line); margin-bottom: 14px; }
.panel h2 { margin: 0 0 4px; font-size: 20px; }
.panel p { margin: 0 0 12px; font-size: 14.5px; color: var(--muted); }
.codebox { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border: 2px dashed var(--line); border-radius: 13px; padding: 10px 14px; margin-bottom: 12px; }
.codebox b { font-size: 22px; letter-spacing: .16em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.codebox small { display: block; font-size: 12px; color: var(--muted); }

/* ---------- sheets ---------- */
.shade { position: fixed; inset: 0; background: color-mix(in srgb, var(--sky-top) 64%, transparent); z-index: 20; display: flex; align-items: flex-end; justify-content: center; animation: fade .2s ease; }
.shade.mid { align-items: center; padding: 18px; }
.sheet { width: 100%; max-width: 480px; max-height: 92vh; overflow: auto; background: var(--card); border-radius: 22px 22px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); animation: rise .28s cubic-bezier(.2, .9, .3, 1); }
.shade.mid .sheet { border-radius: 22px; padding-bottom: 18px; }
.sheet h2 { margin: 0 0 4px; font-size: 22px; }
.sheet .sub { margin: 0 0 14px; font-size: 14.5px; color: var(--muted); }
.sheet .x { float: right; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #f0e6d2; font-size: 18px; line-height: 1; }
.stickers { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-bottom: 12px; }
.stickers button { aspect-ratio: 1; border: 2px solid var(--line); border-radius: 12px; background: #fff; font-size: 22px; padding: 0; }
.stickers button[aria-pressed="true"] { border-color: var(--accent); background: #fff0e6; }
.count { float: right; font-size: 12px; font-weight: 400; color: var(--muted); }
.letter { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 18px 18px; text-align: center; transform-origin: top center; animation: unfold .55s cubic-bezier(.2, .9, .3, 1.15); box-shadow: 0 6px 18px rgba(60, 40, 10, .12); }
.letter .big { font-size: 46px; line-height: 1; }
.letter .text { font-family: var(--font-display); font-size: 20px; line-height: 1.4; margin: 12px 0 10px; overflow-wrap: anywhere; }
.letter .from { font-size: 14px; color: var(--muted); font-weight: 700; }
.reacts { display: flex; justify-content: center; gap: 6px; margin: 14px 0 4px; }
.reacts button { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line); background: #fff; font-size: 21px; padding: 0; }
.reacts button[aria-pressed="true"] { border-color: var(--accent); background: #fff0e6; transform: scale(1.1); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } }
@keyframes unfold { 0% { transform: perspective(600px) rotateX(-75deg) scale(.9); opacity: 0; } 100% { transform: none; opacity: 1; } }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 40; background: var(--sky-top); color: #fff; font-size: 14.5px; font-weight: 600; padding: 11px 16px; border-radius: 999px; max-width: 88vw; text-align: center; box-shadow: 0 6px 20px rgba(0,0,0,.3); animation: rise .25s ease; }

@media (prefers-reduced-motion: reduce) {
  .snow, .snow::after, .smoke, .win.ready, .win.ready .st { animation: none; }
}

/* ---------- the main action stays on screen (phones) ---------- */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 250, 240, .96); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(8, 10, 40, .16); display: flex; gap: 8px; align-items: center; }
.dock { transition: transform .22s ease; }
.dock.off { transform: translateY(110%); pointer-events: none; }
.dock .btn { min-height: 48px; }
.dock .btn.ghost { flex: 0 0 auto; width: auto; padding: 0 16px; }
.dock .hint { flex: 1; font-size: 14.5px; font-weight: 700; text-align: center; color: var(--ink); }
body.has-dock footer { padding-bottom: 96px; }
/* Messages sit above the pinned bar, not on top of its buttons. */
body.has-dock .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }

/* ---------- wide screens: two columns instead of one narrow strip ---------- */
@media (min-width: 900px) {
  .dock { display: none; }
  body.has-dock footer { padding-bottom: 34px; }
  body.has-dock .toast { bottom: 26px; }
  main.cal.home .panel .card { padding: 24px; box-shadow: 0 10px 30px rgba(8, 10, 40, .10); }
  /* Home: the left half is the house alone; the headline moves beside it, above the form. */
  main.cal.home .calhead, main.cal.home .narrow-only { display: none; }
  main.cal.home .pitch { display: block; margin: 0 0 22px; }
  main.cal.home .pitch .display { margin: 0 0 12px; font-size: 44px; line-height: 1.08; color: var(--ink); }
  main.cal.home .pitch .display em { font-style: italic; color: var(--accent); white-space: nowrap; }
  main.cal.home .pitch p:last-child { margin: 0; font-size: 17px; line-height: 1.5; color: var(--muted); }
  main.cal.home .panel { display: block; padding: 0; }
  main.cal.home .panel .wrap { max-width: 500px; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 28px 16px; margin: 0 auto; }
  .section .wrap { max-width: 760px; }
  .section h2 { font-size: 30px; }
  .extras-grid { grid-template-columns: 1fr 1fr; }
  .extra { align-content: start; padding: 14px; }

  main.cal { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 100vh; }
  main.cal .sky { display: flex; flex-direction: column; justify-content: flex-start; }
  main.cal .sky .wrap { max-width: 600px; width: 100%; }
  /* A house is about 1.1 times as tall as it is wide, so its width is capped by the height left under the heading. */
  main.cal .house { max-width: clamp(300px, calc((100vh - var(--above-house, 215px)) / 1.1), 560px); }
  main.cal.home { --above-house: 105px; }
  main.cal .wall { padding: 18px 16px 26px; }
  main.cal .grid { gap: 16px 11px; }
  main.cal .win { border-width: 3px; }
  main.cal .win .n { font-size: 14px; }
  main.cal .win .st { font-size: 28px; }
  main.cal .win .who { font-size: 11px; }
  main.cal .hill { display: none; }
  main.cal .calhead h1 { font-size: 36px; }
  main.cal .panel { display: flex; align-items: flex-start; padding: clamp(24px, 2.2vw, 36px) 0; }
  main.cal .panel .wrap { width: 100%; max-width: 460px; }
}

@media (min-width: 1000px) {
  .extras .extra { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); align-items: center; align-content: center; gap: 16px; }
}
