:root {
  color-scheme: light;
  --paper: #f4f6f1;
  --surface: #e8ede5;
  --ink: #182019;
  --muted: #667069;
  --line: #cbd3cb;
  --accent: #285c3a;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.site-header {
  width: min(calc(100% - 40px), var(--max));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.site-name {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 28px;
}

nav a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

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

main {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.hero {
  min-height: min(720px, calc(100dvh - 72px));
  padding: 64px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
  align-items: center;
  gap: 72px;
}

.kicker {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

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

h1 {
  margin-bottom: 24px;
  font-size: clamp(42px, 5vw, 70px);
  line-height: 1.16;
  letter-spacing: -0.05em;
}

.hero-copy > p:last-child {
  max-width: 30em;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

figure {
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  background: var(--surface);
}

figure img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

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

.notes > header {
  margin-bottom: 44px;
}

h2 {
  margin-bottom: 8px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.notes > header p,
.about p {
  color: var(--muted);
}

.note-list article {
  padding: 30px 0;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 32px;
  border-bottom: 1px solid var(--line);
}

.note-list article:first-child {
  border-top: 1px solid var(--line);
}

time {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
}

h3 {
  margin-bottom: 8px;
  font-size: 21px;
  line-height: 1.45;
}

.note-list p {
  max-width: 48em;
  margin-bottom: 0;
  color: var(--muted);
}

.about {
  max-width: 720px;
  padding: 32px 0 104px;
}

.about p {
  margin-bottom: 0;
}

footer {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 30px 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

footer p {
  margin: 0;
}

footer a {
  color: var(--muted);
  text-underline-offset: 4px;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

@media (max-width: 820px) {
  .site-header {
    min-height: 64px;
  }

  nav {
    gap: 18px;
  }

  .hero {
    min-height: auto;
    padding: 48px 0 64px;
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .hero-copy {
    max-width: 640px;
  }

  .hero figure {
    order: -1;
  }

  .notes {
    padding: 68px 0;
  }
}

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

  .site-name {
    font-size: 14px;
  }

  nav a:first-child {
    display: none;
  }

  h1 {
    font-size: 40px;
  }

  .note-list article {
    grid-template-columns: 1fr;
    gap: 10px;
  }

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

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