:root {
  color-scheme: light;
  --ink: #182022;
  --muted: #667274;
  --line: #dfe5e2;
  --paper: #fbfaf6;
  --panel: #ffffff;
  --accent: #1f6f68;
  --accent-dark: #184f54;
  --warm: #c8743d;
  --soft: #edf4ef;
  --shadow: 0 20px 60px rgba(32, 45, 48, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

.site-header,
.site-footer,
main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 9px;
  background: var(--accent-dark);
  color: #fffaf0;
  font-weight: 820;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

.top-nav a {
  border-radius: 7px;
  padding: 8px 12px;
}

.top-nav a:hover {
  background: var(--soft);
  color: var(--ink);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
  gap: 56px;
  align-items: center;
  padding: 70px 0 74px;
}

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

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.7rem, 8vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.lede {
  max-width: 590px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.desk-visual {
  position: relative;
  min-height: 420px;
  margin: 0;
}

.visual-window,
.visual-note {
  position: absolute;
  border: 1px solid rgba(24, 32, 34, 0.09);
  box-shadow: var(--shadow);
}

.visual-window {
  inset: 32px 0 auto 28px;
  min-height: 250px;
  border-radius: 8px;
  background: #203033;
  overflow: hidden;
}

.window-bar {
  display: flex;
  gap: 7px;
  padding: 15px 18px;
  background: #172426;
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d7ddda;
  opacity: 0.75;
}

.window-bar span:first-child {
  background: var(--warm);
}

.terminal-lines {
  display: grid;
  gap: 18px;
  padding: 34px 28px 44px;
}

.terminal-lines i {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: #b6d7ce;
}

.terminal-lines i:nth-child(1) {
  width: 72%;
}

.terminal-lines i:nth-child(2) {
  width: 54%;
  background: #e7d3b0;
}

.terminal-lines i:nth-child(3) {
  width: 82%;
}

.terminal-lines i:nth-child(4) {
  width: 42%;
  background: #e0b08b;
}

.visual-note {
  right: 28px;
  bottom: 12px;
  display: grid;
  gap: 9px;
  width: 210px;
  border-radius: 8px;
  padding: 22px;
  background: #fff8e6;
  transform: rotate(-2deg);
}

.visual-note strong {
  font-size: 1.05rem;
}

.visual-note span {
  color: #6d5e42;
  font-size: 0.92rem;
}

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

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

h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.note-card {
  min-height: 238px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--panel);
}

.note-card time {
  display: block;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.84rem;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  line-height: 1.22;
  letter-spacing: 0;
}

.note-card p,
.about p {
  color: var(--muted);
}

.two-column {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.reference-list {
  display: grid;
  gap: 18px;
}

.reference-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 22px;
}

pre {
  margin: 0;
  overflow-x: auto;
  border-radius: 7px;
  background: #1b282b;
  color: #eef6ef;
  padding: 18px;
  font-size: 0.9rem;
  line-height: 1.5;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 52px;
  align-items: start;
}

.about p {
  max-width: 620px;
  margin-bottom: 0;
  font-size: 1.02rem;
}

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

@media (max-width: 820px) {
  .site-header,
  .site-footer,
  main {
    width: min(100% - 28px, 1120px);
  }

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

  .top-nav {
    flex-wrap: wrap;
  }

  .intro,
  .two-column,
  .about {
    grid-template-columns: 1fr;
  }

  .intro {
    gap: 28px;
    padding: 42px 0 56px;
  }

  .desk-visual {
    min-height: 330px;
  }

  .visual-window {
    inset: 8px 0 auto 0;
  }

  .visual-note {
    right: 12px;
    bottom: 0;
  }

  .section-heading {
    display: block;
  }

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

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