/* ============================================================
   PEREZBOX — 2026 refresh
   Warm + human  ×  sharp + technical
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Schibsted+Grotesk:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ---------- Tokens ---------- */
:root {
  /* cool gray neutrals */
  --paper:      oklch(0.972 0.005 255);
  --paper-2:    oklch(0.95 0.006 255);
  --paper-3:    oklch(0.925 0.007 255);
  --card:       oklch(0.992 0.004 255);
  --ink:        oklch(0.215 0.012 262);
  --ink-2:      oklch(0.215 0.012 262 / 0.62);
  --ink-3:      oklch(0.215 0.012 262 / 0.42);
  --line:       oklch(0.215 0.012 262 / 0.14);
  --line-2:     oklch(0.215 0.012 262 / 0.08);

  /* signature accent — electric blue */
  --clay:       oklch(0.555 0.163 253);
  --clay-press: oklch(0.475 0.155 253);
  --clay-soft:  oklch(0.555 0.163 253 / 0.13);
  --clay-line:  oklch(0.555 0.163 253 / 0.32);

  /* deep ink surface (used sparingly for contrast blocks) */
  --night:      oklch(0.235 0.022 258);
  --night-2:    oklch(0.288 0.026 258);

  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);

  --f-sans: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --r: 4px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.04; text-wrap: balance; }

::selection { background: var(--clay); color: #fff; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding-inline: var(--gutter); }

/* mono micro-label */
.mono {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}
.mono-label {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
}
.mono-label::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--clay);
}
.clay { color: var(--clay); }

/* ============================================================
   UTILITY BAR
   ============================================================ */
