/* Baseline Diamond Academy — site-v3
   Display: Fraunces (self-hosted, optical size, soft serif).
   Body and UI: Schibsted Grotesk (self-hosted).
   Paper page. No web-font requests. */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/fraunces-latin-full-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f4f1ea;
  --ink: #16161a;
  --red: #cf202f;
  --red-press: #a51a26;
  --measure: 37rem;
  --header-h: 4.5rem;
  --hair: rgba(22, 22, 26, 0.16);
}

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

html {
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
  color-scheme: only light;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Schibsted Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.65;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

p { margin: 0 0 1rem; }

h1, h2, h3 { font-weight: 480; margin: 0; }

::selection { background: #e7d9c8; color: var(--ink); }

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  transform: translateY(-150%);
  background: var(--paper);
  color: var(--ink);
  padding: 0.4rem 0.7rem;
  z-index: 80;
}

.skip:focus { transform: none; }

.display {
  font-family: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  font-weight: 480;
  font-optical-sizing: none;
  font-variation-settings: "opsz" 96, "SOFT" 40, "WONK" 1;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-transform: none;
}

.display-xl {
  font-size: clamp(2.7rem, 4.15vw, 4.05rem);
  font-variation-settings: "opsz" 144, "SOFT" 42, "WONK" 1;
  line-height: 1.08;
  letter-spacing: -0.022em;
}

.display-l {
  font-size: clamp(2.05rem, 3.1vw, 2.95rem);
  font-variation-settings: "opsz" 96, "SOFT" 38, "WONK" 1;
  line-height: 1.12;
}

.display-m {
  font-size: clamp(1.55rem, 2vw, 1.85rem);
  font-variation-settings: "opsz" 60, "SOFT" 36, "WONK" 1;
  line-height: 1.18;
  letter-spacing: -0.016em;
}

.wrap {
  width: min(1080px, calc(100% - 2.5rem));
  margin-inline: auto;
}

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

.measure p:last-child { margin-bottom: 0; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  line-height: 0;
}

.brand img {
  height: 34px;
  width: auto;
}

.menu-btn {
  display: none;
  margin-left: auto;
  background: transparent;
  color: var(--ink);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font: inherit;
  font-weight: 500;
  font-size: 17px;
  padding: 0.45rem 0.1rem;
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.55rem;
  margin-left: auto;
}

.site-nav a {
  position: relative;
  color: var(--ink);
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.2;
  padding: 0.35rem 0 0.45rem;
}

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.12rem;
  width: 1.05rem;
  height: 2px;
  background: var(--red);
}

.site-nav a:hover { text-decoration: underline; text-underline-offset: 0.22em; }

.site-nav a[aria-current="page"]:hover { text-decoration: none; }

.ig {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  color: var(--ink);
}

.ig svg { display: block; }

/* Opening: type left, photograph right */

.opening {
  display: grid;
  grid-template-columns: minmax(16rem, 0.82fr) minmax(18rem, 1.12fr);
  column-gap: clamp(2rem, 4.5vw, 4.75rem);
  align-items: start;
  padding: 2.4rem 0 5.75rem;
}

.opening-copy {
  max-width: 34rem;
  padding-top: 0.35rem;
}

.where {
  margin: 0 0 1.35rem;
  font-size: 17px;
  line-height: 1.4;
}

.opening h1 { max-width: 11em; }

.manifesto {
  margin: 1.65rem 0 0;
  max-width: 16em;
}

.dek {
  margin: 1.15rem 0 0;
  max-width: 32rem;
  font-size: 1.125rem;
  line-height: 1.55;
}

.meta {
  margin: 1.35rem 0 0;
  max-width: 30rem;
  font-size: 17px;
  line-height: 1.5;
}

.cta-row { margin: 1.85rem 0 0; }

.signup {
  display: inline-block;
  background: var(--red);
  color: var(--paper);
  text-decoration: none;
  padding: 0.82rem 1.05rem;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font: inherit;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
}

