/* Self-hosted OFL fonts. Licenses: /assets/fonts/*-OFL.txt */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/fraunces-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/source-sans-3-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/source-sans-3-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/source-sans-3-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #12110e;
  --surface: #1c1b16;
  --line: #34322c;
  --text: #f4f1e8;
  --muted: #b7b1a4;
  --accent: #eabe5d;
  --ink: #1a1408;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --display: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --measure: 65ch;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

::selection { background: var(--accent); color: var(--ink); }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

img { max-width: 100%; height: auto; }

p { margin: 0.6rem 0 0; }
p:first-child { margin-top: 0; }

h1, h2, h3 { font-weight: 560; line-height: 1.15; }

a { color: inherit; }

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  transform: translateY(-150%);
  background: var(--accent);
  color: var(--ink);
  padding: 0.45rem 0.7rem;
  z-index: 20;
  text-decoration: none;
}
.skip:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.wrap {
  width: min(72rem, calc(100% - 2rem));
  margin-inline: auto;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.8rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 48px;
  color: inherit;
  text-decoration: none;
}
.brand img { display: block; width: 48px; height: 48px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 600; letter-spacing: -0.01em; }
.brand-role { color: var(--muted); font-size: 0.95rem; }

.langs { display: flex; gap: 0.35rem; }
.langs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.6rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8125rem;
  text-decoration: none;
}
.langs a[aria-current="true"] {
  background: var(--accent);
  color: var(--ink);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 1.05rem;
  padding: 0.35rem 0 0.8rem;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
}
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] {
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--accent);
}

main {
  width: min(72rem, calc(100% - 2rem));
  margin-inline: auto;
  padding-bottom: 1rem;
}

:target { scroll-margin-top: 8rem; }

.hero {
  padding: 1.6rem 0 1.4rem;
}
@media (min-width: 60rem) {
  .hero { padding: 2.6rem 0 2rem; }
}

h1 { margin: 0; }
h1 .name {
  display: block;
  font-family: var(--display);
  font-weight: 560;
  font-size: clamp(2.7rem, 7vw, 4.8rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
}
h1 .role {
  display: block;
  margin-top: 0.55rem;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--muted);
}
main > h1 {
  margin-top: 0.35rem;
  font-family: var(--display);
  font-weight: 560;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  letter-spacing: -0.03em;
}

.lede {
  max-width: 42rem;
  margin-top: 1rem;
  font-size: 1.2rem;
  line-height: 1.55;
}

.actions, .more {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  margin-top: 1.15rem;
}
.more a { text-decoration-thickness: 1px; text-underline-offset: 0.18em; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.4rem 1rem;
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.button:hover { background: #efce86; }
.button.ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
}
.button.ghost:hover {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--text);
}

.spec-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  padding: 0.95rem 1.05rem 1.1rem;
}
.spec, .facts {
  display: grid;
  grid-template-columns: minmax(6.5rem, max-content) minmax(0, 1fr);
  gap: 0.55rem 1rem;
  margin: 0.7rem 0 0;
}
.facts { margin-top: 0.4rem; max-width: 46rem; }
.spec dt, .facts dt, .kicker {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
}
.spec dt, .facts dt { color: var(--muted); }
.spec dd, .facts dd { margin: 0; text-wrap: pretty; }
@media (max-width: 47.99rem) {
  .spec, .facts { grid-template-columns: 1fr; gap: 0.15rem; }
  .spec dt, .facts dt { margin-top: 0.75rem; }
}
.facts a { text-underline-offset: 0.18em; }

.toc {
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.toc ol, .crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--text); }
.crumbs {
  gap: 0.3rem 0.45rem;
  margin-top: 1.2rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--muted);
}
.crumbs a { color: var(--muted); }
.crumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.45rem;
}

.block {
  padding: 2.1rem 0;
  border-top: 1px solid var(--line);
}
.block.tight { padding: 1.35rem 0; }
.block > h2 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-weight: 560;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  letter-spacing: -0.02em;
}

.measure { max-width: var(--measure); }

.service {
  display: grid;
  gap: 0.25rem 1.25rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}
.service:first-of-type { border-top: 0; padding-top: 0.2rem; }
@media (min-width: 48rem) {
  .service { grid-template-columns: 3.25rem minmax(0, 1fr); }
}
.service h2, .service h3,
.stack h2, .stack h3,
.work-card h2, .work-card h3 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0;
  line-height: 1.3;
}
.service p { max-width: var(--measure); margin: 0.4rem 0 0; }
.tool-line .kicker { display: block; margin-bottom: 0.12rem; }

.stack h2, .stack h3 { margin-top: 1.35rem; }
.gear { max-width: var(--measure); padding-left: 1.15rem; }
.gear li + li { margin-top: 0.55rem; }

.works {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}
@media (min-width: 48rem) {
  .works { grid-template-columns: 1fr 1fr; }
}
.work-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  padding-bottom: 1rem;
}
.work-card img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 0.85rem; }
.work-card h2, .work-card h3, .work-card p, .work-card .todo-flag { margin-left: 1rem; margin-right: 1rem; }

.reels {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 1rem;
  max-width: 100%;
  overflow-x: clip;
}
.reels li {
  margin: 0;
  min-width: 0;
  max-width: 100%;
  min-height: 28rem;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}
@media (min-width: 40rem) {
  .reels { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 64rem) {
  .reels { grid-template-columns: 1fr 1fr 1fr; }
}
.reels .instagram-media {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  min-height: 28rem;
  background: var(--surface);
  border: 0 !important;
  box-shadow: none !important;
}
.reels .instagram-media a {
  color: var(--accent);
}
.reels iframe {
  max-width: 100%;
  display: block;
}
.fallback {
  margin-top: 0.85rem;
  color: var(--muted);
}
.gallery {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.9rem;
}
@media (min-width: 40rem) {
  .gallery { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 64rem) {
  .gallery { grid-template-columns: 1fr 1fr 1fr 1fr; }
}
.gallery figure { margin: 0; }
.gallery img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--surface); }
.gallery figcaption {
  margin-top: 0.4rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--muted);
}

.todo-flag {
  display: inline-block;
  margin: 0 0 0.4rem;
  padding: 0.08rem 0.4rem;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}
figcaption .todo-flag { margin: 0 0.35rem 0 0; }

.placeholder {
  display: block;
  margin-top: 0.45rem;
  padding: 0.75rem 0.9rem;
  border: 1px dashed #6a6456;
  background: #221f18;
  color: var(--text);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 3rem;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 48rem) {
  .footer-grid { grid-template-columns: 1.4fr 0.8fr; }
}
.footer-name {
  margin: 0 0 0.3rem;
  color: var(--text);
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 560;
}
.site-footer a { text-underline-offset: 0.18em; }
.footer-notes { margin-top: 1.4rem; display: grid; gap: 0.75rem; }
.meta-line {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8125rem;
}

ul, ol { padding-left: 1.15rem; }
li + li { margin-top: 0.35rem; }

@media print {
  :root {
    --bg: #fff;
    --surface: #fff;
    --text: #16140f;
    --muted: #3c3830;
    --line: #c8c2b6;
    --accent: #6d4d08;
    --ink: #16140f;
  }
  .site-header { position: static; }
  .skip, .langs, .actions { display: none; }
  a { text-decoration: underline; }
  .button { box-shadow: inset 0 0 0 1px #16140f; }
}
