/* ==========================================================================
   Link Launchpad · Winter 2027 — "Daylight"
   Warm paper field · hairline grid · Archivo type · Link Red accents
   Used by 552.html only (553.html keeps styles.css; index.html is self-contained).
   ========================================================================== */

:root {
  --bg: #f7f5f0;
  --bg-raise: #fdfcf9;
  --line: #ddd8cc;
  --ink: #181712;
  --dim: #55524a;
  --red: #c8362a;          /* brand red — fills & large accents */
  --red-deep: #a52a20;
  --red-text: #c8362a;     /* brand red passes AA on both light field tones */
  --paper: #ffffff;        /* apply section */
  --paper-ink: #1a1914;
  --paper-dim: #55524a;
  --paper-line: #ddd8cc;
  --control-line: #8a8578;  /* form-control boundary — ≥3:1 vs white & fieldset */
  --ghost-line: #8a8578;    /* ghost-button boundary — ≥3:1 vs bg */

  --font-body: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: "Archivo", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(20px, 4.5vw, 72px);
  --measure: 62ch;
}

/* ----- Reset ----- */
* { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--red); color: #fff; }

a { color: inherit; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--red-text);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--red);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ----- Type helpers ----- */
.kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--red-text);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.02;
  text-wrap: balance;
}

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 14px var(--gutter);
  background: rgba(247, 245, 240, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; }
.brand-logo {
  height: 24px;
  width: auto;
}

.nav-links { display: flex; gap: clamp(1rem, 2vw, 2rem); }
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--dim);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--ink); }

/* ----- Buttons ----- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.8rem 1.35rem;
  border-radius: 2px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.button-primary {
  background: var(--red);
  color: #fff;
}
.button-primary:hover { background: var(--red-deep); }
.button-ghost {
  border-color: var(--ghost-line);
  color: var(--ink);
}
.button-ghost:hover { border-color: var(--dim); }
.nav-cta { padding: 0.6rem 1.1rem; }

/* ----- Hero ----- */
.hero {
  padding: clamp(64px, 11vh, 130px) var(--gutter) clamp(40px, 7vh, 80px);
  max-width: 1320px;
  margin-inline: auto;
}
.hero .kicker { margin-bottom: 1.5rem; }
.hero h1 {
  font-size: clamp(2.5rem, 5.3vw, 5.3rem);
}
.hero-dim { color: var(--dim); }
.hero-lede {
  margin-top: 1.7rem;
  max-width: var(--measure);
  color: var(--dim);
  font-size: clamp(1.05rem, 1.22vw, 1.22rem);
}
.hero-actions {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* ----- Fact strip ----- */
.facts {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.fact {
  padding: 1.1rem clamp(0.9rem, 1.5vw, 1.5rem) 1.25rem;
  border-right: 1px solid var(--line);
}
.fact:last-child { border-right: 0; }
.fact dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--dim);
}
.fact dd {
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.05rem, 1.4vw, 1.4rem);
  white-space: nowrap;
}

/* ----- Photo band ----- */
.band { position: relative; }
.band img {
  width: 100%;
  aspect-ratio: 5 / 2;
  object-fit: cover;
}
.band-caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem var(--gutter);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ----- Section scaffolding ----- */
.section {
  padding: clamp(72px, 11vh, 128px) var(--gutter) 0;
  max-width: 1320px;
  margin-inline: auto;
}
.section-head { max-width: 780px; }
.section-head h2 {
  margin-top: 1rem;
  font-size: clamp(1.9rem, 3.2vw, 3.2rem);
}
.section-head .lede {
  margin-top: 1.2rem;
  color: var(--dim);
  font-size: clamp(0.98rem, 1.08vw, 1.08rem);
  max-width: var(--measure);
}

/* ----- Reveal (gated behind reduced-motion) ----- */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ----- The Floor ----- */
.floor-grid {
  margin-top: clamp(2rem, 4vh, 3.2rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.8rem, 1.2vw, 1.2rem);
}
.floor-grid figure { position: relative; }
.floor-grid img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--line);
  /* every studio photo is natively 3:2 — uniform grid, zero cropping */
  aspect-ratio: 3 / 2;
}
.floor-grid figcaption {
  margin-top: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}
.floor-notes {
  margin-top: clamp(1.8rem, 3.5vh, 2.6rem);
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2.2rem;
}
.floor-notes li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--dim);
  font-size: 0.93rem;
}
.floor-notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  background: var(--red);
}