.utilitybar {
  background: var(--night);
  color: oklch(0.92 0.008 255 / 0.7);
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.utilitybar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 30px;
  gap: 1rem;
  overflow: hidden;
  white-space: nowrap;
}
.utilitybar b { color: var(--clay); font-weight: 600; }
.utilitybar .ub-right { display: flex; gap: 1.4rem; }
.ub-dot { color: var(--clay); }
@media (max-width: 760px){ .utilitybar .ub-right span:nth-child(n+2){ display:none; } }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(0.972 0.005 255 / 0.85);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand-mark {
  width: 34px; height: 34px;
  border: 2px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-sans);
  font-weight: 900;
  font-size: 0.86rem;
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
  position: relative;
}
.brand-mark span { color: var(--clay); }
.brand-word {
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.03em;
}
.brand-word i { font-style: normal; color: var(--ink-3); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-2);
  padding: 0.5rem 0.8rem;
  border-radius: var(--r);
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--ink); background: var(--paper-3); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ""; display:block; height:2px; background: var(--clay);
  margin-top: 3px; border-radius: 2px;
}
.nav-cta {
  margin-left: 0.7rem;
  background: var(--ink);
  color: var(--paper) !important;
}
.nav-cta:hover { background: var(--clay) !important; color:#fff !important; }
.nav-burger { display:none; }
.mobile-menu { display:none; }

@media (max-width: 860px){
  .nav-links { display:none; }
  .nav-burger {
    display:grid; place-items:center; width:40px; height:40px;
    border:1px solid var(--line); border-radius: var(--r); background:transparent; cursor:pointer;
  }
  .nav-burger span, .nav-burger span::before, .nav-burger span::after{
    content:""; display:block; width:18px; height:2px; background:var(--ink); position:relative;
  }
  .nav-burger span::before{ position:absolute; top:-6px; }
  .nav-burger span::after { position:absolute; top:6px; }
  .mobile-menu { display:none; }
  .mobile-menu.open { display:block; }
  .mobile-menu {
    border-bottom:1px solid var(--line); background:var(--paper);
  }
  .mobile-menu a {
    display:block; padding:1rem var(--gutter); border-top:1px solid var(--line-2);
    font-family:var(--f-mono); font-size:0.8rem; text-transform:uppercase; letter-spacing:0.08em;
  }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--f-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.85rem 1.3rem;
  border-radius: var(--r);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s, color .15s, border-color .15s;
}
.btn .arr { transition: transform .18s ease; }
.btn:hover .arr { transform: translateX(4px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--clay); color:#fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-clay { background: var(--clay); color:#fff; }
.btn-clay:hover { background: var(--clay-press); }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.sec { padding: clamp(64px, 9vw, 120px) 0; }
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2rem; margin-bottom: clamp(28px, 4vw, 52px);
  border-bottom: 1px solid var(--line); padding-bottom: 1.4rem;
}
.sec-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  letter-spacing: -0.035em;
}
.sec-head .sec-kicker { margin-bottom: 0.9rem; }
.sec-head p { color: var(--ink-2); margin: 0.5rem 0 0; max-width: 46ch; }
.sec-head .link-more {
  font-family: var(--f-mono); font-size:0.74rem; letter-spacing:0.08em; text-transform:uppercase;
  font-weight:600; color: var(--ink); display:inline-flex; gap:0.5rem; white-space:nowrap;
  border-bottom: 2px solid var(--clay); padding-bottom: 4px;
}
.sec-head .link-more .arr { transition: transform .18s; }
.sec-head .link-more:hover .arr { transform: translateX(4px); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--night);
  color: oklch(0.92 0.008 255 / 0.62);
  padding: clamp(56px, 7vw, 84px) 0 2.2rem;
}
.footer a { color: oklch(0.92 0.008 255 / 0.7); transition: color .15s; }
.footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid oklch(0.92 0.008 255 / 0.12);
}
.footer-brand .brand-mark { border-color: oklch(0.92 0.008 255 / 0.5); color:#fff; }
.footer-brand .brand-word { color: #fff; }
.footer-brand p { margin: 1.1rem 0 0; max-width: 34ch; font-size: 0.95rem; line-height:1.6; }
.footer h6 {
  font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: oklch(0.92 0.008 255 / 0.45); margin: 0 0 1.1rem; font-weight: 600;
}
.footer ul { list-style:none; margin:0; padding:0; display:grid; gap:0.6rem; font-size:0.92rem; }
.footer-bottom {
  display:flex; align-items:center; justify-content:space-between; gap:1rem;
  padding-top: 1.6rem; font-family: var(--f-mono); font-size: 0.7rem; letter-spacing:0.08em;
  text-transform: uppercase; color: oklch(0.92 0.008 255 / 0.4); flex-wrap: wrap;
}
.footer-bottom b { color: var(--clay); }
@media (max-width: 800px){ .footer-grid{ grid-template-columns: 1fr 1fr; gap:2rem; } }
@media (max-width: 480px){ .footer-grid{ grid-template-columns: 1fr; } }

/* ============================================================
   PROJECT / VENTURE CARDS
   ============================================================ */
.ventures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.venture {
  background: var(--card);
  padding: 1.9rem 1.7rem 1.7rem;
  position: relative;
  transition: background .2s;
  display: flex; flex-direction: column; min-height: 230px;
}
.venture:hover { background: var(--paper); }
.venture-top { display:flex; align-items:center; justify-content:space-between; margin-bottom: 1.4rem; }
.venture-no { font-family: var(--f-mono); font-size: 0.72rem; color: var(--ink-3); letter-spacing:0.1em; }
.venture-tag {
  font-family: var(--f-mono); font-size: 0.62rem; letter-spacing:0.12em; text-transform:uppercase;
  font-weight:600; padding: 0.28rem 0.5rem; border:1px solid var(--line); border-radius: 3px; color: var(--ink-2);
}
.venture h3 { font-size: 1.4rem; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.venture p { color: var(--ink-2); font-size: 0.92rem; line-height: 1.55; margin: 0 0 1.3rem; }
.venture-link {
  margin-top: auto; font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.05em;
  font-weight: 600; color: var(--ink); display:inline-flex; align-items:center; gap:0.5rem;
}
.venture-link .arr { color: var(--clay); transition: transform .18s; }
.venture:hover .venture-link .arr { transform: translateX(4px); }
.venture::after{
  content:""; position:absolute; left:0; top:0; width:0; height:3px; background:var(--clay); transition:width .25s ease;
}
.venture:hover::after{ width:100%; }
@media (max-width: 900px){ .ventures{ grid-template-columns: repeat(2,1fr);} }
@media (max-width: 560px){ .ventures{ grid-template-columns: 1fr;} }

/* ============================================================
   ARTICLE LIST ITEMS (editorial)
   ============================================================ */
.writing-list { border-top: 1px solid var(--line); }
.write-row {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 2rem;
  align-items: baseline;
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .2s ease;
  position: relative;
}
.write-row::before{
  content:""; position:absolute; left:-20px; top:50%; transform:translateY(-50%) scale(0);
  width:7px; height:7px; background:var(--clay); border-radius:50%; transition: transform .2s ease;
}
.write-row:hover { padding-left: 14px; }
.write-row:hover::before{ transform: translateY(-50%) scale(1); }
.write-date { font-family: var(--f-mono); font-size: 0.74rem; color: var(--ink-3); letter-spacing: 0.04em; padding-top: 0.35rem; }
.write-main h3 {
  font-size: 1.32rem; letter-spacing: -0.02em; font-weight: 700; line-height: 1.22;
  transition: color .15s;
}
.write-row:hover .write-main h3 { color: var(--clay); }
.write-main .excerpt { color: var(--ink-2); font-size: 0.95rem; margin-top: 0.45rem; max-width: 64ch; }
.write-cat {
  font-family: var(--f-mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 600; color: var(--ink-2); border:1px solid var(--line); border-radius: 3px;
  padding: 0.3rem 0.55rem; white-space: nowrap;
}
@media (max-width: 720px){
  .write-row{ grid-template-columns: 1fr; gap: 0.6rem; }
  .write-cat{ justify-self:start; }
}

/* ============================================================
   CARD GRID (used on writing teasers)
   ============================================================ */
.card-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; }
.acard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.5rem; display:flex; flex-direction:column; gap: 0.8rem; min-height: 220px;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.acard:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px var(--ink); border-color: var(--clay-line); }
.acard .a-meta { display:flex; align-items:center; justify-content:space-between; }
.acard .a-date { font-family: var(--f-mono); font-size: 0.7rem; color: var(--ink-3); }
.acard h3 { font-size: 1.12rem; line-height: 1.28; font-weight: 700; letter-spacing:-0.015em; }
.acard:hover h3 { color: var(--clay); }
.acard .a-foot { margin-top:auto; }
@media (max-width: 900px){ .card-grid{ grid-template-columns: repeat(2,1fr);} }
@media (max-width: 560px){ .card-grid{ grid-template-columns: 1fr;} }

/* ============================================================
   PAGE HEADER (interior pages)
   ============================================================ */
.page-head {
  border-bottom: 1px solid var(--line);
  padding: clamp(54px, 8vw, 96px) 0 clamp(34px, 5vw, 56px);
  position: relative; overflow: hidden;
}
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); letter-spacing: -0.04em; }
.page-head .lede { color: var(--ink-2); font-size: 1.15rem; margin-top: 1.2rem; max-width: 60ch; }