.signup:hover { background: var(--red-press); color: var(--paper); }

.signup:disabled { opacity: 0.6; cursor: wait; }

.hero-photo { margin: 0; }

.hero-photo img {
  width: 100%;
  height: auto;
}

figcaption {
  margin-top: 0.6rem;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 400;
}

/* Chapters */

.chapter { padding: 0 0 5.75rem; }

.chapter h2 { max-width: 16em; margin: 0 0 1.35rem; }

.lede { margin-bottom: 2.25rem; }

.refusals { margin: 2.5rem 0 2.75rem; max-width: 36rem; }

.refusals p { margin: 0 0 1.85rem; }

.refusals .display-m { display: block; margin: 0 0 0.35rem; }

.statement { max-width: 14em; margin: 0 0 1.15rem; }

.steps {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  max-width: 44rem;
}

.steps li {
  display: grid;
  grid-template-columns: 11.5rem minmax(0, 1fr);
  gap: 0.35rem 1.5rem;
  align-items: baseline;
  padding: 1.05rem 0;
}

.steps li + li { border-top: 1px solid var(--hair); }

.steps h3 {
  margin: 0;
  font-size: clamp(1.45rem, 1.8vw, 1.7rem);
  font-variation-settings: "opsz" 48, "SOFT" 36, "WONK" 1;
}

.steps h3 span {
  display: block;
  font-family: "Schibsted Grotesk", "Avenir Next", sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  font-variation-settings: normal;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.steps p { margin: 0; }

.swing-break {
  display: grid;
  grid-template-columns: minmax(0, 38rem) minmax(13rem, 1fr);
  gap: 1.25rem 3rem;
  align-items: end;
  padding: 0 0 5.75rem;
}

.swing-break figure { margin: 0; }

.swing-break .pull {
  margin: 0 0 0.15rem;
  max-width: 12em;
  font-size: clamp(1.55rem, 2.1vw, 2rem);
  font-variation-settings: "opsz" 72, "SOFT" 40, "WONK" 1;
  line-height: 1.16;
}

.tech {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16.5rem;
  gap: 2.5rem 3.5rem;
  align-items: start;
}

.tech-copy { max-width: var(--measure); }

.figure-monitor {
  margin: 3.25rem 0 0;
}

.names {
  margin: 1.6rem 0 0;
  max-width: 32rem;
  font-weight: 500;
  font-size: 1.125rem;
  line-height: 1.5;
}

.outcomes { margin-top: 2rem; max-width: 18em; }

.outcomes p {
  margin: 0 0 0.85rem;
  font-size: clamp(1.45rem, 2vw, 1.8rem);
  font-variation-settings: "opsz" 60, "SOFT" 38, "WONK" 1;
  line-height: 1.18;
}

.person { margin: 0 0 2.6rem; max-width: var(--measure); }

.role {
  margin: 0 0 0.25rem;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.person h3 {
  font-size: clamp(1.85rem, 2.6vw, 2.35rem);
  font-variation-settings: "opsz" 72, "SOFT" 40, "WONK" 1;
  margin: 0 0 0.65rem;
  line-height: 1.12;
}

.text-link {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* Timeline: one thin red line */

.timeline {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 1.2rem 0 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.25rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--red);
}

.timeline li { min-width: 0; margin: 0; }

.when {
  margin: 0 0 0.55rem;
  font-size: clamp(1.65rem, 2.2vw, 2.05rem);
  font-variation-settings: "opsz" 72, "SOFT" 38, "WONK" 1;
  line-height: 1.12;
}

.place {
  margin: 0 0 0.65rem;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.35;
}

.timeline li > p:last-child { margin-bottom: 0; }

.concept { margin: 1.25rem 0 0; }

.concept img { width: 100%; height: auto; }

.after-timeline { margin-top: 2.75rem; }

.timeline.stack {
  display: block;
  max-width: 40rem;
  margin-top: 2.75rem;
  padding: 0 0 0 1.35rem;
  border-left: 1px solid var(--red);
}

.timeline.stack::before { display: none; }

.timeline.stack li + li { margin-top: 4.25rem; }

.timeline.stack .when {
  font-size: clamp(2.15rem, 4vw, 3.15rem);
  font-variation-settings: "opsz" 120, "SOFT" 40, "WONK" 1;
}

.timeline.stack .concept { max-width: 40rem; margin-top: 1.35rem; }

.note-block { margin-top: 3.25rem; }

.page-hero { padding: 3.25rem 0 0; }

.page-hero h1 { max-width: 13em; }

.page-hero .dek,
.page-hero .measure { margin-top: 1.25rem; }

.page-follow { padding-top: 3.25rem; }

.close { padding: 1rem 0 5.5rem; }

.close h2 { max-width: 12em; }

.phone {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  font-weight: 480;
  font-optical-sizing: none;
  font-variation-settings: "opsz" 80, "SOFT" 40, "WONK" 1;
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-decoration: none;
}

.phone:hover { text-decoration: underline; text-underline-offset: 0.12em; }

.place-line { margin: 0.35rem 0 0; font-size: 17px; }

.site-footer {
  padding: 0 0 2.25rem;
}

.site-footer p {
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hair);
  font-size: 15px;
  line-height: 1.45;
}

/* Contact */

.form-block { margin-top: 2.75rem; max-width: 36rem; }

.page-end { padding-bottom: 5.5rem; }

fieldset {
  border: 0;
  margin: 0 0 2rem;
  padding: 0;
}

legend {
  font-family: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  font-weight: 480;
  font-optical-sizing: none;
  font-variation-settings: "opsz" 48, "SOFT" 36, "WONK" 1;
  font-size: 1.55rem;
  letter-spacing: -0.016em;
  line-height: 1.2;
  padding: 0;
  margin-bottom: 1rem;
}

.field { margin: 0 0 1.25rem; }

.field label,
.sport-label {
  display: block;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.field label span { font-weight: 400; }

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem 1.5rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  font: inherit;
  font-size: 18px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  box-shadow: none;
  padding: 0.45rem 0;
}

textarea { min-height: 6.5rem; resize: vertical; }

.sport { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; }

.sport label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 400;
  margin: 0;
}

