/* Meggy's List: Bubblegum Arcade. Tokens from the Meggy's List design system. */

@font-face { font-family: "Fredoka"; font-weight: 600; font-display: swap; src: url("/fonts/fredoka-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Fredoka"; font-weight: 700; font-display: swap; src: url("/fonts/fredoka-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-weight: 400; font-display: swap; src: url("/fonts/atkinson-hyperlegible-next-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-weight: 700; font-display: swap; src: url("/fonts/atkinson-hyperlegible-next-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Pixelify Sans"; font-weight: 400; font-display: swap; src: url("/fonts/pixelify-sans-latin-400-normal.woff2") format("woff2"); }

:root {
  --blush-paper: #fff4fa;
  --blush-deep: #ffe9f3;
  --white: #ffffff;
  --night-ink: #1e0b33;
  --ink-muted: #4b3a5e;
  --ink-placeholder: #6e5e80;
  --electric: #7b2ff7;
  --visited: #b0207a;
  --bubblegum: #ff3e9a;
  --sunshine: #ffe14d;
  --aqua: #2ee6d6;

  --font-display: Fredoka, "Varela Round", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-pixel: "Pixelify Sans", "Courier New", monospace;

  --border: 2px solid var(--night-ink);
  --shadow-button: 3px 3px 0 var(--night-ink);
  --shadow-card: 4px 4px 0 var(--night-ink);
  --shadow-hero: 6px 6px 0 var(--night-ink);
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--blush-paper);
  color: var(--night-ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
}

a { color: var(--electric); text-decoration: underline; text-underline-offset: 2px; }
a:visited { color: var(--visited); }

:focus-visible { outline: 3px solid var(--electric); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; margin: 0; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link { position: absolute; left: 12px; top: -60px; background: var(--white); border: var(--border); border-radius: var(--radius-md); padding: 10px 14px; z-index: 10; }
.skip-link:focus { top: 12px; }

.wrap { max-width: 680px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */

.site-header { padding: 28px 0 8px; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }

.logo { display: inline-block; line-height: 0; border-radius: var(--radius-lg); }
.logo img { display: block; height: 60px; width: auto; }
@media (min-width: 560px) { .logo img { height: 76px; } }

/* Home page: the logo is the big opener. */
.site-header--home { padding-top: 36px; }
.site-header--home .wrap { flex-direction: column; align-items: center; gap: 14px; }
.site-header--home .brand { width: min(100%, 540px); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.site-header--home .logo { width: 100%; }
.site-header--home .logo img { height: auto; width: 100%; }
.site-header--home + main .hero { padding-top: 20px; }

.pixel-label {
  font-family: var(--font-pixel); font-size: 0.875rem; line-height: 1.3; letter-spacing: 0.02em;
  display: inline-block; background: var(--night-ink); color: var(--white);
  border-radius: 4px; padding: 4px 8px;
}

/* ---------- hero ---------- */

.hero { padding: 32px 0 8px; }
.hero h1 { font-size: clamp(2.125rem, 7vw, 2.75rem); line-height: 1.08; margin-top: 16px; }
.hero .lead { font-size: 1.25rem; line-height: 1.4; margin: 14px 0 0; max-width: 34em; }

/* ---------- signup card (the one hero panel) ---------- */

.card {
  background: var(--white); border: var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hero); padding: 24px;
}
.signup { margin: 28px 0 8px; }
@media (min-width: 560px) { .signup { padding: 28px 32px; } }

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field .hint { display: block; color: var(--ink-muted); font-size: 0.875rem; margin: -2px 0 8px; }

.field input {
  width: 100%; min-height: 48px; padding: 10px 14px;
  font: inherit; font-size: 1.0625rem; color: var(--night-ink);
  background: var(--blush-paper); border: var(--border); border-radius: var(--radius-md);
}
.field input::placeholder { color: var(--ink-placeholder); }
.field input[aria-invalid="true"] { border-color: var(--visited); box-shadow: inset 0 0 0 1px var(--visited); }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 14rem; } }

.error { display: flex; gap: 6px; color: var(--visited); font-weight: 700; font-size: 0.9375rem; margin: 8px 0 0; }
.error:empty { display: none; }
.error::before { content: "!"; display: inline-grid; place-items: center; flex: none; width: 1.3em; height: 1.3em; border-radius: 50%; background: var(--visited); color: var(--white); font-size: 0.8em; margin-top: 0.15em; }

.form-error { margin: 0 0 16px; padding: 12px 14px; border: var(--border); border-radius: var(--radius-md); background: var(--blush-deep); font-weight: 700; }
.form-error:empty { display: none; }

.turnstile { min-height: 0; margin: 4px 0 16px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  border: var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-button);
  cursor: pointer; text-decoration: none;
  transition: transform 80ms ease, box-shadow 80ms ease;
}
.btn-primary { background: var(--electric); color: var(--white); }
.btn-primary:visited { color: var(--white); }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--night-ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--night-ink); }
.btn[disabled] { opacity: 0.7; cursor: progress; }
.btn-block { width: 100%; }
@media (min-width: 560px) { .btn-block { width: auto; } }

