:root {
  color-scheme: light;
  --paper: #f3ecdf;
  --ink: #241c16;
  --muted: #5e5348;
  --card: #fffaf3;
  --line: #e0d3c0;
  --clay: #8d3418;
  --pine: #1e4a38;
  --warn: #f4e2c4;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.125rem/1.5 "Avenir Next", "Segoe UI", "Trebuchet MS", sans-serif;
}

.top, main, footer { width: min(42rem, calc(100% - 2rem)); margin: 0 auto; }

.top { padding: 1.5rem 0 0.5rem; }

.eyebrow {
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--muted);
}

h1 { font-family: Palatino, "Iowan Old Style", Georgia, serif; font-size: 2rem; margin: 0.2rem 0 0; font-weight: 600; }
h1 a { color: inherit; text-decoration: none; }
h2, h3 { font-family: Palatino, "Iowan Old Style", Georgia, serif; font-weight: 600; }
h2 { font-size: 1.7rem; margin: 0 0 0.6rem; }
h3 { margin: 1.6rem 0 0.4rem; }

main { padding-bottom: 2rem; }

.hero, .net, form, .note, .error {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
}

.kicker { margin: 0; color: var(--pine); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.8rem; }

.ssid {
  margin: 0.3rem 0;
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", monospace;
  font-size: clamp(2rem, 8vw, 3.2rem);
  line-height: 1.1;
  color: var(--pine);
  overflow-wrap: anywhere;
}

.lede { margin-top: 0.4rem; }

.board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(4.4rem, 1fr));
  gap: 0.4rem;
  margin-top: 0.6rem;
}
.spot {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.35rem 0.2rem 0.45rem;
  text-align: center;
}
.spot span { display: block; font-weight: 700; }
.spot small { color: var(--muted); font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; }
.spot.open { background: #e7f0ea; }
.spot.held { background: var(--warn); }
.spot.issued { background: #f6e4dc; }

.networks { display: grid; gap: 0.8rem; margin-top: 1rem; }

.net h2 { font-size: 1.35rem; margin: 0.15rem 0; font-family: ui-monospace, "Cascadia Code", monospace; }
.net p { margin: 0.3rem 0 0; }
.now { border-color: var(--pine); box-shadow: inset 4px 0 0 var(--pine); }
.old { background: var(--warn); }
.tag { margin: 0; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

form { display: grid; gap: 0.45rem; margin-top: 1rem; }
label { font-weight: 650; }
input, select, button {
  font: inherit;
  padding: 0.7rem 0.75rem;
  border-radius: 10px;
  border: 1px solid #c8b8a2;
}
fieldset { border: 1px solid var(--line); border-radius: 10px; display: grid; gap: 0.4rem; }
.choice { font-weight: 500; display: flex; gap: 0.5rem; align-items: flex-start; }
.choice input { margin-top: 0.3rem; }

button, .button {
  display: inline-block;
  background: var(--clay);
  color: white;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.1rem;
  font-weight: 700;
  text-align: center;
}
button { width: 100%; cursor: pointer; }
button:focus-visible, .button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid #e8b15a;
  outline-offset: 2px;
}

.error { border-color: var(--clay); color: #6d2412; margin: 0.8rem 0; }
.note { margin: 0.8rem 0; color: var(--muted); }

.pass {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: clamp(1.4rem, 5vw, 2rem);
  background: #fff;
  border: 1px dashed var(--pine);
  border-radius: 12px;
  padding: 0.9rem;
  overflow-wrap: anywhere;
}
.spoken { background: #e7f0ea; border-radius: 12px; padding: 0.9rem 1rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.45rem 0.6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }

footer { color: var(--muted); font-size: 0.9rem; padding-bottom: 2rem; }

@media (min-width: 800px) {
  .networks { grid-template-columns: 1fr; }
  button { width: auto; }
}

.acks { margin-top: 0.3rem; }
.acks .choice { font-size: 0.98rem; }
.policy { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem 1.4rem; }
.policy ul { margin: 0.3rem 0 0.8rem; padding-left: 1.2rem; }
.policy li { margin: 0.25rem 0; }
footer a { color: inherit; }