/* dotted technical grid bg */
.grid-bg {
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 26px 26px;
}

/* misc */
.divider-rule { height:1px; background: var(--line); border:0; margin:0; }

/* ============================================================
   HOMEPAGE — HERO
   ============================================================ */
.hero { border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-top: clamp(54px, 8vw, 104px);
  padding-bottom: clamp(54px, 8vw, 104px);
}
.hero-h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.1rem);
  letter-spacing: -0.045em;
  margin: 1.3rem 0 0;
  line-height: 0.98;
}
.u-clay {
  color: var(--clay);
  position: relative; white-space: nowrap;
}
.u-clay::after{
  content:""; position:absolute; left:0; right:0; bottom: 0.07em; height: 0.12em;
  background: var(--clay-soft);
}
.hero-lede {
  color: var(--ink-2);
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  line-height: 1.62;
  max-width: 52ch;
  margin: 1.6rem 0 0;
}
.hero-lede strong { color: var(--ink); font-weight: 700; }
.hero-cta { display: flex; gap: 0.8rem; margin-top: 2.1rem; flex-wrap: wrap; }
.hero-tags {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2.4rem;
  padding-top: 1.6rem; border-top: 1px dashed var(--line);
}
.hero-tags span {
  font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3); padding: 0.3rem 0.6rem; border: 1px solid var(--line); border-radius: 3px;
}

/* portrait spec card */
.hero-card { display: flex; flex-direction: column; gap: 1.1rem; }
.hc-frame {
  position: relative; border: 1px solid var(--ink); padding: 10px; background: var(--card);
  box-shadow: 14px 14px 0 -2px var(--clay-soft);
}
.hc-frame img { width: 100%; aspect-ratio: 5/5.2; object-fit: cover; object-position: 50% 22%; filter: saturate(1.02); }
.hc-tick { position: absolute; width: 9px; height: 9px; border: 2px solid var(--clay); }
.hc-tl { top: -1px; left: -1px; border-right:0; border-bottom:0; }
.hc-tr { top: -1px; right: -1px; border-left:0; border-bottom:0; }
.hc-bl { bottom: -1px; left: -1px; border-right:0; border-top:0; }
.hc-br { bottom: -1px; right: -1px; border-left:0; border-top:0; }
.hc-spec { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); }
.hc-spec > div { background: var(--paper); padding: 0.8rem 0.9rem; }
.hc-spec dt { font-family: var(--f-mono); font-size: 0.6rem; letter-spacing: 0.12em; color: var(--ink-3); margin: 0; }
.hc-spec dd { margin: 0.25rem 0 0; font-weight: 700; font-size: 0.92rem; letter-spacing: -0.01em; }
@media (max-width: 900px){
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 420px; }
}

/* ============================================================
   CREDIBILITY STRIP
   ============================================================ */