.btn-quiet {
  min-height: 48px; padding: 12px 6px; background: none; border: 0;
  font: inherit; font-weight: 700; color: var(--electric); text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}

.fine-print { color: var(--ink-muted); font-size: 0.9375rem; margin: 14px 0 0; }

/* ---------- step 2: picks ---------- */

.done-head { display: flex; gap: 14px; align-items: flex-start; }
.done-head h2 { font-size: 1.75rem; line-height: 1.15; }
.check-badge {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--aqua); border: var(--border); border-radius: 50%;
}
.inbox-note { margin: 10px 0 0; font-size: 1.0625rem; }
.region-note { margin: 14px 0 0; padding: 12px 14px; background: var(--blush-deep); border: var(--border); border-radius: var(--radius-md); }

.picks { margin-top: 24px; padding-top: 22px; border-top: 2px dashed var(--night-ink); }
.picks > p { margin: 0 0 6px; }
.picks .picks-title { font-family: var(--font-display); font-weight: 600; font-size: 1.375rem; line-height: 1.2; margin-bottom: 4px; }

fieldset { border: 0; padding: 0; margin: 22px 0 0; min-width: 0; }
legend { font-weight: 700; padding: 0; margin-bottom: 10px; }
legend .hint { font-weight: 400; color: var(--ink-muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.chip span {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 8px 16px;
  background: var(--white); border: var(--border); border-radius: var(--radius-pill);
  font-weight: 700; font-size: 0.9375rem; line-height: 1.2; cursor: pointer; user-select: none;
}
.chip span::before {
  content: ""; width: 1.05em; height: 1.05em; flex: none;
  border: 2px solid var(--night-ink); border-radius: 4px; background: var(--white);
}
.chip input[type="radio"] + span::before { border-radius: 50%; }
.chip input:checked + span { background: var(--aqua); box-shadow: 2px 2px 0 var(--night-ink); }
.chip input:checked + span::before {
  content: "\2713"; display: grid; place-items: center;
  background: var(--night-ink); color: var(--white); font-size: 0.75em; line-height: 1;
}
.chip input:focus-visible + span { outline: 3px solid var(--electric); outline-offset: 3px; }
.chip span:hover { background: var(--blush-deep); }
.chip input:checked + span:hover { background: var(--aqua); }

.picks-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 26px; }
.status { font-weight: 700; margin: 16px 0 0; }
.status:empty { display: none; }

/* ---------- what's coming ---------- */

.section { padding: 40px 0 8px; }
.section h2 { font-size: 1.75rem; line-height: 1.15; margin-bottom: 8px; }
.section > .wrap > p { margin: 0 0 18px; max-width: 36em; }

.coming { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 620px) { .coming { grid-template-columns: repeat(3, 1fr); } }
.coming li { background: var(--white); border: var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 16px; }
.coming h3 { font-size: 1.25rem; line-height: 1.2; margin: 10px 0 6px; }
.coming p { margin: 0; font-size: 0.9375rem; color: var(--ink-muted); }
.tag {
  display: inline-block; font-family: var(--font-pixel); font-size: 0.8125rem; line-height: 1.3;
  background: var(--aqua); border: 1.5px solid var(--night-ink); border-radius: var(--radius-pill); padding: 2px 10px;
}


/* ---------- footer ---------- */

.site-footer { margin-top: 48px; padding: 28px 0 40px; border-top: var(--border); }
.site-footer .tagline { font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; margin: 0 0 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer li a { display: inline-block; padding: 10px 0; }
.site-footer .small { color: var(--ink-muted); font-size: 0.875rem; margin: 8px 0 0; }

/* ---------- simple pages (privacy, confirmed, 404) ---------- */

.page { padding: 32px 0 8px; }
.page h1 { font-size: clamp(2rem, 6vw, 2.5rem); line-height: 1.1; margin: 16px 0 12px; }
.page h2 { font-size: 1.375rem; line-height: 1.2; margin: 32px 0 8px; }
.page p, .page li { max-width: 38em; }
.page ul { padding-left: 1.25em; }
.page li { margin: 4px 0; }
.page .lead { font-size: 1.1875rem; }

.table-wrap { overflow-x: auto; margin: 12px 0; border: var(--border); border-radius: var(--radius-lg); background: var(--white); }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 0.9375rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1.5px solid var(--night-ink); }
tr:last-child td { border-bottom: 0; }
th { background: var(--blush-deep); font-weight: 700; }

.notice-card { margin-top: 24px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.field-hint { display: block; color: var(--ink-muted); font-size: 0.875rem; line-height: 1.35; margin: 6px 0 0; }

/* ---------- home page: everything on one center line ---------- */
/* Headings, intro, the signup button and the cards sit centered. Form labels,
   inputs and the step 2 picks stay left-aligned, since they read better that way. */

.home .hero h1,
.home .hero .lead,
.home .section h2,
.home .section > .wrap > p { text-align: center; }
.home .hero .lead,
.home .section > .wrap > p { margin-left: auto; margin-right: auto; }

.home #signup-form .btn-block { display: flex; margin: 0 auto; }
.home #signup-form .fine-print { text-align: center; }

.home .coming li { text-align: center; }

/* Cities as plain spaced-out words, so they don't look like tappable chips. */
.places { list-style: none; margin: 0 auto; padding: 0; max-width: 36em; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; font-weight: 700; }
.places li { white-space: nowrap; }

.organizers { text-align: center; box-shadow: var(--shadow-card); }
.organizers h2 { margin-bottom: 8px; }
.organizers p { margin: 0 auto 18px; max-width: 34em; }
.organizers .btn { overflow-wrap: anywhere; }

.home .site-footer { text-align: center; }
.home .site-footer ul { justify-content: center; }

/* ---------- site pages: calendar and events ---------- */
/* Dates are bold text, never a sunshine block (sunshine = Sponsor Spot).
   Meggy's Pick is bubblegum with the star, always with its words. */

.wrap-wide { max-width: 880px; }
.wrap.page { padding: 28px 20px 8px; }

.site-header--nav { padding: 20px 0 4px; }
.site-header--nav .logo img { height: 52px; }
@media (min-width: 560px) { .site-header--nav .logo img { height: 60px; } }
.main-nav { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; }
.main-nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--night-ink); }
.main-nav a:visited { color: var(--night-ink); }

