:root {
  color-scheme: light;
  --bg: #eef5fb;
  --surface: #fbfdff;
  --surface-strong: #ddeaf4;
  --ink: #132033;
  --muted: #5f6d7e;
  --line: #c9d8e6;
  --accent: #156f94;
  --accent-2: #4f7bb8;
  --accent-3: #9fc7df;
  --shadow: 0 18px 60px rgba(25, 47, 72, 0.12);
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1724;
  --surface: #172234;
  --surface-strong: #1e3548;
  --ink: #edf6ff;
  --muted: #a9b8c8;
  --line: #2c4058;
  --accent: #72c7e8;
  --accent-2: #8ba7ff;
  --accent-3: #4d7892;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.5;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 0 32px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 760;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--accent-3);
  color: #102033;
  font-family: var(--font-display);
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.site-nav a,
.secondary-link,
.primary-link,
.filter-button,
.icon-button {
  border-radius: 6px;
}

.site-nav a {
  padding: 9px 12px;
  color: var(--muted);
  font-size: 0.94rem;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--surface) 76%, transparent);
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.hero-section {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.archive-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  width: min(820px, calc(100% - 48px));
  margin: 0 auto;
  padding: 120px 0 150px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 5rem, 5rem);
  line-height: 0.96;
  font-weight: 780;
}

#hero-title {
  font-style: italic;
}

.hero-copy {
  max-width: 650px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 1.18rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  font-weight: 760;
  text-decoration: none;
}

.primary-link {
  background: var(--ink);
  color: var(--bg);
}

.secondary-link {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.status-strip article {
  min-height: 132px;
  padding: 28px 32px;
  border-right: 1px solid var(--line);
}

.status-strip article:last-child {
  border-right: 0;
}

.status-strip span,
.note-meta,
.project-kicker {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.status-strip strong {
  display: block;
  max-width: 380px;
  margin-top: 8px;
  font-size: 1.05rem;
}

.section-shell,
.split-section,
.about-section {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  padding: 88px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2.35rem;
  line-height: 1.04;
  font-weight: 760;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.filter-button {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
}

.filter-button.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.note-card {
  min-height: 282px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.note-card[hidden] {
  display: none;
}

.note-card h3,
.project-row h3 {
  margin: 12px 0 0;
  font-size: 1.22rem;
  font-style: italic;
  line-height: 1.2;
}

.note-card p {
  margin: 14px 0 0;
  color: var(--muted);
}

.note-card a {
  margin-top: auto;
  color: var(--accent);
  font-weight: 780;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.project-section {
  border-top: 1px solid var(--line);
}

.project-list {
  border-top: 1px solid var(--line);
}

.project-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(260px, 1.4fr) auto;
  gap: 28px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.project-row p {
  margin: 0;
  color: var(--muted);
}

.project-status {
  justify-self: end;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 760;
  white-space: nowrap;
}

.split-section {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 40px;
  border-top: 1px solid var(--line);
}

.now-panel {
  padding: 30px;
  border-radius: 8px;
  background: var(--surface-strong);
}

.now-panel p:last-child,
.about-section p {
  color: var(--muted);
  font-size: 1.06rem;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.timeline span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-3);
  color: #102033;
  font-weight: 820;
}

.timeline p {
  margin: 0;
  color: var(--muted);
}

.about-section {
  border-top: 1px solid var(--line);
}

.about-section h2,
.about-section p {
  max-width: 760px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer a {
  color: var(--ink);
  font-weight: 760;
}

@media (max-width: 1120px) {
  .notes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding: 0 20px;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 12px;
  }

  .hero-section {
    min-height: 560px;
  }

  .hero-content {
    width: min(100% - 32px, 820px);
    padding: 86px 0 110px;
  }

  h1 {
    font-size: clamp(2.55rem, 3rem, 3rem);
  }

  .status-strip,
  .notes-grid,
  .split-section {
    grid-template-columns: 1fr;
  }

  .status-strip article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .project-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .project-status {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .section-shell,
  .split-section,
  .about-section {
    width: min(100% - 32px, 1160px);
    padding: 64px 0;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-link,
  .secondary-link {
    justify-content: center;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .note-card {
    min-height: 0;
  }

  .site-footer {
    flex-direction: column;
    padding: 28px 20px;
  }
}
