/* ============================================================
   Satya Dillikar — softbuild.dev redesign
   Warm Editorial Portfolio
   ============================================================ */

:root {
  --paper: oklch(0.97 0.012 80);
  --paper-2: oklch(0.94 0.014 75);
  --rule: oklch(0.86 0.015 70);
  --ink: oklch(0.22 0.015 50);
  --ink-2: oklch(0.40 0.012 50);
  --ink-3: oklch(0.55 0.010 50);
  --accent: oklch(0.62 0.135 40);
  --accent-2: oklch(0.50 0.13 38);
  --accent-bg: oklch(0.93 0.04 55);

  --serif: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --sans: "Instrument Sans", "Söhne", "Helvetica Neue", Helvetica, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --measure: 64ch;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background-image:
    radial-gradient(at 0% 0%, oklch(0.95 0.03 55 / 0.4), transparent 40%),
    radial-gradient(at 100% 100%, oklch(0.95 0.025 70 / 0.3), transparent 35%);
  background-attachment: fixed;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
a.link { color: var(--ink); border-bottom: 1px solid var(--rule); transition: border-color .2s, color .2s; }
a.link:hover { border-color: var(--accent); color: var(--accent-2); }

img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

/* Type ----------------------------------------------------- */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.005em; }
.sans  { font-family: var(--sans); }
.mono  { font-family: var(--mono); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.015em;
  font-size: clamp(56px, 10vw, 132px);
}
.display em { font-style: italic; color: var(--accent-2); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1.05; margin: 0; }
h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.1; margin: 0; }
h3 { font-size: 22px; line-height: 1.2; margin: 0; }

p { margin: 0 0 1em; max-width: var(--measure); }
p.lede { font-family: var(--serif); font-size: clamp(20px, 2.2vw, 26px); line-height: 1.4; color: var(--ink); }

hr.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}

/* Layout --------------------------------------------------- */
.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container.narrow { max-width: 880px; }
.container.wide   { max-width: 1400px; }

section { padding: clamp(48px, 7vw, 96px) 0; }
section + section { border-top: 1px solid var(--rule); }

/* Nav ------------------------------------------------------ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklch, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px var(--gutter);
  max-width: 1400px;
  margin: 0 auto;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.nav-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-bg);
  border: 1px solid var(--rule);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--accent-2);
  overflow: hidden;
  flex-shrink: 0;
}
.nav-name {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.nav-name em { color: var(--accent-2); font-style: italic; }
.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-link {
  font-family: var(--sans);
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  transition: color .2s, background .2s;
  cursor: pointer;
}
.nav-link:hover { color: var(--ink); background: var(--paper-2); }
.nav-link.active { color: var(--ink); background: var(--paper-2); }
.nav-cta {
  font-family: var(--sans);
  font-size: 13px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  transition: background .2s;
}
.nav-cta:hover { background: var(--accent-2); border-color: var(--accent-2); }
@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* Hero ----------------------------------------------------- */
.hero {
  padding: clamp(56px, 10vw, 140px) 0 clamp(48px, 7vw, 96px);
}
.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.hero-title { margin: 0; }
.hero-sub {
  margin-top: clamp(28px, 4vw, 44px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px 48px;
  align-items: end;
}
@media (max-width: 760px) { .hero-sub { grid-template-columns: 1fr; } }

/* Stats / data ribbons ------------------------------------- */
.data-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.data-cell {
  padding: 24px 20px;
  border-right: 1px solid var(--rule);
}
.data-cell:last-child { border-right: none; }
.data-cell .num {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.data-cell .label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 10px;
}
.data-cell .label em { color: var(--accent-2); font-style: normal; }

/* Section header ------------------------------------------ */
.section-head {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  margin-bottom: 48px;
  align-items: baseline;
}
@media (max-width: 760px) {
  .section-head { grid-template-columns: 1fr; gap: 16px; }
}
.section-head .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 8px;
}
.section-head h2 em { font-style: italic; color: var(--accent-2); }
.section-head .blurb {
  margin-top: 16px;
  color: var(--ink-2);
  max-width: 60ch;
}

/* Buttons -------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 14.5px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  transition: all .2s;
  cursor: pointer;
}
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn.ghost {
  background: transparent;
  color: var(--ink);
}
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* Cards ---------------------------------------------------- */
.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 28px;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--ink); }

/* Resume role --------------------------------------------- */
.role {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  padding: 36px 0;
  border-top: 1px solid var(--rule);
}
.role:first-of-type { border-top: none; }
@media (max-width: 760px) {
  .role { grid-template-columns: 1fr; gap: 16px; }
}
.role-when {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.role-when .year {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.role-title {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.15;
  margin: 0 0 6px;
}
.role-company {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-2);
  margin-bottom: 18px;
}
.role-company .dot { color: var(--accent-2); margin: 0 8px; }
.role ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.role ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  color: var(--ink-2);
  max-width: 64ch;
}
.role ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 12px;
  height: 1px;
  background: var(--accent);
}
.role-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.tech-chip {
  font-family: var(--mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-2);
  border: 1px solid var(--rule);
}
.role.current .role-title::after {
  content: "•";
  color: var(--accent);
  margin-left: 10px;
  font-size: 32px;
  vertical-align: middle;
  line-height: 0;
}

