/* ---- Time, Together: editorial layout (scoped to /together) ---- */

/* Explicit canvas so the page renders identically in light/dark/forced-dark. */
body.together-body {
  background: #fff;
  color: #1a1a1a;
  color-scheme: light;
}

.t-page {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---- Masthead ---- */

.t-masthead {
  width: min(660px, calc(100vw - 48px));
  margin-top: 64px;
  text-align: center;
}

.t-site,
.t-site:visited,
.t-site:hover {
  font-family: gitan-latin, sans-serif;
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: teal;
  text-decoration: none;
  background: transparent;
}

.t-title {
  font-family: "GLC Plantin", serif;
  font-size: clamp(42px, 8vw, 64px);
  font-weight: normal;
  line-height: 1.1;
  margin: 18px 0 14px 0;
  word-spacing: normal;
}

.t-dek {
  font-family: plantin, serif;
  font-style: italic;
  font-size: clamp(18px, 3.4vw, 22px);
  line-height: 1.4;
  color: #2b2b2b;
  margin: 0 auto 26px auto;
  max-width: 34ch;
}

.t-masthead .link-button {
  margin-bottom: 8px;
}

/* ---- Hero ---- */

.t-hero {
  width: min(900px, calc(100vw - 48px));
  margin: 40px 0 0 0;
}

.t-hero img {
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.t-hero figcaption {
  font-family: gitan-latin, sans-serif;
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #949494;
  margin-top: 12px;
  text-align: center;
}

/* ---- Editorial column ---- */

.t-col {
  width: min(660px, calc(100vw - 48px));
  margin-top: 24px;
}

.t-section {
  margin-top: 40px;
}

.t-kicker {
  font-family: gitan-latin, sans-serif;
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: teal;
  margin: 0 0 10px 0;
}

.t-section h2 {
  font-family: "GLC Plantin", serif;
  font-size: clamp(26px, 5vw, 34px);
  font-weight: normal;
  line-height: 1.2;
  margin: 0 0 18px 0;
}

.t-section p {
  font-family: plantin, serif;
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 20px 0;
}

.t-lede {
  font-size: 20px;
  line-height: 1.55;
}

.t-lede::first-letter {
  font-family: "GLC Plantin", serif;
  font-size: 3.1em;
  float: left;
  line-height: 0.85;
  padding-right: 10px;
  padding-top: 4px;
}

.t-fine {
  font-family: gitan-latin, sans-serif;
  font-size: 12px;
  letter-spacing: 0.6px;
  color: #949494;
}

.t-rule {
  width: 64px;
  border: 0;
  border-top: 2px solid teal;
  margin: 56px auto 0 auto;
}

/* ---- Scenario cards ---- */

.t-scenarios {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 34px 0 18px 0;
}

.t-card {
  border-top: 1px solid rgba(26, 26, 26, 0.5);
  padding-top: 16px;
}

.t-card-season {
  font-family: gitan-latin, sans-serif;
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: teal;
  margin: 0 0 8px 0;
}

.t-card-name {
  font-family: gitan-latin, sans-serif;
  font-weight: 600;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -0.2px;
  margin: 0 0 8px 0;
  color: #111;
}

.t-card-spot {
  font-family: plantin, serif;
  font-style: italic;
  font-size: 16px;
  line-height: 1.45;
  color: #2b2b2b;
  margin: 0 0 10px 0;
}

.t-card-window {
  font-family: gitan-latin, sans-serif;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #6d6d6d;
  margin: 0;
}

/* ---- Application form ----
   The global stylesheet scopes the step-stack grid to #waitlist-form;
   replicate it here for #together-form so hidden steps overlay instead
   of occupying layout space. */

#together-form {
  display: grid;
  grid-template-areas: "stack";
}

#together-form .step {
  grid-area: stack;
}

.waitlist.loading #together-form,
.waitlist.success #together-form,
.waitlist.error #together-form {
  display: none;
}

.together-body .waitlist {
  margin-top: 18px;
  min-height: 300px;
}

/* ---- Footer ---- */

.together-body .home-footer {
  margin-top: 72px;
  border-top: 1px solid rgba(26, 26, 26, 0.2);
  padding-top: 40px;
}

/* ---- Responsive ---- */

@media (max-width: 800px) {
  .t-scenarios {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .t-masthead {
    margin-top: 44px;
  }

  .t-hero img {
    max-height: 320px;
  }

  .t-rule {
    margin-top: 44px;
  }

  .t-section {
    margin-top: 32px;
  }
}

/* ---- No orphan (widow) words at any width ----
   `balance`/`pretty` refine line breaks where supported (Chrome, Safari);
   widont.js is the cross-browser guarantee that the last word never wraps alone. */
.t-title,
.t-section h2,
.t-card-name { text-wrap: balance; }

.t-dek,
.t-section p,
.t-hero figcaption,
.step-question { text-wrap: pretty; }
