/* Project 2060: shared styles for the site and the blog (keep both copies identical). */
:root {
  --midnight: #0E1A2B;
  --ink: #1C2330;
  --slate: #4A5361;
  --muted: #6B7380;
  --ember: #B8441C;
  --dawn: #F2683A;
  --rule: #E2E0DB;
  --paper: #FFFFFF;
  --wash: #F7F5F1;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: var(--ember); text-underline-offset: 2px; }
a:hover { color: var(--midnight); }
.container { width: min(1080px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--midnight); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }

/* Mark */
.grid { display: grid; grid-template-columns: repeat(10, 1fr); }
.grid i { display: block; aspect-ratio: 1; border-radius: 50%; }
.grid--logo { width: 26px; gap: 1px; flex-shrink: 0; }
.grid--intro { width: 132px; gap: 4px; }

/* Top bar + masthead */
.topbar { background: var(--midnight); color: #C9D2DC; font-size: 12.5px; letter-spacing: .02em; }
.topbar .container { padding: 7px 0; }
.masthead { border-bottom: 1px solid var(--rule); background: var(--paper); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--midnight); }
.wordmark { font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: .01em; line-height: 1; color: var(--midnight); }
.wordmark b { color: var(--ember); font-weight: 600; }
.nav { display: flex; gap: 22px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; font-size: 14px; }
.nav a, .nav span { color: var(--ink); text-decoration: none; padding: 4px 0; }
.nav a:hover { color: var(--ember); }
.nav a[aria-current="page"] { color: var(--ember); box-shadow: inset 0 -2px 0 var(--ember); }
.nav .soon { color: var(--muted); cursor: default; }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--midnight); margin: 0; }
h1 { font-size: 34px; line-height: 1.2; letter-spacing: -0.005em; }
.label { font-family: var(--sans); font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: 17px; color: var(--slate); margin: 14px 0 0; max-width: 640px; }

/* Home */
.intro { display: flex; gap: 48px; align-items: center; justify-content: space-between; padding: 48px 0 40px; border-bottom: 1px solid var(--rule); }
.intro-mark { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; flex-shrink: 0; }
.intro-mark figcaption { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
/* Timeline: 1960 to 2060, filled to the current year */
.timeline { margin: 26px 0 0; max-width: 520px; }
.tl-track { position: relative; height: 2px; background: var(--rule); }
.timeline { --pct: 66%; }
.tl-fill { position: absolute; left: 0; top: 0; bottom: 0; width: var(--pct); background: var(--ember); transition: width 1.8s cubic-bezier(.2,.7,.2,1); }
.tl-fill::after { content: ""; position: absolute; right: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--ember); }
.timeline.is-start .tl-fill { width: 0; }
.tl-labels { position: relative; display: flex; justify-content: space-between; margin-top: 10px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.tl-now { position: absolute; left: var(--pct, 66%); transform: translateX(-50%); color: var(--ember); font-weight: 600; transition: left 1.8s cubic-bezier(.2,.7,.2,1); }
.timeline.is-start .tl-now { left: 0; }
.tl-caption { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }
.block { padding: 36px 0 48px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--midnight); padding-bottom: 10px; margin-bottom: 4px; }
.block-head a { font-size: 14px; text-decoration: none; }

/* Post lists (home + blog) */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { padding: 22px 0; border-bottom: 1px solid var(--rule); }
.post-meta { font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.post-list h3 { font-size: 21px; line-height: 1.3; font-weight: 600; }
.post-list h3 a { color: var(--midnight); text-decoration: none; }
.post-list h3 a:hover { color: var(--ember); text-decoration: underline; }
.post-list p.summary { margin: 8px 0 0; font-size: 15px; color: var(--slate); max-width: 680px; }

/* Blog pages */
.page-head { padding: 40px 0 20px; border-bottom: 1px solid var(--midnight); }
.page-head p { margin: 8px 0 0; color: var(--slate); font-size: 15.5px; }
.article { max-width: 680px; margin-inline: auto; padding: 44px 0 64px; }
.article h1 { font-size: 32px; line-height: 1.22; }
.article .dek { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--slate); margin: 12px 0 0; }
.article .post-meta { margin: 18px 0 0; padding-bottom: 22px; border-bottom: 1px solid var(--rule); }
.prose { font-family: var(--serif); font-size: 18px; line-height: 1.7; color: var(--ink); margin-top: 28px; }
.prose p { margin: 0 0 20px; }
.prose h2 { font-size: 22px; margin: 36px 0 12px; }
.prose blockquote { margin: 24px 0; padding: 4px 0 4px 18px; border-left: 2px solid var(--ember); color: var(--slate); }
.prose blockquote p { margin: 0; }
.back { margin-top: 36px; font-family: var(--sans); font-size: 14px; }

/* Footer */
.footer { background: var(--wash); border-top: 1px solid var(--rule); font-size: 14px; color: var(--slate); margin-top: 24px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding: 36px 0 28px; }
.footer .wordmark { font-size: 19px; }
.footer p { margin: 8px 0 0; }
.footer-nav { display: grid; grid-template-columns: repeat(3, minmax(120px, auto)); gap: 8px 32px; list-style: none; margin: 0; padding: 0; }
.footer-nav a { color: var(--ink); text-decoration: none; }
.footer-nav a:hover { color: var(--ember); }
.footer-nav .soon { color: var(--muted); }
.footer-base { border-top: 1px solid var(--rule); padding: 14px 0 24px; font-size: 12.5px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Phones */
@media (prefers-reduced-motion: reduce) { .tl-fill, .tl-now { transition: none; } }
@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .topbar { font-size: 12px; }
  .masthead-inner { padding: 14px 0 0; gap: 12px; }
  .nav { flex-wrap: nowrap; overflow-x: auto; width: 100%; gap: 18px; padding-bottom: 12px; font-size: 13.5px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav li { flex-shrink: 0; }
  .nav li:last-child { order: -1; }
  h1 { font-size: 25px; }
  .lead { font-size: 15.5px; }
  .intro { padding: 30px 0 28px; gap: 20px; }
  .intro-mark { display: none; }
  .timeline { margin-top: 22px; }
  .block { padding: 28px 0 36px; }
  .page-head { padding: 28px 0 16px; }
  .post-list li { padding: 18px 0; }
  .post-list h3 { font-size: 18px; }
  .post-list p.summary { font-size: 14.5px; }
  .article { padding: 28px 0 48px; }
  .article h1 { font-size: 24px; }
  .article .dek { font-size: 16px; }
  .prose { font-size: 16.5px; line-height: 1.68; }
  .prose h2 { font-size: 19px; margin-top: 30px; }
  .footer-nav { grid-template-columns: repeat(2, minmax(120px, auto)); }
}
