/* Who Docks There? website. No inline styles anywhere: the CSP in _headers is style-src 'self'.
   Mobile first: the base rules are for a phone; wider screens add to them. */

:root {
  --navy: #111d2b;
  --navy-deep: #0a121c;
  --panel: #2c3948;
  --panel-edge: #3e4e60;
  --paper: #e8e1d0;
  --ink: #17212c;
  --ink-soft: #3c4856;
  --amber: #ed9b3a;
  --red: #c45454;
  --cyan: #66b7c9;
  --text: #e8e1d0;
  --muted: #a9b4c0;
  --bolt: #53657a;
  --radius: 10px;
  --wrap: 1120px;
  --mono: ui-monospace, "SFMono-Regular", "DejaVu Sans Mono", Menlo, Consolas, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

/* min-height keeps the body's background gradient from restarting on short pages (404). */
html { -webkit-text-size-adjust: 100%; min-height: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--navy);
  /* Station wall: faint horizontal panel seams over a dark gradient. */
  background-image:
    repeating-linear-gradient(180deg, transparent 0 159px, rgba(255, 255, 255, 0.03) 159px 160px),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--amber); text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--amber);
  color: var(--ink);
  font-weight: 700;
  padding: 0.75rem 1rem;
  z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

/* Header */
.top { border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.top__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.6rem; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand__mark { width: 32px; height: 32px; }
.status-pill {
  display: none;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  border: 1px solid var(--panel-edge);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Hero: copy first, the window below it on a phone, side by side when there is room. */
.hero { padding-block: 2.25rem 3rem; }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: center; }
.eyebrow {
  margin: 0 0 0.5rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
}
h1 {
  margin: 0;
  font-size: clamp(2.6rem, 11vw, 4.75rem);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.lead { font-size: clamp(1.2rem, 2.6vw, 1.55rem); line-height: 1.35; font-weight: 700; color: var(--text); margin: 1rem 0 0.75rem; text-wrap: balance; }
.hero__copy p:not(.lead):not(.eyebrow):not(.hero__cta) { color: var(--muted); max-width: 34rem; margin: 0 0 0.85rem; }
.hero__cta { margin: 1.5rem 0 0; }
.badge {
  display: inline-block;
  background: var(--amber);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.65rem 1.05rem;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(237, 155, 58, 0.22);
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}
.facts li { display: inline-flex; align-items: center; gap: 0.5rem; }
.facts li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  background: var(--cyan);
  flex-shrink: 0;
}

.hero__window {
  position: relative;
  margin: 0 auto;
  width: min(64vw, 240px);
}
.hero__window img { width: 100%; filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.5)); }

/* A slow verification sweep across the glass. The box matches the pane in mark.svg
   (centre 27,27 radius 13.6 in a 64-unit square). */
.scan {
  position: absolute;
  left: 20.94%;
  top: 20.94%;
  width: 42.5%;
  height: 42.5%;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
}
.scan::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -30%;
  height: 22%;
  background: linear-gradient(180deg, rgba(102, 183, 201, 0) 0%, rgba(102, 183, 201, 0.22) 80%, rgba(102, 183, 201, 0.75) 100%);
  animation: sweep 5.5s ease-in-out infinite;
}

@keyframes sweep {
  0% { transform: translateY(0); opacity: 0; }
  12% { opacity: 1; }
  55% { transform: translateY(560%); opacity: 1; }
  70%, 100% { transform: translateY(560%); opacity: 0; }
}

/* Section headings look like a bolted station sign. */
h2.plate {
  display: inline-block;
  margin: 0 0 1.25rem;
  padding: 0.35rem 1.4rem 0.4rem 1.25rem;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  line-height: 1.3;
  font-weight: 800;
  color: var(--text);
  background:
    radial-gradient(circle at calc(100% - 8px) 8px, var(--bolt) 2px, transparent 2.8px),
    radial-gradient(circle at calc(100% - 8px) calc(100% - 8px), var(--bolt) 2px, transparent 2.8px),
    var(--panel);
  border: 1px solid var(--panel-edge);
  border-left: 6px solid var(--amber);
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.how, .studio { padding-block: 2rem; }

/* The three steps are documents on the desk: pale paper, dark ink. */
.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  border-radius: 6px;
  padding: 1.25rem 1.25rem 1.35rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  border-top: 6px solid var(--panel);
}
.step__num {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  padding: 0.05rem 0.45rem;
  margin-bottom: 0.65rem;
}
.step h3 { margin: 0 0 0.4rem; font-size: 1.2rem; line-height: 1.3; color: var(--ink); }
.step p { margin: 0; color: var(--ink-soft); }

/* The three calls, drawn as stamps. Colour always comes with a word. */
.verdicts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.verdict {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  border: 2px solid currentColor;
  border-radius: 4px;
  padding: 0.25rem 0.6rem;
}
.verdict::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; flex-shrink: 0; }
.verdict--admit { border-color: var(--cyan); }
.verdict--admit::before { background: var(--cyan); }
.verdict--deny { border-color: var(--amber); }
.verdict--deny::before { background: var(--amber); }
.verdict--quarantine { border-color: var(--red); }
.verdict--quarantine::before { background: var(--red); }

.fair { margin: 1.5rem 0 0; max-width: 44rem; padding-left: 1rem; border-left: 3px solid var(--cyan); color: var(--muted); }

.studio__inner p { max-width: 44rem; color: var(--muted); margin: 0; }

/* Footer */
.foot { border-top: 1px solid rgba(255, 255, 255, 0.07); margin-top: 2rem; }
.foot__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.25rem 1.5rem; padding-block: 1.25rem 1.75rem; font-size: 0.9rem; color: var(--muted); }
.foot p { margin: 0; }
.foot a { display: inline-block; padding: 0.7rem 0.25rem; margin-left: -0.25rem; }

/* Simple text pages (privacy, 404) */
.page { padding-block: 2.5rem; }
.page h1 { font-size: clamp(2rem, 8vw, 3rem); }
.page p, .page li { color: var(--muted); max-width: 44rem; }
.page h2 { font-size: 1.25rem; margin: 2rem 0 0.5rem; }
.page p > a:only-child { display: inline-block; padding-block: 0.6rem; }

@media (min-width: 481px) {
  .status-pill { display: inline-block; }
}

@media (min-width: 720px) {
  .hero { padding-block: 4rem 3.5rem; }
  .hero__inner { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); }
  .hero__window { width: min(100%, 320px); }
  .how, .studio { padding-block: 3rem; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page { padding-block: 4.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .scan::after { animation: none; opacity: 0; }
}
