@font-face {
  font-family: Inter;
  src: url('assets/inter.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #333;
  --heading: #111827;
  --muted: #647184;
  --line: #e8eaec;
  --green: #059669;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #fff; font: 400 1rem/1.5 Inter, system-ui, sans-serif; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 2px solid #2b6cb0; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 30px; font-weight: 600; letter-spacing: -.021em; line-height: 1.28; }
h2 { font-size: 20px; font-weight: 600; line-height: 1.5; }
svg { flex: none; width: 1em; height: 1em; vertical-align: -.12em; }

.skip-link { position: fixed; z-index: 3; left: 1rem; top: 1rem; padding: .55rem 1rem; background: #fff; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.story { max-width: 75rem; margin-inline: auto; padding: 24px 32px 52px; }
.story-header { display: flex; align-items: center; gap: 16px; justify-content: space-between; }
.story-actions { flex: none; }
.green-button { display: inline-flex; justify-content: center; align-items: center; min-height: 40px; gap: 8px; padding: 0 16px; border: 0; border-radius: 6px; color: #fff; background: #47865d; font-weight: 600; white-space: nowrap; }
.green-button:hover { background: #376d4a; }
.green-button svg { width: 21px; height: 21px; }

.story-intro { max-width: 58rem; margin-top: 16px; color: #4b5563; }
.project-links { margin-top: 24px; }
.project-links ul { display: grid; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.project-links a { display: inline-flex; align-items: baseline; gap: 6px; }
.project-links svg { align-self: center; }
.project-links a, .mentor-profile a { color: #275b89; text-underline-offset: .16em; }
.project-links a:hover, .mentor-profile a:hover { color: #153e65; }

.story-section { margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
#gallery { margin-top: 24px; padding-top: 24px; }
.mentor-profile { display: flex; align-items: flex-start; gap: 16px; max-width: 52rem; margin-top: 12px; }
.mentor-profile img { flex: 0 0 auto; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.mentor-name { color: var(--ink); font-size: 17px; font-weight: 600; }
.mentor-profile p { margin-top: 4px; color: #4b5563; }

.milestones { display: grid; gap: 20px; margin: 12px 0 0; padding: 0; list-style: none; }
.milestones li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; }
.milestone-marker { position: relative; display: flex; justify-content: center; padding-top: 5px; color: var(--green); }
.milestone-marker svg { width: 18px; height: 18px; }
.milestones li:not(:last-child) .milestone-marker::after { content: ''; position: absolute; top: 31px; bottom: -9px; left: calc(50% - .5px); border-left: 1px solid #cbd5d0; }
.milestone-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.milestone-heading h3 { color: var(--heading); font-size: 17px; font-weight: 600; }
.milestone-heading .milestone-date { color: #646971; font-size: 14px; }
.milestones li > div > p { max-width: 58rem; margin-top: 3px; color: #4b5563; }

.rocketry-resource { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 12px; }
.rocketry-resource a { display: block; width: clamp(8.5rem, 16vw, 11rem); }
.rocketry-resource img { width: 100%; height: auto; }
.rocketry-resource p { color: #4b5563; }

dialog { width: min(36rem, calc(100% - 2rem)); padding: 24px; border: 1px solid #dedede; border-radius: 8px; background: #fff; color: var(--ink); }
dialog::backdrop { background: #18202777; }
.share-heading { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.close-button { padding: 4px 8px; border: 0; background: transparent; color: inherit; }
.share-heading + p { margin-block: 8px 16px; color: var(--muted); }
.share-field { display: flex; gap: 8px; align-items: stretch; }
.share-field input { width: 100%; min-width: 0; padding: 7px 10px; border: 1px solid #cbd0d4; border-radius: 6px; color: inherit; }
#share-status:not(:empty) { margin-top: 8px; color: #266c48; }

@media (max-width: 767px) {
  .story { padding: 28px 24px 40px; }
  .story-header { flex-direction: column; align-items: flex-start; }
  h1 { font-size: 26px; }
  .story-section { margin-top: 32px; padding-top: 32px; }
}

@media print {
  .story-actions, .skip-link, dialog { display: none !important; }
  .story { margin: 0; padding: 0; print-color-adjust: exact; }
  .milestones li { break-inside: avoid; }
  .story-section { margin-top: 24px; padding-top: 24px; }
}
