:root {
  --ink: #1c1915;
  --muted: #5e584e;
  --paper: #f7f3ea;
  --paper-2: #efe6d4;
  --line: #ddd2c0;
  --green: #1d4a38;
  --green-deep: #143528;
  --gold: #e3b15a;
  --alert: #7c211c;
  --alert-bg: #f8e4de;
  --warn: #8a4b08;
  --warn-bg: #f8ecd4;
  --info: #234056;
  --info-bg: #e5eef3;
  --ok: #1d4a38;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #1c332b;
  color: var(--ink);
  font: 17px/1.5 "Segoe UI", "Avenir Next", "Helvetica Neue", sans-serif;
}

a { color: var(--green); }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 16px 48px;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  color: #f4ecdf;
  padding: 8px 4px 18px;
}

.brand {
  color: inherit;
  text-decoration: none;
  font-family: Georgia, "Iowan Old Style", Palatino, serif;
  font-size: 34px;
  letter-spacing: -0.03em;
  line-height: 1;
}

.brand-sub {
  margin: 6px 0 0;
  color: #d5cbb8;
  font-size: 15px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  justify-content: flex-end;
}

nav a {
  color: #f4ecdf;
  text-decoration: none;
  font-size: 15px;
  padding-bottom: 2px;
}

nav a[aria-current="page"] { border-bottom: 2px solid var(--gold); }

.sheet {
  background: var(--paper);
  border-radius: 8px;
  padding: 28px 28px 36px;
  box-shadow: var(--shadow);
}

.foot {
  color: #c9bfae;
  font-size: 13px;
  margin: 14px 4px 0;
}

h1, h2, h3 {
  font-family: Georgia, "Iowan Old Style", Palatino, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 { font-size: 42px; margin: 0 0 8px; }
h2 { font-size: 26px; margin: 28px 0 10px; }
h3 { font-size: 18px; margin: 0 0 6px; }

.kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lede { font-size: 20px; margin: 0 0 18px; max-width: 40em; }

.status-alert { color: var(--alert); }
.status-notes { color: var(--warn); }
.status-fine { color: var(--ok); }

.banner, .quiet, .flag, .row, .fact, .note {
  border-radius: 6px;
}

.banner {
  background: #fff6d8;
  border: 1px solid #e3c98a;
  padding: 12px 14px;
  margin: 0 0 18px;
}

.quiet {
  background: var(--paper-2);
  padding: 14px 16px;
  color: var(--muted);
}

.flags { display: grid; gap: 8px; margin: 0 0 8px; }

.flag { padding: 10px 12px 10px 14px; border-left: 5px solid var(--line); background: white; }
.flag.alert { border-color: var(--alert); background: var(--alert-bg); }
.flag.warning { border-color: var(--warn); background: var(--warn-bg); }
.flag.info { border-color: var(--info); background: var(--info-bg); }
.flag p { margin: 4px 0 0; color: var(--muted); }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.fact {
  background: white;
  border: 1px solid var(--line);
  padding: 12px 14px;
}

.fact span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fact strong { display: block; margin-top: 4px; font-weight: 600; }

.split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
}

.list { display: grid; gap: 8px; }

.row {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 10px;
  padding: 10px 12px;
  text-decoration: none;
  color: inherit;
  background: white;
  border: 1px solid var(--line);
}

.row:hover { border-color: var(--green); }

.pill {
  display: inline-block;
  min-width: 108px;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 99px;
  background: var(--paper-2);
}

.pill.alert { background: var(--alert); color: white; }
.pill.notes { background: var(--warn); color: white; }
.pill.fine { background: var(--green); color: white; }
.pill.test { background: #234056; color: white; margin-left: 6px; }

.sub { color: var(--muted); font-size: 14px; }

.changes { margin: 0; padding-left: 18px; }
.changes li { margin: 4px 0; }

table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 8px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 13px; letter-spacing: 0.03em; text-transform: uppercase; }

details { margin-top: 12px; background: white; border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; }
summary { cursor: pointer; font-weight: 600; }
pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "Cascadia Code", "Segoe UI Mono", ui-monospace, monospace;
  font-size: 13px;
  background: #1c1915;
  color: #f4ecdf;
  padding: 14px;
  border-radius: 6px;
  overflow: auto;
}

.button, button, .big-link {
  font: inherit;
  cursor: pointer;
}

.button, .big-link {
  display: inline-block;
  background: var(--green);
  color: white;
  text-decoration: none;
  border: 0;
  border-radius: 6px;
  padding: 10px 16px;
}

.button.secondary, button.secondary {
  background: white;
  color: var(--ink);
  border: 2px solid var(--ink);
}

form.stack { display: grid; gap: 12px; max-width: 640px; }
label { display: grid; gap: 4px; font-weight: 600; }
input, select, textarea {
  font: inherit;
  padding: 10px 12px;
  border: 2px solid #c9beab;
  border-radius: 6px;
  background: white;
  color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; }

.note { padding: 8px 0; border-bottom: 1px solid var(--line); }
.note.bad { color: var(--alert); }
.note.skip { color: var(--muted); }

.dad-stage { display: grid; gap: 14px; }
.dad-window {
  background: #fff6e4;
  border: 3px solid #1c1915;
  border-radius: 10px;
  padding: 28px 24px 24px;
  min-height: 520px;
}
.dad-title {
  font-family: "Segoe UI", sans-serif;
  font-size: 40px;
  margin: 0 0 18px;
  text-align: center;
}
.huge {
  display: block;
  width: 100%;
  min-height: 120px;
  margin: 0 0 14px;
  border: 0;
  border-radius: 10px;
  color: white;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
}
.huge small { display: block; font-size: 18px; font-weight: 500; margin-top: 4px; }
.huge.call { background: #145c3a; }
.huge.assist { background: #143e66; }
.huge.no, .huge.done {
  background: white;
  color: #1c1915;
  border: 3px solid #1c1915;
}
.huge:focus { outline: 4px solid #1c1915; outline-offset: 3px; }
.hint { text-align: center; color: #5e584e; margin: 8px 0 0; }
.dad-copy { font-size: 22px; text-align: center; margin: 0 0 18px; }
.result-text { font-size: 28px; text-align: center; margin: 24px 0; }

.video-frame {
  width: 100%;
  height: 68vh;
  min-height: 420px;
  border: 0;
  background: #111;
  border-radius: 8px;
}

@media (max-width: 800px) {
  .top { flex-direction: column; align-items: flex-start; }
  nav { justify-content: flex-start; }
  .sheet { padding: 18px 14px 28px; }
  h1 { font-size: 34px; }
  .grid, .split, .row { grid-template-columns: 1fr; }
  .huge { font-size: 28px; min-height: 104px; }
  .dad-title { font-size: 32px; }
}
