:root {
  --bg: #f4f1ea;
  --paper: #fffaf0;
  --text: #171717;
  --muted: #6b645c;
  --line: #ded6c9;
  --accent: #284b63;
  color-scheme: light;
  font-family: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }

.topbar {
  width: min(880px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 20px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  color: var(--text);
  text-decoration: none;
  font: 700 22px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: -0.04em;
}

nav { display: flex; flex-wrap: wrap; gap: 16px; font-size: 15px; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--text); }

.layout {
  width: min(880px, calc(100% - 32px));
  margin: 0 auto;
  padding: 74px 0 56px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
}

.intro { position: sticky; top: 28px; align-self: start; }
.kicker {
  margin: 0 0 14px;
  color: var(--muted);
  font: 600 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

h1, h2 { margin: 0; font-weight: 500; letter-spacing: -0.03em; }
h1 { font-size: clamp(36px, 7vw, 66px); line-height: 0.98; }
h2 { font-size: 24px; line-height: 1.15; }
p, li { color: var(--muted); font-size: 18px; line-height: 1.72; }

.intro p { margin-top: 28px; }

.note-list { display: grid; gap: 18px; }
.note-list article {
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
}
.note-list time {
  display: block;
  margin-bottom: 18px;
  color: var(--muted);
  font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.note-list p { margin-bottom: 0; }

.article {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 74px 0 80px;
}
.article.small { width: min(620px, calc(100% - 32px)); }
.article h1 { margin-bottom: 30px; }
.article ol { padding-left: 24px; }
.article blockquote {
  margin: 34px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--accent);
  background: rgba(255, 250, 240, 0.58);
  color: var(--text);
  font-size: 22px;
}

.footer {
  width: min(880px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 38px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 14px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (max-width: 760px) {
  .topbar, .footer { flex-direction: column; }
  .layout { grid-template-columns: 1fr; padding-top: 48px; gap: 36px; }
  .intro { position: static; }
}
