/* Atlas Athletics landing. One fixed dark look, mobile first (375 px), desktop from 960 px.
   Ember is used only on the wordmark bar, the primary button and focus rings. */

@font-face {
  font-family: "Big Shoulders Display";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/dm-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/dm-sans-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/dm-sans-latin-700-normal.woff2") format("woff2");
}

:root {
  --ink: #0b0b0c;
  --bone: #f2efe8;
  --stone: #8a867d;
  --ember: #ff4f1f;
  --line: rgb(138 134 125 / 0.35); /* Stone, for borders */
  --display: "Big Shoulders Display", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --text: "DM Sans", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}

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

h1,
h2,
h3,
p,
ul,
figure {
  margin: 0;
}

a {
  color: var(--bone);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--ember);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.quiet {
  color: var(--stone);
  font-size: 0.9375rem;
}

/* Header and wordmark (W-a: mark + ATLAS / ember bar / ATHLETICS, all Big Shoulders 800) */

.site-header {
  padding-block: 28px 8px;
}

.header-row {
  display: flex;
  justify-content: center;
  align-items: center;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--bone);
  text-decoration: none;
}

.brand-mark {
  width: 64px;
  height: 64px;
}

.wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.125rem;
  line-height: 1;
  letter-spacing: 0.22em;
  margin-right: -0.22em; /* the last letter's spacing would push the word off centre */
}

.wordmark-bar {
  display: block;
  width: 32px;
  height: 3px;
  margin: 6px 0.22em 6px 0;
  background: var(--ember);
}

.header-signin {
  display: none;
}

/* Hero */

.hero {
  padding-block: 40px 56px;
}

h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.75rem, 12vw, 5.75rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
}

.lede {
  margin-top: 16px;
  font-size: 1.125rem;
  font-weight: 500;
  max-width: 30ch;
}

.hero-art {
  display: none;
}

.join {
  margin-top: 32px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 10px;
  max-width: 34rem;
}

/* Waiting-list form: works without JavaScript; the browser checks type=email and required. */

.join-form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-weight: 700;
}

.field input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--stone); /* 5.4:1 on Ink, so the box edge is clearly visible */
  border-radius: 8px;
  background: var(--ink);
  color: var(--bone);
  font: inherit;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.consent input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--ember);
}

.join-form .button {
  width: 100%;
  border: 0;
  cursor: pointer;
}

/* Honeypot: off-screen for people, aria-hidden for screen readers, tabindex -1 for keyboards. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.notice {
  font-size: 0.875rem;
}

.notice a {
  color: var(--stone);
}

/* Sections */

.band {
  border-top: 1px solid var(--line);
  padding-block: 56px;
}

.label {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.1;
  letter-spacing: 0.12em;
  margin-bottom: 24px;
}

.feature-grid {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 48px;
}

.feature img {
  width: 100%;
  max-width: 240px;
  margin: 0 auto 20px;
}

/* The link takes the image's place and size, so wrapping it moves nothing. */
.shot-link {
  display: block;
  max-width: 240px;
  margin: 0 auto 20px;
  cursor: zoom-in;
}

.feature .shot-link img {
  margin: 0;
}

.feature h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.extras {
  margin-top: 40px;
}

.who-grid {
  display: grid;
  gap: 40px;
}

.bullets {
  padding-left: 1.2em;
  list-style: square;
  display: grid;
  gap: 12px;
}

.bullets li::marker {
  color: var(--stone);
}

.private-row {
  display: grid;
  gap: 28px;
}

.private-row p + p {
  margin-top: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 8px;
  background: var(--ember);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.125rem;
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-align: center;
  text-decoration: none;
}

.button:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

/* Secondary action: Bone outline and text on Ink. Ember stays on the primary button only. */
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 10px 22px;
  border: 2px solid var(--bone);
  border-radius: 8px;
  background: transparent;
  color: var(--bone);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.button-secondary:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.hero-copy > .button-secondary {
  margin-top: 16px;
  max-width: 34rem;
}

.cta-pair {
  display: grid;
  gap: 12px;
}

/* Screenshot viewer (lightbox.js builds it; without JavaScript the links open the image). */

:root:has(.lb[open]) {
  overflow: hidden;
  scrollbar-gutter: stable; /* hiding the scrollbar must not shift the page behind */
}

.lb {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 8px var(--gutter);
  border: 0;
  background: transparent;
  color: var(--bone);
}

.lb::backdrop {
  background: rgb(11 11 12 / 0.97); /* Ink */
}

.lb-frame {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.lb-row {
  width: 100%;
  max-width: 28rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lb-title {
  font-size: 1.0625rem;
  font-weight: 700;
}

.lb-count {
  color: var(--stone);
  font-size: 0.9375rem;
}

.lb-img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(90dvh, 100dvh - 136px); /* room for the title and button rows */
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.lb-btn {
  flex: none;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
  color: var(--bone);
  font: inherit;
  font-size: 1.375rem;
  line-height: 1;
  cursor: pointer;
}

.lb-btn:hover {
  border-color: var(--bone);
}

.lb-btn:focus-visible {
  outline: 3px solid var(--ember);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  .lb[open] {
    animation: lb-in 160ms ease-out;
  }

  @keyframes lb-in {
    from {
      opacity: 0;
    }
  }
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 28px 36px;
}

.footer-row {
  display: grid;
  gap: 12px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--stone);
  font-size: 0.9375rem;
}

.footer-brand img {
  width: 24px;
  height: 24px;
}

.footer-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  column-gap: 24px;
}

.footer-links a,
.header-signin {
  min-height: 48px;
  align-items: center;
}

.footer-links a {
  display: inline-flex;
}

/* Privacy and 404 */

.prose {
  max-width: calc(65ch + 2 * var(--gutter));
  padding-block: 40px 64px;
  display: grid;
  gap: 18px;
}

.prose h1,
.not-found h1 {
  font-size: clamp(2.75rem, 12vw, 4.5rem);
}

.not-found {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 20px;
  text-align: center;
  padding-block: 48px;
}

.not-found p {
  font-size: 1.125rem;
}

.not-found a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
}

.result h1 {
  font-size: clamp(2rem, 9vw, 3.25rem);
  max-width: 20ch;
}

.result p {
  max-width: 40ch;
}

/* Desktop */

@media (min-width: 960px) {
  :root {
    --gutter: 32px;
  }

  .header-row {
    justify-content: space-between;
  }

  .brand {
    flex-direction: row;
    gap: 14px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .wordmark {
    align-items: flex-start;
    font-size: 1rem;
    margin-right: 0;
  }

  .wordmark-bar {
    width: 24px;
    margin: 5px 0;
  }

  .header-signin {
    display: inline-flex;
    gap: 6px;
    font-weight: 500;
  }

  .hero {
    padding-block: 72px 96px;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    align-items: center;
    gap: 48px;
  }

  .hero-art {
    display: block;
  }

  .hero-art img {
    width: 100%;
    max-width: 320px;
    margin-inline: auto;
  }

  .band {
    padding-block: 80px;
  }

  .join-form .button {
    width: auto;
    justify-self: start;
  }

  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }

  .feature img,
  .shot-link {
    max-width: 100%;
  }

  .button-secondary {
    width: auto;
  }

  .cta-pair {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .extras {
    text-align: center;
  }

  .who-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .private-row {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 48px;
  }

  .footer-row {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}
