:root {
  --bg: #16130f;
  --bg-alt: #1e1a15;
  --card: #241f19;
  --line: #3a3229;
  --text: #f1e9de;
  --muted: #c2b5a4;
  --ember: #f08a4b;
  --ember-strong: #ffa36b;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ember-strong); }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--ember-strong); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); letter-spacing: -.01em; max-width: 18ch; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ember); color: #16130f; padding: 8px 12px; border-radius: 6px; }
.skip:focus { left: 8px; z-index: 10; }

.site-header { position: sticky; top: 0; z-index: 5; background: rgba(22, 19, 15, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.mark { width: 30px; height: 30px; color: var(--text); }
nav { display: flex; gap: 4px; flex-wrap: wrap; }
nav a { color: var(--muted); text-decoration: none; padding: 8px 10px; border-radius: 6px; font-size: .95rem; }
nav a:hover { color: var(--text); }
nav .nav-cta { color: var(--ember-strong); }
@media (max-width: 520px) { nav a:not(.nav-cta) { display: none; } }

.hero { padding: clamp(64px, 12vw, 128px) 0 clamp(56px, 9vw, 96px); background: radial-gradient(ellipse 70% 60% at 85% 110%, rgba(240, 138, 75, .18), transparent 70%); border-bottom: 1px solid var(--line); }
.eyebrow { color: var(--ember-strong); font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.btn { display: inline-block; padding: 12px 22px; border-radius: 8px; font-weight: 600; text-decoration: none; transition: background .15s, color .15s; overflow-wrap: anywhere; }
.btn.primary { background: var(--ember); color: #16130f; }
.btn.primary:hover { background: var(--ember-strong); }
.btn.ghost { border: 1px solid var(--line); color: var(--text); }
.btn.ghost:hover { border-color: var(--muted); }

.section { padding: clamp(56px, 9vw, 96px) 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-lede { color: var(--muted); max-width: 62ch; margin-bottom: 36px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.card h3 { color: var(--ember-strong); }
.card p { color: var(--muted); margin: 0; }

.work { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.work li { border-left: 3px solid var(--ember); padding-left: 20px; }
.work p { color: var(--muted); margin: 0; }
.work .tag { color: var(--ember-strong); font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }

.about { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); align-items: start; }
.about p { color: var(--muted); }
.about strong { color: var(--text); }
.stack { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 24px; }
.stack div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.stack div:last-child { border-bottom: 0; }
.stack dt { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ember-strong); }
.stack dd { margin: 2px 0 0; }

.contact { text-align: center; background: radial-gradient(ellipse 60% 70% at 50% 100%, rgba(240, 138, 75, .16), transparent 70%); }
.contact .section-lede { margin-left: auto; margin-right: auto; }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .9rem; }
.site-footer p { margin: 0; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
