:root {
  color-scheme: light dark;
  --bg: #f0f9f7;
  --surface: #ffffff;
  --surface-2: #e0f2ee;
  --border: #c7e6de;
  --ink: #0f2e27;
  --ink-soft: #56796f;
  --accent: #0e9f8e;
  --accent-ink: #ffffff;
  --accent-soft: #d7f2ec;
  --gold: #d97706;
  --gold-ink: #4a2e06;
  --gold-soft: #fbe8cf;
  --danger: #c2483b;
  --danger-soft: #fbe3de;
  --radius: 16px;
  --radius-s: 9px;
  --shadow: 0 1px 2px rgba(15,46,39,0.06), 0 10px 28px rgba(15,46,39,0.08);
  --font-display: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1917;
    --surface: #11221f;
    --surface-2: #16302b;
    --border: #234840;
    --ink: #e9faf5;
    --ink-soft: #8fb8ac;
    --accent: #4fd9c4;
    --accent-ink: #08201b;
    --accent-soft: #153b34;
    --gold: #f0a94e;
    --gold-ink: #ffe3bd;
    --gold-soft: #3a2a10;
    --danger: #f0958a;
    --danger-soft: #3a1f1a;
    --shadow: 0 1px 2px rgba(0,0,0,0.35), 0 10px 28px rgba(0,0,0,0.4);
  }
}
:root[data-theme="dark"] {
  --bg: #0b1917;
  --surface: #11221f;
  --surface-2: #16302b;
  --border: #234840;
  --ink: #e9faf5;
  --ink-soft: #8fb8ac;
  --accent: #4fd9c4;
  --accent-ink: #08201b;
  --accent-soft: #153b34;
  --gold: #f0a94e;
  --gold-ink: #ffe3bd;
  --gold-soft: #3a2a10;
  --danger: #f0958a;
  --danger-soft: #3a1f1a;
  --shadow: 0 1px 2px rgba(0,0,0,0.35), 0 10px 28px rgba(0,0,0,0.4);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

.site-header {
  padding-block: 36px 24px;
  border-bottom: 1px solid var(--border);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
}
.wordmark-icon {
  width: 30px;
  height: 30px;
  color: var(--accent);
  flex: none;
}
.wordmark-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

.tagline {
  margin: 0;
  max-width: 48ch;
  color: var(--ink-soft);
  font-size: 1rem;
}

main.wrap {
  padding-block: 28px 60px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ---------- cards ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.card.faded {
  background: transparent;
  box-shadow: none;
  border-style: dashed;
  color: var(--ink-soft);
  text-align: center;
}

.card h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 4px;
}
.card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 0 12px;
}

.card-sub { margin: 0 0 16px; color: var(--ink-soft); font-size: 0.88rem; }

/* ---------- forms ---------- */

.field-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: end;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 180px;
  min-width: 0;
  position: relative;
}

.field-submit { flex: 0 0 auto; }

label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}

input[type="text"], input[type="date"], input[type="time"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

input[type="text"]:focus, input[type="date"]:focus, input[type="time"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* ---------- buttons ---------- */

.btn {
  padding: 10px 16px;
  border-radius: var(--radius-s);
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.06); }

.btn-ghost { background: transparent; border-color: var(--border); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); }

.btn-small { padding: 7px 12px; font-size: 0.8rem; }

.btn-danger {
  background: none;
  border: none;
  color: var(--ink-soft);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  padding: 4px 8px;
}
.btn-danger:hover { color: var(--danger); }

.link-btn {
  background: none;
  border: none;
  color: var(--accent);
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}

.hint { margin: 10px 0 0; font-size: 0.85rem; color: var(--ink-soft); }

.empty-note {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  color: var(--ink-soft);
  text-align: center;
  font-size: 0.95rem;
}

/* ---------- combobox ---------- */

.combobox { position: relative; }
.combobox-list {
  position: absolute; z-index: 10; top: calc(100% + 4px); left: 0; right: 0;
  margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-s);
  box-shadow: var(--shadow); max-height: 260px; overflow-y: auto;
}
.combobox-list li {
  padding: 8px 10px; border-radius: 7px; cursor: pointer; font-size: 0.92rem;
  display: flex; justify-content: space-between; gap: 8px;
}
.combobox-list li .state { color: var(--ink-soft); font-family: var(--font-mono); font-size: 0.75rem; }
.combobox-list li:hover, .combobox-list li.active { background: var(--accent-soft); }
.combobox-list li.no-match { color: var(--ink-soft); cursor: default; }
.combobox-list li.no-match:hover { background: none; }

/* ---------- custom college panel ---------- */

.custom-panel {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.custom-panel[hidden] { display: none; }
.break-row {
  display: flex; gap: 10px; align-items: end; flex-wrap: wrap;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-s); padding: 12px;
}
.break-row .field { flex: 1 1 140px; }
.custom-panel-actions { display: flex; gap: 10px; margin-top: 4px; }

