/* =====================================================
    PAGE HEADER
===================================================== */
.page-header {
  padding-block: var(--sp-xl) var(--sp-lg);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .page-header {
  background: linear-gradient(150deg, var(--accent-pale) 0%, var(--bg) 55%);
}
[data-theme="dark"] .page-header {
  background: linear-gradient(150deg, var(--accent-dim) 0%, var(--bg) 55%);
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='1.5' fill='%23E8621A' fill-opacity='.09'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: .6;
}
.page-header-inner { position: relative; }

.breadcrumb {
  display: flex; align-items: center; gap: .4rem;
  margin-bottom: var(--sp-md);
  font-size: var(--t-xs); font-weight: 500; color: var(--text-muted);
}
.breadcrumb a { color: var(--text-soft); text-decoration: none; transition: color .15s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--border-strong); font-size: .75em; user-select: none; }
.breadcrumb [aria-current="page"] { color: var(--accent-dark); }

.page-kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--t-xs); font-weight: 600; letter-spacing: .07em;
  text-transform: uppercase; color: var(--teal-dark);
  background: var(--teal-dim); border: 1px solid var(--teal-border);
  padding: .3rem .85rem; border-radius: var(--r-pill);
  width: fit-content; margin-bottom: var(--sp-sm);
}
[data-theme="light"] .page-kicker { color: var(--teal-dark); }
[data-theme="dark"]  .page-kicker { color: var(--teal); }

.page-title {
  font-family: var(--f-display); font-size: var(--t-2xl);
  font-weight: 400; line-height: 1.1; letter-spacing: -.02em;
  color: var(--text-primary); max-width: 22ch;
}
.page-title em { font-style: italic; color: var(--accent-hero); }

.page-subtitle {
  margin-top: var(--sp-sm); font-size: var(--t-md);
  color: var(--text-soft); max-width: 54ch; line-height: 1.65;
}

/* =====================================================
    PAGE LAYOUT
===================================================== */
.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-xl);
  padding-block: var(--sp-xl);
  align-items: start;
}
@media (min-width: 900px) {
  .about-layout { grid-template-columns: 220px 1fr; gap: clamp(2rem,5vw,4rem); }
}

/* =====================================================
    SIDEBAR TOC
===================================================== */
.toc { position: sticky; top: calc(64px + var(--sp-md)); }
.toc-heading {
  font-size: var(--t-xs); font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: .75rem;
}
.toc-list { display: flex; flex-direction: column; border-left: 2px solid var(--border); }
.toc-list a {
  display: block; font-size: var(--t-sm); font-weight: 400;
  color: var(--text-soft); text-decoration: none;
  padding: .35rem 0 .35rem 1rem;
  border-left: 2px solid transparent; margin-left: -2px;
  transition: color .15s, border-color .15s; line-height: 1.45;
}
.toc-list a:hover { color: var(--accent); border-left-color: var(--accent-mid); }
@media (max-width: 899px) { .toc { display: none; } }

/* =====================================================
    PROSE CONTENT
===================================================== */
.prose-content { max-width: 72ch; }

.story-section {
  padding-bottom: var(--sp-xl);
  margin-bottom: var(--sp-xl);
  border-bottom: 1px solid var(--border);
}
.story-section:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.story-label {
  display: block; font-size: var(--t-xs); font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--accent-eyebrow); margin-bottom: .55rem;
}

.story-heading {
  font-family: var(--f-display); font-size: var(--t-xl);
  font-weight: 400; line-height: 1.18; letter-spacing: -.02em;
  color: var(--text-primary); margin-bottom: var(--sp-md);
  scroll-margin-top: calc(64px + 2rem);
}
.story-heading em { font-style: italic; color: var(--accent-hero); }

.sub-heading {
  font-family: var(--f-body); font-size: var(--t-base); font-weight: 600;
  color: var(--text-primary); margin-top: var(--sp-md); margin-bottom: var(--sp-sm);
}

.prose-content p {
  font-size: var(--t-base); line-height: 1.82;
  color: var(--text-secondary); margin-bottom: var(--sp-sm);
}
.prose-content p:last-child { margin-bottom: 0; }

.pull-quote {
  border-left: 3px solid var(--accent); padding-left: var(--sp-md);
  margin-block: var(--sp-md);
}
.pull-quote p {
  font-family: var(--f-display); font-style: italic;
  font-size: var(--t-md); line-height: 1.6; color: var(--text-primary);
}

/* Dot list */
.dot-list { display: flex; flex-direction: column; gap: .55rem; margin-block: var(--sp-md); }
.dot-list li {
  display: flex; align-items: flex-start; gap: .75rem;
  font-size: var(--t-base); line-height: 1.65; color: var(--text-secondary);
}
.dot-list li::before {
  content: ''; display: block; width: 7px; height: 7px;
  border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: .58em;
}