/* Gallery ------------------------------------------------- */
.gallery-group {
  margin-bottom: 64px;
}
.gallery-group-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}
.gallery-group-head .year {
  font-family: var(--serif);
  font-style: italic;
  font-size: 32px;
  color: var(--ink);
}
.gallery-group-head .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
@media (max-width: 760px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
.gallery-item {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  cursor: pointer;
  transition: transform .3s ease;
}
.gallery-item:hover { transform: translateY(-2px); }
.gallery-item .img-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background-image:
    repeating-linear-gradient(45deg,
      oklch(0.92 0.012 70) 0,
      oklch(0.92 0.012 70) 8px,
      oklch(0.95 0.012 70) 8px,
      oklch(0.95 0.012 70) 16px);
}
.gallery-item .img-placeholder span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--paper);
  padding: 4px 10px;
  border: 1px solid var(--rule);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-item .caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  background: color-mix(in oklch, var(--paper) 92%, transparent);
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--ink);
  border: 1px solid var(--rule);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s, transform .25s;
}
.gallery-item:hover .caption { opacity: 1; transform: none; }

/* Projects ------------------------------------------------ */
.project {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 40px;
  padding: 32px 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}
@media (max-width: 760px) {
  .project { grid-template-columns: 1fr; gap: 12px; }
}
.project-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 6px;
}
.project-title {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.15;
  margin: 0 0 8px;
}
.project-desc {
  color: var(--ink-2);
  max-width: 56ch;
  margin: 0 0 12px;
}
.project-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  white-space: nowrap;
}

/* Blog posts ---------------------------------------------- */
.post-list .post-row {
  display: grid;
  grid-template-columns: 130px 1fr 110px;
  gap: 32px;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
  cursor: pointer;
  transition: padding .2s;
}
.post-list .post-row:hover { padding-left: 12px; }
@media (max-width: 760px) {
  .post-list .post-row { grid-template-columns: 1fr; gap: 6px; }
}
.post-date {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  padding-top: 6px;
}
.post-title {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.2;
  margin: 0 0 6px;
}
.post-excerpt {
  color: var(--ink-2);
  font-size: 15px;
  max-width: 60ch;
}
.post-read {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  text-align: right;
  padding-top: 8px;
}

/* Article reader ----------------------------------------- */
.article {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) var(--gutter);
}
.article .article-head { margin-bottom: 56px; }
.article h1 { margin-bottom: 16px; }
.article .article-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.article p {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.55;
  margin-bottom: 1.2em;
  max-width: none;
}
.article p.first::first-letter {
  font-family: var(--serif);
  font-size: 4.5em;
  float: left;
  line-height: 0.85;
  padding: 6px 12px 0 0;
  color: var(--accent-2);
}
.article h2 { margin-top: 2em; font-size: 32px; }
.article blockquote {
  border-left: 2px solid var(--accent);
  padding-left: 24px;
  margin: 32px 0;
  font-style: italic;
  color: var(--ink-2);
}

/* Markdown ----------------------------------------------- */
.md { font-family: var(--serif); font-size: 20px; line-height: 1.6; color: var(--ink); }
.md p { font-family: var(--serif); font-size: 20px; line-height: 1.6; margin: 0 0 1.1em; max-width: none; }
.md h2 { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 36px); line-height: 1.15; margin: 2em 0 0.5em; letter-spacing: -0.01em; }
.md h3 { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2; margin: 1.8em 0 0.5em; letter-spacing: -0.01em; }
.md h4 { font-family: var(--sans); font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); margin: 1.6em 0 0.6em; }
.md ul, .md ol { padding-left: 0; margin: 0 0 1.2em; list-style: none; }
.md li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
}
.md ul > li::before {
  content: "";
  position: absolute;
  left: 0; top: 16px;
  width: 14px; height: 1px;
  background: var(--accent);
}
.md ol { counter-reset: olc; }
.md ol > li { counter-increment: olc; }
.md ol > li::before {
  content: counter(olc, decimal-leading-zero);
  position: absolute;
  left: 0; top: 4px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent-2);
}
.md li ul, .md li ol { margin: 8px 0 0; padding-left: 0; }
.md li li { font-size: 18px; }

.md strong { font-weight: 600; color: var(--ink); }
.md em { font-style: italic; color: var(--ink); }

.md a.link { color: var(--ink); border-bottom: 1px solid var(--rule); }
.md a.link:hover { border-color: var(--accent); color: var(--accent-2); }

.md .md-img {
  width: 100%;
  height: auto;
  margin: 32px 0 12px;
  border: 1px solid var(--rule);
  background: var(--paper-2);
  display: block;
}