.credstrip { background: var(--ink); color: var(--paper); }
.credstrip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.cs { padding: 2.1rem 0; display: flex; flex-direction: column; gap: 0.4rem; position: relative; }
.cs + .cs { padding-left: 2rem; }
.cs + .cs::before { content:""; position:absolute; left:0; top: 28%; bottom: 28%; width:1px; background: oklch(0.92 0.008 255 / 0.16); }
.cs-num { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.cs-num i { font-style: normal; font-size: 0.42em; color: var(--clay); font-weight: 700; margin-left: 0.15em; vertical-align: 0.5em; font-family: var(--f-mono); }
.cs-lab { font-size: 0.82rem; color: oklch(0.92 0.008 255 / 0.6); letter-spacing: -0.005em; }
@media (max-width: 720px){
  .credstrip-grid { grid-template-columns: 1fr 1fr; }
  .cs { padding: 1.5rem 0; }
  .cs:nth-child(2n) { padding-left: 2rem; }
  .cs:nth-child(2n+1)::before { display:none; }
}

/* ============================================================
   SECTION ALT (paper-2)
   ============================================================ */
.sec-alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ============================================================
   OFF THE CLOCK (dark)
   ============================================================ */
.offclock { background: var(--night); color: var(--paper); }
.offclock .mono-label { color: oklch(0.92 0.008 255 / 0.5); }
.offclock .mono-label::before { background: var(--clay); }
.oc-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.oc-head h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); letter-spacing: -0.035em; margin-top: 0.9rem; }
.oc-head p { color: oklch(0.92 0.008 255 / 0.6); margin-top: 1rem; font-size: 1.05rem; }
.oc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: oklch(0.92 0.008 255 / 0.12); border: 1px solid oklch(0.92 0.008 255 / 0.12); }
.oc { background: var(--night); padding: 1.7rem; transition: background .2s; }
.oc:hover { background: var(--night-2); }
.oc-k { font-family: var(--f-mono); font-size: 0.72rem; color: var(--clay); letter-spacing: 0.1em; }
.oc h4 { font-size: 1.25rem; margin: 0.7rem 0 0.5rem; letter-spacing: -0.02em; }
.oc p { color: oklch(0.92 0.008 255 / 0.58); font-size: 0.9rem; line-height: 1.55; margin: 0; }
@media (max-width: 820px){ .oc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .oc-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CTA BAND
   ============================================================ */
.ctaband { background: var(--paper); border-top: 1px solid var(--line); padding: clamp(56px, 8vw, 96px) 0; }
.ctaband-in { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.ctaband h2 { font-size: clamp(1.9rem, 4.5vw, 3.1rem); letter-spacing: -0.035em; margin-top: 0.9rem; }
.mono-label { color: var(--ink-3); }
.mono-label[style*="--clr"] { color: var(--clr, var(--ink-3)); }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-intro {
  display: grid; grid-template-columns: 320px 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start;
}
.ai-portrait { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 1rem; }
.ai-copy .ai-lead { font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; margin: 0 0 1.3rem; }
.ai-copy p { color: var(--ink-2); margin: 0 0 1.1rem; line-height: 1.7; }
.ai-now { margin-top: 1.8rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.ai-now-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; }
.ai-now-tags a {
  font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.04em; font-weight: 600;
  padding: 0.45rem 0.8rem; border: 1px solid var(--line); border-radius: 3px; color: var(--ink); transition: all .15s;
}
.ai-now-tags a:hover { border-color: var(--clay); color: var(--clay); }
@media (max-width: 820px){
  .about-intro { grid-template-columns: 1fr; }
  .ai-portrait { position: static; max-width: 360px; }
}

/* chapters */
.about-body { padding-top: clamp(40px, 6vw, 72px); }
.chapters { max-width: 980px; margin: 0 auto; }
.chapter { display: grid; grid-template-columns: 200px 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); padding: clamp(2.4rem,4vw,3.4rem) 0; border-top: 1px solid var(--line); }
.chapter:first-of-type { border-top: 0; padding-top: 0; }
.ch-aside { display: flex; flex-direction: column; gap: 0.5rem; }
.ch-aside { position: sticky; top: 100px; align-self: start; }
.ch-no { font-family: var(--f-mono); font-size: 0.78rem; color: var(--clay); font-weight: 700; letter-spacing: 0.1em; }
.ch-tag { font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.ch-main { display: flow-root; }
.ch-main h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.03em; margin-bottom: 1.1rem; }
.ch-main p { color: var(--ink-2); margin: 0 0 1.1rem; line-height: 1.75; }
.ch-main p em { color: var(--ink); font-style: italic; }
.ch-main strong { color: var(--ink); }
@media (max-width: 720px){
  .chapter { grid-template-columns: 1fr; gap: 1rem; }
  .ch-aside { position: static; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.8rem; }
  .ch-aside .ch-fig { flex-basis: 100%; max-width: 320px; margin-top: 0.7rem; }
}

/* pull quote */
.pullquote { max-width: 980px; margin: 0 auto; padding: clamp(2.4rem,5vw,3.6rem) 0; text-align: center; position: relative; }
.pullquote .pq-mark { font-family: var(--f-sans); font-size: 4rem; color: var(--clay); line-height: 0.5; display: block; height: 2rem; }
.pullquote p { font-size: clamp(1.5rem, 3.6vw, 2.4rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.18; margin: 1rem auto; max-width: 20ch; text-wrap: balance; }
.pullquote .pq-by { font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }

/* timeline */
.timeline { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 80px 1fr; gap: 1.4rem; padding: 1.2rem 0; border-top: 1px dashed var(--line); position: relative; }
.timeline li::before { content:""; position: absolute; left: 78px; top: 1.5rem; width: 9px; height: 9px; border-radius: 50%; background: var(--clay); transform: translateX(-50%); box-shadow: 0 0 0 4px var(--paper); }
.tl-year { font-family: var(--f-mono); font-weight: 700; font-size: 0.95rem; color: var(--ink); }
.timeline div strong { display: block; font-size: 1.1rem; letter-spacing: -0.01em; margin-bottom: 0.25rem; }
.timeline div span { color: var(--ink-2); font-size: 0.95rem; line-height: 1.6; }
@media (max-width: 720px){ .timeline li::before{ display:none; } .timeline li{ grid-template-columns: 64px 1fr; gap: 0.9rem; } }

/* chapter figure — left rail, framed like the hero portrait */
.ch-fig { width: 100%; margin: 1.2rem 0 0; }
.ch-fig-frame { position: relative; border: 1px solid var(--ink); padding: 7px; background: var(--card); box-shadow: 9px 9px 0 -2px var(--clay-soft); }
.ch-fig-frame img { width: 100%; display: block; }
.ch-fig img { width: 100%; display: block; }
.ch-fig .hc-tick { } /* reuse hero corner ticks */
.ch-fig figcaption { font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3); margin-top: 0.6rem; display: flex; align-items: center; gap: 0.5rem; line-height: 1.3; }
.ch-fig figcaption::before { content: ""; width: 16px; height: 1px; background: var(--clay); flex: none; }

/* ============================================================
   PROJECTS PAGE
   ============================================================ */
.proj-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); }
.proj {
  display: grid; grid-template-columns: 56px 1fr; gap: 1.2rem;
  padding: clamp(1.8rem, 3vw, 2.6rem); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--card); transition: background .2s;
}
.proj:hover { background: var(--paper); }
.proj:nth-child(2n) { border-right: 0; }
.proj-id { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.proj-no { font-family: var(--f-mono); font-weight: 700; font-size: 0.85rem; color: var(--clay); }
.proj-line { width: 1px; flex: 1; background: var(--line); }
.proj:hover .proj-line { background: var(--clay-line); }
.proj-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.9rem; flex-wrap: wrap; }
.proj-head h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); letter-spacing: -0.025em; }
.proj-cat { font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--ink-2); border: 1px solid var(--line); border-radius: 3px; padding: 0.28rem 0.5rem; }
.proj-body p { color: var(--ink-2); line-height: 1.65; margin: 0 0 1.2rem; font-size: 0.97rem; }
.proj-feats { list-style: none; margin: 0 0 1.4rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; }
.proj-feats li { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.02em; color: var(--ink); display: flex; align-items: center; gap: 0.45rem; }
.proj-feats li::before { content: ""; width: 5px; height: 5px; background: var(--clay); transform: rotate(45deg); }
.proj-link { font-family: var(--f-mono); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.03em; color: var(--ink); display: inline-flex; align-items: center; gap: 0.5rem; border-bottom: 2px solid var(--clay); padding-bottom: 3px; }
.proj-link .arr { color: var(--clay); transition: transform .18s; }
.proj-link:hover .arr { transform: translateX(4px); }
@media (max-width: 760px){
  .proj-list { grid-template-columns: 1fr; }
  .proj { border-right: 0; }
}

