
:root {
  --paper: #f4f3ee;
  --ink: #050505;
  --muted: #5f5d56;
  --soft: #dedbd0;
  --card: #fbfaf6;
  --accent: #111111;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(5,5,5,.04) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(rgba(5,5,5,.03) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: inherit; }
.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.topbar { border-bottom: 2px solid var(--ink); background: rgba(244,243,238,.92); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(12px); }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 62px; gap: 20px; }
.brand { font-weight: 800; letter-spacing: -.04em; text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; color: var(--muted); }
nav a { text-decoration: none; }
nav a[aria-current="page"], nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.hero { padding: 72px 0 44px; border-bottom: 2px solid var(--ink); }
.hero.compact { padding: 48px 0 34px; }
.eyebrow { font: 700 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
h1 { margin: 14px 0 10px; font-size: clamp(44px, 8vw, 96px); line-height: .92; letter-spacing: -.07em; }
.hero.compact h1 { font-size: clamp(40px, 6vw, 76px); }
.subtitle { max-width: 820px; font-size: clamp(19px, 2.4vw, 28px); color: #222; margin: 0; }
.meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.pill { border: 1.5px solid var(--ink); border-radius: 999px; padding: 8px 12px; background: var(--card); font-size: 14px; }
main { padding: 34px 0 72px; }
.grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 22px; align-items: start; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
section, .card { background: rgba(251,250,246,.88); border: 2px solid var(--ink); border-radius: 18px; padding: 24px; box-shadow: 8px 8px 0 #050505; }
section { margin-bottom: 22px; }
h2 { margin: 0 0 16px; font-size: 24px; letter-spacing: -.04em; }
h3 { margin: 0 0 5px; font-size: 18px; }
.item { padding: 16px 0; border-top: 1px solid rgba(5,5,5,.18); }
.item:first-of-type { border-top: 0; padding-top: 0; }
.item p { margin: 8px 0 0; color: #2f2e2b; }
.item-meta { color: var(--muted); font-size: 14px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
ul { margin: 10px 0 0; padding-left: 20px; }
.skills { display: flex; flex-wrap: wrap; gap: 10px; }
.skill { background: #111; color: #f4f3ee; border-radius: 10px; padding: 8px 10px; font-size: 14px; }
.note { border-left: 5px solid var(--ink); padding-left: 16px; color: #2f2e2b; }
.page-menu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 28px; }
.page-card { display:block; text-decoration:none; background: rgba(251,250,246,.9); border: 2px solid var(--ink); border-radius: 18px; padding: 22px; box-shadow: 8px 8px 0 #050505; min-height: 150px; }
.page-card strong { display:block; font-size: 22px; letter-spacing: -.04em; margin-bottom: 10px; }
.page-card span { color: #302f2b; }
.page-card:hover { transform: translate(-2px, -2px); box-shadow: 10px 10px 0 #050505; }
.actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:22px; }
.button { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:0 16px; border:2px solid var(--ink); border-radius:999px; color:inherit; text-decoration:none; font-weight:750; background:var(--card); }
.button.primary { background:#050505; color:#f4f3ee; }
footer { padding: 28px 0; border-top: 2px solid var(--ink); color: var(--muted); font-size: 14px; }
@media (max-width: 780px) { .grid, .card-grid, .page-menu { grid-template-columns: 1fr; } nav { gap: 10px; font-size: 13px; } section, .card, .page-card { box-shadow: 5px 5px 0 #050505; } .topbar .wrap { align-items:flex-start; flex-direction:column; padding:12px 0; } }
@media print { .topbar { position: static; } body { background: white; } section, .card, .page-card { box-shadow: none; break-inside: avoid; } }
