:root {
  --bg: #f4f1ea;
  --surface: #ebe6db;
  --ink: #16150f;
  --muted: #6b665a;
  --line: #d3ccbc;
  --accent: #b5562b;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 5vw, 64px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14130f; --surface: #1d1c17; --ink: #efe9dc; --muted: #9b9484; --line: #33312a; --accent: #e07a45;
  }
}
:root[data-theme="dark"] {
  --bg: #14130f; --surface: #1d1c17; --ink: #efe9dc; --muted: #9b9484; --line: #33312a; --accent: #e07a45;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 10; }

.nav { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 24px; padding: 18px var(--gutter); background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.mark { font: 600 15px/1 var(--sans); letter-spacing: .2em; text-decoration: none; }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { text-decoration: none; font-size: 14px; color: var(--muted); }
.nav nav a:hover { color: var(--ink); }
.theme { background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 50%; width: 32px; height: 32px; cursor: pointer; }

.eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
h2 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; margin-top: 10px; }
h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 40em; margin-top: 22px; }
.lede strong { color: var(--ink); font-weight: 500; }

.hero { position: relative; padding: clamp(80px, 14vh, 160px) var(--gutter) clamp(64px, 10vh, 120px); overflow: hidden; }
.hero h1 { margin-top: 18px; line-height: .95; }
.hero .name { display: block; font-size: clamp(48px, 10vw, 136px); }
.hero .tag { display: block; font-size: clamp(26px, 4vw, 52px); color: var(--muted); margin-top: 14px; }
.hero em { color: var(--accent); }
/* perforated-metal motif: dots grow toward the right edge */
.perf { position: absolute; inset: 0 0 0 45%; pointer-events: none; opacity: .5;
  background-image: radial-gradient(circle, var(--line) 0 3px, transparent 3.5px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%);
          mask-image: linear-gradient(90deg, transparent, #000 70%); }
.hero > *:not(.perf) { position: relative; }

.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn { display: inline-block; padding: 13px 22px; border-radius: 999px; background: var(--ink); color: var(--bg); text-decoration: none; font-size: 15px; font-weight: 500; border: 1px solid var(--ink); transition: transform .15s; }
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--ink); }

.section { padding: clamp(64px, 10vh, 120px) var(--gutter); border-top: 1px solid var(--line); }
.section-head { margin-bottom: 44px; }
section[id] { scroll-margin-top: 64px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.card p { color: var(--muted); font-size: 15px; }
.card .meta { display: block; margin-top: 10px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.art { aspect-ratio: 4 / 3; border-radius: 6px; background-color: var(--surface); margin-bottom: 18px; border: 1px solid var(--line); }
.art-dots { background-image: radial-gradient(circle, var(--ink) 0 2px, transparent 2.5px), radial-gradient(circle, var(--ink) 0 4px, transparent 4.5px); background-size: 16px 16px, 28px 28px; background-position: 0 0, 8px 8px; -webkit-mask-image: linear-gradient(135deg, #000 10%, transparent 90%); mask-image: linear-gradient(135deg, #000 10%, transparent 90%); opacity: .85; }
.art-louver { background-image: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 24px); opacity: .8; }
.art-hex { background-image: radial-gradient(circle at 50% 50%, transparent 55%, var(--accent) 56% 60%, transparent 61%); background-size: 40px 46px; opacity: .9; }

.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 36px; }
.cols p { color: var(--muted); font-size: 15px; }
.skills { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 48px; }
.skills li { border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 13px; }

.contact { text-align: left; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 28px var(--gutter); border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* journal pages */
.article { max-width: 720px; margin: 0 auto; padding: clamp(56px, 10vh, 110px) 16px; }
.article h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.05; margin: 14px 0 24px; }
.article p, .article li { margin-bottom: 1em; }
.posts { list-style: none; padding: 0; margin-top: 32px; }
.posts li { border-top: 1px solid var(--line); padding: 20px 0; }
.posts a { text-decoration: none; font-family: var(--serif); font-size: 28px; }
.posts span { display: block; color: var(--muted); font-size: 14px; }

@media (max-width: 600px) {
  .nav nav { gap: 14px; }
  .nav nav a[href="#practice"] { display: none; }
  .perf { inset: 0 0 0 30%; opacity: .35; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