.sport input,
.consent input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--ink);
}

.consent {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 17px;
  line-height: 1.45;
  margin: 0 0 1.15rem;
}

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-error { color: var(--red); min-height: 0; font-size: 16px; }

.form-error:empty { display: none; }

.thanks { font-size: 1.25rem; line-height: 1.5; max-width: 34rem; }

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

@media (min-width: 900px) {
  .wrap { width: min(1080px, calc(100% - 6.5rem)); }
}

@media (max-width: 980px) {
  .tech { grid-template-columns: 1fr; }
  .figure-monitor { margin-top: 0.5rem; max-width: 16.5rem; }
  .swing-break { grid-template-columns: 1fr; gap: 1.25rem; }
  .swing-break .pull { max-width: 16em; }
}

@media (max-width: 860px) {
  .menu-btn { display: inline-block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.15rem 0 0.85rem;
    background: var(--paper);
  }

  .site-header.is-open .site-nav { display: flex; }

  .site-nav a { font-size: 1.2rem; padding: 0.65rem 0; }

  .opening { grid-template-columns: 1fr; row-gap: 2rem; padding-top: 1.75rem; }

  .opening-copy { padding-top: 0; }

  .timeline {
    display: block;
    padding: 0 0 0 1.15rem;
    border-left: 1px solid var(--red);
  }

  .timeline::before { display: none; }

  .timeline li + li { margin-top: 2.75rem; }

  .pair { grid-template-columns: 1fr; }

  .steps li { grid-template-columns: 1fr; gap: 0.35rem; }

  .chapter { padding-bottom: 4.25rem; }

  .swing-break { padding-bottom: 4.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
