:root {
  --bg: #f6f2ea;
  --card: #fffdf8;
  --ink: #1f2f28;
  --muted: #5b6862;
  --line: #e3ddd0;
  --accent: #c8502a;
  --accent-ink: #ffffff;
  --radius: 14px;
  --wrap: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171c19;
    --card: #20271f;
    --ink: #ece8df;
    --muted: #a6afa9;
    --line: #333d36;
    --accent: #ec7a52;
    --accent-ink: #1a1a1a;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* header / footer */
.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand svg { width: 28px; height: 28px; }
.nav { display: flex; gap: 20px; font-size: 0.95rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.site-foot { border-top: 1px solid var(--line); margin-top: 72px; padding: 28px 0 40px; color: var(--muted); font-size: 0.9rem; }
.site-foot p { margin: 4px 0; }

/* type */
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 12px; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 8px; }
h3 { font-size: 1.15rem; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 40em; margin: 0 0 8px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; font-weight: 600; color: var(--accent); margin: 0 0 8px; }
.note { font-size: 0.9rem; color: var(--muted); }

.hero { padding-top: 64px; padding-bottom: 40px; }
section { padding: 32px 0; }

/* buttons */
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); padding: 11px 18px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn + .btn { margin-left: 8px; }

/* project cards (home) */
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.project { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; color: var(--ink); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.project:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.project .thumb { aspect-ratio: 16 / 10; background: #efe9dd; overflow: hidden; }
.project .thumb img { width: 100%; height: 100%; object-fit: contain; }
.project .thumb.dark { background: #1f2f28; }
.project .body { padding: 18px 20px 22px; }
.project .body p { margin: 0 0 12px; color: var(--muted); }
.tag { display: inline-block; font-size: 0.78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.project.soon { border-style: dashed; justify-content: center; }
.project.soon .body { padding: 28px; }

/* galleries */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
figure { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
figure img { width: 100%; background: #f7f3ea; }
figcaption { padding: 12px 16px 16px; }
figcaption strong { display: block; font-size: 1.05rem; }
figcaption span { color: var(--muted); font-size: 0.9rem; }
.pair { display: grid; grid-template-columns: 1fr 1fr; }
.pair img { height: 100%; object-fit: cover; }
.wide { grid-column: 1 / -1; }
.wide img { width: 100%; }

.steps { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); counter-reset: s; padding: 0; list-style: none; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.steps li::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; margin-bottom: 8px; }
.steps li p { margin: 4px 0 0; color: var(--muted); }

.callout { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.callout h2 { margin-top: 0; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-top: 40px; padding-bottom: 24px; }
  .nav { gap: 14px; }
  .btn + .btn { margin-left: 0; margin-top: 8px; }
}
