/* ---------------------------------------------------------------------------
   DisDubs — public site.

   Same identity as the Activity itself (see packages/client/src/styles.css):
   neutral dark surfaces, Academy-leader bone ink, Kodak amber for anything you
   can act on, grease-pencil red for the tally and nothing else. Deliberately
   one stylesheet with no external assets, so the whole site is a folder you can
   drop on any static host.
--------------------------------------------------------------------------- */

:root {
  --bg: #131417;
  --bg-panel: #1a1c20;
  --bg-lift: #212429;
  --line: #2f3339;
  --line-soft: #24272c;

  --ink: #e4e6ea;
  --ink-dim: #aeb3bb;
  --ink-faint: #757b85;

  --amber: #f0b45c;
  --amber-deep: #a97c2e;
  --rec: #e8524a;

  --radius: 3px;

  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --slate: "Bahnschrift", "DIN Alternate", "DIN Condensed", "Oswald", "Arial Narrow", var(--sans);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(120% 80% at 50% 0%, #181a1e 0%, var(--bg) 60%), var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: var(--amber);
}
a:hover {
  color: #f6c47e;
}
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

/* --- the clapstick, the one piece of chrome every page wears -------------- */

.stick {
  height: 8px;
  background: repeating-linear-gradient(118deg, var(--ink) 0 11px, #15171a 11px 22px);
}

header.top {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #1e2126, #141619);
}
.top .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.mark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.mark svg {
  display: block;
}
.mark b {
  font-family: var(--slate);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.top nav {
  margin-left: auto;
  display: flex;
  gap: 18px;
  font-size: 14px;
}
.top nav a {
  color: var(--ink-dim);
  text-decoration: none;
}
.top nav a:hover {
  color: var(--amber);
}

/* --- type ----------------------------------------------------------------- */

h1 {
  font-family: var(--slate);
  font-size: clamp(38px, 8vw, 74px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.02;
  text-transform: uppercase;
  margin: 0;
}
h2 {
  font-family: var(--slate);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 44px 0 12px;
}
h3 {
  font-size: 17px;
  font-weight: 650;
  margin: 24px 0 4px;
}
p {
  margin: 0 0 14px;
  max-width: 68ch;
}
.lead {
  font-size: 20px;
  color: var(--ink-dim);
  margin-top: 16px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 14px;
}
.eyebrow::before {
  content: '';
  width: 16px;
  height: 1px;
  background: var(--amber);
}
.tally {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--rec);
  box-shadow: 0 0 10px rgb(232 82 74 / 0.6);
  display: inline-block;
}

/* --- hero ----------------------------------------------------------------- */

.hero {
  padding: 76px 0 60px;
  position: relative;
  overflow: hidden;
}
/* Sprocket rails down the page edges, same proportions as the app's cards. */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 11px;
  background-image: repeating-linear-gradient(
    180deg,
    transparent 0 6px,
    rgb(228 230 234 / 0.09) 6px 16px,
    transparent 16px 22px
  );
  background-size: 5px 22px;
  background-repeat: repeat-y;
  background-position: center top;
}
.hero::before {
  left: 14px;
}
.hero::after {
  right: 14px;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--slate);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-lift);
  color: var(--ink);
}
.btn:hover {
  border-color: var(--amber-deep);
  color: var(--amber);
}
.btn-primary {
  background: var(--amber);
  border-color: var(--amber);
  color: #16181c;
}
.btn-primary:hover {
  background: #f6c47e;
  border-color: #f6c47e;
  color: #16181c;
}

/* --- steps ---------------------------------------------------------------- */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 46px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-lift);
  color: var(--amber);
  font-family: var(--mono);
  font-size: 14px;
  display: grid;
  place-items: center;
}
.steps h3 {
  margin-top: 2px;
}
.steps p {
  color: var(--ink-dim);
  margin-bottom: 0;
}

/* --- panels --------------------------------------------------------------- */

.panel {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-top: 1px solid var(--amber-deep);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 22px 0;
}
.panel h3:first-child {
  margin-top: 0;
}
.panel p:last-child {
  margin-bottom: 0;
}

/* --- legal pages ---------------------------------------------------------- */

.doc {
  padding: 40px 0 70px;
}
.doc h2 {
  font-size: 21px;
  margin-top: 38px;
}
.doc ul {
  color: var(--ink-dim);
  max-width: 68ch;
  padding-left: 22px;
}
.doc li {
  margin-bottom: 7px;
}
.doc .updated {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
/* Anything the operator still has to fill in before publishing. */
.todo {
  background: rgb(232 82 74 / 0.12);
  border: 1px dashed rgb(232 82 74 / 0.5);
  border-radius: var(--radius);
  padding: 1px 6px;
  font-family: var(--mono);
  font-size: 0.85em;
  color: #f5938a;
}

/* --- footer --------------------------------------------------------------- */

footer {
  border-top: 1px solid var(--line);
  margin-top: 60px;
  padding: 26px 0 40px;
  color: var(--ink-faint);
  font-size: 14px;
}
footer .wrap {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}
footer nav {
  margin-left: auto;
  display: flex;
  gap: 18px;
}
footer a {
  color: var(--ink-dim);
  text-decoration: none;
}
footer a:hover {
  color: var(--amber);
}

@media (max-width: 640px) {
  .hero {
    padding: 48px 0 40px;
  }
  .hero::before,
  .hero::after {
    display: none;
  }
  h2 {
    margin-top: 34px;
  }
  footer nav {
    margin-left: 0;
  }
}