.muted { color: var(--ink-muted); }

.when-tabs ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 16px; padding: 0; }
.when-tabs a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px;
  border: var(--border); border-radius: var(--radius-pill); background: var(--white);
  color: var(--night-ink); font-weight: 700; text-decoration: none;
}
.when-tabs a:visited { color: var(--night-ink); }
.when-tabs a:hover { background: var(--blush-deep); }
.when-tabs a[aria-current="page"] { background: var(--night-ink); color: var(--white); }

.filters { box-shadow: var(--shadow-card); padding: 18px; }
.filter-row { display: grid; gap: 14px; }
@media (min-width: 680px) { .filter-row { grid-template-columns: repeat(3, 1fr); } }
.filter label { display: block; font-weight: 700; margin-bottom: 6px; }
.filter select {
  width: 100%; min-height: 48px; padding: 8px 12px; font: inherit; color: var(--night-ink);
  background: var(--blush-paper); border: var(--border); border-radius: var(--radius-md);
}
.filter-checks { margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.check-inline { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; cursor: pointer; }
.check-inline input { width: 22px; height: 22px; accent-color: var(--electric); }
.filter-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 12px; }

.range { margin: 22px 0 0; }

.day h2 { font-size: 1.375rem; margin: 28px 0 10px; padding-bottom: 6px; border-bottom: var(--border); }
.event-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.event-card {
  background: var(--white); border: var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); padding: 16px 18px;
}
.event-card h3 { font-size: 1.25rem; line-height: 1.25; margin: 0 0 4px; }
.event-card h3 a { color: var(--night-ink); }
.event-card h3 a:visited { color: var(--visited); }
.event-meta { margin: 0; }
.event-tags { margin: 4px 0 0; color: var(--ink-muted); font-size: 0.9375rem; }
.event-card.is-pick { border-color: var(--bubblegum); border-width: 3px; background: var(--blush-deep); }
.event-card.is-cancelled h3 a { text-decoration: line-through; }

