:root {
  color-scheme: light;
  --paper: #f4f1ea;
  --ink: #171714;
  --muted: #68665f;
  --line: #cbc5b8;
  --accent: #e6532f;
  --max: 1160px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(23, 23, 20, .035) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 5rem;
  font-family: ui-serif, "Songti SC", "Noto Serif CJK SC", Georgia, serif;
  line-height: 1.7;
}

a { color: inherit; }

.site-header,
main,
footer {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

.site-header {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ink);
}

.brand {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-decoration: none;
}

.dot { color: var(--accent); }

nav { display: flex; gap: 2rem; }

nav a {
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: .82rem;
  text-decoration: none;
}

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

.hero {
  min-height: 680px;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 360px);
  grid-template-rows: auto 1fr auto;
  gap: 2rem 5rem;
  padding: 6rem 0 4rem;
  border-bottom: 1px solid var(--ink);
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
}

.hero h1 {
  grid-column: 1 / -1;
  align-self: center;
  max-width: 1000px;
  margin: 0;
  font-size: clamp(3.6rem, 9.5vw, 8.4rem);
  font-weight: 400;
  letter-spacing: -.07em;
  line-height: .98;
}

.hero h1 em {
  color: var(--accent);
  font-weight: 400;
}

.intro {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.read-link {
  grid-column: 1;
  grid-row: 3;
  align-self: end;
  width: max-content;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
}

.read-link span { color: var(--accent); }

.notes { padding: 7rem 0 8rem; }

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.section-heading h2 {
  margin: 0;
  font-size: 1rem;
  font-family: ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .08em;
}

.section-heading span {
  color: var(--muted);
  font-family: ui-monospace, monospace;
  font-size: .72rem;
}

.note {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 3fr;
  gap: 4rem;
  padding: 3.5rem 0 4.5rem;
  border-bottom: 1px solid var(--ink);
}

.note-meta {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: .76rem;
}

.note-body { max-width: 720px; }

.note-body h3 {
  margin: -.2rem 0 1.6rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: 1.15;
}

.note-body p {
  margin: 0 0 1.1rem;
  color: #34332f;
  font-size: 1.05rem;
}

.about {
  margin-bottom: 8rem;
  padding: 4rem;
  color: var(--paper);
  background: var(--ink);
}

.about h2 {
  margin: 2.5rem 0 1rem;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 400;
  letter-spacing: -.05em;
  line-height: 1;
}

.about > p:last-child {
  max-width: 580px;
  margin: 2rem 0 0 auto;
  color: #c7c3b9;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--ink);
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: .72rem;
}

@media (max-width: 720px) {
  .site-header,
  main,
  footer { width: min(calc(100% - 32px), var(--max)); }

  .site-header { min-height: 80px; }
  nav { gap: 1.2rem; }

  .hero {
    min-height: 620px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 4rem 0 3rem;
  }

  .hero h1 { margin: auto 0; }
  .intro { max-width: 460px; }

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

  .note-meta { flex-direction: row; gap: 1rem; }
  .about { padding: 2rem; }
  footer { gap: 1rem; }
}

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