/* Fourteen Academy team app. Styled after fourteenacademy.co: cream and peach ground, ink headlines with orange,
   pill buttons, big rounded cards. Phone first. */
:root {
  --bg: #fcfaf5; --glow: #fde6dc; --panel: #ffffff; --soft: #f4f1ea; --ink: #10141b; --muted: #566071; --line: #dedbd3;
  --orange: #e63b00; --orange-soft: #fde8df; --ok: #0a8a5f; --warn: #a85a05; --bad: #b02a10;
  --display: "Space Grotesk", "Arial Narrow", system-ui, sans-serif; --body: "DM Sans", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0e1116; --glow: #2a160e; --panel: #171b22; --soft: #1f242d; --ink: #f4f1ea; --muted: #a2a9b6; --line: #2b313b;
    --orange: #ff5a1f; --orange-soft: #3a1c10; --ok: #3fd19a; --warn: #f0a247; --bad: #ff7a5c; color-scheme: dark; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.45;
  padding: env(safe-area-inset-top, 0px) max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); }
body::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 520px; background: linear-gradient(180deg, var(--glow), transparent); z-index: -1; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; }
button { font: inherit; cursor: pointer; color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
[hidden] { display: none !important; }
.app { max-width: 560px; margin: 0 auto; padding-block: 14px 130px; display: flex; flex-direction: column; gap: 18px; }

.bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 8px 10px 8px 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; text-transform: uppercase; line-height: 1; letter-spacing: -.02em; text-decoration: none; }
.mark { width: 34px; height: 16px; background: var(--orange); -webkit-mask: url("/assets/f14.png") center / contain no-repeat; mask: url("/assets/f14.png") center / contain no-repeat; }
.brand i { color: var(--orange); font-style: normal; }
.me { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange); font-weight: 700; font-size: 13px; text-decoration: none; }
.sports { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; margin-top: -6px; }
.sports::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: 14px; text-decoration: none; }
.chip[aria-current="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip small { font-weight: 500; opacity: .65; margin-left: 4px; }

.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); margin-bottom: 10px; }
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--orange); flex: 0 0 auto; }
.hero h1 { font-weight: 700; font-size: clamp(2.4rem, 11.5vw, 3.4rem); line-height: .94; letter-spacing: -.035em; text-transform: uppercase; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--orange); display: block; }
.lede { color: var(--muted); font-size: 16px; margin: 12px 0 0; max-width: 42ch; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; border: 2px solid var(--ink); background: transparent; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; font-size: 15px; text-decoration: none; }
.btn.fill { background: var(--orange); border-color: var(--orange); color: #fff; box-shadow: 0 10px 24px -12px var(--orange); }
.btn.block { width: 100%; }
.btn.small { min-height: 42px; padding: 0 18px; font-size: 13px; }
.btn:disabled { opacity: .6; cursor: default; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row .btn { flex: 1 1 160px; }
.link-btn { background: none; border: 0; padding: 4px 0; color: var(--muted); font-size: 13px; text-decoration: underline; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 18px; min-width: 0; text-decoration: none; display: block; }
.card h2 { font-size: 1.25rem; text-transform: uppercase; letter-spacing: -.02em; margin-bottom: 4px; }
.note { color: var(--muted); font-size: 13.5px; margin: 4px 0 0; }
.center { text-align: center; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stats.two-up { grid-template-columns: 1fr 1fr; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 14px 12px; text-decoration: none; min-width: 0; }
.stat b { display: block; font-family: var(--display); font-size: 1.9rem; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat b small { font-size: .45em; color: var(--muted); letter-spacing: 0; }
.stat > span { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; }
.up { color: var(--ok); font-weight: 700; } .down { color: var(--bad); font-weight: 700; }
.pill { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--orange-soft); color: var(--orange); white-space: nowrap; }
.pill.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.pill.warn { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.pill.bad { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }
.warn-text { color: var(--warn); font-weight: 600; } .ok-text { color: var(--ok); }

.photo { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--soft); }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; display: block; }
.photo div { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; color: #fff; background: linear-gradient(0deg, rgba(10,12,16,.82), transparent); font-family: var(--display); font-weight: 700; font-size: 1.9rem; line-height: .95; text-transform: uppercase; letter-spacing: -.03em; }
.photo div em { font-style: normal; color: #ff7a45; display: block; }

.list { display: flex; flex-direction: column; }
.item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); text-decoration: none; }
.list > .item:first-child { border-top: 0; }
.card.item { border-top: 1px solid var(--line); padding: 16px 18px; }
.item > div:first-child { min-width: 0; }
.item b { display: block; font-weight: 600; }
.item small { display: block; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.item small.quote { color: var(--ink); opacity: .8; margin-top: 2px; }
.right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; flex: 0 0 auto; }

.seg { display: flex; gap: 8px; flex: 0 0 auto; }
.seg button { min-width: 84px; min-height: 46px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--panel); font-weight: 700; font-size: 14px; }
.seg button.p[aria-pressed="true"] { background: var(--ok); border-color: var(--ok); color: var(--bg); }
.seg button.a[aria-pressed="true"] { background: var(--bad); border-color: var(--bad); color: var(--bg); }
.seg.busy { opacity: .6; }
@media (max-width: 380px) { .seg button { min-width: 72px; } .item { flex-wrap: wrap; } }
.date { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.date::-webkit-scrollbar { display: none; }
.day { flex: 1 0 54px; padding: 10px 0; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); text-align: center; text-decoration: none; }
.day b { display: block; font-family: var(--display); font-size: 1.3rem; }
.day span { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.day[aria-current="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.day[aria-current="true"] span { color: inherit; opacity: .75; }
.pickdate { display: flex; gap: 10px; align-items: flex-end; }
.pickdate label { flex: 1; }
.sum { font-weight: 600; margin: 0; }

.form { display: flex; flex-direction: column; gap: 12px; }
.form label, .pickdate label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: var(--muted); }
input, select, textarea { font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 14px; padding: 11px 13px; width: 100%; min-width: 0; }
textarea { resize: vertical; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 380px) { .two { grid-template-columns: 1fr; } }
.drop { border-style: dashed; border-width: 2px; }
.filebtn { position: relative; }
.filebtn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.filebtn input:focus-visible + .btn { outline: 3px solid var(--ink); outline-offset: 2px; }
details summary { cursor: pointer; font-family: var(--display); font-weight: 700; text-transform: uppercase; }
details[open] summary { margin-bottom: 14px; }
.msg { margin: 0; font-size: 14px; } .msg.bad { color: var(--bad); }
.flash { margin: 0; padding: 12px 16px; border-radius: 16px; font-weight: 600; background: color-mix(in srgb, var(--ok) 12%, var(--panel)); color: var(--ok); overflow-wrap: anywhere; }
.flash.bad { background: color-mix(in srgb, var(--bad) 12%, var(--panel)); color: var(--bad); }
.foot { text-align: center; font-size: 12.5px; color: var(--orange); margin: 8px 0 0; }

.tabs { position: fixed; left: 0; right: 0; bottom: 0; padding: 0 max(12px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); pointer-events: none; z-index: 5; }
.tabs nav { pointer-events: auto; max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 6px; box-shadow: 0 18px 40px -16px rgba(0,0,0,.35); }
.tabs a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 7px; border-radius: 999px; text-decoration: none; color: var(--muted); font-size: 11.5px; font-weight: 700; }
.tabs svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tabs a[aria-current="page"] { background: var(--orange); color: #fff; }
@media (prefers-reduced-motion: no-preference) { .btn, .seg button, .chip, .tabs a { transition: background-color .15s, color .15s, border-color .15s; } }
