/* aldermetric.com, Aldermetric Development */
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #0e1215;
  --surface: #161c20;
  --line: #263038;
  --text: #e6e9eb;
  --muted: #9aa6ad;
  --accent: #7fd1a8;
  --accent-ink: #0e1215;
  --amber: #e0b860;
  --radius: 14px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f7f5;
    --surface: #ffffff;
    --line: #dde2df;
    --text: #172024;
    --muted: #55636a;
    --accent: #1f7a52;
    --accent-ink: #ffffff;
    --amber: #8a6410;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; display: block; }

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

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 800;
}
nav { display: flex; gap: 20px; }
nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
nav a:hover { color: var(--text); }

/* Sections */
/* section.wrap outranks .wrap, which would zero the vertical padding. */
section.wrap { padding-top: 56px; padding-bottom: 56px; }
section + section { border-top: 1px solid var(--line); }

h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 700; margin-bottom: 24px; }
h3 { font-size: 1.25rem; font-weight: 650; }

section.intro { padding-top: 72px; padding-bottom: 64px; }
.lead {
  max-width: 40em;
  margin: 18px 0 0;
  font-size: 1.2rem;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--amber);
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* App cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.card p { margin: 14px 0 0; }
.card-head { display: flex; align-items: center; gap: 16px; }
.card-head img { width: 64px; height: 64px; border-radius: 16px; flex: none; }
.card .status { margin: 4px 0 0; font-size: 0.9rem; font-weight: 600; }
.status.live { color: var(--accent); }
.status.testing { color: var(--amber); }
.facts { color: var(--muted); font-size: 0.92rem; }
.links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-top: auto;
  padding-top: 18px;
}
.badge img { width: 155px; height: auto; margin-left: -9px; }

/* Game */
.shot { margin: 0; }
.shot img, .shots-row img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.game-text { max-width: 44em; margin-top: 28px; }
.game-text p { margin: 0 0 14px; }
.game-text ul { margin: 0 0 18px; padding-left: 1.2em; }
.game-text li { margin-bottom: 8px; }
.shots-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}
.caption { margin: 12px 0 0; color: var(--muted); font-size: 0.88rem; }

/* Contact and footer */
#contact p { margin: 0; font-size: 1.1rem; }
.foot {
  padding-top: 28px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.foot p { margin: 0 0 4px; }
.foot .small { font-size: 0.8rem; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  section.wrap { padding-top: 44px; padding-bottom: 44px; }
  section.intro { padding-top: 48px; }
  .brand { font-size: 15px; }
  nav { gap: 14px; }
  .shots-row { grid-template-columns: 1fr; }
}

/* Below 480px the full name crowds the nav off the screen; the h1 under the
   header carries the name. */
@media (max-width: 480px) {
  .brand-text { display: none; }
}
