/* Styles the archive timeline in light and dark themes without external fonts or media. */
:root {
  color-scheme: light dark;
  --background: rgb(224, 224, 224);
  --surface: rgba(255, 255, 255, 0.76);
  --surface-solid: rgb(255, 255, 255);
  --text: rgb(37, 37, 37);
  --muted: rgb(94, 94, 94);
  --line: rgb(170, 170, 170);
  --accent: rgb(230, 0, 0);
  --accent-glow: rgba(230, 0, 0, .27);
  --loader-outer: rgb(37, 37, 37);
  --accent-soft: rgb(229, 229, 229);
  --border: rgba(37, 37, 37, 0.2);
  --shadow: 0 24px 70px rgba(37, 37, 37, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 280px; overflow-x: hidden; background: var(--background); color: var(--text); font-weight: 400; }
a { color: inherit; }
.page-loader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--background); color: var(--text); opacity: 1; visibility: visible; transition: opacity 360ms ease, visibility 360ms ease; animation: loader-failsafe .01s 2.5s forwards; }
.page-loader.is-finished { opacity: 0; visibility: hidden; pointer-events: none; }
.page-loader__content { display: grid; justify-items: center; gap: 12px; padding: 24px; text-align: center; }
.page-loader__mark { position: relative; width: 120px; height: 120px; }
.page-loader__ring { position: absolute; border-radius: 50%; }
.page-loader__ring--outer { inset: 2px; border: 3px solid rgba(37, 37, 37, .18); border-top-color: var(--loader-outer); border-left-color: var(--loader-outer); animation: loader-spin-reverse 1.8s linear infinite; }
.page-loader__ring--inner { inset: 25px; border: 4px solid rgba(230, 0, 0, .14); border-top-color: var(--accent); border-right-color: var(--accent); box-shadow: 0 0 18px var(--accent-glow), inset 0 0 12px var(--accent-glow); animation: loader-spin 1.05s linear infinite; }
.page-loader strong { color: var(--accent); font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; font-weight: 700; }
.page-loader__copy { color: var(--muted); font-size: .875rem; }
.page-loader__dots::after { content: ""; animation: loader-dots 1.2s steps(4, end) infinite; }
.skip-link { position: fixed; z-index: 10; left: 16px; top: -80px; padding: 12px 18px; border-radius: 12px; background: var(--text); color: var(--background); font-weight: 600; transition: top 160ms ease; }
.skip-link:focus { top: 16px; }
.hero { position: relative; display: grid; min-height: 88vh; align-content: center; justify-items: center; overflow: hidden; padding: 80px 24px; text-align: center; isolation: isolate; }
.hero__title { position: relative; display: grid; place-items: center; isolation: isolate; }
.hero__rings { position: absolute; z-index: -2; width: 0; height: 0; }
.hero__ring { position: absolute; display: block; aspect-ratio: 1; border: 1px solid var(--border); border-radius: 50%; translate: -50% -50%; }
.hero__ring--inner { width: min(420px, calc(100vw - 64px)); border-color: var(--accent); opacity: .28; }
.hero__ring--outer { width: min(560px, calc(100vw - 24px)); opacity: .7; }
.hero__glow { position: absolute; z-index: -1; width: min(420px, calc(100vw - 64px)); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--accent-glow), transparent 68%); filter: blur(12px); }
.eyebrow { margin: 0 0 18px; color: var(--accent); font-size: .9rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { max-width: 920px; margin: 0; color: var(--accent); font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 10vw, 7.8rem); font-weight: 700; letter-spacing: -.055em; line-height: .91; }
.intro { max-width: 620px; margin: 32px auto 0; color: var(--muted); font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.7; }
.scroll-cue { display: inline-flex; gap: 12px; align-items: center; margin-top: 42px; padding: 12px 18px; border: 1px solid var(--border); border-radius: 999px; text-decoration: none; font-size: .95rem; font-weight: 600; transition: transform 180ms ease, background 180ms ease; }
.scroll-cue:hover, .scroll-cue:focus-visible { transform: translateY(-2px); background: var(--surface); }
main { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.notice { margin: 0 auto 100px; padding: 24px; border: 1px solid var(--border); border-radius: 20px; background: var(--accent-soft); }
.notice h2 { margin: 1px 0 8px; font-size: 1.2rem; font-weight: 700; }
.notice p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.6; }
.timeline { position: relative; padding-bottom: 80px; }
.timeline__heading { margin: 0 auto 70px; text-align: center; }
.timeline__heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700; letter-spacing: -.04em; }
.timeline__line { position: absolute; z-index: -1; top: 150px; bottom: 20px; left: 50%; width: 20px; overflow: hidden; background: linear-gradient(transparent 0%, var(--line) 9%, var(--line) 91%, transparent 100%) center / 2px 100% no-repeat; transform: translateX(-50%); }
.timeline__line::after { content: ""; position: absolute; top: var(--timeline-glow-y, 0px); left: 50%; width: 4px; height: 190px; border-radius: 999px; background: linear-gradient(transparent, var(--accent) 44%, var(--accent) 56%, transparent); filter: drop-shadow(0 0 4px var(--accent-glow)); opacity: .62; pointer-events: none; transform: translate(-50%, -50%); }
.project { position: relative; display: grid; width: 50%; padding: 0 56px 90px; }
.project--left { justify-items: end; }
.project--right { margin-left: 50%; justify-items: start; }
.project__marker { position: absolute; top: 38px; width: 18px; height: 18px; border: 0; border-radius: 50%; background: var(--line); box-shadow: none; transition: background-color 120ms ease; }
.project__marker.is-active { background: var(--accent); }
.project--left .project__marker { right: -9px; }
.project--right .project__marker { left: -9px; }
.project__card { display: block; width: min(100%, 440px); padding: 28px; border: 1px solid var(--border); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); text-decoration: none; backdrop-filter: blur(14px); transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease; }
.project__card:hover, .project__card:focus-visible { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 28px 80px rgba(37, 37, 37, .2); outline: none; }
.project__meta { display: flex; gap: 14px; align-items: center; }
.project__meta > div { min-width: 0; }
.project__meta img { flex: 0 0 auto; border-radius: 10px; image-rendering: auto; }
.project__icon { display: grid; flex: 0 0 auto; width: 42px; height: 42px; place-items: center; border: 1px solid var(--border); border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: 1.1rem; font-weight: 600; }
.project__period { color: var(--muted); font-size: .88rem; }
.project__meta p { margin: 3px 0 0; color: var(--accent); font-size: .88rem; font-weight: 600; line-height: 1.35; }
.project h3 { margin: 24px 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.55rem, 3vw, 2.15rem); font-weight: 700; letter-spacing: -.025em; }
.project__card > p { margin: 0; color: var(--muted); font-size: .96rem; line-height: 1.65; }
.project__link { display: inline-flex; gap: 8px; margin-top: 24px; color: var(--accent); font-size: .92rem; font-weight: 600; }
.reveal { opacity: 0; transform: translateY(38px); transition: opacity 600ms ease, transform 600ms cubic-bezier(.22, 1, .36, 1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
footer { padding: 30px 20px 48px; color: var(--muted); text-align: center; }
footer p { font-size: .9rem; }
footer a { font-weight: 600; }

@keyframes loader-spin { to { transform: rotate(360deg); } }
@keyframes loader-spin-reverse { to { transform: rotate(-360deg); } }
@keyframes loader-dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75%, 100% { content: "..."; } }
@keyframes loader-failsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }

