/* konstantinosdroulias.com — one stylesheet. Square, black/white/grey, 1px hairlines. */

@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-normal.0ceb759015a6.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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-500-normal.767677e47513.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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-600-normal.e78568807d10.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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-ext-400-normal.0e2c71ca88ef.woff2") format("woff2"); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,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 Sans"; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-ext-500-normal.9e50dcc81c7e.woff2") format("woff2"); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,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 Sans"; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-ext-600-normal.4267dfb25bc2.woff2") format("woff2"); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,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 Sans"; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-greek-400-normal.a802921a1f01.woff2") format("woff2"); unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-greek-500-normal.032c507e8309.woff2") format("woff2"); unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-greek-600-normal.7242f0f74322.woff2") format("woff2"); unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-400-normal.4cc7b4398540.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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-500-normal.bc5ccab82723.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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-ext-400-normal.6ce02d71b5de.woff2") format("woff2"); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,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-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-ext-500-normal.9f0287818b76.woff2") format("woff2"); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* ---------- tokens: system scheme by default, <meta name="color-scheme"> pins an override ---------- */
:root {
  color-scheme: light dark;
  &:has(> head > meta[name="color-scheme"][content="dark"]) { color-scheme: dark; }
  &:has(> head > meta[name="color-scheme"][content="light"]) { color-scheme: light; }

  --bg: light-dark(#FFFFFF, #0A0A0A);
  --fg: light-dark(#0A0A0A, #F2F2F2);
  --muted: light-dark(#5E5E5E, #9A9A9A);
  --line: light-dark(#E6E6E6, #262626);
  --surface: light-dark(#F4F4F4, #161616);

  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1200px;
  --read: 720px;
  --gutter: 32px;
  --bar: 0px;
}
@media (max-width: 640px) { :root { --gutter: 16px; } }

*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; border-radius: 0; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
::selection { background: var(--fg); color: var(--bg); }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin: 0; text-wrap: balance; }
p { text-wrap: pretty; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--fg); color: var(--bg); padding: 12px 16px; text-decoration: none; }
.skip:focus { top: 8px; }

.label, .meta {
  font-family: var(--mono); font-size: 12px; font-weight: 400;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0;
}
.label--lg { font-size: 13px; }
.muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border: 1px solid var(--fg);
  font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap;
  background: transparent; color: var(--fg); transition: background-color .15s, color .15s;
}
.btn--solid { background: var(--fg); color: var(--bg); }
.btn--solid:hover { background: color-mix(in srgb, var(--fg) 82%, var(--bg)); }
.btn:not(.btn--solid):hover { background: var(--surface); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; font-weight: 500; text-decoration: none; }
.link-arrow svg { width: 16px; height: 16px; transition: translate .15s; }
.link-arrow:hover svg { translate: 3px 0; }
.icon-btn {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: transparent; color: var(--fg); padding: 0; cursor: pointer; text-decoration: none;
}
.icon-btn:hover { background: var(--surface); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-row { display: flex; }
.icon-row > * + * { border-left: none; }
.chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--line); color: var(--fg); text-decoration: none; background: transparent;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
}
a.chip:hover { border-color: var(--fg); }
.chip[aria-current="page"], .chip.is-on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip--sm { min-height: 36px; padding: 0 14px; }

/* ---------- admin bar (signed-in staff only) ---------- */
.adminbar {
  position: sticky; top: 0; z-index: 60; height: 44px;
  background: #0A0A0A; color: #F2F2F2; border-bottom: 1px solid #262626;
  font-size: 13px;
}
.adminbar__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.adminbar__group { display: flex; align-items: center; height: 100%; min-width: 0; }
.adminbar a, .adminbar button {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px;
  color: #F2F2F2; text-decoration: none; background: none; border: 0; cursor: pointer; white-space: nowrap;
}
.adminbar a:hover, .adminbar button:hover { background: #1E1E1E; }
.adminbar__group:first-child > :first-child { margin-left: -14px; }
.adminbar__group:last-child > :last-child { margin-right: -14px; }
.adminbar svg { width: 15px; height: 15px; flex: none; }
.adminbar__edit { background: #F2F2F2 !important; color: #0A0A0A !important; font-weight: 500; }
.adminbar__edit:hover { background: #FFFFFF !important; }
.adminbar__me img { width: 28px; height: 28px; object-fit: cover; background: #262626; }
.adminbar__state { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #9A9A9A; padding: 0 14px; }
body:has(.adminbar) { --bar: 44px; }
@media (max-width: 640px) { .adminbar .hide-sm { display: none; } }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: relative; z-index: 20; }
.site-header__in { min-height: 80px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 12px; }
.logo { font-size: 15px; font-weight: 500; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 24px; }
.nav ul { display: flex; flex-wrap: wrap; gap: 0 24px; list-style: none; margin: 0; padding: 0; }
.nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--fg); }
.nav a[aria-current="page"] { color: var(--fg); font-weight: 500; }
.nav a[aria-current="page"]::before { content: ""; width: 6px; height: 6px; background: var(--fg); }
.theme-toggle .i-sun { display: none; }
:root:has(meta[name="color-scheme"][content="dark"]) .theme-toggle .i-sun { display: block; }
:root:has(meta[name="color-scheme"][content="dark"]) .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:has(meta[name="color-scheme"][content="light dark"]) .theme-toggle .i-sun { display: block; }
  :root:has(meta[name="color-scheme"][content="light dark"]) .theme-toggle .i-moon { display: none; }
}
@media (max-width: 640px) {
  .site-header__in { padding-block: 8px; }
  .nav { display: contents; }
  .nav .theme-toggle { order: 1; }
  .nav ul { order: 2; width: 100%; justify-content: space-between; gap: 0 12px; }
}

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer__in { padding-block: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; font-size: 14px; color: var(--muted); }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 0 24px; list-style: none; margin: 0; padding: 0; }
.site-footer a { color: var(--muted); text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.site-footer a:hover { color: var(--fg); }
.site-footer .to-top { color: var(--fg); font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- hero (home + about) ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 64px; padding-block: 96px; align-items: stretch; }
.hero__copy { display: flex; flex-direction: column; justify-content: center; gap: 32px; }
.hero h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.04; letter-spacing: -0.03em; max-width: 620px; }
.hero .lead { margin: 0; font-size: 18px; line-height: 1.65; color: var(--muted); max-width: 540px; }
.hero .lead + .lead { margin-top: -16px; }
.findme { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.photo { margin: 0; display: flex; flex-direction: column; }
.photo__frame {
  height: 540px; background: var(--surface); border: 1px solid var(--line); overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
}
.photo__frame img { width: 88%; height: 94%; object-fit: contain; object-position: bottom center; }
.photo figcaption {
  display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px;
  border: 1px solid var(--line); border-top: 0;
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding-block: 56px; }
  .photo__frame { height: min(480px, 110vw); }
}

/* ---------- info strip ---------- */
.strip { border-block: 1px solid var(--line); }
.strip__in { display: grid; grid-template-columns: repeat(3, 1fr); }
.strip__cell { padding: 28px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.strip__cell:first-child { padding-left: 0; }
.strip__cell + .strip__cell { border-left: 1px solid var(--line); }
.strip__value { font-size: 17px; font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
a.strip__value:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) {
  .strip__in { grid-template-columns: 1fr; }
  .strip__cell { padding: 20px 0; }
  .strip__cell + .strip__cell { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- sections ---------- */
.section { padding-block: 96px 48px; }
.section--last { padding-bottom: 96px; }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.section h2, .h2 { font-size: 36px; letter-spacing: -0.02em; }
@media (max-width: 640px) { .section { padding-block: 64px 32px; } .section h2, .h2 { font-size: 28px; } }

/* post rows (home) */
.rows { border-bottom: 1px solid var(--line); list-style: none; margin: 0; padding: 0; }
.row {
  display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 12px 32px; align-items: baseline;
  padding: 28px 0; border-top: 1px solid var(--line); text-decoration: none;
}
.row:hover .row__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.row__date { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.row__body { display: flex; flex-direction: column; gap: 8px; }
.row__title { font-size: 23px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; }
.row__excerpt { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0; }
@media (max-width: 760px) { .row { grid-template-columns: 1fr; gap: 8px; } .row__title { font-size: 20px; } }
.empty { padding: 56px 0; border-top: 1px solid var(--line); color: var(--muted); }

/* project cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.card {
  min-height: 210px; height: 100%; border: 1px solid var(--line); padding: 22px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px; text-decoration: none;
  transition: border-color .15s;
}
a.card:hover { border-color: var(--fg); }
.card__n { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.card__name { font-size: 21px; font-weight: 500; display: block; margin-bottom: 8px; letter-spacing: -0.01em; }
.card__desc { font-size: 14px; line-height: 1.55; color: var(--muted); display: block; }
.card__url { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; }
.card__url svg { width: 14px; height: 14px; }

/* ---------- writing index ---------- */
.page-head { padding-block: 96px 48px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.page-head__copy { flex: 1 1 520px; display: flex; flex-direction: column; gap: 20px; }
.page-head h1 { font-size: clamp(48px, 8vw, 80px); line-height: 1; letter-spacing: -0.035em; }
.page-head .lead { margin: 0; font-size: 18px; line-height: 1.65; color: var(--muted); max-width: 580px; }
.search { flex: 0 1 340px; display: flex; flex-direction: column; gap: 8px; }
.search__box { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 0 0 14px; border: 1px solid var(--line); color: var(--muted); }
.search__box:focus-within { border-color: var(--fg); }
.search__box svg { width: 16px; height: 16px; flex: none; }
.search__box input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--fg); font-size: 15px; }
.search__box button { height: 100%; padding: 0 16px; border: 0; border-left: 1px solid var(--line); background: transparent; cursor: pointer; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 16px; border-block: 1px solid var(--line); }
.year { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 0 32px; padding-top: 56px; }
.year h2 { padding-top: 28px; font-size: 20px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.year ol { list-style: none; margin: 0; padding: 0; }
.entry { display: flex; flex-wrap: wrap; gap: 10px 32px; align-items: baseline; justify-content: space-between; padding: 28px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.entry__body { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.entry__title { font-size: 24px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; }
.entry:hover .entry__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.entry__excerpt { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 640px; }
.entry__date { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.pager { display: flex; justify-content: center; gap: 12px; padding-block: 64px 96px; }
@media (max-width: 760px) {
  .page-head { padding-block: 56px 32px; }
  .year { grid-template-columns: 1fr; padding-top: 32px; }
  .year h2 { padding-top: 0; }
  .entry__title { font-size: 20px; }
}

/* ---------- single post: title first, over a blurred cover ---------- */
.post-hero { position: relative; z-index: 0; overflow: hidden; display: flex; align-items: flex-end; min-height: 560px; background: var(--bg); color: var(--fg); }
.post-hero--cover { position: sticky; top: var(--bar); background: #161616; color: #FFFFFF; }
.post-hero__img { position: absolute; inset: -48px; width: calc(100% + 96px); height: calc(100% + 96px); max-width: none; object-fit: cover; filter: blur(32px) saturate(1.05); transform: scale(1.05); }
.post-hero__veil { position: absolute; inset: 0; background: rgb(0 0 0 / .55); }
.post-hero__in { position: relative; width: 100%; max-width: calc(var(--read) + 2 * var(--gutter)); margin-inline: auto; padding: 96px var(--gutter) 72px; display: flex; flex-direction: column; gap: 24px; }
.post-hero--plain { min-height: 0; }
.post-hero--plain .post-hero__in { padding-bottom: 48px; }
.post-hero .back { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; min-height: 44px; text-decoration: none; }
.post-hero .back svg { width: 14px; height: 14px; }
.post-hero--cover .back, .post-hero--cover .meta, .post-hero--cover .post-hero__sum { color: rgb(255 255 255 / .8); }
.post-hero h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.08; letter-spacing: -0.03em; }
.post-hero__sum { margin: 0; font-size: 21px; line-height: 1.55; color: var(--muted); }
.post-hero .meta { font-size: 13px; letter-spacing: .06em; }
.post-body-wrap { position: relative; z-index: 1; background: var(--bg); border-top: 1px solid var(--line); }
.reading { max-width: calc(var(--read) + 2 * var(--gutter)); margin-inline: auto; padding: 48px var(--gutter) 64px; }
.byline { display: flex; align-items: center; gap: 14px; padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.avatar { width: 48px; height: 48px; flex: none; background: var(--surface); border: 1px solid var(--line); object-fit: cover; }
.byline__name { font-size: 15px; font-weight: 500; display: block; }
.byline__role { font-size: 14px; color: var(--muted); display: block; }
@media (max-width: 640px) {
  .post-hero { min-height: 440px; }
  .post-hero__in { padding-top: 64px; padding-bottom: 48px; }
  .post-hero__sum { font-size: 18px; }
}

/* prose: what the Markdown editor produces */
.prose { font-size: 18px; line-height: 1.75; overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol, .prose dl, .prose .table-wrap { margin: 0 0 28px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 10px; }
.prose li::marker { color: var(--muted); }
.prose h2 { margin: 56px 0 20px; font-size: 30px; line-height: 1.2; }
.prose h3 { margin: 40px 0 16px; font-size: 23px; line-height: 1.3; letter-spacing: -0.01em; }
.prose h2 + h3 { margin-top: 0; }
.prose a { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose strong { font-weight: 600; }
.prose blockquote { margin: 40px 0; padding: 28px 32px; background: var(--surface); border: 1px solid var(--line); font-size: 24px; line-height: 1.45; letter-spacing: -0.01em; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose pre { margin: 0 0 28px; padding: 24px; background: var(--surface); border: 1px solid var(--line); overflow-x: auto; font: 400 14px/1.7 var(--mono); tab-size: 4; }
.prose code { font-family: var(--mono); font-size: .84em; padding: 2px 6px; background: var(--surface); border: 1px solid var(--line); }
.prose pre code { padding: 0; background: none; border: 0; font-size: inherit; }
.prose figure { margin: 40px 0; }
.prose img { border: 1px solid var(--line); height: auto; }
.prose p > img { margin-block: 12px; }
.prose figcaption { margin-top: 12px; font-family: var(--mono); font-size: 12px; line-height: 1.5; color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 56px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose .table-wrap { overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border: 1px solid var(--line); }
.prose th { background: var(--surface); font-weight: 500; }
@media (max-width: 640px) { .prose { font-size: 17px; } .prose h2 { font-size: 25px; } .prose blockquote { font-size: 20px; padding: 20px; } }

.post-foot { padding-top: 32px; display: flex; flex-direction: column; gap: 40px; }
.post-foot__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-block: 24px; border-block: 1px solid var(--line); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.share { display: flex; align-items: center; gap: 4px; }
.share .label { margin-right: 8px; }
.share .icon-btn svg { width: 17px; height: 17px; }
.share [data-copied] { position: relative; }
.share [data-copied]::after { content: "Copied"; position: absolute; bottom: calc(100% + 6px); left: 50%; translate: -50% 0; background: var(--fg); color: var(--bg); font: 400 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 6px 8px; white-space: nowrap; }
.author-box { display: flex; flex-wrap: wrap; gap: 24px; padding: 28px; border: 1px solid var(--line); }
.author-box img { width: 88px; height: 88px; object-fit: cover; background: var(--surface); flex: none; }
.author-box__copy { flex: 1 1 320px; display: flex; flex-direction: column; gap: 10px; }
.author-box__name { font-size: 22px; font-weight: 500; }
.author-box__bio { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.author-box__links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.author-box__links a { font-size: 14px; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; text-underline-offset: 4px; }
.more-posts { max-width: 1040px; margin-inline: auto; padding: 72px var(--gutter) 96px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.more-posts a { display: flex; flex-direction: column; gap: 12px; padding: 28px; border: 1px solid var(--line); text-decoration: none; transition: border-color .15s; }
.more-posts a:hover { border-color: var(--fg); }
.more-posts .next { text-align: right; grid-column: -2; }
.more-posts__title { font-size: 21px; font-weight: 500; line-height: 1.3; }
.draft-note { background: var(--fg); color: var(--bg); text-align: center; padding: 10px var(--gutter); font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; position: relative; z-index: 2; }

/* ---------- work ---------- */
.feature { border: 1px solid var(--line); padding: 40px; display: flex; flex-direction: column; gap: 20px; }
.feature__name { font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.03em; }
.feature__desc { margin: 0; font-size: 18px; line-height: 1.65; color: var(--muted); max-width: 720px; }
.feature__url { margin-top: 12px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 13px; text-decoration: none; }
.feature__url svg { width: 16px; height: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 16px 0 0; padding: 0; }
.tcard { border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 14px; height: 100%; }
.tcard h2, .tcard h3 { font-size: 26px; letter-spacing: -0.02em; }
.tcard p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); flex: 1; }
.tcard__url { padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 12px; text-decoration: none; min-height: 44px; }
.tcard__url svg { width: 14px; height: 14px; }
a.tcard__url:hover { text-decoration: underline; text-underline-offset: 4px; }
.cta { margin-top: 64px; border: 1px solid var(--line); padding: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.cta h2 { font-size: 30px; }
.cta p { margin: 8px 0 0; color: var(--muted); }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } .feature, .cta { padding: 24px; } }

/* ---------- about ---------- */
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--fg); list-style: none; margin: 0; padding: 0; }
.cols-3 li { padding: 28px 28px 28px 0; display: flex; flex-direction: column; gap: 12px; }
.cols-3 li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.cols-3 h3 { font-size: 22px; }
.cols-3 p { margin: 0; color: var(--muted); line-height: 1.6; }
@media (max-width: 760px) { .cols-3 { grid-template-columns: 1fr; } .cols-3 li, .cols-3 li + li { padding: 24px 0; border-left: 0; } .cols-3 li + li { border-top: 1px solid var(--line); } }
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; list-style: none; margin: 0; padding: 0; }
.tools li { border: 1px solid var(--line); min-height: 56px; display: flex; align-items: center; padding: 0 16px; font-size: 15px; font-weight: 500; }
.now { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.now li { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 8px 32px; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
@media (max-width: 640px) { .now li { grid-template-columns: 1fr; } }
.invert { background: var(--fg); color: var(--bg); }
.invert__in { padding-block: 72px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.invert h2 { font-size: clamp(28px, 4vw, 40px); max-width: 640px; }
.invert .btn { border-color: var(--bg); color: var(--bg); }
.invert .btn:hover { background: var(--bg); color: var(--fg); }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; padding-block: 96px; align-items: start; }
.contact__copy { display: flex; flex-direction: column; gap: 24px; }
.contact h1 { font-size: clamp(44px, 7vw, 72px); line-height: 1; letter-spacing: -0.035em; }
.dl { margin: 16px 0 0; border-top: 1px solid var(--line); }
.dl div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.dl dt { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dl dd { margin: 0; font-size: 16px; font-weight: 500; overflow-wrap: anywhere; }
.dl dd a { text-underline-offset: 4px; display: inline-block; padding-block: 13px; margin-block: -13px; }
.form { border: 1px solid var(--line); padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, .field legend { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0; }
.field legend { margin-bottom: 8px; }
.input, .field input[type=text], .field input[type=email], .field input[type=url], .field input[type=password], .field input[type=search], .field input[type=date], .field input[type=datetime-local], .field textarea, .field select {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font-size: 16px; outline: 0;
}
.field textarea { resize: vertical; line-height: 1.6; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--fg); }
.field .err, .errorlist { color: light-dark(#B00020, #FF8A80); font-size: 14px; margin: 0; padding: 0; list-style: none; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { position: relative; }
.choices input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choices span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.choices input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.choices input:focus-visible + span { outline: 2px solid var(--fg); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.form__note { margin: 0; font-size: 14px; color: var(--muted); }
.sent { border: 1px solid var(--line); padding: 40px 32px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.sent__check { width: 56px; height: 56px; background: var(--fg); color: var(--bg); display: flex; align-items: center; justify-content: center; }
.sent__check svg { width: 26px; height: 26px; }
.sent h2 { font-size: 32px; }
.sent p { margin: 0; color: var(--muted); max-width: 440px; line-height: 1.6; }
.sent .row-links { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.sent .row-links a:not(.btn) { min-height: 44px; display: inline-flex; align-items: center; font-weight: 500; text-underline-offset: 4px; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; gap: 48px; padding-block: 56px; } .form { padding: 20px; } }

/* 404 */
.nf { padding-block: 120px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.nf h1 { font-size: clamp(44px, 7vw, 72px); letter-spacing: -0.035em; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
