/* ==========================================================================
   FORMHAU — Design System
   A material-led editorial system for an interior design magazine.
   Palette: Plaster / Ink / Walnut / Brass / Sage — drawn from the physical
   materials of a well-made room, not a screen default.
   ========================================================================== */

:root {
  /* ---- Color: light mode (Plaster) ---- */
  --plaster: #EDE8DF;
  --plaster-raised: #F6F3EC;
  --ink: #201D1A;
  --ink-soft: #4A443C;
  --walnut: #5B4636;
  --brass: #A9803F;
  --brass-bright: #C89A55;
  --sage: #5F6E52;
  --line: rgba(32, 29, 26, 0.12);
  --line-strong: rgba(32, 29, 26, 0.22);
  --surface: var(--plaster-raised);
  --bg: var(--plaster);
  --text: var(--ink);
  --text-soft: var(--ink-soft);
  --accent: var(--brass);
  --shadow: 0 1px 2px rgba(32,29,26,0.04), 0 8px 24px -8px rgba(32,29,26,0.12);

  /* ---- Type ---- */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Space Mono", "SF Mono", Menlo, monospace;

  /* ---- Scale ---- */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1:  clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem);
  --step-2:  clamp(1.6rem, 1.4rem + 0.8vw, 2.1rem);
  --step-3:  clamp(2.1rem, 1.7rem + 1.6vw, 3rem);
  --step-4:  clamp(2.8rem, 2.1rem + 2.8vw, 4.5rem);
  --step-5:  clamp(3.4rem, 2.4rem + 4vw, 6rem);

  /* ---- Layout ---- */
  --container: 1240px;
  --container-narrow: 760px;
  --radius-sm: 3px;
  --radius: 6px;
  --gutter: clamp(1.25rem, 3vw, 3rem);
  --nav-h: 76px;

  /* ---- Motion ---- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.5s;
}

[data-theme="dark"] {
  --ink: #EDE8DF;
  --ink-soft: #C7C0B4;
  --plaster: #17140F;
  --plaster-raised: #211D17;
  --line: rgba(237, 232, 223, 0.12);
  --line-strong: rgba(237, 232, 223, 0.22);
  --surface: var(--plaster-raised);
  --bg: var(--plaster);
  --text: var(--ink);
  --text-soft: var(--ink-soft);
  --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 12px 32px -10px rgba(0,0,0,0.55);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure { margin: 0; }
button { font: inherit; cursor: pointer; }
input, textarea { font: inherit; }
:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: var(--container-narrow); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 1.4em;
  height: 1px;
  background: currentColor;
}

h1, .h1 { font-family: var(--font-display); font-weight: 600; font-size: var(--step-5); line-height: 1.02; letter-spacing: -0.01em; }
h2, .h2 { font-family: var(--font-display); font-weight: 600; font-size: var(--step-3); line-height: 1.08; letter-spacing: -0.01em; }
h3, .h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--step-2); line-height: 1.15; }
h4, .h4 { font-family: var(--font-display); font-weight: 500; font-size: var(--step-1); line-height: 1.3; }
.lede { font-size: var(--step-1); color: var(--text-soft); line-height: 1.5; font-weight: 400; }

/* ---- Material swatch divider — signature element ---- */
.swatch-rule {
  display: flex;
  height: 6px;
  width: 100%;
  overflow: hidden;
  border-radius: 999px;
}
.swatch-rule span { flex: 1; }
.swatch-rule .s1 { background: var(--brass); }
.swatch-rule .s2 { background: var(--walnut); }
.swatch-rule .s3 { background: var(--sage); }
.swatch-rule .s4 { background: var(--ink); opacity: 0.7; }

/* ---- Reading progress bar ---- */
#reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--brass), var(--sage));
  z-index: 1000;
  transition: width 0.1s linear;
}