.pick-label {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 0 8px;
  font-family: var(--font-pixel); font-size: 0.875rem; line-height: 1.3;
  background: var(--bubblegum); color: var(--night-ink); border: 1.5px solid var(--night-ink);
  border-radius: var(--radius-pill); padding: 2px 10px;
}

.flags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; }
.flag {
  font-size: 0.8125rem; font-weight: 700; line-height: 1.3; padding: 2px 10px;
  border: 1.5px solid var(--night-ink); border-radius: var(--radius-pill); background: var(--white);
}
.flag-free { background: var(--aqua); }
.flag-cancelled { background: var(--night-ink); color: var(--white); }

.empty-state { margin-top: 18px; box-shadow: var(--shadow-card); }
.empty-state h2 { font-size: 1.375rem; margin-bottom: 6px; }
.empty-state p { margin: 6px 0 0; }
.calendar-cta { margin-top: 40px; }

/* one event */
.crumb { margin: 0; }
.event-page h1 { margin-top: 10px; }
.banner { margin: 16px 0 0; padding: 12px 14px; border: var(--border); border-radius: var(--radius-md); background: var(--blush-deep); }
.banner-cancelled { background: var(--night-ink); color: var(--white); }
.event-layout { display: grid; gap: 24px; margin-top: 22px; align-items: start; }
@media (min-width: 760px) { .event-layout { grid-template-columns: minmax(0, 1fr) 320px; } }
.event-side { box-shadow: var(--shadow-card); padding: 18px; order: -1; }
@media (min-width: 760px) { .event-side { order: 0; } }
.event-main h2 { font-size: 1.375rem; margin: 26px 0 8px; }
.event-main > :first-child { margin-top: 0; }
.event-description p { margin: 0 0 14px; }
.facts { margin: 0; display: grid; gap: 12px; }
.facts dt { font-weight: 700; font-size: 0.875rem; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.facts dd { margin: 2px 0 0; }
.event-actions { display: grid; gap: 10px; margin-top: 18px; }
.event-actions .btn { width: 100%; }
.event-actions .btn:not(.btn-primary) { background: var(--white); color: var(--night-ink); }
.source { font-size: 0.9375rem; margin: 14px 0 0; }
.deadlines, .next-dates { padding-left: 1.25em; }
.next-dates { columns: 2; }
/* Lists on these pages are layout, not prose: undo .page ul/li. */
.page ul.event-list, .page ul.flags, .page .when-tabs ul { padding-left: 0; }
.page ul.event-list > li, .page ul.flags > li, .page .when-tabs li { max-width: none; margin: 0; }

/* directory */
.listing-list { grid-template-columns: 1fr; }
@media (min-width: 680px) { .listing-list { grid-template-columns: 1fr 1fr; } }
.listing-card {
  background: var(--white); border: var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); padding: 16px 18px;
}
.listing-card h3 { font-size: 1.25rem; line-height: 1.25; margin: 0 0 4px; }
.listing-card h3 a { color: var(--night-ink); }
.listing-card h3 a:visited { color: var(--visited); }
.page ul.listing-list > li { max-width: none; margin: 0; }

/* ---------- home page after launch (home.js) ----------
   From the "Balanced" brand mockup: an ink strip, two columns, colored boxes,
   doodles as decoration only. Dates sit in night-ink blocks, never sunshine
   (sunshine = Sponsor Spot); Meggy's Pick is bubblegum with the star. */

.top-strip { background: var(--night-ink); color: var(--blush-paper); font-family: var(--font-pixel); font-size: 0.8125rem; letter-spacing: 0.04em; }
.top-strip-inner { max-width: 1120px; margin: 0 auto; padding: 8px 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; }
.home .site-header--nav .wrap-wide { max-width: 1120px; }

.doodle { display: inline-block; width: 48px; height: 48px; vertical-align: middle; }
.doodle-lg { width: 64px; height: 64px; }
.doodle-sm { width: 26px; height: 26px; }
.doodle-xs { width: 18px; height: 18px; }
.hero-doodles { display: flex; justify-content: center; gap: 10px; margin: 8px 0 -4px; }
.hero-doodles .doodle { width: 36px; height: 36px; }
.hero-doodles .doodle:nth-child(2) { width: 44px; height: 44px; margin-top: -6px; }
.doodle-row { display: flex; justify-content: center; gap: 8px; margin: 0 0 4px; }