/* ============================================================
   WRITING INDEX — head, search, filters
   ============================================================ */
.writing-head { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; }
.search-box { position: relative; min-width: 280px; }
.search-box .search-ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-size: 1.1rem; }
.search-box input {
  width: 100%; font-family: var(--f-mono); font-size: 0.84rem; padding: 0.85rem 1rem 0.85rem 2.4rem;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--card); color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s;
}
.search-box input::placeholder { color: var(--ink-3); }
.search-box input:focus { border-color: var(--clay); box-shadow: 0 0 0 3px var(--clay-soft); }
@media (max-width: 760px){ .writing-head { grid-template-columns: 1fr; } .search-box { min-width: 0; } }

.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.chip {
  font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600;
  padding: 0.5rem 0.95rem; border: 1px solid var(--line); border-radius: 100px; background: transparent; color: var(--ink-2); cursor: pointer; transition: all .15s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.no-results { text-align: center; padding: 3rem 0; color: var(--ink-2); }
.linkbtn { background: none; border: 0; color: var(--clay); font: inherit; cursor: pointer; text-decoration: underline; }

/* ============================================================
   SINGLE ARTICLE
   ============================================================ */
.art-head { border-bottom: 1px solid var(--line); padding: clamp(40px,6vw,72px) 0 clamp(28px,4vw,44px); }
.crumb { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); display: flex; gap: 0.6rem; align-items: center; margin-bottom: 1.4rem; }
.crumb a { color: var(--ink-2); }
.crumb a:hover { color: var(--clay); }
.crumb-cat { color: var(--clay); font-weight: 600; }
.art-head h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); letter-spacing: -0.035em; line-height: 1.08; }
.art-meta { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 1.6rem; font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }
.am-by { color: var(--ink); font-weight: 600; display: flex; align-items: center; gap: 0.5rem; }
.am-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--clay); }