.md .md-pre {
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.55;
  background: oklch(0.20 0.015 50);
  color: oklch(0.92 0.005 80);
  padding: 24px 28px;
  border-radius: 4px;
  overflow-x: auto;
  margin: 24px 0;
  position: relative;
  border: 1px solid oklch(0.30 0.015 50);
}
.md .md-pre .md-pre-lang {
  position: absolute;
  top: 8px;
  right: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: oklch(0.65 0.05 50);
}
.md .md-pre code {
  font-family: var(--mono);
  white-space: pre;
  background: transparent;
  color: inherit;
  font-size: inherit;
  padding: 0;
}
.md .md-code-inline {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  padding: 1px 6px;
  border-radius: 3px;
  color: var(--accent-2);
}
.md blockquote {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 24px;
  margin: 28px 0;
  font-style: italic;
  color: var(--ink-2);
  font-size: 20px;
  line-height: 1.5;
}
.md blockquote p { font-size: inherit; line-height: inherit; margin: 0; color: inherit; }

/* Tables in markdown */
.md .md-table-wrap { overflow-x: auto; margin: 24px 0; border: 1px solid var(--rule); }
.md .md-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 14.5px;
}
.md .md-table th, .md .md-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
}
.md .md-table th {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
  font-weight: 500;
}
.md .md-table tr:last-child td { border-bottom: none; }
.md .md-table tr:hover td { background: var(--paper-2); }
.md .md-table strong { color: var(--accent-2); }

/* Article hero (post page) ----------------------------- */
.post-hero {
  border-top: 1px solid var(--rule);
  padding: clamp(40px, 6vw, 72px) 0 0;
}
.post-hero .container { max-width: 860px; }
.post-hero .post-hero-meta {
  display: flex; gap: 20px; align-items: baseline;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 32px;
}
.post-hero h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 5.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 28px;
}
.post-hero .tags {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px;
}
.post-hero-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border: 1px solid var(--rule);
  margin: 16px 0 48px;
  display: block;
}
.post-body { max-width: 720px; margin: 0 auto; padding: 0 var(--gutter) 96px; }

.post-prev-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.post-prev-next > * {
  padding: 28px 32px;
  text-decoration: none; color: inherit;
  display: block; cursor: pointer;
  transition: background .2s;
}
.post-prev-next > *:hover { background: var(--paper-2); }
.post-prev-next .left { border-right: 1px solid var(--rule); }
.post-prev-next .right { text-align: right; }
.post-prev-next .eyebrow { display: block; margin-bottom: 8px; }
.post-prev-next .nav-title { font-family: var(--serif); font-size: 22px; line-height: 1.2; }
@media (max-width: 760px) {
  .post-prev-next { grid-template-columns: 1fr; }
  .post-prev-next .left { border-right: none; border-bottom: 1px solid var(--rule); }
  .post-prev-next .right { text-align: left; }
}

/* Footer -------------------------------------------------- */
.footer {
  padding: 48px var(--gutter);
  border-top: 1px solid var(--rule);
  margin-top: auto;
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; }
}
.footer .sig {
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  color: var(--ink);
}
.footer .col {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  line-height: 1.9;
}
.footer .col a { color: var(--ink-2); display: block; }
.footer .col a:hover { color: var(--accent-2); }
.footer .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
  display: block;
}

/* Connect grid ------------------------------------------- */
.connect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.connect-cell {
  padding: 32px;
  border-right: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
  transition: background .2s;
  position: relative;
}
.connect-cell:last-child { border-right: none; }
.connect-cell:hover { background: var(--paper-2); }
.connect-cell .platform {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
  display: block;
}
.connect-cell .handle {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.connect-cell .arrow {
  position: absolute;
  top: 28px;
  right: 28px;
  color: var(--ink-3);
  transition: color .2s, transform .2s;
}
.connect-cell:hover .arrow {
  color: var(--accent-2);
  transform: translate(3px, -3px);
}

/* Featured post on home --------------------------------- */
.featured-post {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: stretch;
  padding-top: 24px;
}
@media (max-width: 760px) {
  .featured-post { grid-template-columns: 1fr; }
}
.featured-post .visual {
  background: var(--accent-bg);
  border: 1px solid var(--rule);
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  padding: 32px;
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent-2);
  font-size: 32px;
  line-height: 1.1;
  text-align: center;
}

/* Lightbox ----------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: oklch(0.18 0.015 50 / 0.92);
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 32px;
  animation: fade .2s;
}
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.lightbox-inner {
  max-width: 1100px;
  width: 100%;
  background: var(--paper);
  padding: 32px;
  position: relative;
}
.lightbox img { width: 100%; max-height: 78vh; object-fit: contain; }
.lightbox-caption {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
  margin-top: 16px;
  letter-spacing: 0.05em;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--rule);
  background: var(--paper);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--sans);
}

/* Utility ------------------------------------------------- */
.spacer-s { height: 24px; }
.spacer   { height: 48px; }
.spacer-l { height: 96px; }
.flex { display: flex; }
.col { display: flex; flex-direction: column; }
.gap-s { gap: 8px; }
.gap-m { gap: 16px; }
.gap-l { gap: 32px; }
.muted { color: var(--ink-2); }
.center { text-align: center; }

/* Page transitions -------------------------------------- */
.page { animation: pageIn .35s ease-out; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
