@font-face { font-family: "Unbounded"; src: url("fonts/Unbounded-Variable.ttf") format("truetype"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/Manrope-Variable.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }

:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --line: #e6e2d9;
  --ink: #141414;
  --ink-2: #6b6b6b;
  --gutter: 24px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0e0e0e; --surface: #1e1e1e; --line: #2a2a2a; --ink: #f7f5f0; --ink-2: #a8a59e; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 "Manrope", system-ui, sans-serif; }
a { color: inherit; text-underline-offset: 3px; }
img { max-width: 100%; }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 var(--gutter); }

header.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; }
.brand { font: 800 18px/1 "Unbounded", sans-serif; letter-spacing: 0.04em; text-decoration: none; white-space: nowrap; }
nav.top { white-space: nowrap; }
nav.top a { margin-left: 16px; font-weight: 600; font-size: 15px; text-decoration: none; }
nav.top a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: "Unbounded", sans-serif; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(34px, 8vw, 56px); font-weight: 800; margin: 40px 0 16px; }
h2 { font-size: clamp(22px, 4vw, 28px); font-weight: 700; margin: 64px 0 16px; }
h3 { font-size: 17px; font-weight: 700; margin: 0 0 6px; }
.lead { font-size: 20px; color: var(--ink-2); margin: 0 0 8px; max-width: 640px; }
.muted { color: var(--ink-2); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; }

.project { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 24px; }
.project-head { display: flex; gap: 16px; align-items: center; margin-bottom: 12px; }
.project-head img { width: 64px; height: 64px; border-radius: 14px; flex: none; }
.project-head h3 { font-size: 22px; margin: 0; }
.tag { display: inline-block; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); }
.project ul:not(.shots) { margin: 12px 0 0; padding-left: 20px; }
.project li { margin: 4px 0; }

.shots { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 20px 0 8px; margin: 0; list-style: none; }
.shots li { flex: none; scroll-snap-align: start; margin: 0; }
.shots figure { margin: 0; }
.shots img { display: block; width: 168px; height: auto; border-radius: 16px; border: 1px solid var(--line); }
.shots figcaption { font-size: 13px; color: var(--ink-2); margin-top: 6px; }

.links a { display: inline-block; margin: 16px 16px 0 0; font-weight: 700; }

dl.legal { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0; }
dl.legal dt { color: var(--ink-2); }
dl.legal dd { margin: 0; }

hr.lang { border: 0; border-top: 1px solid var(--line); margin: 80px 0 0; }
footer { border-top: 1px solid var(--line); margin-top: 64px; padding: 24px 0 40px; font-size: 14px; color: var(--ink-2); }
footer a { margin-right: 16px; }

@media (max-width: 480px) {
  body { font-size: 16px; }
  nav.top a { margin-left: 10px; font-size: 13px; }
  .project { padding: 18px; }
  .shots img { width: 144px; }
  dl.legal { grid-template-columns: 1fr; gap: 0; }
  dl.legal dd { margin-bottom: 8px; }
}
