:root {
  color-scheme: dark;
  --bg: #08090d;
  --panel: #10131a;
  --panel-soft: #151923;
  --ink: #f4f7fb;
  --muted: #a6b0bf;
  --quiet: #687386;
  --line: rgba(255, 255, 255, 0.12);
  --cyan: #5dd7e8;
  --amber: #d9a05f;
  --steel: #8ba3c7;
  --shadow: rgba(0, 0, 0, 0.48);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 80% 10%, rgba(93, 215, 232, 0.08), transparent 28rem),
    linear-gradient(180deg, #08090d 0%, #0d1016 48%, #08090d 100%);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: rgba(8, 9, 13, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.brand,
.site-header nav,
.hero-actions,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.7rem;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 1px solid rgba(93, 215, 232, 0.45);
  background: rgba(93, 215, 232, 0.11);
  color: var(--cyan);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.site-header nav {
  gap: clamp(0.8rem, 3vw, 1.8rem);
  color: var(--muted);
  font-size: 0.94rem;
}

.site-header nav a:hover,
.site-footer a:hover {
  color: var(--cyan);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  padding: 7.5rem clamp(1rem, 6vw, 5.5rem) 5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/hero-reflection.png");
  background-position: center right;
  background-size: cover;
  opacity: 0.72;
  transform: scale(1.01);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 9, 13, 0.94) 0%, rgba(8, 9, 13, 0.78) 37%, rgba(8, 9, 13, 0.18) 76%),
    linear-gradient(180deg, rgba(8, 9, 13, 0.18) 0%, rgba(8, 9, 13, 0.54) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 1.4rem;
  font-size: clamp(3.4rem, 9vw, 7.6rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.lede {
  max-width: 680px;
  color: #d7dee8;
  font-size: clamp(1.12rem, 2.1vw, 1.48rem);
  line-height: 1.58;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.05rem;
  border: 1px solid var(--line);
  font-weight: 750;
}

.button.primary {
  background: var(--ink);
  color: #08090d;
  border-color: var(--ink);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
}

.button:hover {
  transform: translateY(-1px);
}

.intro-band,
.section,
.site-footer {
  padding-inline: clamp(1rem, 6vw, 5.5rem);
}

.intro-band {
  padding-block: clamp(2rem, 5vw, 4rem);
  background: #0d1016;
  border-bottom: 1px solid var(--line);
}

.intro-copy {
  max-width: 980px;
}

.intro-copy p {
  margin-bottom: 0;
  color: #d4dbe6;
  font-size: clamp(1.18rem, 2.2vw, 1.85rem);
  line-height: 1.45;
}

.section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
  letter-spacing: 0;
}

.thread-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.thread-card,
.note-row {
  background: rgba(16, 19, 26, 0.92);
}

.thread-card {
  min-height: 19rem;
  padding: clamp(1.2rem, 3vw, 2rem);
}

.card-index,
.note-row time {
  display: block;
  color: var(--steel);
  font-size: 0.82rem;
  font-weight: 800;
}

.thread-card h3,
.note-row h3 {
  margin: 2.8rem 0 0.8rem;
  font-size: 1.35rem;
}

.thread-card p,
.note-row p {
  max-width: 34rem;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.notes-section {
  background: linear-gradient(180deg, rgba(21, 25, 35, 0.46), rgba(8, 9, 13, 0));
}

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

.note-row {
  display: grid;
  grid-template-columns: minmax(7rem, 0.22fr) 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  background: transparent;
  border-bottom: 1px solid var(--line);
}

.note-row h3 {
  margin-top: 0;
}

.site-footer {
  justify-content: space-between;
  gap: 1rem;
  padding-block: 2rem;
  color: var(--quiet);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin-bottom: 0;
}

@media (max-width: 820px) {
  .site-header {
    position: absolute;
  }

  .site-header nav {
    display: none;
  }

  .hero {
    min-height: 88vh;
    padding-top: 6.5rem;
  }

  .hero-media {
    background-position: 63% center;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(8, 9, 13, 0.78), rgba(8, 9, 13, 0.94)),
      linear-gradient(90deg, rgba(8, 9, 13, 0.68), rgba(8, 9, 13, 0.2));
  }

  h1 {
    max-width: 10ch;
  }

  .thread-grid {
    grid-template-columns: 1fr;
  }

  .thread-card {
    min-height: auto;
  }

  .note-row {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
