@font-face { font-family: Lato; font-weight: 400; src: url(fonts/lato-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: Lato; font-weight: 700; src: url(fonts/lato-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: Lato; font-weight: 900; src: url(fonts/lato-latin-900-normal.woff2) format('woff2'); }

:root {
  --ink: #18263f;
  --text: #2c3747;
  --muted: #5b6676;
  --page: #f5f7fa;
  --surface: #ffffff;
  --rule: #c9d1dc;
  --go: #0b6e5b;
  --go-dark: #08594a;
  --stop: #a3361f;
  --focus: #1d5fd1;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--page); }
body {
  margin: 0;
  font: 17px/1.55 Lato, "Segoe UI", system-ui, sans-serif;
  color: var(--text);
}
main { max-width: 760px; margin: 0 auto; padding: 48px 20px 64px; }

h1 { font-size: 34px; line-height: 1.15; font-weight: 900; color: var(--ink); margin: 0 0 12px; letter-spacing: -0.01em; }
h2 { font-size: 22px; line-height: 1.25; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.lede { max-width: 62ch; margin: 0 0 32px; }

/* The deck goes into a slide: PowerPoint's own dashed placeholder, at 16:9. */
.slide {
  position: relative;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px;
  aspect-ratio: 16 / 9;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--rule);
  box-shadow: 0 1px 2px rgba(24, 38, 63, 0.08), 0 8px 24px rgba(24, 38, 63, 0.06);
  cursor: pointer;
  text-align: center;
}
.slide::before {
  content: ""; position: absolute; inset: 7%;
  border: 2px dashed var(--rule);
  transition: border-color 150ms;
}
.slide input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.slide .placeholder { position: relative; font-size: 28px; font-weight: 700; color: var(--muted); }
.slide .hint { position: relative; font-size: 15px; color: var(--muted); max-width: 40ch; }
.slide.ready .placeholder { color: var(--ink); }
.slide.ready:hover::before, .slide.dragging::before { border-color: var(--go); }
.slide.busy { cursor: progress; }
.slide.waiting { cursor: default; }
.slide:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }

.choice { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 20px 0 0; }
.choice label { font-weight: 700; color: var(--ink); }
select {
  font: inherit; color: var(--text);
  padding: 8px 12px; min-height: 44px;
  border: 1px solid var(--rule); border-radius: 4px; background: var(--surface);
}
select:focus-visible, a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

#result { margin-top: 40px; }
#result-text { max-width: 62ch; margin: 0 0 16px; }
.actions { margin: 0 0 24px; }
.button {
  display: inline-block; padding: 12px 22px; min-height: 44px;
  background: var(--go); color: #fff; font-weight: 700; text-decoration: none; border-radius: 4px;
}
.button:hover { background: var(--go-dark); }
button.button { font: inherit; font-weight: 700; border: 0; cursor: pointer; }
.button.secondary { background: var(--surface); color: var(--go); box-shadow: inset 0 0 0 2px var(--go); }
.button.secondary:hover { background: #eaf4f1; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* The preview: the course itself, at a phone's width or a desktop's. */
#preview { margin: 8px 0 40px; }
.preview-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.preview-bar h2 { margin: 0; }
.preview-bar a { color: var(--ink); margin-left: auto; }
.views { display: inline-flex; border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; }
.views button {
  font: inherit; font-size: 15px; font-weight: 700; color: var(--muted);
  min-height: 40px; padding: 6px 16px; border: 0; background: var(--surface); cursor: pointer;
}
.views button + button { border-left: 1px solid var(--rule); }
.views button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.note { font-size: 15px; color: var(--muted); max-width: 62ch; margin: 8px 0 16px; }
.screen iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.screen.phone {
  width: 390px; max-width: 100%; height: min(780px, 85vh); margin: 0 auto;
  border: 10px solid var(--ink); border-radius: 28px; overflow: hidden;
  box-shadow: 0 8px 24px rgba(24, 38, 63, 0.18);
}
/* Wider than the page's own column, so the course gets a real desktop's width. */
.screen.desktop {
  position: relative; left: 50%; transform: translateX(-50%);
  width: min(1280px, calc(100vw - 40px)); height: min(800px, 85vh);
  border: 1px solid var(--rule); box-shadow: 0 8px 24px rgba(24, 38, 63, 0.12);
}
#report { width: 100%; height: 70vh; min-height: 420px; border: 1px solid var(--rule); background: var(--surface); }

.failure { margin-top: 32px; padding: 14px 16px; border-left: 4px solid var(--stop); background: var(--surface); color: var(--text); }

footer { margin-top: 48px; font-size: 15px; color: var(--muted); }
footer a { color: var(--ink); }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 520px) {
  main { padding-top: 28px; }
  h1 { font-size: 28px; }
  .slide .placeholder { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { .slide::before { transition: none; } }