/* ---- Nav ---- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 500;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; width: 100%; }
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}
.brand .dot { color: var(--brass); }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  font-size: var(--step--1);
  font-weight: 500;
  position: relative;
  padding: 0.3rem 0;
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 1.5px; background: var(--brass);
  transition: right var(--dur) var(--ease);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { right: 0; }
.nav-links a[aria-current="page"] { color: var(--brass); }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.icon-btn:hover { border-color: var(--brass); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; stroke: var(--text); fill: none; stroke-width: 1.6; }
[data-theme="dark"] .icon-btn .icon-moon { display: none; }
:root:not([data-theme="dark"]) .icon-btn .icon-sun { display: none; }

.nav-toggle { display: none; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border-radius: 2px;
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color .25s var(--ease);
}
.btn-primary { background: var(--ink); color: var(--plaster); }
.btn-primary:hover { transform: translateY(-2px); background: var(--brass); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--brass); color: var(--brass); transform: translateY(-2px); }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.78rem; }

/* ---- Hero ---- */
.hero {
  position: relative;
  padding-top: clamp(3rem, 8vw, 6rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
}
.hero h1 { margin-top: 1rem; }
.hero h1 em {
  font-style: italic;
  color: var(--brass);
}
.hero-copy p.lede { margin-top: 1.5rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 1rem; margin-top: 2.2rem; flex-wrap: wrap; }
.hero-art {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(32,29,26,0.06), 0 24px 48px -16px rgba(32,29,26,0.28);
}
.hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}
.blueprint {
  position: absolute; inset: 0;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0/28px 28px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0/28px 28px,
    linear-gradient(155deg, var(--walnut), var(--ink) 55%, var(--sage));
}
.blueprint--overlay {
  mix-blend-mode: normal;
}
.blueprint--overlay .ring { border-color: rgba(237,232,223,0.55); }
.blueprint .ring {
  position: absolute;
  border: 1px solid rgba(237,232,223,0.35);
  border-radius: 50%;
}
.blueprint .r1 { width: 60%; aspect-ratio:1; top: 8%; left: 10%; }
.blueprint .r2 { width: 30%; aspect-ratio:1; bottom: 12%; right: 12%; border-color: rgba(237,232,223,0.5); }
.blueprint .label {
  position: absolute; bottom: 1.4rem; left: 1.4rem;
  color: var(--plaster-raised);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

/* ---- Section scaffolding ---- */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2rem; margin-bottom: clamp(2rem, 4vw, 3rem); flex-wrap: wrap;
}
.section-head h2 { margin-top: 0.6rem; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---- Category cards ---- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.cat-card {
  position: relative;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  min-height: 168px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow .35s var(--ease);
}
.cat-card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: 0 2px 4px rgba(32,29,26,0.05), 0 20px 40px -14px rgba(32,29,26,0.2); }
.cat-card .swatch { width: 30px; height: 30px; border-radius: 50%; }
.cat-card h4 { margin-top: 1rem; }
.cat-card span { color: var(--text-soft); font-size: var(--step--1); }

/* ---- Article / post cards ---- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.post-card {
  display: flex; flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.post-card:hover { transform: translateY(-7px); box-shadow: 0 2px 4px rgba(32,29,26,0.05), 0 26px 44px -16px rgba(32,29,26,0.24); border-color: var(--line-strong); }
.post-thumb {
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
}
.post-thumb .art { position: absolute; inset: 0; }
.post-thumb img { transition: transform 0.7s var(--ease); }
.post-card:hover .post-thumb img { transform: scale(1.07); }
.post-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(32,29,26,0.28));
  opacity: 0; transition: opacity 0.35s var(--ease);
  pointer-events: none;
}
.post-card:hover .post-thumb::after { opacity: 1; }
.featured-art img { transition: transform 0.8s var(--ease); }
.featured:hover .featured-art img { transform: scale(1.05); }
.post-thumb .cat-tag {
  position: absolute; top: 0.9rem; left: 0.9rem;
  background: var(--ink); color: var(--plaster);
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 0.35rem 0.6rem; border-radius: 2px;
}
.post-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.post-meta { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-soft); letter-spacing: 0.02em; display: flex; gap: 0.8rem; }
.post-body h3 { font-size: var(--step-1); }
.post-excerpt { color: var(--text-soft); font-size: 0.92rem; }
.post-card.is-placeholder { opacity: 0.55; }
.badge-soon {
  align-self: flex-start;
  font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--brass);
  border: 1px solid var(--brass); padding: 0.2rem 0.5rem; border-radius: 2px;
}

/* ---- Featured / hero article strip ---- */
.featured {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}
.featured-art { position: relative; min-height: 340px; }
.featured-body { padding: clamp(1.75rem, 3vw, 3rem) clamp(1.75rem, 3vw, 2.5rem) clamp(1.75rem, 3vw, 3rem) 0; display: flex; flex-direction: column; justify-content: center; gap: 1rem; }