.art-layout { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: clamp(2rem, 5vw, 4.5rem); padding-top: clamp(40px,5vw,60px); padding-bottom: clamp(48px,6vw,80px); align-items: start; }

.art-body { max-width: 720px; font-size: 1.12rem; line-height: 1.75; color: var(--ink); }
.art-body > * { margin: 0 0 1.4rem; }
.art-lead { font-size: 1.32rem; line-height: 1.55; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.art-body h2 { font-size: 1.7rem; letter-spacing: -0.03em; margin: 2.6rem 0 1rem; line-height: 1.15; }
.art-body h3 { font-size: 1.3rem; letter-spacing: -0.02em; margin: 2rem 0 0.8rem; }
.art-body p { color: oklch(0.215 0.012 262 / 0.86); }
.art-body strong { color: var(--ink); font-weight: 700; }
.art-body em { font-style: italic; }
.art-body a { color: var(--clay); text-decoration: underline; text-decoration-color: var(--clay-line); text-underline-offset: 3px; }
.art-body a:hover { text-decoration-color: var(--clay); }
.art-body code { font-family: var(--f-mono); font-size: 0.86em; background: var(--clay-soft); color: var(--clay-press); padding: 0.15em 0.45em; border-radius: 4px; }
.art-body pre { background: var(--night); color: oklch(0.92 0.012 250); border-radius: 6px; padding: 1.1rem 1.2rem; overflow-x: auto; font-size: 0.86rem; line-height: 1.6; border: 1px solid var(--line); }
.art-body pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
.art-body blockquote { border-left: 3px solid var(--clay); padding: 0.4rem 0 0.4rem 1.5rem; margin: 1.8rem 0; }
.art-body blockquote p { color: var(--ink); font-size: 1.18rem; font-style: italic; font-weight: 500; line-height: 1.5; margin-bottom: 0.8rem; }
.art-body blockquote p:last-child { margin-bottom: 0; }
.art-body ol, .art-body ul { padding-left: 1.3rem; }
.art-body li { margin-bottom: 0.5rem; }

/* code/table */
.art-body table { width: 100%; border-collapse: collapse; font-family: var(--f-mono); font-size: 0.8rem; border: 1px solid var(--line); }
.art-body th, .art-body td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); }
.art-body th { background: var(--ink); color: var(--paper); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.68rem; }
.art-body tr:last-child td { border-bottom: 0; }
.art-body tbody tr:nth-child(even) td { background: var(--paper-2); }

