/* ============================================================
   LATERAL WORKSHOP — styles, design B ("paper" hero)
   Colors: theme.css · Copy: content.yaml (node build.js)
   Display font: Besley — a Clarendon revival standing in for
   Superclarendon (which has no webfont license).
   ============================================================ */

:root {
  --font-display: "Besley", "Superclarendon", "Clarendon", Georgia, serif;
  --font-body: "Libre Caslon Text", "Big Caslon", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--black);
  background: var(--offwhite);
  -webkit-font-smoothing: antialiased;
}

/* dev-only elements stay hidden until body.dev (via ?dev=1)   */
body:not(.dev) .dev-only {
  display: none !important;
}

/* ---------- load-in sequence -------------------------------- */
.seq {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.seq.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .seq,
  .site-header {
    transition: none !important;
  }
}

/* ---------- header ------------------------------------------ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1.2rem, 3.5vw, 2.6rem);
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(18px) saturate(1.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}
.site-header.visible {
  opacity: 1;
  pointer-events: auto;
}

.header-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--pine);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.5vw, 2rem);
}
.site-nav a {
  font-size: 0.95rem;
  color: var(--black);
  text-decoration: none;
}
.site-nav a:hover {
  color: var(--pine);
}

/* apply link: brick, underline on hover, always underlined on mobile */
.apply-link {
  color: var(--brick) !important;
  text-decoration: none;
}
.apply-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- hero: title top right, sketch bottom left --------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 660px;
  overflow: hidden;
  background: var(--offwhite);
}

.hero-title {
  position: absolute;
  top: clamp(1.5rem, 6vh, 4.5rem);
  right: clamp(1.4rem, 5vw, 5.5rem);
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--pine);
  font-size: clamp(4.2rem, 11vw, 10rem);
  line-height: 0.92;
  letter-spacing: 0.005em;
  text-align: right;
}
.hero-title span {
  display: block;
  font-size: 0.55em;
  font-weight: 700;
  margin-top: 0.12em;
}

.hero-art {
  position: absolute;
  left: 0;
  bottom: 0;
  margin: 0;
  width: min(53vw, 920px);
}
.hero-art img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-info {
  position: absolute;
  right: clamp(1.4rem, 5vw, 5.5rem);
  bottom: 6.5vh;
  width: min(44vw, 560px);
  text-align: right;
}

.hero-subtitle {
  margin: 0 0 clamp(2rem, 6vh, 3.6rem);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.45;
  color: var(--black);
  text-wrap: balance;
}

.hero-meta {
  margin: 0 0 0.4rem;
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  color: var(--black);
}
.hero-meta .dot {
  color: var(--brick);
}

.hero-apply {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--black);
}

/* ---------- about (simple band, no imagery) ------------------- */
.about {
  background: var(--light-pine);
}
.about-body {
  margin: 0;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.62;
  color: var(--black);
  text-align: center;
}

/* ---------- section bands ------------------------------------- */
.band {
  position: relative;
}

.section {
  padding: clamp(4.5rem, 10vw, 7rem) 1.6rem;
}
.section-inner {
  max-width: 1180px;
  margin: 0 auto;
}
.section-inner--narrow {
  max-width: 780px;
}

.section-heading {
  margin: 0 0 clamp(2.5rem, 6vw, 4rem);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: var(--pine);
  text-align: center;
}

/* ---------- logo strip ---------------------------------------- */
.logo-strip {
  background: var(--offwhite);
  padding: 3.2rem 1.6rem;
}
.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(1.4rem, 4vw, 3rem);
}
.logo-ph {
  width: 132px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
  border: 1px dashed var(--hairline);
  border-radius: 8px;
  background: rgba(15, 18, 15, 0.035);
}

/* ---------- speakers ------------------------------------------- */
.speakers {
  background: var(--offwhite);
}

.speaker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: clamp(2.6rem, 5vw, 4rem) clamp(1.8rem, 3vw, 2.8rem);
}

.speaker-photo {
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(165deg, var(--pine) 0%, var(--pine-deep) 100%);
}
.speaker-photo span {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--offwhite);
  opacity: 0.75;
}

.speaker-name {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--black);
}
.speaker-rule {
  width: 40px;
  height: 2px;
  margin-bottom: 0.55rem;
  background: var(--brick);
}
.speaker-affiliation {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
}