/* ---- Trending list ---- */
.trend-list { display: flex; flex-direction: column; }
.trend-item {
  display: grid; grid-template-columns: 3rem 1fr auto; align-items: center; gap: 1.25rem;
  padding: 1.25rem 0; border-bottom: 1px solid var(--line);
}
.trend-item:first-child { padding-top: 0; }
.trend-num { font-family: var(--font-display); font-size: 1.8rem; color: var(--line-strong); font-weight: 600; }
.trend-item h4 { font-size: var(--step-0); }
.trend-item .post-meta { margin-top: 0.25rem; }
.trend-arrow { opacity: 0; transform: translateX(-6px); transition: all 0.3s var(--ease); }
.trend-item:hover .trend-arrow { opacity: 1; transform: translateX(0); }

/* ---- Newsletter ---- */
.newsletter {
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--plaster);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.newsletter::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(169,128,63,0.18));
  pointer-events: none;
}
.newsletter .eyebrow { color: var(--brass-bright); }
.newsletter h2 { color: var(--plaster); margin-top: 0.6rem; }
.newsletter p { color: rgba(237,232,223,0.72); margin-top: 1rem; max-width: 42ch; }
.nl-form { display: flex; gap: 0.75rem; }
.nl-form input {
  flex: 1; padding: 0.95rem 1.1rem;
  background: rgba(237,232,223,0.08);
  border: 1px solid rgba(237,232,223,0.25);
  border-radius: 2px; color: var(--plaster);
}
.nl-form input::placeholder { color: rgba(237,232,223,0.5); }
.nl-form .btn-primary { background: var(--brass); color: var(--ink); white-space: nowrap; }
.nl-form .btn-primary:hover { background: var(--brass-bright); }
.nl-note { font-size: 0.75rem; margin-top: 0.85rem; color: rgba(237,232,223,0.5); }
.nl-success { display: none; font-family: var(--font-mono); font-size: 0.85rem; color: var(--brass-bright); margin-top: 1rem; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--line); padding-block: 3.5rem 2rem; margin-top: 4rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.footer-grid h5 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 1rem; }
.footer-grid ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-grid a { font-size: 0.9rem; color: var(--text-soft); transition: color 0.2s; }
.footer-grid a:hover { color: var(--brass); }
.footer-about p { color: var(--text-soft); font-size: 0.9rem; max-width: 34ch; margin-top: 1rem; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line); padding-top: 1.75rem; flex-wrap: wrap; gap: 1rem;
  font-size: 0.8rem; color: var(--text-soft);
}
.footer-legal { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-legal a:hover { color: var(--brass); }
.social-row { display: flex; gap: 0.6rem; }

/* ---- Back to top ---- */
#back-to-top {
  position: fixed; bottom: 1.75rem; right: 1.75rem;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink); color: var(--plaster);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all 0.3s var(--ease);
  z-index: 400; border: none;
  box-shadow: var(--shadow);
}
#back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
#back-to-top:hover { background: var(--brass); }
#back-to-top svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ---- Article page ---- */
.article-hero { padding-top: clamp(2.5rem, 6vw, 4rem); padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.article-meta-row { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }
.author-chip { display: flex; align-items: center; gap: 0.65rem; }
.author-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--brass), var(--sage)); }
.article-body {
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  font-size: 1.08rem;
}
.article-body p { margin-bottom: 1.4rem; color: var(--text); }
.article-body h2 { margin-top: 3rem; margin-bottom: 1.2rem; font-size: var(--step-2); }
.article-body h3 { margin-top: 2.2rem; margin-bottom: 1rem; font-size: var(--step-1); }
.article-body ul, .article-body ol { margin: 0 0 1.4rem 1.4rem; color: var(--text); }
.article-body li { margin-bottom: 0.5rem; }
.article-body blockquote {
  margin: 2.2rem 0; padding: 0.2rem 0 0.2rem 1.6rem;
  border-left: 3px solid var(--brass);
  font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--text-soft);
}
.article-body figure { margin: 2.2rem 0; }
.article-body figure .art { aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; }
.article-body figcaption { font-size: 0.82rem; color: var(--text-soft); margin-top: 0.6rem; font-family: var(--font-mono); }
.share-rail { display: flex; gap: 0.6rem; margin-top: 2rem; }
.toc {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.75rem; margin-bottom: 2.5rem;
}
.toc h5 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 0.85rem; }
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc li { margin-bottom: 0.45rem; }
.toc a:hover { color: var(--brass); }