/* ----- The Program / weeks ----- */
.weeks {
  margin-top: clamp(2rem, 4vh, 3.2rem);
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.8rem, 1.2vw, 1.2rem);
}
.week {
  border: 1px solid var(--line);
  background: var(--bg-raise);
  padding: clamp(1.3rem, 1.8vw, 1.8rem);
}
.week-tag {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--red-text);
}
.week h3 {
  margin-top: 0.7rem;
  font-size: clamp(1.7rem, 2.3vw, 2.3rem);
}
.week > p {
  margin-top: 0.7rem;
  color: var(--dim);
  font-size: 0.95rem;
}
.week ul {
  margin-top: 1.1rem;
  list-style: none;
  border-top: 1px solid var(--line);
}
.week ul li {
  display: flex;
  gap: 0.8rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--dim);
}
.week ul li span {
  flex: 0 0 2.4em;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  padding-top: 0.18em;
}

.demo-callout {
  margin-top: clamp(1.6rem, 3vh, 2.4rem);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  background: var(--bg-raise);
  padding: clamp(1.4rem, 2.2vw, 2.2rem);
}
.demo-copy h3 {
  margin-top: 0.6rem;
  font-size: clamp(2rem, 3.4vw, 3.4rem);
}
.demo-copy p:last-child {
  margin-top: 0.9rem;
  color: var(--dim);
  max-width: var(--measure);
}

/* ----- Schedule ----- */
.day {
  margin-top: clamp(2rem, 4vh, 3.2rem);
  list-style: none;
  border-top: 1px solid var(--line);
  max-width: 860px;
}
.slot {
  display: flex;
  gap: clamp(1.2rem, 2.8vw, 2.8rem);
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.slot-time {
  flex: 0 0 6.2em;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red-text);
  padding-top: 0.25em;
}
.slot h3 { font-size: 1.08rem; letter-spacing: -0.01em; }
.slot div p {
  margin-top: 0.25rem;
  color: var(--dim);
  font-size: 0.93rem;
}

.workshops {
  margin-top: clamp(2.4rem, 5vh, 4rem);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.4rem, 3vw, 3rem);
  align-items: start;
}
.workshops-photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--line);
}
.workshops-photo figcaption {
  margin-top: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}
.workshops-copy h3 { font-size: clamp(1.4rem, 1.8vw, 1.8rem); }
.workshops-copy > p { margin-top: 0.8rem; color: var(--dim); }
.workshops-copy ul {
  margin-top: 1rem;
  list-style: none;
  border-top: 1px solid var(--line);
}
.workshops-copy ul li {
  padding: 0.6rem 0 0.6rem 1.1rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  font-size: 0.93rem;
  color: var(--dim);
}
.workshops-copy ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 7px;
  height: 7px;
  background: var(--red);
}

/* ----- What you get ----- */
.offer-grid {
  margin-top: clamp(2rem, 4vh, 3.2rem);
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.8rem, 1.2vw, 1.2rem);
  counter-reset: offer;
}
.offer {
  border: 1px solid var(--line);
  background: var(--bg-raise);
  padding: clamp(1.3rem, 1.7vw, 1.7rem);
  counter-increment: offer;
}
.offer::before {
  content: counter(offer, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--red-text);
}
.offer h3 {
  margin-top: 0.8rem;
  font-size: 1.22rem;
  letter-spacing: -0.01em;
}
.offer p {
  margin-top: 0.6rem;
  color: var(--dim);
  font-size: 0.93rem;
}

/* ----- Who should apply ----- */
.who-cols {
  margin-top: clamp(2rem, 4vh, 3.2rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.6rem, 4vw, 4rem);
  align-items: start;
}
.who-list {
  list-style: none;
  border-top: 1px solid var(--line);
}
.who-list li {
  padding: 0.85rem 0 0.85rem 1.3rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  color: var(--dim);
}
.who-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.35em;
  width: 8px;
  height: 8px;
  background: var(--red);
}
.who-list strong { color: var(--ink); font-weight: 600; }
.expects {
  border: 1px solid var(--line);
  background: var(--bg-raise);
  padding: clamp(1.3rem, 1.8vw, 1.8rem);
}
.expects h3 { font-size: 1.25rem; }
.expects ol {
  margin-top: 1rem;
  list-style: none;
}
.expects ol li {
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.94rem;
}
.expects strong { color: var(--ink); font-weight: 600; }

