/* measurement.works — a personal site. Paper, indigo ink, one vermilion mark. */
:root {
  --paper: #f1ebdd;
  --line: #cfc3ab;
  --ink: #1f2a44;
  --ink-2: #33405c;
  --muted: #5a5f6e;
  --accent: #23456b;
  --seal: #b4462f;
  --tint: #e2e7e8;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #22302b;
    --line: #5d7369;
    --ink: #eee9dd;
    --ink-2: #d9d4c8;
    --muted: #b9c3bc;
    --accent: #9dbbdd;
    --seal: #ee8c70;
    --tint: #2c4048;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 15px/24px var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent);
}
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--seal); outline-offset: 2px; border-radius: 2px; }

/* ---------- header and footer ---------- */
.site-header, .site-footer {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding-left: clamp(20px, 5vw, 40px);
  padding-right: clamp(20px, 5vw, 40px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
}
.site-header { padding-top: 16px; padding-bottom: 16px; }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 0;
  font: 500 22px/1 var(--serif);
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 2px;
  background: var(--seal);
  transform: rotate(4deg);
}
.site-nav a { display: inline-block; padding: 12px 0; font-weight: 600; font-size: 14px; color: var(--ink); }
.site-footer {
  margin-top: auto;
  padding-top: 20px;
  padding-bottom: 32px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.site-footer a { display: inline-block; padding: 10px 0; font-weight: 600; }

/* ---------- shared column ---------- */
.column {
  width: 100%;
  max-width: 720px; /* 640 of text plus the side padding */
  margin: 0 auto;
  padding: clamp(36px, 7vw, 80px) clamp(20px, 5vw, 40px) 72px;
}
.label {
  margin: 0;
  font: 700 11px/16px var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.meta { margin: 0; font-size: 14px; font-weight: 500; color: var(--muted); }

/* ---------- home ---------- */
.band-wrap { width: 100%; max-width: 960px; margin: 0 auto; padding: 12px clamp(20px, 5vw, 40px) 0; }
.band { position: relative; height: clamp(180px, 24vw, 260px); border-radius: 12px; background: #c9d8d3; overflow: hidden; }
.band span { position: absolute; display: block; }
.band .sun { right: 14%; top: 16%; width: clamp(56px, 8vw, 84px); aspect-ratio: 1; border-radius: 50%; background: #e0a84a; }
.band .hill-far { left: 30%; right: -20%; bottom: -62%; height: 130%; border-radius: 50%; background: #9db3c8; }
.band .hill-mid { left: -24%; right: 34%; bottom: -74%; height: 140%; border-radius: 50%; background: #9db58c; }
.band .hill-near { left: -10%; right: -10%; bottom: -84%; height: 110%; border-radius: 50%; background: #23456b; }
.band .mark { left: 22%; bottom: 38%; width: 14px; height: 14px; border-radius: 2px; background: #b4462f; transform: rotate(4deg); }

.home { padding-top: clamp(36px, 6vw, 56px); display: flex; flex-direction: column; gap: 56px; }
.hello h1 { margin: 0 0 12px; font: 500 clamp(36px, 6vw, 52px)/1.05 var(--serif); letter-spacing: -0.02em; text-wrap: balance; }
.hello p { margin: 0; font: 400 clamp(20px, 2.6vw, 24px)/1.45 var(--serif); color: var(--ink-2); }

.posts { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--line); }
.posts li { border-bottom: 1px solid var(--line); }
.post-link { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: flex-start; padding: 28px 0 30px; color: var(--ink); text-decoration: none; }
.post-text { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.post-title { font: 500 clamp(28px, 4.4vw, 36px)/1.1 var(--serif); letter-spacing: -0.015em; }
.post-summary { font: 400 19px/29px var(--serif); color: var(--ink-2); }
.post-more { padding-top: 4px; font-weight: 600; font-size: 14px; color: var(--accent); }
.post-link:hover .post-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

.thumb { position: relative; flex: none; width: 116px; height: 116px; border-radius: 8px; background: #e2e7e8; overflow: hidden; }
.thumb span { position: absolute; display: block; }
.thumb .ring-1 { right: -22px; top: -22px; width: 104px; height: 104px; border-radius: 50%; background: #23456b; }
.thumb .ring-2 { right: -2px; top: -2px; width: 64px; height: 64px; border-radius: 50%; background: #f9f5ec; }
.thumb .ring-3 { right: 16px; top: 16px; width: 28px; height: 28px; border-radius: 50%; background: #9db3c8; }
.thumb .stone { left: 14px; bottom: 14px; width: 34px; height: 24px; border-radius: 12px; background: #5a5f6e; }
.thumb .handle { left: 22px; bottom: 34px; width: 18px; height: 7px; border-radius: 3px; background: #b4462f; }

/* ---------- post ---------- */
.post { display: flex; flex-direction: column; gap: 48px; }
.post-head { display: flex; flex-direction: column; gap: 18px; }
.post-head h1 { margin: 0; font: 500 clamp(40px, 7vw, 60px)/1.04 var(--serif); letter-spacing: -0.02em; text-wrap: balance; }
.post-head .deck { margin: 0; font: 400 clamp(20px, 2.6vw, 24px)/1.45 var(--serif); color: var(--ink-2); }

.prose { font: 400 20px/32px var(--serif); }
.prose > * { margin: 0; }
.prose > * + * { margin-top: 18px; }
.prose > h2 { margin-top: 44px; font: 500 29px/1.2 var(--serif); letter-spacing: -0.005em; text-wrap: balance; }
.prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--muted); }
@media (max-width: 520px) {
  .prose { font-size: 19px; line-height: 30px; }
  .prose > h2 { font-size: 26px; }
}

.sources { border-top: 1px solid var(--line); padding-top: 24px; }
.sources ul { list-style: none; margin: 10px 0 0; padding: 0; }
.sources li { padding: 8px 0; color: var(--ink-2); }
.post-foot { border-top: 1px solid var(--line); padding-top: 24px; }
.post-foot a { display: inline-block; padding: 12px 0; font-weight: 600; font-size: 14px; }
