/* Family site. Calm and flat: hairline borders, one accent, colour only for meaning. */
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url("/fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url("/fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url("/fonts/inter-700.woff2") format("woff2"); }
:root {
  --bg: #f6f7f9; --panel: #ffffff; --surface: #f1f3f6; --border: #e1e5eb; --border-strong: #cfd5dd;
  --text: #121821; --soft: #3a4452; --muted: #5d6877; --faint: #8a94a2;
  --accent: #2459c9; --accent-btn: #2f6feb; --accent-btn-hover: #2a62d1;
  --ok: #1f8a3c; --warn: #9a6700; --err: #c62828; --chip: #eef1f5; --wa: #1e9e57;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117; --panel: #151b23; --surface: #10161e; --border: #262d38; --border-strong: #333c49;
    --text: #e8edf3; --soft: #c3cbd6; --muted: #8b95a3; --faint: #646e7c;
    --accent: #6aa5ff; --ok: #3fb950; --warn: #d29922; --err: #f85149; --chip: #1e2631; --wa: #3fb950;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; min-height: 100dvh;
}
[hidden] { display: none !important; }
a { color: var(--accent); }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.small { font-size: .84rem; }
.err { color: var(--err); min-height: 1.2em; margin: .5rem 0 0; font-size: .9rem; }
.boot { padding: 40vh 1rem 0; text-align: center; color: var(--muted); }

/* Sign in */
.signin { max-width: 420px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 3rem) 16px 2rem; text-align: center; }
.logo { border-radius: 16px; }
.signin h1 { margin-top: .8rem; font-size: 1.55rem; font-weight: 700; }
.signin > .muted { margin: .35rem 0 0; }
.signin .small { margin-top: 1rem; }
.panel { margin-top: 1.4rem; padding: 1.1rem; text-align: left; background: var(--panel); border: 1px solid var(--border); border-radius: 16px; }
form { display: grid; gap: .85rem; }
label { display: grid; gap: .35rem; font-size: .84rem; font-weight: 600; color: var(--soft); }
input {
  font: inherit; font-size: 16px; color: var(--text); background: var(--surface); width: 100%;
  border: 1px solid var(--border-strong); border-radius: 10px; padding: .65rem .8rem; min-height: 46px;
}
input:focus { border-color: var(--accent); outline: 3px solid color-mix(in srgb, var(--accent) 22%, transparent); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn {
  min-height: 46px; border: 0; border-radius: 10px; color: #fff; background: var(--accent-btn);
  font: inherit; font-weight: 600; padding: .55rem 1rem; cursor: pointer;
}
.btn:hover { background: var(--accent-btn-hover); }
.btn:disabled { opacity: .6; cursor: default; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border-strong); min-height: 38px; padding: .35rem .8rem; font-size: .9rem; }
.link { background: none; border: 0; color: var(--accent); font: inherit; cursor: pointer; padding: .25rem 0; }
.google-host { display: flex; justify-content: center; min-height: 44px; }
.or { display: flex; align-items: center; gap: .75rem; color: var(--faint); font-size: .8rem; margin: .9rem 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* Home */
.top {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: .7rem;
  padding: calc(env(safe-area-inset-top) + .7rem) 16px .7rem;
  background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border);
}
.top-logo { border-radius: 8px; }
.top-text { display: grid; flex: 1; min-width: 0; line-height: 1.25; }
.top-text span { font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
main { max-width: 760px; margin: 0 auto; padding: 1rem 16px 2rem; display: grid; gap: 1rem; }
.hello h1 { font-size: 1.5rem; font-weight: 700; }
.hello p { margin: .25rem 0 0; }
.season-name { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: .5rem 0 0; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.card > header { padding: .9rem 1rem .7rem; border-bottom: 1px solid var(--border); }
.card > header h2 { font-size: 1.1rem; font-weight: 700; }
.card > header p { margin: .15rem 0 0; font-size: .86rem; color: var(--muted); }
.tag { display: inline-block; font-size: .72rem; font-weight: 600; padding: .1rem .45rem; border-radius: 999px; background: var(--chip); color: var(--soft); margin-left: .4rem; vertical-align: middle; }
.sec { padding: .8rem 1rem; border-top: 1px solid var(--border); }
.card > header + .sec { border-top: 0; }
.kicker { font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 0 0 .45rem; }
.kids { display: flex; flex-wrap: wrap; gap: .5rem; }
.kid { display: flex; align-items: center; gap: .55rem; padding: .4rem .65rem .4rem .4rem; border-radius: 999px; background: var(--chip); }
.num { min-width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; font-weight: 700; font-size: .85rem; background: var(--panel); border: 1px solid var(--border-strong); }
.todo { margin: .55rem 0 0; padding: 0; list-style: none; display: grid; gap: .35rem; }
.todo li { font-size: .88rem; color: var(--warn); }
.game { display: grid; gap: .1rem; }
.game strong { font-size: 1.05rem; }
.game .when { font-size: .9rem; color: var(--soft); }
.game .where { font-size: .86rem; color: var(--muted); }
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.rows li { display: flex; justify-content: space-between; gap: .75rem; font-size: .92rem; }
.rows .side { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.res-w { color: var(--ok); font-weight: 600; } .res-l { color: var(--err); font-weight: 600; } .res-d { color: var(--muted); font-weight: 600; }
.ladder li.ours { font-weight: 700; }
.people { display: grid; gap: .6rem; }
.person { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.person .role { display: block; font-size: .78rem; color: var(--muted); }
.acts { display: flex; gap: .4rem; flex-wrap: wrap; }
.act {
  display: inline-flex; align-items: center; gap: .3rem; min-height: 36px; padding: .3rem .75rem; border-radius: 999px;
  border: 1px solid var(--border-strong); color: var(--text); text-decoration: none; font-size: .86rem; font-weight: 600;
}
.act:hover { background: var(--chip); }
.act.wa { color: var(--wa); border-color: color-mix(in srgb, var(--wa) 45%, var(--border-strong)); }
details > summary { cursor: pointer; font-weight: 600; font-size: .92rem; list-style: none; display: flex; justify-content: space-between; }
details > summary::after { content: "Show"; color: var(--accent); font-weight: 600; font-size: .86rem; }
details[open] > summary::after { content: "Hide"; }
details > summary::-webkit-details-marker { display: none; }
details .people, details .rows { margin-top: .7rem; }
.notice { padding: .8rem 1rem; border-radius: 12px; background: var(--panel); border: 1px solid var(--border); font-size: .92rem; }
dl.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .35rem .9rem; font-size: .9rem; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; }
.foot { max-width: 760px; margin: 0 auto; padding: 0 16px 2rem; font-size: .8rem; }
@media (min-width: 720px) { .hello h1 { font-size: 1.75rem; } }
