/* ───────────────────────────────────────────────
   isidd.dev — portfolio
   Split layout: identity fixed on the left, proof scrolling on the right.
   Black on white. EB Garamond everywhere, upright only.
   ─────────────────────────────────────────────── */

@font-face {
  font-family: "EB Garamond";
  src: url("../fonts/EBGaramond.woff") format("woff");
  font-weight: 400 800; font-style: normal; font-display: swap;
}
:root {
  --ink: #000;
  --paper: #fff;
  --muted: #6E6E78;      /* small print only */
  --hair: #E3E3E8;
  --serif: "EB Garamond", Garamond, "Times New Roman", serif;
  --small: var(--serif);
  --gutter: 48px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--serif); font-size: 21px; line-height: 1.6;
  font-feature-settings: "kern", "liga", "onum";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: #000; color: #fff; }

.page {
  max-width: 1180px; margin: 0 auto;
  padding: 0 max(var(--gutter), env(safe-area-inset-right, 0px)) 0 max(var(--gutter), env(safe-area-inset-left, 0px));
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px;
}

/* ── Left: who you are ── */
.intro {
  position: sticky; top: 0; height: 100vh; height: 100dvh;
  padding: 96px 0 48px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.name { margin: 0; font-weight: 700; font-size: 52px; line-height: 1.02; letter-spacing: -.015em; }
.name a { text-decoration: none; }
.headline { margin: 18px 0 0; font-size: 24px; line-height: 1.35; max-width: 22ch; text-wrap: balance; }

.toc { margin-top: 56px; display: flex; flex-direction: column; gap: 6px; }
.toc a {
  width: fit-content; text-decoration: none; font-size: 18px;
  display: flex; align-items: center; gap: 14px;
}
.toc a::before { content: ""; width: 28px; height: 1px; background: var(--ink); transition: width .2s ease; }
.toc a:hover::before, .toc a.is-active::before { width: 56px; }
.toc a.is-active { font-weight: 600; }

.social { display: flex; gap: 24px; }
.social a { line-height: 0; }
.social a:hover { opacity: .55; }
.icon { width: 21px; height: 21px; }

/* ── Right: the proof ── */
.work { padding: 96px 0 0; min-width: 0; }
.block { scroll-margin-top: 48px; }
.block + .block { margin-top: 96px; }
.label {
  margin: 0 0 18px; font-family: var(--serif); font-weight: 700; color: var(--ink);
  font-size: 34px; line-height: 1.1; letter-spacing: -.005em;
}
.label + .section-note { margin-top: -6px; }
.lede { margin: 0; }
.lede + .lede { margin-top: 1em; }
.section-note { margin: 0 0 18px; }

/* Projects */
.projects { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.project { padding: 28px 0 30px; border-bottom: 1px solid var(--hair); }
.p-meta { margin: 0 0 6px; display: flex; gap: 12px; align-items: center; font-family: var(--small); font-size: 14px; }
.kind { background: var(--ink); color: var(--paper); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 2px 8px 1px; }
.p-title { margin: 0 0 8px; font-size: 32px; line-height: 1.12; font-weight: 700; letter-spacing: -.008em; }
.p-title a { text-decoration: none; }
.p-title a:hover { text-decoration: underline; }
.p-summary { margin: 0; }
.p-result { margin: 10px 0 0; }
.tools { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.tools li { font-family: var(--small); font-size: 13px; border: 1px solid var(--ink); padding: 2px 9px; line-height: 1.5; }
.p-links { margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 18px; }
.p-links a::after { content: " \2197"; text-decoration: none; display: inline-block; margin-left: 2px; }

.more { display: inline-block; margin-top: 20px; font-size: 18px; }
.more::after { content: " \2192"; }

/* Playbook */
.writing { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.writing li { border-bottom: 1px solid var(--hair); }
.writing a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 20px;
  padding: 18px 0; text-decoration: none;
}
.w-title { font-weight: 600; font-size: 23px; line-height: 1.25; }
.w-read { grid-row: 1; grid-column: 2; font-family: var(--small); font-size: 14px; white-space: nowrap; padding-top: 6px; }
.w-note { grid-column: 1 / -1; font-size: 18px; }
.writing a:hover .w-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* Bitslyf */
.tagged a { grid-template-rows: auto auto auto; }
.tagged .w-area { grid-row: 1; grid-column: 1; justify-self: start; margin-bottom: 6px; }
.tagged .w-title { grid-row: 2; grid-column: 1 / -1; }
.tagged .w-note { grid-row: 3; }
.tagged .w-read { grid-row: 1; padding-top: 2px; font-variant-numeric: lining-nums; }

/* Updates (home + archive) */
.updates { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.upd { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 4px 20px; padding: 18px 0; border-bottom: 1px solid var(--hair); }
.upd[hidden] { display: none; }
.upd time { font-size: 16px; padding-top: 4px; white-space: nowrap; font-variant-numeric: lining-nums; }
.u-body { display: flex; flex-direction: column; align-items: flex-start; }
.area {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; line-height: 1.4;
  border: 1px solid var(--ink); padding: 2px 8px 1px; margin-bottom: 8px;
}
.u-head { font-weight: 600; font-size: 23px; line-height: 1.25; text-decoration: none; }
a.u-head:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.u-note { font-size: 18px; margin-top: 2px; }

/* Archive page */
.page-single { display: block; max-width: calc(720px + 2 * var(--gutter)); }
.archive { padding: 72px 0 0; }
.back { margin: 0 0 40px; font-size: 18px; }
.back a { text-decoration: none; }
.back a::before { content: "\2190  "; }
.back a:hover { text-decoration: underline; }
.a-title { margin: 0; font-weight: 700; font-size: 52px; line-height: 1.05; letter-spacing: -.015em; }
.a-lede { margin: 14px 0 0; font-size: 23px; line-height: 1.4; }
.a-count { margin: 10px 0 0; font-size: 16px; font-variant-numeric: lining-nums; }
.filters { margin: 32px 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--serif); font-size: 16px; color: var(--ink); background: var(--paper);
  border: 1px solid var(--ink); border-radius: 0; padding: 5px 12px 4px; cursor: pointer; line-height: 1.3;
}
.chip span { font-variant-numeric: lining-nums; margin-left: 4px; }
.chip:hover { background: #F2F2F2; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.month-block { margin-top: 48px; }
.month-block[hidden] { display: none; }
.a-month { margin: 0 0 14px; font-weight: 700; font-size: 30px; line-height: 1.1; }
.none { margin-top: 40px; }

/* Footer */
.foot { margin-top: 96px; }
.copyline {
  margin: 0; padding: 24px 0 40px; border-top: 1px solid var(--hair);
  font-family: var(--small); font-size: 16px; line-height: 1.5; color: var(--ink);
}

/* ── Phones & small tablets: stack ── */
@media (max-width: 900px) {
  :root { --gutter: 20px; }
  body { font-size: 19px; }
  .page { display: block; }
  .intro { position: static; height: auto; padding: 48px 0 0; display: block; }
  .name { font-size: 40px; }
  .headline { font-size: 21px; max-width: none; }
  .toc { display: none; }
  .social { margin-top: 24px; }
  .work { padding-top: 56px; }
  .block + .block { margin-top: 72px; }
  .p-title { font-size: 27px; }
  .label { font-size: 30px; }
  .w-title { font-size: 21px; }
  .upd { grid-template-columns: 1fr; }
  .archive { padding-top: 40px; }
  .a-title { font-size: 42px; }
  .a-lede { font-size: 20px; }
  .a-month { font-size: 26px; }
}

em, i, cite, address { font-style: normal; }