/* callout */
.callout { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; background: var(--clay-soft); border: 1px solid var(--clay-line); border-radius: 6px; padding: 1.1rem 1.3rem; margin-bottom: 2rem; }
.callout-tag { font-family: var(--f-mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: #fff; background: var(--clay); padding: 0.3rem 0.55rem; border-radius: 3px; }
.callout p { margin: 0; font-size: 0.95rem; line-height: 1.6; color: var(--ink); }

/* aside */
.art-aside { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 1.2rem; }
.aside-card { border: 1px solid var(--line); border-radius: var(--r); padding: 1.3rem; background: var(--card); }
.aside-card h6 { font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 1rem; font-weight: 600; }
.aside-author { display: flex; gap: 0.9rem; align-items: center; margin-bottom: 1rem; }
.aside-author img { width: 52px; height: 52px; border-radius: 4px; object-fit: cover; object-position: 50% 20%; border: 1px solid var(--line); }
.aside-author strong { display: block; font-size: 0.95rem; letter-spacing: -0.01em; }
.aside-author span { font-size: 0.82rem; color: var(--ink-2); line-height: 1.4; }
.aside-link { font-family: var(--f-mono); font-size: 0.74rem; font-weight: 600; color: var(--ink); display: inline-flex; gap: 0.5rem; }
.aside-link .arr { color: var(--clay); transition: transform .18s; }
.aside-link:hover .arr { transform: translateX(4px); }
.aside-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.aside-tags a { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.04em; padding: 0.35rem 0.6rem; border: 1px solid var(--line); border-radius: 3px; color: var(--ink-2); transition: all .15s; }
.aside-tags a:hover { border-color: var(--clay); color: var(--clay); }
.share-row { display: flex; flex-direction: column; gap: 0.6rem; }
.share-row a { font-family: var(--f-mono); font-size: 0.78rem; color: var(--ink-2); }
.share-row a:hover { color: var(--clay); }
@media (max-width: 880px){
  .art-layout { grid-template-columns: 1fr; }
  .art-aside { position: static; flex-direction: row; flex-wrap: wrap; }
  .aside-card { flex: 1; min-width: 220px; }
}

/* next/prev */
.art-next { border-top: 1px solid var(--line); background: var(--paper-2); }
.art-next .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; }
.next-card { padding: clamp(1.8rem,4vw,3rem) clamp(1.4rem,3vw,2.4rem); background: var(--paper-2); transition: background .2s; border-right: 1px solid var(--line); }
.next-card.next-right { text-align: right; border-right: 0; }
.next-card:hover { background: var(--paper); }
.next-card h3 { font-size: 1.18rem; letter-spacing: -0.02em; line-height: 1.25; margin-top: 0.7rem; }
.next-card:hover h3 { color: var(--clay); }
@media (max-width: 680px){
  .art-next .wrap { grid-template-columns: 1fr; }
  .next-card, .next-card.next-right { text-align: left; border-right: 0; border-bottom: 1px solid var(--line); }
}

/* ============================================================
   COMPAT LAYER — PerezBox flat-PHP integration
   These rules (a) tame Bootstrap, which is still loaded for the
   ~295 legacy article files, and (b) map the legacy article +
   listing markup onto the new design system so every existing
   page adopts the refreshed look with no per-file edits.
   ============================================================ */

/* Bootstrap is loaded before this file for legacy article pages.
   Re-assert the design typography/surface on top of Reboot. */
body { font-family: var(--f-sans); background: var(--paper); color: var(--ink); font-size: 17px; line-height: 1.6; }

/* Defeat Bootstrap class collisions on the shared chrome.
   Bootstrap defines .nav{display:flex}; the design .nav is a sticky block
   wrapper whose inner .wrap is the flex row. Re-assert that here. */
nav.nav { display: block; flex-wrap: initial; padding: 0; margin: 0; list-style: none; }
nav.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 1200px){ .container { max-width: var(--maxw); } }

/* Generic interior content wrapper (contact, simple pages) */
.page-content { font-size: 1.08rem; line-height: 1.75; color: oklch(0.215 0.012 262 / 0.86); }
.page-content h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.04em; margin: 0 0 1.2rem; }
.page-content h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); letter-spacing: -0.03em; margin: 2.4rem 0 1rem; }
.page-content h3 { font-size: 1.3rem; letter-spacing: -0.02em; margin: 2rem 0 0.7rem; }
.page-content h4 { font-size: 1.1rem; letter-spacing: -0.015em; margin: 1.6rem 0 0.6rem; }
.page-content p { margin: 0 0 1.2rem; }
.page-content ul, .page-content ol { padding-left: 1.3rem; margin: 0 0 1.2rem; }
.page-content li { margin-bottom: 0.5rem; }
.page-content strong { color: var(--ink); }
.page-content em { font-style: italic; color: var(--ink); }
.page-content a { color: var(--clay); text-decoration: underline; text-decoration-color: var(--clay-line); text-underline-offset: 3px; }
.page-content a:hover { text-decoration-color: var(--clay); }
.page-content hr { border: 0; border-top: 1px solid var(--line); margin: 2.4rem 0; }

/* ---------- Legacy article reading view ----------
   Markup: .article-header (.article-header-inner) + .container/.row/.col-lg-8
   .article-body, .article-nav, .col-lg-4 includes/sidebar.php */
.article-header { border-bottom: 1px solid var(--line); padding: clamp(40px,6vw,72px) 0 clamp(26px,4vw,40px);
  background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 26px 26px; }
.article-header .container { position: relative; z-index: 1; }
.article-header-inner { max-width: 820px; }
.article-header .badge { display: inline-block; font-family: var(--f-mono); font-size: 0.64rem; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 600; color: var(--clay); background: var(--clay-soft);
  border: 1px solid var(--clay-line); border-radius: 3px; padding: 0.3rem 0.55rem; vertical-align: middle; }
.article-header .mb-2 { font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 1.2rem !important; }
.article-header h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); letter-spacing: -0.035em; line-height: 1.08; margin: 0.6rem 0 0; }
.article-header p { font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink); font-weight: 600; margin: 1.2rem 0 0; }

.article-body { max-width: 760px; font-size: 1.12rem; line-height: 1.75; color: oklch(0.215 0.012 262 / 0.86);
  padding-top: clamp(28px, 4vw, 48px); }