.hackranch-story a {
  color: var(--link-teal); text-decoration: underline; text-underline-offset: 2px;
}
.hackranch-story a:hover { color: var(--teal); text-decoration: none; }

/* =====================================================
    TIMELINE
===================================================== */
.timeline {
  margin-block: var(--sp-md) var(--sp-sm);
  position: relative;
}

.tl-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0 var(--sp-md);
  margin-bottom: var(--sp-md);
  position: relative;
}
@media (max-width: 500px) {
  .tl-item { grid-template-columns: 56px 1fr; gap: 0 var(--sp-sm); }
}

.tl-year {
  font-family: var(--f-display); font-size: var(--t-sm); font-weight: 400;
  color: var(--accent-eyebrow); text-align: right;
  padding-top: .25rem; line-height: 1.3; flex-shrink: 0;
}

.tl-body {
  padding-left: var(--sp-md); padding-bottom: var(--sp-sm);
  border-left: 2px solid transparent;
  position: relative;
}

.tl-body::before {
  content: ''; position: absolute;
  left: -5px; top: 9px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--bg); z-index: 1;
}

.tl-body::after {
  content: ''; position: absolute;
  left: -2px; top: 10px;
  bottom: calc(2px - (var(--sp-md) + var(--sp-sm)));
  width: 2px; background: var(--border);
}

.tl-item:last-of-type .tl-body::after { display: none; }

.tl-item--milestone .tl-year { color: var(--teal); }
[data-theme="light"] .tl-item--milestone .tl-year { color: var(--teal-dark); }
.tl-item--milestone .tl-body::before {
  background: var(--teal); width: 10px; height: 10px; left: -6px; top: 8px;
}

.tl-event {
  font-weight: 600; font-size: var(--t-base);
  color: var(--text-primary); line-height: 1.3; margin-bottom: .2rem;
}
.tl-detail { font-size: var(--t-sm); color: var(--text-soft); line-height: 1.6; }

/* =====================================================
    ABOUT STAT STRIP (local variant — distinct from
    the global .stat-strip in core.css)
===================================================== */
.about-stats {
  display: flex; flex-wrap: wrap;
  gap: var(--sp-sm) var(--sp-lg);
  background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-md) var(--sp-lg);
  margin-block: var(--sp-md);
}

.about-stat-item { display: flex; align-items: baseline; gap: .45rem; }
.about-stat-number {
  font-family: var(--f-display); font-size: var(--t-xl);
  font-weight: 400; color: var(--stat-num); line-height: 1;
}
.about-stat-label { font-size: var(--t-sm); color: var(--text-soft); line-height: 1.3; }

.about-stat-divider {
  width: 1px; height: 2.5rem; background: var(--border);
  align-self: center; flex-shrink: 0;
}
@media (max-width: 480px) { .about-stat-divider { display: none; } }

/* =====================================================
    VALUES GRID
===================================================== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: var(--sp-sm);
  margin-top: var(--sp-md);
}

.value-card {
  background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: var(--sp-md);
  transition: border-color .15s, box-shadow .15s;
}
.value-card:hover { border-color: var(--border-strong); box-shadow: var(--sh-sm); }

.value-icon {
  width: 40px; height: 40px; border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-bottom: .75rem;
}
.vi-orange { background: var(--icon-orange-bg); color: var(--icon-orange-fg); border: 1px solid var(--accent-border); }
.vi-teal   { background: var(--icon-teal-bg);   color: var(--icon-teal-fg);   border: 1px solid var(--teal-border); }

.value-title { font-weight: 600; font-size: var(--t-base); color: var(--text-primary); line-height: 1.3; margin-bottom: .35rem; }
.value-desc  { font-size: var(--t-sm); color: var(--text-soft); line-height: 1.65; }

/* =====================================================
    THANK YOU PANEL
===================================================== */
.thank-you-panel {
  background: var(--teal-dim); border: 1px solid var(--teal-border);
  border-radius: var(--r-xl);
  padding: var(--sp-lg) var(--sp-lg) var(--sp-xl);
}

.thank-you-panel .story-heading { font-size: var(--t-lg); margin-bottom: var(--sp-sm); }
.thank-you-panel .story-label { color: var(--teal); }
[data-theme="light"] .thank-you-panel .story-label { color: var(--teal-dark); }

.ty-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: var(--sp-md); }

/* =====================================================
    MISC LINK STYLES
===================================================== */
.stats-link-teal { color: var(--link-teal); text-decoration: underline; text-underline-offset: 2px; }
.stats-link-teal:hover { color: var(--teal); text-decoration: none; }
