/* Homepage (index.html). The trainer has its own stylesheet, styles.css.
   Colours are the logo's, from the trainer's night palette (logo/Radar Trainer — Logo Guidelines.md).
   Amber is kept for echoes, so it appears only in the screenshot. System fonts only. */
:root {
  --deep: #07101c;    /* page background */
  --navy: #0d1c31;    /* cards */
  --line: #1d324d;    /* rules and borders */
  --cyan: #5cc8f2;    /* links, buttons */
  --cyan-hi: #8ad8f6; /* button hover */
  --ice: #e8f1fa;     /* headings */
  --text: #c3d3e3;    /* body text: 12.5:1 on --deep, 11.2:1 on --navy */
  --dim: #9ab0c6;     /* captions, footer: 8.5:1 on --deep */
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--deep);
  color: var(--text);
  font: 17px/1.6 var(--font);
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { color: var(--ice); line-height: 1.2; }
p { margin: 0 0 1em; }
a { color: var(--cyan); text-underline-offset: 0.15em; }
a:hover { color: var(--cyan-hi); }
:focus-visible { outline: 3px solid var(--ice); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.prose { max-width: 70ch; }

/* ---------------------------------------------------------------- header
   The lockup is 40 px tall; the guidelines ask for clear space of a quarter of the mark's height (10 px). */
.site-header { padding: 20px 0; border-bottom: 1px solid var(--line); }
.lockup { width: auto; height: 40px; }

/* ---------------------------------------------------------------- hero */
.hero {
  display: grid;
  gap: 32px 48px;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 56px;
}
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 1.3rem + 2.4vw, 2.9rem);
  letter-spacing: -0.01em;
}
.lead { font-size: 1.15rem; color: var(--ice); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 20px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 22px;
  border: 2px solid var(--cyan);
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
}
.btn-primary { background: var(--cyan); color: var(--deep); }
.btn-primary:hover { background: var(--cyan-hi); border-color: var(--cyan-hi); color: var(--deep); }
.btn-secondary { background: transparent; color: var(--ice); }
.btn-secondary:hover { background: rgba(92, 200, 242, 0.14); color: var(--ice); }
.hint { margin: 0; font-size: 0.95rem; color: var(--dim); }

.shot { margin: 0; }
.shot img { border: 1px solid var(--line); border-radius: 10px; background: var(--navy); }
.shot figcaption { margin-top: 10px; font: 0.8rem/1.5 var(--mono); color: var(--dim); }

@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); padding-top: 64px; padding-bottom: 64px; }
}

/* ---------------------------------------------------------------- sections */
.section { padding: 48px 0; border-top: 1px solid var(--line); }
.section h2 { margin: 0 0 16px; font-size: clamp(1.5rem, 1.2rem + 1vw, 1.85rem); }
.section h3 { margin: 0 0 4px; font-size: 1.05rem; }
.section p:last-child { margin-bottom: 0; }

.skills, .cautions { list-style: none; margin: 0; padding: 0; }
.skills {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 24px 36px;
  margin-top: 28px;
}
.skills li { padding-left: 16px; border-left: 2px solid var(--line); }
.skills p { font-size: 0.97rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px;
  margin-top: 24px;
}
.card { padding: 24px; background: var(--navy); border: 1px solid var(--line); border-radius: 12px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.97rem; }
.controls-note { margin-top: 24px; color: var(--dim); font-size: 0.97rem; }

.cautions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 16px 36px;
  margin-top: 24px;
}
.cautions li { padding: 18px 20px; background: var(--navy); border: 1px solid var(--line); border-radius: 12px; }
.cautions strong { color: var(--ice); }

/* ---------------------------------------------------------------- footer */
.site-footer { padding: 36px 0 48px; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--dim); }
.site-footer p { max-width: 80ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 20px; font-size: 1rem; }

/* ---------------------------------------------------------------- phones */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .site-header { padding: 16px 0; }
  .lockup { height: 36px; }
  .hero { padding-top: 36px; padding-bottom: 40px; }
  .lead { font-size: 1.08rem; }
  .section { padding: 40px 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background-color 0.15s ease, border-color 0.15s ease; }
}
