/* ISSessions CCR — Apple 1977 retro theme.
   Tokens only: no raw hex below the light-mode block. */

:root {
  color-scheme: dark;
  --bg: #17120D;
  --ink: #F4EFE6;
  --surface: #221A12;
  --line: #4A3F33;
  --ink-mute: rgba(244, 239, 230, 0.72);
  --accent: #FF5247;
  --on-accent: #17120D;
  --green: #6FCB52;
  --yellow: #FFC21F;
  --orange: #FF7E33;
  --red: #FF5247;
  --purple: #B85CB1;
  --blue: #36A6E4;
  --eyebrow-ink: var(--yellow);
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #F4EFE6;
    --ink: #1B1B1B;
    --surface: #FDFBF7;
    --line: #C9C2B4;
    --ink-mute: rgba(27, 27, 27, 0.65);
    --accent: #EF4136;
    --on-accent: #F4EFE6;
    --green: #62BB46;
    --yellow: #FCB711;
    --orange: #F37021;
    --red: #EF4136;
    --purple: #A1499C;
    --blue: #1B91D2;
    /* darkened mustard: bright yellow is 1.5:1 on parchment */
    --eyebrow-ink: #8A6200;
  }
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('/static/fonts/jetbrains-mono.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

body {
  font-family: system-ui, sans-serif;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

main { max-width: 28rem; margin: 0 auto; padding: 0 1rem 2rem; }
main.wide { max-width: 60rem; }

/* Stripe band + eyebrow */
.stripes { display: flex; height: 10px; }
.stripes span { flex: 1; }
.stripes span:nth-child(1) { background: var(--green); }
.stripes span:nth-child(2) { background: var(--yellow); }
.stripes span:nth-child(3) { background: var(--orange); }
.stripes span:nth-child(4) { background: var(--red); }
.stripes span:nth-child(5) { background: var(--purple); }
.stripes span:nth-child(6) { background: var(--blue); }

header.site { max-width: 60rem; margin: 0 auto; padding: 0.9rem 1rem 0; }
.eyebrow {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--eyebrow-ink);
}

h1, h2 { font-family: var(--mono); letter-spacing: -0.01em; }
h1 { font-size: 1.5rem; font-weight: 800; }
h2 { font-size: 1.15rem; font-weight: 700; margin-top: 2rem; }
p { line-height: 1.55; }

a { color: var(--blue); }
a:hover { color: var(--accent); }

/* Forms */
label {
  display: block;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  margin: 1.1rem 0 0.4rem;
}

input, select {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 8px;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}

button {
  margin-top: 1.1rem;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 20px;
  color: var(--on-accent);
  background: var(--accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

button:hover { filter: brightness(1.1); }

/* Quiet outline button: logout must not compete with primary actions */
form[action="/admin/logout"] button {
  background: transparent;
  color: var(--ink-mute);
  border: 2px solid var(--line);
}

/* Banners */
.error, .notice, .success {
  padding: 0.6rem 0.8rem;
  border-left: 3px solid;
  border-radius: 0 6px 6px 0;
  font-size: 0.95rem;
}
.error {
  border-color: var(--red);
  background: color-mix(in srgb, var(--red) 12%, transparent);
  color: color-mix(in srgb, var(--red) 55%, var(--ink));
}
.notice {
  border-color: var(--yellow);
  background: color-mix(in srgb, var(--yellow) 12%, transparent);
  color: color-mix(in srgb, var(--yellow) 55%, var(--ink));
}
.success {
  border-color: var(--green);
  background: color-mix(in srgb, var(--green) 12%, transparent);
  color: color-mix(in srgb, var(--green) 55%, var(--ink));
}

/* Tables */
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 0.6rem 0.5rem; }
th {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  border-bottom: 2px solid var(--line);
}
td { border-bottom: 1px solid var(--line); }
tr:hover td { background: var(--surface); }

/* Admin nav: stripe-colored hover underlines by position */
nav { margin: 1.2rem 0 0.4rem; }
nav a {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink);
  text-decoration: none;
  margin-right: 1.2rem;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
nav a:nth-of-type(1):hover { border-color: var(--green); }
nav a:nth-of-type(2):hover { border-color: var(--yellow); }
nav a:nth-of-type(3):hover { border-color: var(--orange); }

/* Inline forms (admin session rows, roster search) */
form.inline {
  display: flex;
  gap: 0.6rem;
  align-items: end;
  flex-wrap: wrap;
  margin: 0.8rem 0;
}
form.inline label { margin: 0; }
form.inline input { width: auto; }
form.inline button { margin-top: 0; }
