:root {
  color-scheme: dark;
  --background: #101313;
  --surface: #181d1d;
  --surface-hover: #202727;
  --text: #e8eee8;
  --muted: #9daaa3;
  --line: #303a37;
  --accent: #c3f56b;
  --accent-muted: #9ebd63;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 75% 0%, rgba(104, 139, 90, 0.13), transparent 32rem),
    var(--background);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.topbar {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 1.4rem 2rem;
}

.brand {
  color: var(--text);
  font-family: "DM Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.navigation {
  display: flex;
  gap: 1.75rem;
}

.navigation a,
.section-label,
.note-meta,
footer,
.eyebrow {
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.navigation a {
  text-decoration: none;
  transition: color 180ms ease;
}

.navigation a:hover,
.navigation a:focus-visible {
  color: var(--accent);
}

main {
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 0 2rem;
}

.hero {
  min-height: 37rem;
  padding: 9rem 0 7rem;
}

.eyebrow {
  margin: 0 0 2rem;
}

.eyebrow span {
  color: var(--accent);
  padding: 0 0.3rem;
}

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

h1 {
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  letter-spacing: -0.08em;
  line-height: 0.98;
  margin-bottom: 2rem;
  max-width: 900px;
}

h1 em {
  color: var(--accent);
  font-style: normal;
}

.intro {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 29rem;
}

.text-link {
  align-items: center;
  color: var(--accent);
  display: inline-flex;
  font-size: 0.88rem;
  gap: 0.6rem;
  margin-top: 1.5rem;
  text-decoration: none;
}

.text-link span {
  font-size: 1.1rem;
  transition: transform 180ms ease;
}

.text-link:hover span,
.text-link:focus-visible span {
  transform: translate(0.2rem, -0.2rem);
}

.content-grid {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(9rem, 1fr) 2fr;
  padding: 5rem 0;
}

.section-label {
  display: flex;
  gap: 1rem;
}

.section-label span:first-child,
.note-meta {
  color: var(--accent-muted);
}

.section-copy {
  max-width: 34rem;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  letter-spacing: -0.05em;
  line-height: 1.1;
}

.section-copy p,
.contact-section p,
.note-card p:last-of-type {
  color: var(--muted);
}

.notes-section {
  padding-top: 0;
}

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

.note-card {
  background: var(--surface);
  border: 1px solid transparent;
  min-height: 17rem;
  padding: 1.75rem;
  transition: background 180ms ease, border-color 180ms ease;
}

.note-card:hover {
  background: var(--surface-hover);
  border-color: var(--line);
}

.note-card h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
}

.note-card p:last-of-type {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.contact-section {
  border-top: 1px solid var(--line);
  padding: 7rem 0 8rem;
}

.contact-section h2 {
  margin-bottom: 1rem;
}

.contact-section p:not(.eyebrow) {
  color: var(--muted);
}

footer {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 1.4rem 2rem 2rem;
}

@media (max-width: 650px) {
  .topbar,
  main,
  footer {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .navigation {
    gap: 0.8rem;
  }

  .navigation a {
    font-size: 0.6rem;
  }

  .hero {
    min-height: auto;
    padding: 7rem 0 6rem;
  }

  .content-grid,
  .notes-list {
    grid-template-columns: 1fr;
  }

  .content-grid {
    gap: 2rem;
    padding: 3.5rem 0;
  }

  .section-label {
    gap: 0.7rem;
  }

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

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