.home-grid {
  max-width: 1120px; margin: 0 auto; padding: 40px 20px 8px;
  display: grid; gap: 32px; align-items: start;
}
@media (min-width: 900px) { .home-grid { grid-template-columns: minmax(0, 1fr) 340px; } }

.home-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.home-weekend h2 { font-size: 2rem; line-height: 1.1; margin: 0; }
.home-weekend h2::after {
  content: ""; display: block; width: 72px; height: 39px; margin-top: 2px;
  background: url("/images/doodles/squiggle-line.svg") left center / 72px 39px no-repeat;
}
.home-range { margin: 0; color: var(--ink-muted); font-weight: 700; }

.home-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.home-card {
  display: flex; gap: 16px; align-items: stretch;
  background: var(--white); border: var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); padding: 14px;
}
.home-date {
  flex: 0 0 76px; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: var(--night-ink); color: var(--white); border-radius: var(--radius-md); padding: 8px 4px; text-align: center;
}
.home-date-day { font-family: var(--font-pixel); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--aqua); }
.home-date-time { font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1.15; }
.home-card-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.home-card h3 { font-size: 1.1875rem; line-height: 1.25; margin: 0; }
.home-card h3 a { color: var(--night-ink); }
.home-card h3 a:visited { color: var(--visited); }
.home-card.is-cancelled h3 a { text-decoration: line-through; }
.home-card-where { margin: 0; color: var(--ink-muted); font-size: 0.9375rem; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; }
.pill {
  font-size: 0.8125rem; font-weight: 700; line-height: 1.3; padding: 2px 10px;
  border: 1.5px solid var(--night-ink); border-radius: var(--radius-pill); background: var(--white);
}
.pill-scene { background: var(--aqua); }
.pill-cancelled { background: var(--night-ink); color: var(--white); }

.home .section .home-more, .home-weekend .home-more { text-align: center; margin: 22px 0 0; }
@media (min-width: 900px) { .home-weekend .home-more { text-align: left; } }
.home-empty { margin-top: 18px; text-align: center; background: var(--white); border: var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 20px; }
.home-empty p { margin: 6px 0 0; }

.home-aside { display: grid; gap: 22px; }
.home-box {
  border: var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
  background: var(--white); padding: 18px 20px;
}
.home-box > p { margin: 8px 0 0; }
.home-box h3 { font-size: 1.25rem; line-height: 1.25; margin: 10px 0 4px; }
.home-box h3 a { color: var(--night-ink); }
.box-label {
  display: flex; align-items: center; gap: 8px; margin: 0;
  font-family: var(--font-pixel); font-weight: 400; font-size: 1rem; letter-spacing: 0.02em;
}
.box-meta { margin: 0; font-size: 0.9375rem; }
.box-pick { background: var(--bubblegum); }
.box-pick .box-label .doodle { background: var(--white); border: 1.5px solid var(--night-ink); border-radius: 50%; padding: 2px; width: 28px; height: 28px; }
.box-pick a, .box-pick a:visited { color: var(--night-ink); }
.box-cons { background: var(--aqua); }
.box-cons a, .box-cons a:visited { color: var(--night-ink); font-weight: 700; }
.con-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.con-list li { display: flex; flex-direction: column; gap: 2px; padding-bottom: 10px; border-bottom: 1.5px dashed var(--night-ink); font-size: 0.9375rem; }
.con-deadline { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 0.875rem; }

/* Events counter: odometer digits in Pixelify in a night-ink box. Real text;
   the digit boxes are hidden from screen readers. */
.box-counter { background: var(--night-ink); color: var(--white); box-shadow: 4px 4px 0 var(--electric); }
.box-counter .box-label { color: var(--white); }
.odometer { display: grid; gap: 8px; margin: 12px 0 0; }
.odo-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.odo-row dt { font-family: var(--font-pixel); font-size: 0.875rem; }
.odo-row dd { margin: 0; }
.odo-digits { display: inline-flex; gap: 3px; }
.odo-digits span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 1.45em; padding: 3px 0;
  font-family: var(--font-pixel); font-size: 1.375rem; line-height: 1;
  background: #3a2350; color: var(--aqua); border-radius: 3px;
}

.home-directory .doodle { width: 40px; height: 40px; }
