.story-more { grid-column: 1 / -1; text-align: center; margin-top: -1rem; }
.story-more a { color: var(--paper); display: inline-flex; gap: .7rem; align-items: center; min-height: 48px; font-weight: 600; text-underline-offset: .4em; }
.story-more a:focus-visible { outline-color: var(--paper); }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; color: var(--wine); font-size: .9375rem; font-weight: 600; }
.main-nav a[aria-current="page"] { color: var(--wine); text-decoration: underline; }
.tech-hero { padding-block: 2rem 4rem; }
.breadcrumb { display: inline-flex; align-items: center; gap: .65rem; color: var(--muted); font-size: .9375rem; min-height: 44px; margin-bottom: 2.25rem; }
.tech-hero-layout { display: grid; grid-template-columns: 1.35fr .65fr; gap: 4rem; align-items: end; }
.tech-hero h1 { font-size: clamp(3.25rem, 5.6vw, 5.4rem); line-height: 1.08; max-width: 50rem; margin-top: 1rem; }
.tech-deck { color: var(--muted); font-size: 1.125rem; line-height: 1.75; max-width: 44rem; margin-top: 1.5rem; }
.design-note { padding: 1.5rem 0 1.5rem 1.75rem; border-left: 2px solid var(--gold); }
.design-note h2 { font-size: 1.8rem; line-height: 1.3; letter-spacing: -.02em; margin-top: .85rem; }
.design-note > p:last-child { color: var(--muted); font-size: .9375rem; margin-top: .85rem; }
.chapter-nav { display: flex; flex-wrap: wrap; gap: .5rem 2rem; border-block: 1px solid var(--line); padding-block: .6rem; }
.chapter-nav a { display: inline-flex; align-items: center; gap: .7rem; min-height: 44px; font-size: .9375rem; font-weight: 600; text-decoration: none; }
.chapter-nav a:hover { text-decoration: underline; }
.chapter-nav span { color: var(--gold); font-family: var(--serif); font-weight: 400; }
.technical-section { padding-block: 4rem; }
.chapter-heading { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 3rem; margin-bottom: 2.5rem; }
.chapter-heading h2 { font-size: clamp(2.25rem, 3.6vw, 3.25rem); margin-top: .85rem; }
.chapter-heading > p { color: var(--muted); max-width: 35rem; }
.photo-journey { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); background: var(--white); }
.photo-journey li { padding: 1.75rem; }
.photo-journey li + li { border-left: 1px solid var(--line); }
.photo-journey .step-number { display: block; margin-bottom: 1rem; }
.photo-journey p { color: var(--muted); margin-top: .65rem; }
.local-note { margin-top: 1.4rem; color: var(--muted); font-size: .9375rem; max-width: 67rem; }
.challenges-section { background: #f3ebde; border-block: 1px solid var(--line); }
.challenge { display: grid; grid-template-columns: .15fr .85fr 1fr; gap: 2rem; padding-block: 2.5rem; border-top: 1px solid #d6c7b5; align-items: start; }
.challenge-number { color: var(--gold); font-family: var(--serif); font-size: 2rem; line-height: 1; padding-top: .25rem; }
.challenge h3 { font-family: var(--serif); font-size: 1.75rem; font-weight: 400; line-height: 1.25; max-width: 26rem; }
.challenge-problem { color: var(--muted); margin-top: .85rem; }
.challenge-fix > p + p { margin-top: .85rem; }
.challenge-fix p { color: var(--muted); }
.challenge-fix strong { color: var(--ink); font-weight: 650; }
.tradeoff { font-size: .9375rem; border-left: 2px solid #b29472; padding-left: 1rem; }
.stack-table { width: 100%; border-collapse: collapse; font-size: 1rem; text-align: left; }
.stack-table th, .stack-table td { padding: 1.25rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.stack-table thead { background: #f3ebde; }
.stack-table thead th { font-size: .875rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.stack-table tbody th { font-weight: 600; width: 28%; }
.stack-table td { color: var(--muted); }
.stack-table td strong { color: var(--ink); font-weight: 600; }
.runtime-note { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 2.5rem; }
.runtime-note h3 { margin-bottom: .6rem; }
.runtime-note p { color: var(--muted); }
.engineering-closing { padding-block: 3.5rem; background: #352129; color: var(--white); }
.engineering-closing .shell { max-width: 56rem; text-align: center; }
.engineering-closing h2 { font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.2; }
.engineering-closing p { margin: 1.25rem auto 0; color: #ecddd7; max-width: 45rem; }
.engineering-closing a { display: inline-flex; gap: .75rem; align-items: center; min-height: 48px; margin-top: 1.25rem; font-weight: 600; }
.engineering-closing a:focus-visible { outline-color: var(--paper); }
@media (max-width: 1050px) {
  .tech-hero-layout { grid-template-columns: 1.4fr .6fr; gap: 2rem; }
  .design-note { padding-left: 1.25rem; }
  .photo-journey { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-journey li:nth-child(3) { border-left: 0; }
  .photo-journey li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .challenge { grid-template-columns: 2rem 1fr 1fr; gap: 1.5rem; }
}
@media (max-width: 760px) {
  .tech-hero { padding-block: 1rem 2.5rem; }
  .breadcrumb { margin-bottom: 1.5rem; }
  .tech-hero-layout, .chapter-heading, .runtime-note { grid-template-columns: 1fr; gap: 1.5rem; }
  .tech-hero h1 { font-size: clamp(2.6rem, 9vw, 4rem); }
  .tech-deck { font-size: 1.0625rem; }
  .design-note { padding-block: .5rem; }
  .design-note h2 { font-size: 1.5rem; }
  .chapter-nav { gap: .25rem 1.25rem; }
  .technical-section { padding-block: 2.75rem; }
  .photo-journey li { padding: 1.25rem; }
  .challenge { grid-template-columns: 1.75rem 1fr; gap: .75rem 1rem; padding-block: 2rem; }
  .challenge-fix { grid-column: 2; }
  .challenge h3 { font-size: 1.5rem; }
  .challenge-number { font-size: 1.5rem; }
  .stack-table th, .stack-table td { padding: 1rem .5rem; }
  .stack-table tbody th { width: 35%; }
}
@media (max-width: 430px) {
  .photo-journey { grid-template-columns: 1fr; }
  .photo-journey li + li { border-left: 0; border-top: 1px solid var(--line); }
}