/* ---- Generic content pages (about/legal) ---- */
.page-hero { padding-block: clamp(3rem, 6vw, 5rem) 2.5rem; border-bottom: 1px solid var(--line); }
.prose { max-width: var(--container-narrow); margin-inline: auto; padding-block: clamp(2.5rem, 5vw, 4rem); }
.prose h2 { margin-top: 2.4rem; margin-bottom: 1rem; }
.prose p { margin-bottom: 1.2rem; color: var(--text-soft); }
.prose ul { margin: 0 0 1.2rem 1.4rem; color: var(--text-soft); }
.prose li { margin-bottom: 0.5rem; }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.value-card { padding: 1.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.value-card .num { font-family: var(--font-mono); color: var(--brass); font-size: 0.8rem; }
.value-card h4 { margin-top: 0.75rem; }
.value-card p { color: var(--text-soft); margin-top: 0.6rem; font-size: 0.92rem; }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; margin-top: 2rem; }
.team-card .avatar { aspect-ratio: 1; border-radius: var(--radius); margin-bottom: 1rem; }
.team-card h4 { font-size: 1.05rem; }
.team-card span { color: var(--text-soft); font-size: 0.85rem; }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.form-field { margin-bottom: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.form-field label { font-size: 0.85rem; font-weight: 600; }
.form-field input, .form-field textarea, .form-field select {
  padding: 0.85rem 1rem; border: 1px solid var(--line-strong); border-radius: 2px;
  background: var(--surface); color: var(--text);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.contact-info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.contact-info-card .row { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-info-card .row:last-child { border-bottom: none; }

/* ---- 404 ---- */
.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-block: 4rem; }
.error-code { font-family: var(--font-display); font-size: clamp(6rem, 20vw, 12rem); line-height: 1; color: var(--brass); font-weight: 700; }

/* ---- Utility ---- */
.mt-1{margin-top:1rem}.mt-2{margin-top:2rem}.center{text-align:center}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -100px; left: 1rem; z-index: 2000;
  background: var(--ink); color: var(--plaster); padding: 0.75rem 1.25rem;
  border-radius: 2px; font-family: var(--font-mono); font-size: 0.85rem;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }
.tag-row { display:flex; gap:0.5rem; flex-wrap:wrap; }
.tag { border:1px solid var(--line-strong); border-radius: 2px; padding:0.35rem 0.7rem; font-size:0.78rem; font-family: var(--font-mono); }

/* ==========================================================================
   VERSION 2 ADDITIONS — logo mark, nav polish, Editor's Picks, footer
   ========================================================================== */

/* ---- Logo mark ---- */
.logo-mark {
  width: 30px; height: 30px;
  border-radius: 7px;
  background: var(--ink);
  display: grid; place-items: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(237,232,223,0.08);
}
.logo-mark svg { width: 16px; height: 16px; }
.footer-about .logo-mark { width: 34px; height: 34px; }
.footer-about .logo-mark svg { width: 18px; height: 18px; }
.brand { gap: 0.55rem; }

/* ---- Nav polish ---- */
.site-nav { transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease); }
.site-nav.is-scrolled {
  box-shadow: 0 1px 0 var(--line), 0 16px 32px -20px rgba(32,29,26,0.28);
}
.nav-links a { transition: color 0.25s var(--ease); }
.nav-links a:hover { color: var(--brass); }
.icon-btn { transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.icon-btn:hover { box-shadow: 0 6px 16px -8px rgba(32,29,26,0.3); }

/* ---- Section eyebrow rule accent on hover for nav-adjacent cards ---- */
.cat-card { position: relative; }
.cat-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--brass), var(--sage));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
  border-radius: 2px 2px 0 0;
}
.cat-card:hover::before { transform: scaleX(1); }

