/* Athlete Rising — marketing site
 * Design tokens mirror marketing/Brand Identity & Strategy.md §4:
 *   Syne (headings), DM Sans (body), DM Mono (numbers)
 *   ink #1a1814 · paper #faf9f7 · gold #c8960a
 */

:root {
  --ink: #1a1814;
  --ink-soft: #4a453d;
  --ink-faint: #7a746a;
  --paper: #faf9f7;
  --paper-warm: #f3f1ec;
  --gold: #c8960a;
  --gold-deep: #a67b08;
  --rule: #e2ded6;

  --measure: 68ch;
  --page: 1080px;
  --radius: 10px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: Syne, "DM Sans", -apple-system, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 6vw, 3.9rem); }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; }

a {
  color: var(--gold-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: var(--ink); }

.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
}

.brand svg { display: block; flex: none; }

.brand-name {
  font-family: Syne, sans-serif;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-name em {
  font-style: normal;
  color: var(--gold);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.94rem;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--gold-deep);
}

/* ---------- hero ---------- */

.hero {
  padding: clamp(56px, 9vw, 104px) 0 clamp(44px, 6vw, 72px);
  border-bottom: 1px solid var(--rule);
}

.hero h1 { max-width: 16ch; }

.hero h1 span { color: var(--gold); }

.lede {
  font-size: clamp(1.1rem, 1.9vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 56ch;
  margin-top: 1.1em;
}

.eyebrow {
  font-family: "DM Mono", ui-monospace, "SFMono-Regular", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 1.5em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 2.1em;
  align-items: center;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--gold);
  color: #fff;
  border: 1px solid var(--gold);
}

.btn-primary:hover {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
  color: #fff;
}

.btn-ghost {
  border: 1px solid var(--rule);
  color: var(--ink);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--ink);
}

/* ---------- sections ---------- */

section { padding: clamp(48px, 7vw, 84px) 0; }

section + section { border-top: 1px solid var(--rule); }

.section-intro { max-width: var(--measure); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 26px;
  margin-top: 2.4em;
}

.card {
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 24px 22px;
}

.card h3 { margin-bottom: 0.4em; }

.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.card .num {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.76rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  display: block;
  margin-bottom: 0.9em;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  align-items: start;
}

.rule-list {
  list-style: none;
  padding: 0;
  margin: 1.4em 0 0;
}

.rule-list li {
  padding: 13px 0 13px 26px;
  border-top: 1px solid var(--rule);
  position: relative;
  color: var(--ink-soft);
}

.rule-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 21px;
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* ---------- contact ---------- */

.contact-box {
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 40px);
  margin-top: 2em;
}

.contact-box dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px 34px;
}

.contact-box dt {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.73rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 5px;
}

.contact-box dd {
  margin: 0;
  font-size: 1.02rem;
}

/* ---------- legal pages ---------- */

.legal {
  padding: clamp(44px, 6vw, 76px) 0 clamp(56px, 8vw, 96px);
}

.legal .prose { max-width: var(--measure); }

.legal h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  margin-top: 2.2em;
  padding-top: 1.1em;
  border-top: 1px solid var(--rule);
}

.legal h3 {
  font-size: 1.04rem;
  margin-top: 1.8em;
}

.legal ul { padding-left: 1.2em; }

.legal li { margin-bottom: 0.5em; }

.updated {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.8rem;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}

.callout {
  background: var(--paper-warm);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  margin: 1.8em 0;
  font-size: 0.97rem;
  color: var(--ink-soft);
}

.callout strong { color: var(--ink); }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--ink);
  color: #cfc8bc;
  padding: 52px 0 40px;
  font-size: 0.93rem;
}

.site-footer a {
  color: #e6dfd2;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--gold);
  text-decoration: underline;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 30px;
  border-bottom: 1px solid #322d26;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-legal {
  padding-top: 26px;
  color: #948c80;
  font-size: 0.87rem;
  line-height: 1.7;
}

.footer-legal p { margin: 0 0 0.35em; }

.site-footer .brand,
.site-footer .brand-name {
  color: var(--paper);
}

/* ---------- a11y ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  z-index: 10;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
