/* Iron Road landing site. Palette from docs/reference/art-assets.md:
   gunmetal #2E3330, foundry black #26221F, olive #6B7A4A, concrete #9E9478,
   road #CDB98C, signal orange #E98A2B, amber #FFB347. */

@font-face {
  font-family: "Teko";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/teko-600-latin.woff2") format("woff2");
}

:root {
  --bg: #1d1b19;
  --panel: #26221f;
  --panel-2: #2e3330;
  --line: #3d3a35;
  --text: #ece6d8;
  --muted: #b3ab98;
  --road: #cdb98c;
  --olive: #6b7a4a;
  --olive-light: #9fb072;
  --signal: #e98a2b;
  --amber: #ffb347;
  --display: "Teko", "Arial Narrow", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--body);
}

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

a { color: var(--amber); }
a:hover { color: var(--signal); }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  margin: 0 0 0.35em;
}

/* Top bar */
.top { border-bottom: 1px solid var(--line); background: var(--panel); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.brand {
  font-family: var(--display);
  font-size: 30px;
  line-height: 1;
  padding-top: 4px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.04em;
}
.brand span { color: var(--signal); }
.top a.small { font-size: 15px; }

/* Hero */
.hero { padding: 36px 0 48px; }
.hero .wrap { display: grid; gap: 32px; align-items: center; }
.hero-media {
  justify-self: center;
  width: min(100%, 260px);
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  overflow: hidden;
  border: 3px solid var(--panel-2);
  box-shadow: 0 0 0 1px var(--line), 0 24px 60px rgba(0, 0, 0, 0.55);
  background: var(--panel);
}
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero h1 { font-size: clamp(48px, 13vw, 84px); }
.hero h1 em { font-style: normal; color: var(--signal); }
.lede { font-size: 19px; color: var(--muted); max-width: 34em; margin: 0 0 24px; }

.button {
  display: inline-block;
  font-family: var(--display);
  font-size: 26px;
  line-height: 1;
  padding: 14px 26px 10px;
  border: 0;
  border-radius: 10px;
  background: var(--signal);
  color: #1d1b19;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--amber); color: #1d1b19; }
.button[disabled], fieldset[disabled] .button { background: var(--line); color: var(--muted); cursor: not-allowed; }
.platforms { margin: 14px 0 0; font-size: 15px; color: var(--muted); }

/* Sections */
section { padding: 48px 0; }
.band { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section h2 { font-size: clamp(38px, 9vw, 54px); }
.kicker {
  font-family: var(--display);
  font-size: 20px;
  color: var(--olive-light);
  letter-spacing: 0.08em;
  margin: 0 0 4px;
}

/* Signup */
.signup form { max-width: 520px; }
.signup fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; }
.signup legend { padding: 0; margin-bottom: 6px; font-size: 18px; color: var(--muted); }
.signup label { display: block; font-size: 15px; color: var(--muted); margin-bottom: 4px; }
.signup input, .signup select {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
}
.signup fieldset[disabled] input, .signup fieldset[disabled] select { opacity: 0.6; }
.note { font-size: 15px; color: var(--muted); margin: 14px 0 0; }
.android {
  margin: 20px 0 0;
  padding: 14px 16px;
  border-left: 4px solid var(--olive);
  background: var(--panel-2);
  border-radius: 0 10px 10px 0;
  overflow-wrap: anywhere;
}

/* Features */
.features { display: grid; gap: 18px; }
.feature {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 4px solid var(--signal);
  border-radius: 12px;
  padding: 22px 22px 18px;
}
.feature h3 { font-size: 34px; }
.feature p { margin: 0; color: var(--muted); }

/* FAQ */
.faq { max-width: 760px; }
.faq h3 { font-family: var(--body); font-weight: 700; font-size: 18px; line-height: 1.3; margin: 24px 0 6px; color: var(--road); }
.faq p { margin: 0; color: var(--muted); }

/* Text pages */
.page { padding: 40px 0 56px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(46px, 12vw, 68px); }
.page h2 { font-size: 34px; margin-top: 1.2em; }
.page p, .page li { color: var(--muted); }
.page ol { padding-left: 1.3em; }
.page li { margin-bottom: 10px; }
.meta { font-size: 15px; }
.todo {
  border: 2px dashed var(--signal);
  border-radius: 8px;
  padding: 2px 8px;
  color: var(--amber);
  font-weight: 700;
}

/* Footer */
footer { border-top: 1px solid var(--line); background: var(--panel); padding: 28px 0 36px; font-size: 15px; color: var(--muted); }
footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer p { margin: 0 0 12px; }
footer a { color: var(--text); }

@media (min-width: 760px) {
  .hero { padding: 64px 0 72px; }
  .hero .wrap { grid-template-columns: 1fr 320px; gap: 56px; }
  .hero-media { grid-column: 2; grid-row: 1; width: 320px; }
  .features { grid-template-columns: repeat(3, 1fr); }
}