/* ---------- schedule photo quick-add ---------- */

.schedule-photo-add { margin-bottom: 14px; }
.schedule-photo-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 8px;
}
.schedule-photo-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.schedule-photo-filename { font-size: 0.85rem; color: var(--ink-soft); overflow-wrap: anywhere; }
#schedule-photo-add .hint { margin-top: 8px; }

.schedule-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.schedule-divider::before, .schedule-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ---------- people list ---------- */

.people-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.people-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 15px; border: 1px solid var(--border); border-radius: var(--radius-s); background: var(--bg);
}
.person-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.person-name { font-family: var(--font-display); font-weight: 700; }
.person-college { color: var(--ink-soft); font-size: 0.85rem; }
.person-actions { display: flex; align-items: center; gap: 4px; flex: none; }

/* ---------- schedules ---------- */

.schedule-status { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.status-chip {
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid transparent;
}
.status-chip.status-free { background: var(--accent-soft); color: var(--accent); }
.status-chip.status-busy { background: var(--gold-soft); color: var(--gold-ink); }
.status-chip.status-unknown { background: var(--surface-2); color: var(--ink-soft); border-color: var(--border); }

.schedule-grid { display: flex; flex-direction: column; gap: 14px; }
.schedule-day { border-top: 1px solid var(--border); padding-top: 12px; }
.schedule-day:first-child { border-top: none; padding-top: 0; }
.schedule-day-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 8px;
}
.schedule-block-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.9rem;
}
.schedule-block-time {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
  color: var(--ink-soft);
  flex: 0 0 auto;
  white-space: nowrap;
}
.schedule-block-who { font-weight: 600; }

/* ---------- schedule editor ---------- */

.schedule-row {
  display: flex; gap: 10px; align-items: end; flex-wrap: wrap;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-s); padding: 12px;
  margin-bottom: 10px;
}
.schedule-row .field { flex: 1 1 120px; }
select.schedule-day-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

/* ---------- section heading row ---------- */

.section-heading-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.section-title { font-family: var(--font-display); font-weight: 700; margin: 0 0 4px; font-size: 1.1rem; }

.results-header-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.view-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  background: var(--surface-2);
  gap: 2px;
}
.view-toggle-btn {
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.view-toggle-btn.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* ---------- calendar view ---------- */

.calendar-view[hidden] { display: none; }
.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 14px;
}
.calendar-month-label { font-family: var(--font-display); font-weight: 700; min-width: 12ch; text-align: center; }
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.calendar-day-head {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
  padding-bottom: 4px;
  font-weight: 600;
}
.calendar-cell {
  min-height: 64px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.calendar-cell-blank { background: transparent; border-color: transparent; }
.calendar-cell-num { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-soft); }
.calendar-cell-today { border-color: var(--accent); border-width: 2px; }
.calendar-cell-today .calendar-cell-num { color: var(--accent); font-weight: 700; }
.calendar-cell-home { background: var(--gold-soft); }
.calendar-meetup-chip {
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 5px;
  padding: 2px 5px;
  font-size: 0.7rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .calendar-cell { min-height: 44px; padding: 4px; }
  .calendar-meetup-chip { font-size: 0.62rem; }
}

/* ---------- tickets (overlap results) ---------- */

#results { display: flex; flex-direction: column; gap: 14px; }

.ticket {
  position: relative;
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.ticket-main { flex: 1 1 auto; padding: 18px 20px; min-width: 0; }
.ticket-range {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--accent);
}
.ticket-days { margin-top: 4px; color: var(--ink-soft); font-size: 0.85rem; }
.ticket-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.ticket-stub {
  flex: 0 0 152px;
  padding: 18px 16px;
  background: var(--gold-soft);
  color: var(--gold-ink);
  border-left: 2px dashed var(--border);
  position: relative;
}
.ticket-stub::before, .ticket-stub::after {
  content: ""; position: absolute; left: -11px; width: 22px; height: 22px;
  background: var(--bg); border-radius: 50%;
}
.ticket-stub::before { top: -11px; }
.ticket-stub::after { bottom: -11px; }
.stub-label {
  font-family: var(--font-mono);
  font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase;
  opacity: 0.8; margin: 0 0 6px; font-weight: 600;
}
.stub-names { display: flex; flex-direction: column; gap: 3px; font-size: 0.82rem; }
.stub-names span { font-weight: 700; }

.no-overlap { color: var(--ink-soft); }

/* ---------- single-school lookup ---------- */

.break-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.break-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  background: var(--bg);
}
.break-item-range {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--accent);
}
.break-item-meta { color: var(--ink-soft); font-size: 0.85rem; margin-top: 2px; }

@media (max-width: 480px) {
  .ticket { flex-direction: column; }
  .ticket-stub { border-left: none; border-top: 2px dashed var(--border); flex: none; }
  .ticket-stub::before, .ticket-stub::after { top: -11px; left: auto; }
  .ticket-stub::before { left: 18%; }
  .ticket-stub::after { left: auto; right: 18%; }
}

