.secondary-page {
  min-block-size: 100vh;
  min-block-size: 100svh;
  display: flex;
  flex-direction: column;
}

.secondary-page :where(h1, h2, p, dl, dd) { margin: 0; }
.secondary-page .site-footer { margin-block-start: auto; }
.secondary-skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.secondary-skip:focus {
  position: absolute;
  inset: .5rem auto auto .5rem;
  z-index: 10;
  padding: .75rem;
  background: var(--mint);
  color: var(--bg);
}

.auth-main {
  width: min(100%, 31rem);
  align-self: center;
  padding: clamp(2rem, 8vh, 5rem) 1rem;
  text-align: center;
}

.auth-card {
  text-align: start;
  padding: clamp(1.2rem, 5vw, 2.25rem);
  border: 1px solid var(--line);
  border-top: 2px solid var(--mint);
  border-radius: 2px;
  background: var(--surface);
}

.auth-intro h1 {
  color: var(--text);
  font: 500 clamp(2rem, 6vw, 2.65rem)/1.1 var(--sans);
  letter-spacing: -.055em;
}

.auth-period { color: var(--mint); }

.auth-intro p,
.auth-switch {
  margin-block-start: .7rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.auth-preview {
  margin-block: 1.25rem;
  padding: .65rem .9rem;
  border-inline-start: 2px solid var(--mint);
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.5;
}

.auth-fields,
.phone-input {
  display: grid;
  gap: .55rem;
}

.auth-fields label {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
}

.auth-fields input {
  display: block;
  width: 100%;
  min-height: 2.9rem;
  padding: .65rem .8rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.auth-fields input::placeholder { color: var(--muted); }
.auth-fields input:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }

.auth-button {
  min-height: 2.9rem;
  padding: .7rem;
  border: 1px solid transparent;
  border-radius: 2px;
  opacity: 1;
  font: 600 .95rem/1.35 var(--sans);
  cursor: default;
}

.auth-primary {
  margin-top: .3rem;
  background: #92bdb0;
  color: var(--bg);
}

.auth-alt {
  color: var(--muted);
  border-color: var(--line);
  background: transparent;
}

.auth-or {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .25rem 0;
  color: var(--muted);
  font-size: .875rem;
}

.auth-or::before,
.auth-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.phone-details summary {
  width: fit-content;
  padding: .7rem 0;
  color: var(--muted);
  cursor: pointer;
  font-size: .875rem;
  line-height: 1.5;
}

.phone-input { padding-block-end: .5rem; }
.auth-switch { padding-top: 1.1rem; border-top: 1px solid var(--line); }
.auth-switch a,
.preview-chat {
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: .23em;
}

.preview-chat {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-block-start: .7rem;
  font-size: .95rem;
}

.story-main {
  width: min(100%, 59rem);
  align-self: center;
  padding: clamp(2.8rem, 8vw, 6.25rem) clamp(1.25rem, 5vw, 2.5rem);
}

.story-intro {
  max-width: 47rem;
  margin-bottom: clamp(2.5rem, 7vw, 4.5rem);
}

.story-intro h1 {
  margin-bottom: 1.4rem;
  color: var(--text);
  font: 500 clamp(2.55rem, 6.3vw, 4.75rem)/1.06 var(--sans);
  letter-spacing: -.06em;
}

.story-intro h1 em {
  color: var(--mint);
  font: italic 400 1.04em/1.06 var(--serif);
  letter-spacing: -.055em;
}

.story-main p {
  max-width: 66ch;
  color: var(--muted);
  font-size: 1.025rem;
  line-height: 1.7;
}

.story-main .story-lead {
  max-width: 43ch;
  margin-bottom: 1.1rem;
  color: var(--text);
  font: 400 clamp(1.4rem, 3.4vw, 2.05rem)/1.35 var(--serif);
  letter-spacing: -.018em;
}

.story-section {
  display: grid;
  gap: 1rem;
  padding-block: clamp(1.6rem, 4vw, 2.6rem);
  border-top: 1px solid var(--line);
}

.story-section h2 {
  max-width: 21ch;
  color: var(--text);
  font: 500 clamp(1.35rem, 3vw, 1.65rem)/1.25 var(--sans);
  letter-spacing: -.04em;
}

.story-copy p + p { margin-top: .85rem; }
.story-copy strong,
.story-timeline strong { color: var(--text); font-weight: 600; }

.story-timeline > div {
  display: grid;
  grid-template-columns: 3.35rem minmax(0, 1fr);
  gap: .7rem;
}

.story-timeline > div + div { margin-top: 1.3rem; }

.story-timeline dt {
  padding-top: .1rem;
  color: var(--mint);
  font-size: .9rem;
}

.story-timeline dd p { margin-top: .35rem; }

.story-ask {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  margin-block-start: .5rem;
  padding: .6rem 1.2rem;
  border-radius: 2px;
  background: var(--mint);
  color: var(--bg);
  text-decoration: none;
  font-weight: 650;
}
.story-ask:hover { background: #beefdc; }

@media (min-width: 46rem) {
  .story-section { grid-template-columns: minmax(11rem, .9fr) minmax(0, 1.95fr); gap: 2.4rem; }
}
