:root {
  --navy: #0b1f3a;
  --navy-soft: #24446f;
  --white: #ffffff;
  --mist: #eef2f7;
  --line: #c6d1df;
  --slate: #4a5d78;
  --ok: #17653a;
  --warn: #8a5300;
  --bad: #a3222c;
  --s1: .5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2.5rem;
  --s5: 5rem;
  --radius: 6px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font: 400 1.0625rem/1.6 Archivo, system-ui, sans-serif;
}
h1, h2, h3 { line-height: 1.15; margin: 0 0 var(--s2); font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); }
h2 { font-size: 1.5rem; }
p { margin: 0 0 var(--s2); max-width: 65ch; }
a { color: inherit; text-underline-offset: .2em; }
:focus-visible { outline: 3px solid #4f86d6; outline-offset: 2px; }
.wrap { width: min(100% - 2rem, 68rem); margin-inline: auto; }
main.app { padding-block: var(--s4) var(--s5); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--white); padding: var(--s1); z-index: 2; }

.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s3); padding-block: var(--s2); }
.mark { font-weight: 800; font-stretch: 112%; text-decoration: none; margin-right: auto; }
.top nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s3); }
.top nav a { text-decoration: none; padding-block: .5rem; }
.top nav a:hover { text-decoration: underline; }
.top form { margin: 0; }

button, .button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.75rem; padding: .5rem 1.1rem;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  color: var(--white); background: var(--navy); border: 1px solid var(--navy); border-radius: var(--radius);
}
button:hover, .button:hover { background: var(--navy-soft); border-color: var(--navy-soft); }
button:disabled { opacity: .5; cursor: not-allowed; }
.quiet { color: var(--navy); background: transparent; border-color: var(--line); }
.quiet:hover { color: var(--navy); background: var(--mist); border-color: var(--slate); }
.plain { color: inherit; background: none; border: 0; padding: .5rem 0; font-weight: 400; min-height: 0; }
.plain:hover { background: none; text-decoration: underline; }

/* Landing */
.hero { position: relative; overflow: hidden; background: var(--navy); color: var(--white); }
.hero .wrap { position: relative; z-index: 1; min-height: min(78vh, 42rem); display: flex; flex-direction: column; justify-content: flex-end; padding-block: var(--s5) var(--s4); }
.hero h1 { font-size: clamp(3rem, 12vw, 8.5rem); font-weight: 800; font-stretch: 118%; line-height: .92; letter-spacing: -.03em; margin-bottom: var(--s3); }
.hero p { font-size: 1.2rem; max-width: 34ch; color: #d5e0ee; }
.wing { position: absolute; right: 0; top: -2%; width: min(40rem, 80%); height: auto; }
.wing path { fill: #17355f; }
.band { padding-block: var(--s5); }
.band + .band { border-top: 1px solid var(--line); }
.split { display: grid; gap: var(--s3); }
.todo { border-left: 4px solid var(--warn); padding-left: var(--s2); color: var(--warn); }
.photos { display: grid; gap: var(--s2); }
.photos div { display: grid; place-items: center; min-height: 11rem; padding: var(--s2); background: var(--mist); border: 1px dashed var(--slate); color: var(--slate); text-align: center; }
.dates { list-style: none; margin: 0; padding: 0; }
.dates li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 var(--s3); padding-block: var(--s2); border-bottom: 1px solid var(--line); }
.dates li:first-child { padding-top: 0; }
.dates strong { font-size: 1.15rem; }
.foot { background: var(--navy); color: var(--white); padding-block: var(--s4); }
.foot p { margin: 0; }
@media (min-width: 48rem) {
  .split { grid-template-columns: 1fr 2fr; gap: var(--s4); }
  .photos { grid-template-columns: 2fr 1fr; }
  .photos div:first-child { grid-row: span 2; }
}

/* Attendance */
.narrow { max-width: 30rem; }
.narrow form { display: grid; gap: var(--s2); margin-top: var(--s3); }
.big { min-height: 4.5rem; font-size: 1.35rem; width: 100%; }
.result { font-size: 1.15rem; font-weight: 600; padding: var(--s3); background: var(--mist); border-radius: var(--radius); }
.muted { color: var(--slate); }

/* Forms and tables */
label { display: grid; gap: .25rem; font-weight: 600; }
label.check { display: flex; align-items: center; gap: var(--s1); }
input, select { font: inherit; color: inherit; min-height: 2.75rem; padding: .4rem .7rem; border: 1px solid var(--slate); border-radius: var(--radius); background: var(--white); width: 100%; }
input[type=checkbox] { width: 1.3rem; min-height: 1.3rem; }
.row { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: end; }
.row label { flex: 1 1 11rem; }
.section { margin-top: var(--s4); }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .6rem .75rem .6rem 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-weight: 600; color: var(--slate); }
td form { display: inline-flex; margin: 0 var(--s1) 0 0; }
td select { min-width: 9.5rem; }
.recap th, .recap td { padding-right: 1rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.recap th:first-child, .recap td:first-child { position: sticky; left: 0; background: var(--white); }
.H { color: var(--ok); font-weight: 600; }
.I, .S { color: var(--warn); font-weight: 600; }
.A { color: var(--bad); font-weight: 600; }

/* QR screen */
.qr { text-align: center; }
.qr p { margin-inline: auto; }
.qr svg { width: min(78vw, 62vh); height: auto; }
.qr-count { font-size: 1.4rem; font-weight: 700; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