/* ---------- program ------------------------------------------- */
.program {
  background: var(--light-grey);
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  max-width: 1020px;
  margin: 0 auto;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--hairline);
}

.stage {
  position: relative;
}
.stage-dot {
  position: relative;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brick);
  margin-bottom: 1.3rem;
}
.stage-name {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--pine);
}
.stage-duration {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.62em;
  color: var(--brick);
  white-space: nowrap;
}
.stage-body {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--grey);
}

.program-outro {
  max-width: 700px;
  margin: clamp(3rem, 7vw, 4.5rem) auto 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--grey);
  text-align: center;
}

/* ---------- faq ------------------------------------------------ */
.faq {
  background: var(--offwhite);
}

.faq-item {
  border-top: 1px solid var(--hairline);
}
.faq-item:last-child {
  border-bottom: 1px solid var(--hairline);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.35rem 0.2rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--black);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  flex: none;
  font-size: 1.4rem;
  color: var(--brick);
  line-height: 1;
}
.faq-item[open] summary::after {
  content: "\2212";
}
.faq-item p {
  margin: 0;
  padding: 0 0.2rem 1.5rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--grey);
  max-width: 62ch;
}

.faq-outro {
  margin: 2.4rem 0.2rem 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--grey);
}
.faq-outro a {
  color: var(--brick);
  text-decoration: none;
}
.faq-outro a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- footer (slim bar; backed-by strip is flag-gated) --- */
.site-footer {
  background: var(--pine-deep);
  color: var(--offwhite);
  padding: 1.1rem clamp(1.2rem, 3.5vw, 2.6rem);
}

.footer-backed {
  text-align: center;
  padding: 2.4rem 0 1rem;
}
.footer-label {
  margin: 0 0 1.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
}
.logo-row--footer {
  margin-bottom: 1.6rem;
}
.logo-ph--footer {
  color: var(--offwhite);
  border-color: rgba(242, 239, 230, 0.35);
  background: rgba(242, 239, 230, 0.06);
  opacity: 0.8;
}

.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-wordmark {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  opacity: 0.9;
}
.footer-contact-btn {
  font-size: 0.92rem;
  color: var(--offwhite);
  text-decoration: none;
  border: 1px solid rgba(242, 239, 230, 0.45);
  border-radius: 999px;
  padding: 0.42rem 1.15rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.footer-contact-btn:hover {
  background: var(--offwhite);
  color: var(--pine-deep);
}

/* ---------- portrait tablet / tall-window hero ----------------- */
@media (orientation: portrait) and (min-width: 761px) {
  .hero {
    height: auto;
    min-height: 100svh;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .hero-title {
    position: static;
    grid-row: 1;
    justify-self: end;
    margin: clamp(2.5rem, 6svh, 4.5rem) clamp(2rem, 6vw, 5rem) 0;
    /* Keep the wordmark commanding on tall screens instead of
       tying its size primarily to the narrower viewport width. */
    font-size: clamp(7.25rem, 13svh, 9.5rem);
  }

  .hero-info {
    position: static;
    grid-row: 2;
    align-self: center;
    justify-self: end;
    width: min(68vw, 34rem);
    margin: clamp(2rem, 4svh, 3.5rem) clamp(2rem, 6vw, 5rem);
  }

  .hero-art {
    position: static;
    grid-row: 3;
    width: 100%;
  }
}

/* ---------- mobile ---------------------------------------------- */
@media (max-width: 760px) {
  /* apply links always underlined on mobile */
  .apply-link {
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .hero {
    height: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  .hero-title {
    position: static;
    align-self: flex-end;
    margin: 14vh 6vw 0 1rem;
    font-size: clamp(3.6rem, 16vw, 5.4rem);
  }
  .hero-info {
    position: static;
    align-self: flex-end;
    width: auto;
    max-width: 30rem;
    margin: 2.6rem 6vw 3rem 1.4rem;
  }
  .hero-art {
    position: static;
    width: 100%;
    margin-top: auto;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 2.6rem;
  }
  .timeline::before {
    top: 8px;
    bottom: 8px;
    left: 7px;
    right: auto;
    width: 2px;
    height: auto;
  }
  .stage {
    padding-left: 2.1rem;
  }
  .stage-dot {
    position: absolute;
    left: 0;
    top: 2px;
  }
}
