/* racingeagles.com — the PUBLIC Racing Eagles LLC company site.
   Self-contained: no build step, no framework, no downloaded fonts, no third-party requests,
   no analytics, no cookies. Design tokens are the Racing Eagles product's own (midnight ground,
   scarce champagne, platinum/silver type, hairline strokes, no drop shadows) so the public face
   matches the product without shipping any product asset. */

:root {
  --midnight: #091320;
  --midnight-deep: #060D17;
  --deck: #101D33;
  --deck-raised: #152744;
  --champagne: #E0B457;
  --champagne-bright: #F4D68F;
  --platinum: #EDF0F5;
  --silver: #93A3B8;
  --silver-dim: #8A9AB0;
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-strong: rgba(255, 255, 255, 0.14);
  --champagne-edge: rgba(224, 180, 87, 0.35);

  --radius-card: 16px;
  --radius-control: 10px;
  --radius-pill: 999px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", system-ui, Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Noto Serif", Georgia, "Times New Roman", serif;

  --wrap: 1100px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-gap: clamp(60px, 8vw, 104px);
  --header-h: 68px;

  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--midnight);
  color: var(--platinum);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--champagne); text-decoration-color: rgba(224, 180, 87, .45); text-underline-offset: .18em; }
a:hover { color: var(--champagne-bright); }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.15; letter-spacing: -.005em; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--champagne); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 100;
  background: var(--champagne); color: var(--midnight); font-weight: 600;
  padding: 10px 16px; border-radius: 0 0 var(--radius-control) var(--radius-control);
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ---------- type ---------- */
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  color: var(--champagne); margin: 0 0 16px;
}
.section-title {
  font-family: var(--font-serif); font-weight: 400; letter-spacing: -.01em;
  font-size: clamp(28px, 3.4vw, 42px); line-height: 1.14; max-width: 24ch;
}
.section-title .accent { color: var(--champagne); }
.lead { color: var(--silver); font-size: clamp(17px, 1.3vw, 19px); line-height: 1.62; max-width: 62ch; margin-top: 18px; }
.lead strong { color: var(--platinum); font-weight: 500; }
.body { color: var(--silver); font-size: 16px; line-height: 1.65; }
.fine { font-size: 13.5px; color: var(--silver-dim); line-height: 1.6; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(9, 19, 32, .88);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.header-inner {
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--platinum); }
.brand:hover { color: var(--platinum); }
.brand .mark { width: 30px; height: 30px; flex: none; }
.wordmark {
  font-family: var(--font-serif); font-size: 19px; font-weight: 400;
  letter-spacing: .01em; color: var(--platinum); white-space: nowrap;
}
.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a {
  color: var(--silver); text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 8px 12px; border-radius: var(--radius-control);
}
.site-nav a:hover { color: var(--platinum); background: rgba(255, 255, 255, .05); }
.site-nav a[aria-current="page"] { color: var(--champagne); }

/* ---------- hero ---------- */
.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 5vw, 64px); }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 {
  font-family: var(--font-serif); font-weight: 400; letter-spacing: -.015em;
  font-size: clamp(36px, 5.4vw, 60px); line-height: 1.08; max-width: 15ch;
}
.hero h1 .accent { color: var(--champagne); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-art { justify-self: center; width: 100%; max-width: 380px; }

.status-line {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 26px;
  padding: 7px 15px 7px 12px; border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-pill); font-size: 13.5px; color: var(--silver);
}
.status-line .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--champagne); flex: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn--primary { background: var(--champagne); color: var(--midnight); }
.btn--primary:hover { background: var(--champagne-bright); color: var(--midnight); }
.btn--ghost { background: transparent; color: var(--champagne); border-color: var(--champagne-edge); }
.btn--ghost:hover { border-color: var(--champagne); color: var(--champagne-bright); }

/* ---------- sections ---------- */
.section { padding-block: var(--section-gap); border-top: 1px solid var(--hairline); }
.section--plain { border-top: 0; }
.section-head { max-width: 62ch; margin-bottom: clamp(30px, 4vw, 48px); }

