/* WYD Reunion. Values come from the "WYD Reunion Screens" design. */

@font-face {
  font-family: Figtree;
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/static/figtree.woff2") format("woff2");
}

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/static/bricolage-800.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --page: #f6f5f2;
  --surface: #ffffff;
  --ink: #1f1e1b;
  --text: #3a3833;
  --muted: #6b6862;
  --faint: #9a968e;
  --line: #e4e1db;
  --line-soft: #eeece7;
  --field: #d9d6cf;
  --tint: #f1efea;
  --off: #f4f3f0;
  --go: #2f6b59;
  --go-dark: #1f4d40;
  --go-bg: #e3eee9;
  --go-soft: #a9c4b9;
  --go-line: #bcd6cb;
  --wait: #8a6420;
  --wait-bg: #f6ecd9;
  --wait-line: #e3c98f;
  --red: #a8432f;
  --err: #8a3424;
  --err-bg: #f6e2dc;
  --err-line: #ecd3cb;
  --dash: #b9b5ac;
  --dash-soft: #cfccc4;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 15px/1.5 Figtree, system-ui, -apple-system, "Segoe UI", sans-serif;
}
h1, h2, h3, p { margin: 0; }
h1 { font: 700 28px/1.15 Figtree, system-ui, sans-serif; }
h2 { font: 650 18px/1.3 Figtree, system-ui, sans-serif; }
h3 { font: 650 18px/1.25 Figtree, system-ui, sans-serif; }
a { color: var(--go); text-decoration: none; }
a:hover { color: var(--go-dark); text-decoration: underline; }
code { font: 500 13.5px ui-monospace, Menlo, monospace; }
form { margin: 0; }
button { font-family: inherit; }

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

