/* Shadeburn Racer — public site. Plain CSS, no frameworks, no external requests.
   Generated into the FTECH site by Distribution/website/build_site.py. */

:root {
  --accent: #b5481a;          /* the game's #EE723F, darkened for AA contrast on white */
  --accent-strong: #8a3612;
  --bg: #fbfaf8;
  --surface: #ffffff;
  --text: #15181d;
  --muted: #59606a;
  --border: #e5e2dd;
  --shadow: 0 1px 2px rgba(21, 24, 29, 0.05), 0 8px 24px rgba(21, 24, 29, 0.06);
  --radius: 14px;
  --wrap: 52rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #ee723f;
    --accent-strong: #ff9a6c;
    --bg: #080b10;
    --surface: #11161d;
    --text: #e8ecef;
    --muted: #a0aab4;
    --border: #232b35;
    --shadow: none;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 0.5rem; background: var(--surface); padding: 0.5rem 0.9rem; border-radius: 8px; }
.skip:focus { left: 0.75rem; z-index: 20; }

/* header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.site-header .bar {
  max-width: var(--wrap); margin: 0 auto; padding: 0.6rem 1rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 650; color: var(--text); text-decoration: none; }
.brand img { border-radius: 7px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 0.9rem; font-size: 0.92rem; }
.site-nav a { text-decoration: none; color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }
.site-nav a[aria-current="page"] { font-weight: 650; }
.lang-switch { margin: 0 0 0 auto; font-size: 0.88rem; color: var(--muted); }
.lang-switch a { text-decoration: none; }
.lang-switch .current { font-weight: 650; color: var(--text); }

/* text */
main { padding: 2rem 0 3rem; }
h1 { font-size: 2rem; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.75rem; }
h2 { font-size: 1.3rem; margin: 2.25rem 0 0.6rem; letter-spacing: -0.01em; }
h3 { font-size: 1.05rem; margin: 1.5rem 0 0.4rem; }
p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.3rem; }
li { margin-bottom: 0.35rem; }
strong { font-weight: 650; }
.muted, .meta { color: var(--muted); font-size: 0.92rem; }
.lead { font-size: 1.15rem; color: var(--muted); }
img { max-width: 100%; height: auto; }
code { font-size: 0.92em; background: var(--surface); border: 1px solid var(--border); border-radius: 5px; padding: 0.05em 0.35em; }

.table-wrap { overflow-x: auto; margin: 0 0 1.25rem; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--border); }
th { font-weight: 650; }

/* hero */
.hero { text-align: center; padding: 1rem 0 0.5rem; }
.hero img.app-icon { width: 112px; height: 112px; border-radius: 24px; box-shadow: var(--shadow); }
.hero h1 { margin-top: 1rem; }
.hero .lead { max-width: 34rem; margin: 0 auto 1.5rem; }

.badges { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: 0.75rem; }
.badge {
  display: inline-flex; flex-direction: column; justify-content: center;
  padding: 0.6rem 1.15rem; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); text-decoration: none; font-size: 0.95rem; font-weight: 600;
}
.badge .sub { font-size: 0.78rem; font-weight: 400; color: var(--muted); }
.badge.buy { background: var(--accent); border-color: var(--accent); color: #fff; }
.badge.buy .sub { color: rgba(255, 255, 255, 0.85); }
.badge.buy:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
@media (prefers-color-scheme: dark) { .badge.buy, .badge.buy:hover { color: #14100d; } .badge.buy .sub { color: rgba(20, 16, 13, 0.8); } }
.badge[aria-disabled="true"] { color: var(--muted); }

/* trailer: a picture that links to YouTube, nothing loaded from it here */
.trailer { display: block; position: relative; margin: 1.5rem 0 0.4rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.trailer img { display: block; width: 100%; }
.trailer .play {
  position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px;
  border-radius: 50%; background: rgba(0, 0, 0, 0.62); border: 2px solid rgba(255, 255, 255, 0.9);
}
.trailer .play::after {
  content: ""; position: absolute; left: 33px; top: 24px;
  border-style: solid; border-width: 18px 0 18px 28px; border-color: transparent transparent transparent #fff;
}
.trailer:hover .play { background: var(--accent); }
.caption { font-size: 0.88rem; color: var(--muted); text-align: center; margin: 0 0 1rem; }

/* blocks */
.shots { display: grid; gap: 0.7rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin: 0 0 1.25rem; }
.shots figure { margin: 0; }
.shots img { display: block; border-radius: 10px; border: 1px solid var(--border); }
.shots figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.3rem; }

.features { list-style: none; padding: 0; display: grid; gap: 0.5rem 1.25rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.features li { padding-left: 1.4rem; position: relative; }
.features li::before { content: "•"; color: var(--accent); position: absolute; left: 0.35rem; }

.note {
  margin: 2rem 0 0; padding: 1rem 1.15rem;
  border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius);
  background: var(--surface); font-size: 0.95rem; color: var(--muted);
}

.faq h3 { margin-top: 1.6rem; }
.downloads { list-style: none; padding: 0; }
.downloads li { margin-bottom: 0.5rem; }

/* footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 1.5rem 0 2.5rem; font-size: 0.92rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; margin-bottom: 0.75rem; }
.footer-nav a { text-decoration: none; }
.site-footer .lang-switch { margin: 0.5rem 0 0; }

@media (max-width: 30rem) {
  h1 { font-size: 1.6rem; }
  body { font-size: 1rem; }
  .lang-switch { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .site-header, .site-footer, .skip { display: none; }
  body { background: #fff; color: #000; }
}
