:root {
  color-scheme: light dark;
  --background: #f7f8f8;
  --surface: #fcfdfd;
  --text: #1e2928;
  --muted: #526360;
  --line: #d8e0de;
  --accent: #11695f;
  --tint: #e7f1ee;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; background: var(--background); color: var(--text); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.page { width: min(1080px, calc(100% - 48px)); margin-inline: auto; }
header { display: flex; gap: 24px; justify-content: space-between; align-items: center; min-height: 76px; border-bottom: 1px solid var(--line); }
header a { font-size: 14px; }
.brand { color: var(--text); font-size: 17px; font-weight: 650; text-decoration: none; }
.brand span { font-weight: 400; color: var(--muted); }
.intro { padding: 56px 0 32px; }
h1 { font-size: clamp(30px, 4.5vw, 46px); letter-spacing: -.035em; line-height: 1.18; font-weight: 650; margin: 0 0 18px; }
.intro p { max-width: 58ch; color: var(--muted); margin: 0; font-size: 18px; }
section { margin: 24px 0 44px; }
h2 { font-size: 18px; font-weight: 600; margin: 0 0 20px; }
.projects { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
article { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.project-meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 12px; }
h3 { font-size: 22px; line-height: 1.3; letter-spacing: -.015em; margin: 12px 0; font-weight: 620; }
article p { color: var(--muted); font-size: 15px; margin: 0; }
.authors { font-size: 12px; margin-top: 14px; }
.documents { list-style: none; padding: 0; margin: 24px 0 20px; display: grid; gap: 12px; }
.documents li { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.pdf { display: inline-flex; gap: 12px; align-items: center; color: var(--accent); background: var(--tint); padding: 8px 12px; border-radius: 6px; text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; }
.pdf span { font-size: 10px; letter-spacing: .03em; }
.pdf:hover { outline: 1px solid var(--accent); }
.pdf:active { transform: translateY(1px); }
.file-detail { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.source { font-size: 12px; }
footer { border-top: 1px solid var(--line); padding: 24px 0 32px; color: var(--muted); font-size: 12px; }
.skip { position: absolute; left: 16px; top: -80px; background: var(--surface); padding: 10px 16px; }
.skip:focus { top: 12px; }
@media (max-width: 767px) {
  .page { width: calc(100% - 32px); }
  header { min-height: 68px; gap: 12px; }
  header a { font-size: 12px; }
  .brand { font-size: 15px; }
  .intro { padding: 36px 0 20px; }
  .intro p { font-size: 16px; }
  .projects { grid-template-columns: 1fr; }
  article { padding: 22px; }
}
@media (prefers-color-scheme: dark) {
  :root { --background: #141c1b; --surface: #1b2523; --text: #edf4f1; --muted: #b2c3bc; --line: #384944; --accent: #8fd4bc; --tint: #263b33; }
}
