:root {
  color-scheme: light dark;
  --bg: #f4f1e9;
  --surface: rgba(255, 255, 255, 0.62);
  --surface-strong: #fffdf8;
  --text: #14201f;
  --muted: #63706c;
  --line: rgba(20, 32, 31, 0.16);
  --accent: #087e68;
  --accent-soft: #bde9db;
  --shadow: 0 24px 70px rgba(36, 50, 45, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 82% 8%, rgba(126, 231, 196, 0.32), transparent 30rem),
    linear-gradient(145deg, #f8f5ee 0%, var(--bg) 52%, #e9eee8 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  padding: 0.65rem 1rem;
  border-radius: 0.5rem;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 3rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 0.55rem;
  background: var(--text);
  color: var(--accent-soft);
  font-family: Georgia, serif;
  font-size: 1.2rem;
}

nav {
  display: flex;
  gap: 1.6rem;
  color: var(--muted);
  font-size: 0.84rem;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: var(--accent);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.75fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: end;
  min-height: 72vh;
  padding-block: clamp(5rem, 12vw, 10rem);
}

.eyebrow {
  margin: 0 0 1.4rem;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 14ch;
  margin-bottom: 1.7rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.lede {
  max-width: 38rem;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  align-items: center;
}

.button {
  display: inline-flex;
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  background: var(--accent);
}

.text-link {
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: none;
}

.signal-card {
  padding: 1.45rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.signal-topline {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.4rem;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.signal-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #32b381;
  box-shadow: 0 0 0 5px rgba(50, 179, 129, 0.13);
}

.signal-card ol {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.signal-card li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.8rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.signal-card li > span {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
}

.signal-card strong {
  display: block;
  margin-bottom: 0.18rem;
  font-size: 0.92rem;
}

.signal-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.section-grid {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 4rem;
  padding-block: 6rem;
  border-top: 1px solid var(--line);
}

.section-heading h2 {
  max-width: 13ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.feature-card {
  min-height: 230px;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
}

.feature-card-large {
  grid-column: 1 / -1;
  min-height: 300px;
  background: var(--text);
  color: #f3f4ed;
}

.card-index {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-card h3 {
  max-width: 24ch;
  margin-top: 2.5rem;
  margin-bottom: 0.8rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.feature-card p {
  max-width: 46rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.feature-card-large p {
  max-width: 35rem;
  color: #aebbb7;
}

.diagram {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  margin-top: 2.4rem;
  color: #9adbc8;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
}

.diagram span {
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(154, 219, 200, 0.3);
  border-radius: 0.35rem;
}

.diagram i {
  width: 2rem;
  height: 1px;
  background: rgba(154, 219, 200, 0.35);
}

.notes-section {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 4rem;
  padding-block: 6rem;
  border-top: 1px solid var(--line);
}

.note-list {
  border-bottom: 1px solid var(--line);
}

.note-list article {
  display: grid;
  grid-template-columns: 7rem 1fr 2rem;
  gap: 1.5rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
}

.note-list time {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
}

.note-list h3 {
  margin-bottom: 0.25rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 400;
}

.note-list p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.note-arrow {
  color: var(--accent);
}

.principles {
  padding-block: 6rem;
  border-top: 1px solid var(--line);
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.principle-grid p {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 2rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
}

@media (max-width: 800px) {
  .site-header,
  main,
  footer {
    width: min(100% - 2rem, 1180px);
  }

  nav {
    display: none;
  }

  .hero,
  .section-grid,
  .notes-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-block: 5rem;
  }

  .section-grid,
  .notes-section {
    gap: 2rem;
    padding-block: 4rem;
  }

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

@media (max-width: 540px) {
  h1 {
    font-size: clamp(2.9rem, 14vw, 4.2rem);
  }

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

  .feature-card-large {
    grid-column: auto;
  }

  .note-list article {
    grid-template-columns: 1fr 2rem;
  }

  .note-list time {
    grid-column: 1 / -1;
  }

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

  footer {
    flex-direction: column;
    gap: 0.4rem;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1211;
    --surface: rgba(28, 36, 34, 0.66);
    --surface-strong: #19201e;
    --text: #edf1eb;
    --muted: #94a39e;
    --line: rgba(221, 237, 230, 0.14);
    --accent: #71d9bc;
    --accent-soft: #c1f6e7;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  }

  body {
    background:
      radial-gradient(circle at 82% 8%, rgba(48, 130, 106, 0.16), transparent 30rem),
      linear-gradient(145deg, #111715 0%, var(--bg) 55%, #0c1413 100%);
  }

  .feature-card-large {
    background: #e7eee7;
    color: #111b18;
  }

  .feature-card-large p {
    color: #5c6b66;
  }

  .diagram {
    color: #087e68;
  }

  .diagram span {
    border-color: rgba(8, 126, 104, 0.35);
  }

  .diagram i {
    background: rgba(8, 126, 104, 0.35);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