.article-body > * { margin: 0 0 1.4rem; }
.article-body h2 { font-size: 1.7rem; letter-spacing: -0.03em; margin: 2.6rem 0 1rem; line-height: 1.15; color: var(--ink); }
.article-body h3 { font-size: 1.3rem; letter-spacing: -0.02em; margin: 2rem 0 0.8rem; color: var(--ink); }
.article-body h4 { font-size: 1.12rem; letter-spacing: -0.015em; margin: 1.6rem 0 0.6rem; color: var(--ink); }
.article-body strong { color: var(--ink); font-weight: 700; }
.article-body em { font-style: italic; }
.article-body a { color: var(--clay); text-decoration: underline; text-decoration-color: var(--clay-line); text-underline-offset: 3px; }
.article-body a:hover { text-decoration-color: var(--clay); }
.article-body code { font-family: var(--f-mono); font-size: 0.86em; background: var(--clay-soft); color: var(--clay-press); padding: 0.15em 0.45em; border-radius: 4px; }
.article-body pre { background: var(--night); color: oklch(0.92 0.012 250); border-radius: 6px; padding: 1.1rem 1.2rem; overflow-x: auto; font-size: 0.86rem; line-height: 1.6; border: 1px solid var(--line); }
.article-body pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
.article-body blockquote { border-left: 3px solid var(--clay); padding: 0.4rem 0 0.4rem 1.5rem; margin: 1.8rem 0; }
.article-body blockquote p { color: var(--ink); font-size: 1.1rem; font-style: italic; font-weight: 500; line-height: 1.55; }
.article-body ol, .article-body ul { padding-left: 1.3rem; }
.article-body li { margin-bottom: 0.5rem; }
.article-body img { border-radius: var(--r); margin: 1.6rem 0; }
.article-body table { width: 100%; border-collapse: collapse; font-family: var(--f-mono); font-size: 0.8rem; border: 1px solid var(--line); }
.article-body th, .article-body td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); }
.article-body th { background: var(--ink); color: var(--paper); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.68rem; }
.article-body tr:last-child td { border-bottom: 0; }
.article-body tbody tr:nth-child(even) td { background: var(--paper-2); }

/* Legacy Bootstrap alerts -> design callout */
.article-body .alert { display: block; background: var(--clay-soft); border: 1px solid var(--clay-line); border-radius: 6px;
  padding: 1.1rem 1.3rem; margin: 0 0 2rem; color: var(--ink); font-size: 0.97rem; line-height: 1.6; }
.article-body .alert strong { color: var(--clay-press); }
.article-body .alert-warning { background: var(--clay-soft); border-color: var(--clay-line); }

.article-nav { margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.article-nav a { font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase;
  font-weight: 600; color: var(--ink); border-bottom: 2px solid var(--clay); padding-bottom: 3px; }
.article-nav a:hover { color: var(--clay); }

/* Legacy sidebar (includes/sidebar.php) -> aside cards */
.sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 1.2rem; padding-top: clamp(28px, 4vw, 48px); }
.sidebar-section { border: 1px solid var(--line); border-radius: var(--r); padding: 1.3rem; background: var(--card); }
.sidebar-section h5 { font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 1rem; font-weight: 600; }
.sidebar-section ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.project-links a { display: block; font-weight: 700; font-size: 0.95rem; letter-spacing: -0.01em; color: var(--ink); }
.project-links a:hover { color: var(--clay); }
.project-links a span { display: block; font-family: var(--f-mono); font-size: 0.64rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-3); font-weight: 500; margin-top: 0.15rem; }
.project-links i, .category-links i { color: var(--clay); }
.category-links a { font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.04em; color: var(--ink-2); }
.category-links a:hover { color: var(--clay); }
@media (max-width: 991px){ .sidebar { position: static; } }

/* ---------- Legacy articles listing fallbacks ----------
   (articles/index.php is rewritten to the new write-row markup, but
   keep these so any cached/Bootstrap card markup still looks right.) */
.article-list-hero { border-bottom: 1px solid var(--line); padding: clamp(48px,7vw,88px) 0 clamp(28px,4vw,44px);
  background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 26px 26px; }
.article-list-hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); letter-spacing: -0.04em; }
.article-list-hero p { color: var(--ink-2); font-size: 1.15rem; margin-top: 1rem; }

/* Search results dropdown (js/search.js, shared header/listing search) */
.search-results { position: absolute; z-index: 60; width: 100%; margin-top: 4px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 18px 40px -24px var(--ink); max-height: 360px; overflow-y: auto; }
.search-results .list-group-item { display: block; padding: 0.7rem 1rem; border: 0; border-bottom: 1px solid var(--line-2); color: var(--ink); }
.search-results .list-group-item:hover { background: var(--paper-3); color: var(--clay); }
.search-results .list-group-item:last-child { border-bottom: 0; }