/* ----- Team ----- */
.people {
  margin-top: clamp(2rem, 4vh, 3.2rem);
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.2rem, 2vw, 2rem);
}
.person img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 22%;
  border: 1px solid var(--line);
}
.person-role {
  margin-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-text);
}
.person h3 {
  margin-top: 0.35rem;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.person-bio {
  margin-top: 0.55rem;
  color: var(--dim);
  font-size: 0.88rem;
  line-height: 1.6;
}
/* ----- The wider bench: same cards as .people, minus bios, set off by a rule ----- */
.people-more {
  margin-top: clamp(2.6rem, 5vh, 4rem);
  padding-top: clamp(1.8rem, 3vh, 2.6rem);
  border-top: 1px solid var(--line);
}
.people-more-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-text);
}
.people-more-lede {
  margin-top: 0.7rem;
  max-width: 62ch;
  color: var(--dim);
  font-size: 0.98rem;
  line-height: 1.65;
}
.people-more .people { margin-top: clamp(1.6rem, 3vh, 2.4rem); }

/* ----- Apply (paper panel — form status colors from script.js need a light field) ----- */
.apply {
  margin-top: clamp(80px, 12vh, 140px);
  background: var(--paper);
  color: var(--paper-ink);
  border-top: 4px solid var(--red);
}
.apply-inner {
  max-width: 900px;
  margin-inline: auto;
  padding: clamp(64px, 9vh, 110px) var(--gutter) clamp(72px, 10vh, 120px);
}
.apply .kicker { color: var(--red); }
.apply .section-head .lede { color: var(--paper-dim); }

.apply-form { margin-top: clamp(2rem, 4vh, 3rem); }

.apply-fieldset {
  border: 1px solid var(--paper-line);
  background: var(--bg);
  padding: clamp(1.2rem, 1.8vw, 1.8rem);
  margin-bottom: 1.4rem;
}
.apply-fieldset legend {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--red);
  padding: 0 0.6em;
}

.apply-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.4rem;
}

.apply-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--paper-ink);
}
.apply-form input,
.apply-form select,
.apply-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.7rem 0.8rem;
  font: inherit;
  font-weight: 400;
  color: var(--paper-ink);
  background: #fff;
  border: 1px solid var(--control-line);
  border-radius: 2px;
}
.apply-form input:focus,
.apply-form select:focus,
.apply-form textarea:focus {
  border-color: var(--red);
}
.apply-form ::placeholder { color: #767268; }
.apply-form textarea { resize: vertical; }

.apply-fieldset > label { margin-top: 1.1rem; }
.apply-fieldset > label:first-of-type { margin-top: 0; }
.optional { font-weight: 400; color: var(--paper-dim); }

.apply-team-size-label {
  display: block;
  max-width: 420px;
  margin: 0 0 1.4rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.teammate-fieldset { margin-top: 1.4rem; }

.apply-form .button { margin-top: 0.4rem; }
.form-status {
  margin-top: 1rem;
  font-weight: 500;
  min-height: 1.5em;
}

/* ----- Footer ----- */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  padding: clamp(48px, 7vh, 72px) var(--gutter);
  border-top: 1px solid var(--line);
}
.footer-logo {
  height: 22px;
  width: auto;
}
.footer-brand p {
  margin-top: 1rem;
  color: var(--dim);
  font-size: 0.9rem;
  max-width: 44ch;
}
.footer-contact a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--red);
}
.footer-contact a:hover { color: var(--red-text); }
.footer-meta { text-align: right; }
.footer-meta a {
  color: var(--dim);
  text-decoration: none;
  font-size: 0.9rem;
}
.footer-meta a:hover { color: var(--ink); }
.footer-copy {
  margin-top: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--dim);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1020px) {
  .weeks { grid-template-columns: 1fr; }
  .offer-grid { grid-template-columns: 1fr 1fr; }
  .people { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .facts { grid-template-columns: repeat(3, 1fr); }
  .fact { border-bottom: 1px solid var(--line); }
  .fact:nth-child(3n) { border-right: 0; }
  .fact:nth-child(n+4) { border-bottom: 0; }
  .floor-grid { grid-template-columns: 1fr; }
  .workshops { grid-template-columns: 1fr; }
  .who-cols { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .band img { aspect-ratio: 4 / 3; }
}

@media (max-width: 620px) {
  .brand-logo { height: 28px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact { border-bottom: 1px solid var(--line); }
  .fact:nth-child(3n) { border-right: 1px solid var(--line); }
  .fact:nth-child(2n) { border-right: 0; }
  .fact:nth-child(n+4) { border-bottom: 1px solid var(--line); }
  .fact:nth-child(n+5) { border-bottom: 0; }
  .offer-grid { grid-template-columns: 1fr; }
  .people { grid-template-columns: 1fr; }
  .person img { max-width: 280px; }
  .apply-form-grid { grid-template-columns: 1fr; }
  .slot { flex-direction: column; gap: 0.2rem; }
  .slot-time { flex: none; }
}