.card-grid { list-style: none; display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
.card {
  background: var(--deck); border: 1px solid var(--hairline);
  border-radius: var(--radius-card); padding: clamp(22px, 2.4vw, 28px);
  display: flex; flex-direction: column; gap: 12px;
}
.card h3 { font-size: 18px; font-weight: 600; letter-spacing: -.005em; }
.card p { color: var(--silver); font-size: 15.5px; line-height: 1.6; }
.icon-ring {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--champagne-edge); color: var(--champagne);
}
.icon-ring svg { width: 19px; height: 19px; }

/* ---------- company panel ---------- */
.panel {
  background: var(--deck); border: 1px solid var(--hairline);
  border-radius: var(--radius-card); padding: clamp(26px, 3.4vw, 44px);
}
.fact-list { list-style: none; display: grid; gap: 18px; margin-top: 26px; }
.fact-list > li {
  display: grid; grid-template-columns: 200px 1fr; gap: 6px 28px;
  padding-top: 18px; border-top: 1px solid var(--hairline);
}
.fact-list dt, .fact-k {
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--silver-dim); padding-top: 3px;
}
.fact-v { color: var(--platinum); font-size: 16px; line-height: 1.6; }

/* ---------- contact ---------- */
.contact-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 26px; }
.mail-link {
  font-family: var(--font-serif); font-size: clamp(20px, 2.6vw, 28px);
  color: var(--champagne); text-decoration: none; word-break: break-word;
}
.mail-link:hover { color: var(--champagne-bright); text-decoration: underline; }

/* ---------- prose (inner pages) ---------- */
.page { padding-block: clamp(44px, 6vw, 76px); }
.prose { max-width: 70ch; }
.prose h1 {
  font-family: var(--font-serif); font-weight: 400; letter-spacing: -.012em;
  font-size: clamp(32px, 4.4vw, 46px); line-height: 1.12;
}
.prose h2 {
  font-size: 20px; font-weight: 600; margin-top: 42px; letter-spacing: -.005em;
  padding-top: 20px; border-top: 1px solid var(--hairline);
}
.prose p { color: var(--silver); margin-top: 16px; font-size: 16.5px; line-height: 1.7; }
.prose p strong { color: var(--platinum); font-weight: 500; }
.prose ul { margin-top: 16px; padding-left: 22px; }
.prose li { color: var(--silver); margin-top: 10px; font-size: 16.5px; line-height: 1.7; }
.prose li::marker { color: var(--champagne); }
.prose .lead { margin-top: 20px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--hairline); padding-block: clamp(40px, 5vw, 60px) 40px; background: var(--midnight-deep); }
.footer-top { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px; }
.footer-links a { color: var(--silver); text-decoration: none; font-size: 15px; padding: 8px 12px; border-radius: var(--radius-control); }
.footer-links a:hover { color: var(--platinum); background: rgba(255, 255, 255, .05); }
.footer-legal { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--hairline); display: grid; gap: 10px; }

/* ---------- 404 ---------- */
.center-page { min-height: 62vh; display: flex; align-items: center; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  /* Text first, artwork after: the headline and the company's own words are what a first-time
     visitor (and an App Store organization reviewer) must see without scrolling. */
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { max-width: 280px; margin-top: 8px; }
  .hero h1 { max-width: 18ch; }
  .fact-list > li { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16.5px; }
  /* The two-row header is ~1/4 of a phone screen; sticking it there would cost more than it
     gives, and there is no JavaScript here to collapse it into a menu. Let it scroll away. */
  .site-header { position: static; }
  .header-inner { flex-wrap: wrap; padding-block: 12px; row-gap: 2px; }
  .brand .mark { width: 26px; height: 26px; }
  .wordmark { font-size: 17.5px; }
  .site-nav { width: 100%; justify-content: flex-start; margin-left: -10px; }
  .site-nav a { font-size: 14.5px; padding: 6px 10px; }
  .btn { width: 100%; }
  .hero { padding-top: clamp(36px, 7vw, 56px); }
  .hero-actions { gap: 10px; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-links { margin-left: -12px; }
}

/* contact meta line under the mail link */
.contact-meta { margin-top: 14px; }