/* ---- Editor's Picks ---- */
.picks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.pick-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  display: flex; align-items: flex-end;
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.pick-card:hover { transform: translateY(-6px); box-shadow: 0 2px 4px rgba(32,29,26,0.05), 0 26px 44px -16px rgba(32,29,26,0.26); }
.pick-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.pick-card:hover img { transform: scale(1.06); }
.pick-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(32,29,26,0.86));
}
.pick-badge {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  background: var(--brass); color: var(--ink);
  font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.35rem 0.65rem; border-radius: 2px; font-weight: 700;
}
.pick-body { position: relative; z-index: 2; padding: 1.5rem; color: var(--plaster-raised); }
.pick-body .post-meta { color: rgba(237,232,223,0.7); }
.pick-body h3 { color: var(--plaster-raised); font-size: 1.25rem; margin-top: 0.4rem; }
.pick-body h3 a { color: inherit; }

/* ---- Trending refinements ---- */
.trend-item { transition: padding-left 0.3s var(--ease), background 0.3s var(--ease); border-radius: 4px; }
.trend-item:hover { padding-left: 0.75rem; background: var(--surface); }

/* ---- Footer V2 ---- */
.footer-newsletter {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem 2rem;
  align-items: center;
  margin-bottom: 3rem;
}
.footer-newsletter h4 { font-size: 1.15rem; }
.footer-newsletter p { color: var(--text-soft); font-size: 0.9rem; margin-top: 0.35rem; }
.footer-newsletter form { display: flex; gap: 0.65rem; }
.footer-newsletter input {
  padding: 0.75rem 1rem; border: 1px solid var(--line-strong); border-radius: 2px;
  background: var(--bg); color: var(--text); min-width: 220px;
}
.social-row .icon-btn:hover { background: var(--ink); }
.social-row .icon-btn:hover svg { stroke: var(--plaster); }

/* ---- Pagination ---- */
.pagination {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  margin-top: 3rem; flex-wrap: wrap;
}
.page-btn {
  min-width: 40px; height: 40px; padding: 0 0.5rem;
  border: 1px solid var(--line-strong); border-radius: 2px;
  background: var(--surface); color: var(--text);
  font-family: var(--font-mono); font-size: 0.85rem;
  transition: all 0.25s var(--ease);
}
.page-btn:hover { border-color: var(--brass); color: var(--brass); }
.page-btn.is-active { background: var(--ink); color: var(--plaster); border-color: var(--ink); }
.pagination .btn[disabled] { opacity: 0.35; pointer-events: none; }

/* ---- Mobile ---- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; aspect-ratio: 16/9; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .featured { grid-template-columns: 1fr; }
  .featured-body { padding: 1.75rem; }
  .newsletter { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .value-grid, .team-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .picks-grid { grid-template-columns: 1fr 1fr; }
  .footer-newsletter { grid-template-columns: 1fr; }
  .footer-newsletter form { flex-wrap: wrap; }
}
@media (max-width: 700px) {
  .nav-links { position: fixed; inset: var(--nav-h) 0 0 0; background: var(--bg); flex-direction: column; padding: 2rem var(--gutter); align-items: flex-start; gap: 1.5rem; transform: translateX(100%); transition: transform 0.35s var(--ease); }
  .nav-links.is-open { transform: translateX(0); }
  .nav-toggle { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); }
  .nav-toggle svg { width: 18px; height: 18px; stroke: var(--text); fill: none; stroke-width: 1.6; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .picks-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .value-grid, .team-grid { grid-template-columns: 1fr; }
  .nl-form { flex-direction: column; }
}
