:root {
  color-scheme: light;
  --paper: #faf9f6;
  --ink: #252824;
  --muted: #686c65;
  --line: #dedfd7;
  --accent: #526b43;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; font-size: 15px; line-height: 1.75; word-break: keep-all; overflow-wrap: anywhere; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 2px; }
.page { width: min(920px, calc(100% - 80px)); margin: 0 auto; }
.masthead { padding: 70px 0 60px; }
h1 { margin: 0; font-size: 44px; font-weight: 650; line-height: 1.1; letter-spacing: -2.5px; }
h1 span { color: var(--accent); }
.masthead .era { margin: 22px 0 0; color: var(--accent); font-size: 14px; font-weight: 500; letter-spacing: .015em; }
.masthead .tagline { margin: 7px 0 0; color: var(--muted); font-size: 15px; letter-spacing: -.25px; }
section { margin-bottom: 64px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 15px; border-bottom: 1px solid var(--ink); }
h2 { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.section-heading > span, time { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
.project-list { padding: 0; margin: 0; list-style: none; }
.project { padding: 32px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.project.has-image { display: grid; grid-template-columns: minmax(0, 1fr) 200px; align-items: center; gap: 48px; }
.project-heading { display: flex; align-items: baseline; gap: 16px; }
h3 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.6px; line-height: 1.45; }
time { flex-shrink: 0; }
.project p { max-width: 570px; margin: 12px 0 16px; color: var(--muted); font-size: 14px; line-height: 1.85; }
.project-links { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 12px; }
.project-links a { min-height: 36px; display: inline-flex; align-items: center; gap: 8px; text-decoration: underline; text-decoration-color: #c5cabe; text-underline-offset: 5px; }
.project-links span { color: var(--accent); }
.preview { display: block; height: 150px; background: #eeeee8; border: 1px solid #e5e5dd; border-radius: 6px; padding: 8px; overflow: hidden; }
.preview img { display: block; width: 100%; height: 100%; object-fit: contain; }
footer { display: flex; justify-content: space-between; padding: 0 0 40px; color: var(--muted); font-size: 12px; }
.skip-link { position: absolute; left: 20px; top: -100px; padding: 10px; background: white; }
.skip-link:focus { top: 10px; }
@media (max-width: 600px) {
  .page { width: calc(100% - 40px); }
  .masthead { padding: 44px 0; }
  h1 { font-size: 38px; }
  section { margin-bottom: 44px; }
  .project { padding: 26px 0; }
  .project.has-image { grid-template-columns: 1fr; gap: 20px; }
  .project-heading { justify-content: space-between; gap: 12px; }
  h3 { font-size: 19px; }
  .preview { height: 200px; }
  .project-links a { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  body { background: white; }
  .page { width: 100%; }
  .masthead { padding: 20px 0; }
  .project { break-inside: avoid; }
  .skip-link, footer a { display: none; }
}