/* ---------- meetups ---------- */

.meetups-list { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 12px; }

.meetup-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  background: var(--bg);
  padding: 14px 16px;
}
.meetup-head { margin-bottom: 10px; }
.meetup-title { font-family: var(--font-display); font-weight: 700; }
.meetup-when { color: var(--ink-soft); font-size: 0.85rem; margin-top: 2px; font-family: var(--font-mono); }
.meetup-notes { font-size: 0.85rem; margin-top: 4px; }

.attendee-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.attendee-chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 5px 12px 5px 8px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
}
.attendee-chip input { margin: 0; accent-color: var(--accent); }

/* ---------- overlay (meetup form) ---------- */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 20, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}
.overlay[hidden] { display: none; }
.overlay-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}
.overlay-card h3 { margin: 0 0 16px; }
.overlay-card .field { margin-bottom: 12px; }
.overlay-card #meetup-attendees { margin-bottom: 4px; }

/* ---------- mode select ---------- */

#view-mode-select { padding-block: 20px 0; }
#view-mode-select[hidden] { display: none; }

.mode-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 720px) {
  .mode-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .mode-grid { grid-template-columns: 1fr; }
}

.mode-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 24px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color 0.12s ease, transform 0.12s ease;
}
.mode-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.mode-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mode-card-icon {
  width: 34px;
  height: 34px;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mode-card-icon svg { width: 100%; height: 100%; }
.mode-card-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; }
.mode-card-sub { color: var(--ink-soft); font-size: 0.88rem; }

.back-link { align-self: flex-start; margin-bottom: 4px; font-family: var(--font-display); font-weight: 600; text-align: left; }

/* ---------- groups entry ---------- */

#view-groups-entry { padding-block: 8px 0; display: flex; flex-direction: column; gap: 16px; }
#view-groups-entry[hidden] { display: none; }

#view-school-lookup { padding-block: 8px 0; display: flex; flex-direction: column; gap: 16px; }
#view-school-lookup[hidden] { display: none; }

.landing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 640px) {
  .landing-grid { grid-template-columns: 1fr; }
}

.recent-groups { margin-top: 4px; }
.recent-groups-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  margin: 0 0 10px;
}
.recent-groups-list { display: flex; flex-direction: column; gap: 8px; }
.recent-group-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  background: var(--surface);
}
.recent-group-open {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.recent-group-row:hover { border-color: var(--accent); }
.recent-group-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.recent-group-name { font-family: var(--font-display); font-weight: 700; }
.recent-group-code { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-soft); letter-spacing: 0.05em; }
.recent-group-row .btn-danger { flex: none; }

/* ---------- group view ---------- */

#view-group { padding-block: 8px 0; display: flex; flex-direction: column; gap: 20px; }
#view-group[hidden] { display: none; }

.group-banner {
  background: var(--gold-soft);
  color: var(--gold-ink);
  border: 1px solid var(--gold);
  border-radius: var(--radius-s);
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 600;
}

.group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.group-header h2 { font-family: var(--font-display); font-weight: 800; }

.group-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.group-code-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 6px 6px 14px;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.08em;
}
.group-code-pill[hidden] { display: none; }
.group-code-pill .btn-danger { padding: 4px 10px; }

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

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 20px 40px;
}
.site-footer p {
  color: var(--ink-soft);
  font-size: 0.8rem;
  margin: 0;
}
.site-footer code { font-family: var(--font-mono); }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.footer-nav a { color: var(--ink-soft); text-decoration: none; }
.footer-nav a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- cookie consent banner ---------- */

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  max-width: 640px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
}
.cookie-banner p { margin: 0; font-size: 0.85rem; color: var(--ink-soft); flex: 1 1 260px; }
.cookie-banner p a { color: var(--accent); }
.cookie-banner-actions { display: flex; gap: 8px; flex: none; }

/* ---------- static content pages (about/privacy/terms/404) ---------- */

.prose { display: flex; flex-direction: column; gap: 14px; }
.prose h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin: 18px 0 2px;
}
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-soft); font-size: 0.94rem; line-height: 1.6; }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.prose a { color: var(--accent); }
.updated-note { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-soft); margin: 0 0 4px; }

.error-page {
  text-align: center;
  padding-block: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.error-page .wordmark-icon { width: 44px; height: 44px; color: var(--accent); }
.error-code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.error-page h1 { font-family: var(--font-display); font-size: 1.6rem; margin: 0; }
.error-page p { color: var(--ink-soft); max-width: 40ch; margin: 0; }

@media (max-width: 560px) {
  .field-row { flex-direction: column; align-items: stretch; }
  .field-submit { align-self: flex-end; }
  .cookie-banner { flex-direction: column; align-items: stretch; }
  .cookie-banner-actions { justify-content: flex-end; }
}
