/* Faithful Story — a witness, not a resume */

/* --------------------------------------------------------------------------
   Hero — name as title, anchor beneath
   -------------------------------------------------------------------------- */
.story-hero {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--space-gutter);
  padding-block: clamp(5rem, 14vw, 10rem) var(--space-xl);
  text-align: center;
}

.story-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 12vw + 1rem, 9rem);
  font-weight: var(--font-weight-heading);
  line-height: var(--line-height-tight);
  letter-spacing: 0.02em;
  color: var(--color-charcoal);
}

.story-hero__subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw + 0.5rem, 1.5rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: var(--letter-spacing-wide);
  color: var(--color-stone-muted);
  margin-top: var(--space-sm);
}

.story-hero__anchor {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: var(--letter-spacing-ui);
  text-transform: uppercase;
  color: var(--color-wine);
  margin-top: var(--space-xl);
}

/* --------------------------------------------------------------------------
   Story sections — long-form prose
   -------------------------------------------------------------------------- */
.story-section {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--space-gutter);
  padding-block: var(--space-section);
}

.story-section__heading {
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  font-weight: var(--font-weight-heading);
  line-height: var(--line-height-tight);
  color: var(--color-charcoal);
  margin-bottom: var(--space-lg);
}

.story-section p {
  font-size: var(--text-body);
  line-height: var(--line-height-body);
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

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

.story-section a {
  color: var(--color-wine);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--color-border);
  transition: color var(--duration-fast) var(--ease-out),
    text-decoration-color var(--duration-fast) var(--ease-out);
}

.story-section a:hover {
  color: var(--color-wine-deep);
  text-decoration-color: var(--color-wine);
}

.story-section__intro {
  font-style: italic;
  color: var(--color-text-muted) !important;
  margin-bottom: var(--space-xl) !important;
}

/* --------------------------------------------------------------------------
   Hook — the first paragraph a stranger reads
   -------------------------------------------------------------------------- */
.story-hook {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 1.5vw + 0.8rem, 1.4rem);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-charcoal);
}

.story-hook--second {
  margin-top: var(--space-md);
  font-style: italic;
  color: var(--color-stone-muted);
}

/* --------------------------------------------------------------------------
   Inline code — file names in prose
   -------------------------------------------------------------------------- */
.story-section code {
  font-family: "SFMono-Regular", "Cascadia Code", "Consolas", monospace;
  font-size: 0.88em;
  color: var(--color-wine);
  background-color: var(--color-parchment-deep);
  padding: 0.1em 0.35em;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   File tree artifact
   -------------------------------------------------------------------------- */
.story-filetree {
  font-family: "SFMono-Regular", "Cascadia Code", "Consolas", monospace;
  font-size: clamp(0.78rem, 0.3vw + 0.7rem, 0.85rem);
  line-height: 1.75;
  color: var(--color-charcoal);
  background-color: var(--color-parchment-deep);
  border: var(--separator-width) solid var(--color-separator);
  padding: var(--space-md) var(--space-lg);
  margin-block: var(--space-lg);
  overflow-x: auto;
  white-space: pre;
}

.story-filetree code {
  font: inherit;
  color: inherit;
  background: none;
  padding: 0;
  border-radius: 0;
}

/* --------------------------------------------------------------------------
   Values — structured list with presence
   -------------------------------------------------------------------------- */
.story-values {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-top: var(--space-md);
}

.story-value {
  padding-bottom: var(--space-lg);
  border-bottom: var(--separator-width) solid var(--color-separator);
}

.story-value:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.story-value__name {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: var(--font-weight-heading);
  color: var(--color-charcoal);
  letter-spacing: 0.01em;
  margin-bottom: var(--space-xs);
}

.story-value__desc {
  font-size: var(--text-body);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Covenant list
   -------------------------------------------------------------------------- */
.story-covenant {
  list-style: none;
  padding: 0;
  margin-top: var(--space-md);
  margin-bottom: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.story-covenant li {
  position: relative;
  padding-left: 1.5em;
  font-size: var(--text-body);
  line-height: var(--line-height-body);
  color: var(--color-text);
}

.story-covenant li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 6px;
  height: 1px;
  background-color: var(--color-wine);
}

/* --------------------------------------------------------------------------
   On the Record — blockquotes as artifacts
   -------------------------------------------------------------------------- */
.story-records {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.story-record {
  margin: 0;
  margin-block: var(--space-lg);
  padding: 0;
  padding-left: var(--space-lg);
  border-left: 2px solid var(--color-wine);
  position: relative;
}

.story-record__text {
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 1vw + 0.9rem, 1.35rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.65;
  color: var(--color-charcoal);
  margin-bottom: var(--space-sm);
}

.story-record__cite {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-style: normal;
  letter-spacing: var(--letter-spacing-wide);
  color: var(--color-stone-muted);
}

/* --------------------------------------------------------------------------
   Closing
   -------------------------------------------------------------------------- */
.story-section--closing {
  text-align: center;
  padding-block: var(--space-xl) var(--space-section);
}

.story-closing__text {
  max-width: 36rem;
  margin-inline: auto;
  font-size: var(--text-body);
  line-height: var(--line-height-body);
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.story-closing__signature {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: var(--font-weight-heading);
  font-style: italic;
  color: var(--color-charcoal);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-xs);
}

.story-closing__date {
  font-size: var(--text-small);
  color: var(--color-stone-muted);
  letter-spacing: var(--letter-spacing-wide);
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .story-section a {
    transition: none;
  }
}