.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top-in {
  max-width: 1080px; margin: 0 auto; padding: 14px 18px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px;
}
.brand, .brand:hover { color: var(--ink); text-decoration: none; }
.brand-name { font: 700 17px/1.1 Figtree, system-ui, sans-serif; }
.brand-fam { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.nav { display: flex; flex-wrap: wrap; gap: 2px; font-weight: 600; font-size: 13px; align-items: center; }
.nav a, .nav button {
  padding: 7px 11px; border-radius: 999px; color: var(--muted); text-decoration: none;
  border: 0; background: none; font: inherit; cursor: pointer;
}
.nav a:hover, .nav button:hover { color: var(--ink); }
.nav a.on, .nav a.on:hover { background: var(--ink); color: #fff; }
.nav button { color: var(--faint); }

/* --- page ------------------------------------------------------------------ */

main {
  max-width: 1080px; margin: 0 auto; padding: 20px 14px 32px;
  display: flex; flex-direction: column; gap: 16px;
}
main.narrow { max-width: 720px; }
@media (min-width: 700px) { main { padding: 32px 32px 48px; gap: 18px; } }

.lede { font-size: 14px; line-height: 1.45; color: var(--muted); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.note { font-size: 12.5px; line-height: 1.45; color: var(--faint); }
.empty { font-size: 14.5px; color: var(--muted); }
.head { display: flex; flex-direction: column; gap: 6px; }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px; }
.head-row.center { align-items: center; }
.crumbs { display: flex; gap: 16px; font-weight: 600; font-size: 13px; }

.msg { border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.45; }
.msg.ok { background: var(--go-bg); color: var(--go-dark); }
.msg.err { background: var(--err-bg); color: var(--err); }

.panel {
  background: var(--surface); border-radius: 18px; padding: 18px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 14px;
}
.panel.list { padding: 6px 18px 8px; gap: 0; }
.panel.list > h2, .panel.list > .list-head { margin: 12px 0 4px; }
.panel.list.pad-bottom { padding-bottom: 16px; }
.list-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.list-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px;
  padding: 11px 0; border-top: 1px solid var(--line-soft);
}
.list-row .main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 200px; }
.list-row .side { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.row-title { font: 650 15.5px Figtree, system-ui, sans-serif; }
.strip {
  background: var(--page); border-radius: 12px; padding: 12px;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end;
}
.strip.col { flex-direction: column; align-items: stretch; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 18px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; align-items: start; }

/* --- buttons and fields ------------------------------------------------------ */

.btn {
  display: inline-block; border: 1px solid var(--field); background: var(--surface); color: var(--ink);
  border-radius: 999px; padding: 0 16px; font: 600 14px/38px Figtree, system-ui, sans-serif;
  white-space: nowrap; cursor: pointer; text-decoration: none;
}
.btn:hover { color: var(--ink); text-decoration: none; border-color: var(--dash); }
.btn.primary { background: var(--go); border-color: var(--go); color: #fff; }
.btn.primary:hover { background: var(--go-dark); border-color: var(--go-dark); color: #fff; }
.btn.big { font-size: 15px; line-height: 46px; padding: 0 24px; }
.btn.small { font-size: 12.5px; line-height: 30px; padding: 0 13px; }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; border-radius: 9px; }
.btn.square { border-radius: 10px; }
.btn:disabled { background: var(--off); border-color: var(--line); color: #b5b1a9; cursor: not-allowed; }
.btn.paid { background: var(--go-bg); color: var(--go); border-color: var(--go-line); }
.text-btn { border: 0; background: none; padding: 6px 0; font: 600 13px Figtree, system-ui, sans-serif; cursor: pointer; color: var(--go); }
.text-btn.danger { color: var(--red); }
.text-btn:hover { text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > span, label.plain { font-weight: 600; font-size: 13px; color: var(--text); }
.field > span em { font-style: normal; font-weight: 400; color: var(--faint); }
.field.wide { grid-column: 1 / -1; }
input:not([type="checkbox"]), textarea, select {
  width: 100%; height: 42px; border-radius: 10px; border: 1px solid var(--field); background: var(--surface);
  color: var(--ink); font: 500 15px Figtree, system-ui, sans-serif; padding: 0 12px;
}
textarea { height: auto; padding: 10px 12px; line-height: 1.5; }
textarea.mono { font: 500 14px/1.5 ui-monospace, Menlo, monospace; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--go); outline-offset: 1px; }
input.big { height: 48px; border-radius: 12px; font-size: 16px; padding: 0 14px; }
input.age { width: 64px; padding: 0 8px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--text); cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--go); }
.check em { font-style: normal; font-weight: 400; color: var(--muted); }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px 14px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.inline-form .field.grow { flex: 1 1 180px; }
.inline-form .check { height: 42px; }
/* The age field in an add-person form only appears once "Child" is ticked. */
form:has(input[name="child"]:not(:checked)) .child-age { display: none; }
.htmx-request button, button.htmx-request { opacity: 0.6; cursor: progress; }

/* --- tags and pills ---------------------------------------------------------- */

.tag { font-size: 12px; color: var(--muted); background: var(--tint); padding: 2px 7px; border-radius: 6px; white-space: nowrap; }
.tag.money { font-weight: 700; color: var(--text); }
.tag.draft { font-weight: 700; font-size: 11px; background: none; border: 1px dashed var(--dash); padding: 1px 6px; border-radius: 5px; }
.tag.org { font-weight: 700; font-size: 11px; color: var(--go); background: var(--go-bg); border-radius: 5px; }
.kid { font-weight: 500; font-size: 11.5px; color: var(--muted); }
.pill { font-weight: 600; font-size: 12.5px; border-radius: 999px; padding: 5px 10px; white-space: nowrap; }
.pill.go { background: var(--go-bg); color: var(--go); }
.pill.wait { background: var(--wait-bg); color: var(--wait); }
.pill.bad { background: var(--err-bg); color: var(--err); }
.c-go { color: var(--go); }
.c-wait { color: var(--wait); }
.c-red { color: var(--red); }
.c-warn { color: var(--wait); }

/* --- login ------------------------------------------------------------------- */

.hero {
  --cream: #f4e7d1; --deep: #143c46; --sea: #1d6273; --coral: #e2553a;
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
  background: var(--cream); display: flex;
}
/* Sizes follow the design's 1280x780 and 390x800 frames, scaled to the window. */
.hero-sun {
  position: absolute; left: 50%; top: 10svh; width: min(77vw, 46svh); aspect-ratio: 1;
  transform: translateX(-50%); border-radius: 50%;
  background: repeating-linear-gradient(180deg, #f2a541 0 9%, #ee7d3b 9% 18%, var(--coral) 18% 27%, var(--cream) 27% 29%);
}
.hero-sea { position: absolute; left: 0; right: 0; top: 32.5svh; bottom: 0; background: var(--sea); }
.hero-wave { position: absolute; left: 0; right: 0; }
.hero-wave.one {
  top: 32.5svh; height: 10px; opacity: 0.5;
  background: repeating-linear-gradient(90deg, var(--cream) 0 26px, transparent 26px 52px);
}
.hero-wave.two {
  top: 37.5svh; height: 6px; opacity: 0.25;
  background: repeating-linear-gradient(90deg, transparent 0 40px, var(--cream) 40px 70px);
}
.hero-in {
  position: relative; flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: 20px 18px;
}
.hero-top {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font: 700 13px Figtree, system-ui, sans-serif; letter-spacing: 0.2em; text-transform: uppercase; color: var(--deep);
}
.hero-count {
  background: var(--deep); color: var(--cream); border-radius: 999px; padding: 7px 13px;
  letter-spacing: 0.04em; text-transform: none; font-weight: 600; white-space: nowrap;
}
.hero-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.hero-words { display: flex; flex-direction: column; gap: 12px; max-width: 720px; color: var(--cream); }
.hero-kicker { font: 700 14px Figtree, system-ui, sans-serif; letter-spacing: 0.18em; text-transform: uppercase; color: #f2b07a; }
.hero h1 {
  font: 800 clamp(52px, 10.5vw, 132px) / 0.9 "Bricolage Grotesque", Figtree, system-ui, sans-serif;
  letter-spacing: -0.035em; color: var(--cream);
}
.hero-sub { font: 500 16px Figtree, system-ui, sans-serif; color: #d6e4e0; }
.hero-card {
  width: 100%; max-width: 340px; background: #fffaf1; border-radius: 20px; padding: 20px; color: var(--deep);
  display: flex; flex-direction: column; gap: 12px; box-shadow: 0 10px 30px rgba(10, 40, 50, 0.3);
}
.hero-card-title { font: 650 17px Figtree, system-ui, sans-serif; }
.hero-error { font-size: 13px; color: #b23a26; }
.hero-card input {
  height: 48px; border-radius: 12px; border: 1px solid #d9cdb8; background: #fff; color: var(--deep);
  font: 500 16px Figtree, system-ui, sans-serif; padding: 0 14px;
}
.hero-card input::placeholder { color: inherit; opacity: 0.45; }
.hero-card input:focus { outline: 2px solid var(--coral); outline-offset: 1px; }
.hero-card button {
  height: 48px; border: 0; border-radius: 999px; background: var(--coral); color: #fff;
  font: 600 15px Figtree, system-ui, sans-serif; cursor: pointer;
}
.hero-card button:hover { filter: brightness(0.95); }
.hero-note { font-size: 12px; color: #6b6862; }
@media (min-width: 700px) {
  .hero-sun { left: 66%; top: 11.5svh; width: min(42vw, 69svh); }
  .hero-sea, .hero-wave.one { top: 52.5svh; }
  .hero-wave.two { top: 60svh; }
  .hero-in { padding: 32px 40px 40px; }
}

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

.seg { display: flex; gap: 4px; background: #e9e7e2; padding: 3px; border-radius: 999px; }
.seg a { border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 13px; color: var(--muted); text-decoration: none; }
.seg a.on { background: var(--surface); color: var(--ink); }
.day { display: flex; flex-direction: column; gap: 10px; }
.day > h2 { margin: 10px 2px 0; font: 700 20px/1.1 Figtree, system-ui, sans-serif; }

.card {
  background: var(--surface); border-radius: 18px; padding: 16px; box-shadow: var(--shadow);
  border: 1.5px solid transparent; display: flex; flex-direction: column; gap: 12px;
}
.card.draft { border: 1.5px dashed var(--dash); }
.draft-label { font-weight: 700; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.card-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.card-head .main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.card-head .side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.card-when { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.min-age { font-weight: 600; font-size: 12px; color: var(--muted); }

.spots { display: flex; align-items: center; gap: 10px; }
.dots { display: flex; gap: 4px; flex-wrap: wrap; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--dash-soft); }
.dot.taken { background: var(--go-soft); box-shadow: inset 0 0 0 1.5px var(--go-soft); }
.dot.ours { background: var(--go); box-shadow: inset 0 0 0 1.5px var(--go); }
.bar { flex: 1; height: 6px; background: var(--line-soft); border-radius: 3px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: #3f7a68; }
.spots-text { font-size: 12.5px; font-weight: 600; white-space: nowrap; }

.chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chip {
  width: 100%; text-align: left; border-radius: 12px; padding: 9px 11px; min-height: 52px;
  display: flex; flex-direction: column; justify-content: center; gap: 2px; font-family: inherit;
  background: var(--surface); color: var(--ink); border: 1.5px dashed var(--dash-soft);
}
button.chip { cursor: pointer; }
.chip-name { font-weight: 600; font-size: 14.5px; line-height: 1.2; display: flex; gap: 5px; align-items: center; }
.chip-age { font-weight: 500; font-size: 11px; opacity: 0.75; }
.chip-sub { font-weight: 500; font-size: 11.5px; line-height: 1.2; opacity: 0.85; }
.chip.add-wait { color: var(--wait); border-color: var(--wait-line); }
.chip.going { background: var(--go); color: #fff; border: 1.5px solid var(--go); }
.chip.waiting { background: var(--wait-bg); color: var(--wait); border: 1.5px solid var(--wait-line); }
.chip.off { background: var(--off); color: var(--faint); border: 1.5px solid var(--off); }

.deadlines { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.more { border-top: 1px solid var(--line-soft); padding-top: 10px; }
.more summary {
  font-size: 13px; font-weight: 600; color: var(--text); cursor: pointer; list-style: none;
  display: flex; justify-content: space-between;
}
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "▾"; color: var(--faint); }
.more[open] summary::after { content: "▴"; }
.more-body { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; font-size: 13.5px; color: var(--text); }
.pre { white-space: pre-line; }
.pay { background: var(--page); border-radius: 10px; padding: 9px 11px; }
.pay strong, .who strong { font-weight: 600; }
.who strong { display: block; margin-bottom: 2px; }

/* --- my family --------------------------------------------------------------- */

.person-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.person-name { display: flex; align-items: center; gap: 8px; font: 650 18px Figtree, system-ui, sans-serif; }
.sig { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line-soft); font-size: 13.5px; }
.sig .main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sig a { font-weight: 600; }
.sig .when { font-size: 12px; color: var(--muted); }
.sig .status { font-weight: 600; white-space: nowrap; }
.sig.none { color: var(--faint); }

/* --- organizer --------------------------------------------------------------- */

.roster-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.roster-row .pos { font-weight: 600; font-size: 13px; color: var(--faint); }
.roster-row .who-name { font-weight: 600; font-size: 14.5px; }
.roster-row .sub { font-size: 12.5px; color: var(--muted); }
.roster-row .side { display: flex; gap: 6px; align-items: center; }
.link-box { display: flex; gap: 8px; align-items: center; background: var(--page); border-radius: 12px; padding: 6px 6px 6px 12px; }
.link-box code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.danger-box { border: 1px solid var(--err-line); border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.danger-box h2 { font-size: 16px; color: var(--err); }
.danger-box .btn { align-self: flex-start; margin-top: 4px; }
.log-when { font-size: 12px; color: var(--muted); white-space: nowrap; }
.panel.list > .list-row:first-child { border-top: 0; }

/* --- no-sign-up events, the bell, notifications, contact fields --------------- */

.invited { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13.5px; color: var(--go); }
.icon { flex: none; }
.pill.plain { background: var(--tint); color: var(--text); }
.nav a.bell { position: relative; display: flex; align-items: center; padding: 7px 10px; }
.badge {
  position: absolute; top: 0; right: 0; min-width: 16px; height: 16px; border-radius: 8px; padding: 0 4px;
  background: var(--red); color: #fff; font: 700 10px/16px Figtree, system-ui, sans-serif; text-align: center;
}
.note-card {
  background: var(--surface); border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow);
  display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 4px 10px;
}
.unread-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; }
.note-card.unread .unread-dot { background: var(--red); }
.note-from { font-size: 12.5px; color: var(--muted); }
.note-title { font: 650 16px/1.3 Figtree, system-ui, sans-serif; margin: 4px 0; }
.note-card p { font-size: 14px; color: var(--text); }
.strip.compact .field > span { font-size: 11.5px; color: var(--muted); }
.strip.compact input { height: 38px; border-radius: 9px; font-size: 14px; padding: 0 10px; }
.strip.compact .btn { line-height: 36px; font-size: 13px; padding: 0 12px; border-radius: 9px; }
.seg.pick { align-self: flex-start; }
.seg.pick label { cursor: pointer; }
.seg.pick input { position: absolute; opacity: 0; pointer-events: none; }
.seg.pick span { display: block; border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 13px; color: var(--muted); }
.seg.pick input:checked + span { background: var(--surface); color: var(--ink); }
.seg.pick input:focus-visible + span { outline: 2px solid var(--go); outline-offset: 1px; }
/* The activity form shows only what applies to the kind that is picked. */
form:has(input[name="kind"][value="open"]:checked) .signup-only { display: none; }
form:has(input[name="kind"][value="signup"]:checked) .open-only { display: none; }