@media (prefers-color-scheme: dark) {
  :root { --background: rgb(12, 12, 12); --surface: rgba(24, 24, 24, .9); --surface-solid: rgb(24, 24, 24); --text: rgb(245, 245, 245); --muted: rgb(194, 194, 194); --line: rgb(88, 88, 88); --accent: rgb(255, 24, 0); --accent-glow: rgba(255, 24, 0, .25); --loader-outer: rgb(58, 58, 58); --accent-soft: rgb(20, 20, 20); --border: rgba(220, 220, 220, .18); --shadow: 0 24px 70px rgba(0, 0, 0, .34); }
}

@media (max-width: 720px) {
  .hero { min-height: 78vh; padding-inline: 16px; }
  main { width: min(100% - 24px, 620px); }
  .notice { margin-bottom: 72px; }
  .timeline__line { left: 14px; }
  .timeline__heading { padding-left: 34px; text-align: left; }
  .project, .project--right { width: 100%; margin-left: 0; padding: 0 0 54px 40px; justify-items: stretch; }
  .project--left .project__marker, .project--right .project__marker { right: auto; left: 5px; }
  .project__card { width: 100%; padding: 22px; border-radius: 20px; }
}

@media (max-width: 340px) {
  main { width: calc(100% - 16px); }
  .project { padding-left: 30px; }
  .timeline__line { left: 9px; }
  .project--left .project__marker, .project--right .project__marker { left: 0; }
  .project__card { padding: 14px; }
  .project__meta { gap: 6px; align-items: flex-start; }
  .project__meta img, .project__icon { width: 32px; height: 32px; border-radius: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .page-loader { animation-delay: .75s; }
  .page-loader__dots::after { content: "..."; }
  .reveal { opacity: 1; transform: none; }
}
