/* ============================================================
   Grabsnest — public stylesheet
   Same design system as the Cartliz build (tokens, type scale,
   lowercase display headings, outlined chips and buttons, dark
   footer with a giant wordmark), arranged on the "Halftimers"
   blog structure: split title hero + slider, one featured story,
   a spotlight band, latest posts, and a tabbed blog page.
   --pink (primary) / --orange (secondary) / --bg are injected
   per-page by the CMS; everything else derives from them.
   ============================================================ */

:root {
  /* brand (overridden inline by the CMS) */
  --pink: #1c1d3a;                 /* primary: midnight navy */
  --orange: #ff5b2e;               /* secondary: signal orange */
  --bg: #f5f3ee;                   /* warm paper */
  --accent: var(--orange);

  /* neutrals, derived from the brand so a colour change flows through */
  --ink: color-mix(in srgb, var(--pink) 70%, #000);
  --ink-2: color-mix(in srgb, var(--pink) 45%, #444);
  --muted: color-mix(in srgb, var(--pink) 35%, #8a8a8a);
  --line: color-mix(in srgb, var(--pink) 12%, #e8e4dc);
  --line-soft: color-mix(in srgb, var(--pink) 5%, #f0ece5);
  --card: #fff;
  --dark: color-mix(in srgb, var(--pink) 92%, #000);
  --dark-2: color-mix(in srgb, var(--pink) 75%, #000);
  --band-1: color-mix(in srgb, var(--orange) 12%, var(--bg));
  --band-2: color-mix(in srgb, var(--pink) 7%, var(--bg));
  --on-dark: #f8f6f1;

  /* type */
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: Outfit, "Segoe UI", Helvetica, Arial, sans-serif;
  --f-xs: .78rem;
  --f-sm: .88rem;
  --f-base: clamp(.97rem, .93rem + .15vw, 1.04rem);
  --f-lg: clamp(1.05rem, 1rem + .3vw, 1.2rem);
  --f-h3: clamp(1.3rem, 1.15rem + .6vw, 1.7rem);
  --f-h2: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
  --f-h1: clamp(2.1rem, 1.4rem + 2.6vw, 3.6rem);

  /* space */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;

  --r-sm: 6px; --r: 10px; --r-lg: 14px; --r-pill: 999px;
  --sh-2: 0 10px 30px color-mix(in srgb, var(--pink) 14%, transparent);
  --ease: cubic-bezier(.22,.61,.36,1);
  --wrap: 1200px;
  --narrow: 760px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--f-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-family: var(--font-display); font-weight: 700; letter-spacing: -.015em; color: var(--pink); }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
button { font: inherit; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.sr, .skip:not(:focus) {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip:focus {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  background: var(--card); color: var(--ink);
  padding: 10px 16px; border-radius: var(--r-sm); box-shadow: var(--sh-2);
}

/* ---------- buttons: outlined (fill on hover) and solid ---------- */
.btn-line, .share-row a, .share-row button, .browse-list a, .social-row a, .header-social a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--pink); background: transparent; color: var(--pink);
  font-family: var(--font-body); font-size: var(--f-xs); font-weight: 500; line-height: 1.2;
  cursor: pointer; transition: background .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease);
}
.btn-line:hover, .share-row a:hover, .share-row button:hover,
.browse-list a:hover, .social-row a:hover, .header-social a:hover { background: var(--pink); color: var(--bg); }
.btn-line--light { border-color: color-mix(in srgb, var(--on-dark) 55%, transparent); color: var(--on-dark); }
.btn-line--light:hover { background: var(--on-dark); color: var(--dark); border-color: var(--on-dark); }

.btn-solid {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--r-sm); cursor: pointer;
  border: 1px solid var(--pink); background: var(--pink); color: var(--bg);
  font-size: var(--f-sm); font-weight: 600;
  transition: background .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease);
}
.btn-solid:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn-solid--accent { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn-solid--accent:hover { background: var(--on-dark); border-color: var(--on-dark); color: var(--dark); }

/* ---------- layout ---------- */
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 40px, var(--narrow)); }

.section-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s4); margin-bottom: var(--s5);
}
.section-head .section-title { margin-bottom: 0; }
.section-note { font-size: var(--f-xs); color: var(--muted); white-space: nowrap; }
a.section-note:hover { color: var(--orange); }

/* bold, lowercase section headings with an accent square */
.section-title {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 800;
  font-size: var(--f-h2); line-height: 1.1; letter-spacing: -.025em;
  text-transform: lowercase; color: var(--pink); margin: 0 0 var(--s5);
}
.section-title::before { content: ""; width: 14px; height: 14px; border-radius: 3px; background: var(--orange); flex-shrink: 0; }

.band { width: 100%; padding: var(--s7) 0; }
.band--blush { background: var(--band-2); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: var(--s5); min-height: 76px; }
.logo img { height: 42px; width: auto; object-fit: contain; }
.logo-text {
  font-family: var(--font-display); font-weight: 900; font-size: 1.75rem;
  letter-spacing: -.045em; text-transform: lowercase; color: var(--pink); white-space: nowrap;
}
.logo-text::after { content: "."; color: var(--orange); }
.logo--light .logo-text { color: var(--on-dark); }
.nav-row { display: flex; align-items: center; gap: var(--s4); flex: 1; }
.nav-row nav { margin-inline: auto; }

.menu { display: flex; align-items: center; gap: 2px; }
.menu > li { position: relative; }
.menu > li > a {
  display: block; padding: 10px 13px; border-radius: var(--r-sm);
  font-size: var(--f-sm); font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--pink);
  transition: color .16s var(--ease), background .16s var(--ease);
}
.menu > li > a:hover { color: var(--orange); }
.menu > li.current > a { background: var(--pink); color: var(--bg); }
.menu > li.has-children > a { padding-right: 22px; }
.menu > li.has-children > a::before {
  content: ""; position: absolute; right: 8px; top: 50%;
  width: 5px; height: 5px; margin-top: -4px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); opacity: .6;
}
.sub-menu {
  position: absolute; top: calc(100% + 2px); left: 0; min-width: 200px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm);
  box-shadow: var(--sh-2); padding: 6px; opacity: 0; visibility: hidden;
  transform: translateY(-4px); transition: all .16s var(--ease);
}
.menu > li:hover > .sub-menu, .menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { display: block; padding: 9px 12px; border-radius: 4px; font-size: var(--f-sm); color: var(--ink-2); }
.sub-menu a:hover { background: var(--line-soft); color: var(--pink); }

.search-form { display: flex; align-items: center; }
.search-form input {
  width: 150px; padding: 9px 14px; font: inherit; font-size: var(--f-sm);
  border: 1px solid var(--pink); border-right: 0; color: var(--ink);
  border-radius: var(--r-sm) 0 0 var(--r-sm); background: #fff;
  transition: width .2s var(--ease);
}
.search-form input::placeholder { color: var(--muted); }
.search-form input:focus { width: 200px; outline: none; }
.search-form button {
  padding: 10px 16px; border: 1px solid var(--pink); cursor: pointer;
  font-size: var(--f-sm); font-weight: 600; color: var(--bg);
  background: var(--pink); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  transition: background .16s var(--ease), border-color .16s var(--ease);
}
.search-form button:hover { background: var(--orange); border-color: var(--orange); }
.header-social { display: flex; gap: 6px; }
.header-social a { padding: 6px 9px; }
.menu-toggle {
  display: none; width: 42px; height: 42px; padding: 10px;
  background: none; border: 1px solid var(--pink); border-radius: var(--r-sm); cursor: pointer;
}
.menu-toggle span { display: block; height: 2px; background: var(--pink); border-radius: 2px; }
.menu-toggle span + span { margin-top: 5px; }

/* ---------- chips and meta ---------- */
.cats { display: flex; flex-wrap: wrap; gap: 6px; }
.cats a, .cats span {
  display: inline-block; padding: 3px 9px; border-radius: 4px;
  border: 1px solid currentColor; color: var(--pink);
  font-size: var(--f-xs); font-weight: 600; line-height: 1.4; text-transform: uppercase; letter-spacing: .04em;
  transition: background .16s var(--ease), color .16s var(--ease);
}
.cats a:hover { background: var(--pink); color: var(--bg); }
.meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: var(--f-xs); color: var(--muted); }
.meta li { position: relative; }
.meta li + li::before {
  content: ""; position: absolute; left: -9px; top: 50%;
  width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6;
}

/* ---------- hero: big stacked title on the dark band, slider beside it ---------- */
.hero { background: var(--dark); color: var(--on-dark); padding: var(--s8) 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--s7); align-items: center; }
.hero-eyebrow {
  margin: 0 0 var(--s4); font-size: var(--f-xs); font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--orange);
}
.hero-title {
  margin: 0; color: var(--on-dark); font-weight: 900; text-transform: lowercase;
  font-size: clamp(3rem, 1.6rem + 5.2vw, 6.6rem); line-height: .9; letter-spacing: -.05em;
}
.hero-title span { display: block; }
.hero-title-2 { color: var(--orange); }
.hero-tagline { max-width: 42ch; margin: var(--s5) 0 0; font-size: var(--f-lg); color: color-mix(in srgb, var(--on-dark) 78%, transparent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }

.banner-slider { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--dark-2); box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.banner-track { position: relative; aspect-ratio: 3 / 2; }
.banner-slide { position: absolute; inset: 0; display: block; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease); }
.banner-slide.is-active { opacity: 1; visibility: visible; }
.banner-photo { width: 100%; height: 100%; object-fit: cover; }
.banner-slide .overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 60px clamp(16px, 2.5vw, 28px) 42px;
  background: linear-gradient(to top, color-mix(in srgb, var(--dark) 94%, transparent) 0%, color-mix(in srgb, var(--dark) 60%, transparent) 60%, transparent 100%);
  color: var(--on-dark);
}
.banner-slide .cats span { color: var(--on-dark); }
.banner-slide h2 {
  color: var(--on-dark); font-size: clamp(1.1rem, .9rem + .8vw, 1.6rem); line-height: 1.15;
  margin: 10px 0 0; max-width: 34ch; text-transform: lowercase;
}
.banner-slide:hover h2 { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 5px; }
.banner-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; }
.banner-dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%;
  background: color-mix(in srgb, var(--on-dark) 45%, transparent); cursor: pointer; transition: all .2s var(--ease);
}
.banner-dots button.is-active { width: 26px; border-radius: var(--r-pill); background: var(--orange); }
.banner-nav { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; padding: 0 12px; pointer-events: none; }
.banner-nav button {
  pointer-events: auto; width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--on-dark); color: var(--pink); font-size: 22px; line-height: 1;
  opacity: 0; transition: opacity .2s var(--ease);
}
.banner-slider:hover .banner-nav button, .banner-nav button:focus-visible { opacity: 1; }

/* ---------- featured: one big story ---------- */
.featured-wrap { padding: var(--s8) 0 var(--s7); }
.feature-card {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
}
.feature-card + .feature-card { margin-top: var(--s5); }
.feature-thumb { display: block; background: var(--band-2); overflow: hidden; }
.feature-thumb img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; transition: transform .5s var(--ease); }
.feature-card:hover .feature-thumb img { transform: scale(1.03); }
.feature-txt { display: flex; flex-direction: column; justify-content: center; gap: var(--s4); padding: clamp(24px, 3.5vw, 48px); }
.feature-txt h3 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.4rem); line-height: 1.08; letter-spacing: -.025em; }
.feature-txt h3 a:hover { color: var(--orange); }
.feature-txt p { margin: 0; color: var(--ink-2); }
.feature-txt .btn-solid { align-self: flex-start; }

/* ---------- spotlight band (the template's podcast promo) ---------- */
.spotlight { background: var(--orange); color: #fff; padding: var(--s8) 0; }
.spotlight-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s7); align-items: center; }
.spotlight-media { display: block; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 24px 50px color-mix(in srgb, var(--pink) 35%, transparent); transform: rotate(-1.5deg); transition: transform .3s var(--ease); }
.spotlight-media:hover { transform: rotate(0); }
.spotlight-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.spotlight .hero-eyebrow { color: var(--pink); }
.spotlight-title {
  color: #fff; font-weight: 900; text-transform: lowercase;
  font-size: clamp(2.2rem, 1.4rem + 3vw, 4.2rem); line-height: .92; letter-spacing: -.045em;
}
.spotlight-title span { display: block; }
.spotlight-title-2 { color: var(--pink); }
.spotlight-post { margin: var(--s5) 0 var(--s2); font-family: var(--font-display); font-weight: 700; font-size: var(--f-lg); line-height: 1.3; }
.spotlight-post a:hover { text-decoration: underline; text-underline-offset: 4px; }
.spotlight-text { color: color-mix(in srgb, #fff 88%, transparent); font-size: var(--f-sm); margin-bottom: var(--s5); }
.spotlight .btn-solid--accent { background: var(--pink); border-color: var(--pink); }
.spotlight .btn-solid--accent:hover { background: #fff; border-color: #fff; color: var(--pink); }
.spotlight-browse { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: var(--s5); font-size: var(--f-sm); }
.spotlight-browse span { font-weight: 600; opacity: .85; }
.spotlight-browse a { font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, #fff 45%, transparent); text-underline-offset: 4px; }
.spotlight-browse a:hover { text-decoration-color: #fff; }

/* ---------- card grid (latest, blog, categories, search, recent) ---------- */
.latest-wrap { padding: var(--s8) 0; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6) var(--s5); }
.card-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.post-card { display: flex; flex-direction: column; min-width: 0; }
.post-card.is-hidden { display: none; }
.post-card .thumb { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--r); background: var(--band-2); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .thumb img { transform: scale(1.04); }
.thumb-cat {
  position: absolute; left: 10px; top: 10px; padding: 4px 9px; border-radius: 4px;
  background: var(--orange); color: #fff; font-size: var(--f-xs); font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.thumb-fallback {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 44px 18px 18px;
  background: linear-gradient(135deg, var(--pink), color-mix(in srgb, var(--pink) 60%, var(--orange)));
  color: var(--on-dark); font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; line-height: 1.15;
  text-transform: lowercase; letter-spacing: -.02em;
}
.post-card .txt { display: flex; flex-direction: column; gap: 8px; padding-top: var(--s4); }
.card-title {
  font-size: var(--f-lg); line-height: 1.25; letter-spacing: -.015em;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-grid--two .card-title { font-size: var(--f-h3); }
.post-card:hover .card-title { color: var(--orange); }
.post-card .txt p {
  margin: 0; font-size: var(--f-sm); color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.feed-wrap { padding: var(--s7) 0 var(--s8); }
.feed-more { display: flex; justify-content: center; margin-top: var(--s7); }
.empty-note { color: var(--muted); }

/* ---------- page head + tabs ---------- */
.page-head { background: var(--dark); color: var(--on-dark); padding: var(--s7) 0; }
.page-head h1 { color: var(--on-dark); font-size: var(--f-h1); font-weight: 900; text-transform: lowercase; letter-spacing: -.04em; margin: 4px 0 10px; }
.page-head .page-lede { color: color-mix(in srgb, var(--on-dark) 78%, transparent); }
.page-head .breadcrumb { color: color-mix(in srgb, var(--on-dark) 60%, transparent); }
.page-head .search-status { color: color-mix(in srgb, var(--on-dark) 70%, transparent); }
.page-lede { font-size: var(--f-lg); color: var(--ink-2); max-width: 62ch; margin: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: var(--f-xs); color: var(--muted); margin-bottom: var(--s3); text-transform: uppercase; letter-spacing: .06em; }
.breadcrumb a:hover { color: var(--orange); }

.tabs-bar { border-bottom: 1px solid var(--line); background: var(--card); position: sticky; top: 76px; z-index: 40; }
.tabs-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 56px; }
.post-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.post-tabs::-webkit-scrollbar { display: none; }
.post-tabs a {
  flex-shrink: 0; padding: 16px 12px 14px; font-size: var(--f-sm); font-weight: 600; color: var(--ink-2);
  border-bottom: 3px solid transparent; transition: color .16s var(--ease), border-color .16s var(--ease);
}
.post-tabs a:hover, .post-tabs a.is-current { color: var(--pink); border-bottom-color: var(--orange); }

/* ---------- article ---------- */
.read-progress { position: fixed; top: 0; left: 0; z-index: 60; height: 3px; width: 0; background: var(--orange); transition: width .1s linear; }
.article { padding: var(--s7) 0; }
.article-head { padding: 0 0 var(--s5); }
.article-head h1 { font-size: var(--f-h1); line-height: 1.04; letter-spacing: -.03em; margin: 12px 0 16px; font-weight: 800; }
.article-lede { font-size: var(--f-lg); color: var(--ink-2); margin: 0; }
.article-hero { border-radius: var(--r-lg); overflow: hidden; background: var(--band-2); }
.article-hero img { width: 100%; height: auto; }
.article-body { padding: var(--s6) 0 0; }
.prose { font-size: var(--f-lg); line-height: 1.8; color: var(--ink-2); }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin-bottom: 0; }
.prose h2, .prose h3 { margin-top: 1.8em; }
.prose h2 { font-size: var(--f-h2); }
.prose h3 { font-size: var(--f-h3); }
.prose img { border-radius: var(--r); margin-block: 1.4em; height: auto; }
.prose a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose blockquote {
  margin: 1.6em 0; padding: 20px 24px; border-radius: var(--r); border-left: 4px solid var(--orange);
  background: var(--band-1); color: var(--pink); font-family: var(--font-display); font-weight: 600; font-size: 1.15em; line-height: 1.4;
}
.prose table { width: 100%; border-collapse: collapse; font-size: var(--f-sm); display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--line-soft); color: var(--pink); }

.article-foot { margin-top: var(--s6); padding-top: var(--s5); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: var(--s4); }
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share-label { font-size: var(--f-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }

/* ---------- comments + contact form ---------- */
.comments { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--line); }
.comments-note { font-size: var(--f-sm); color: var(--muted); margin: 0 0 var(--s5); }
.comments-note i, .comment-form i { font-style: normal; color: var(--orange); }
.comment-form { display: flex; flex-direction: column; gap: var(--s4); }
.comment-form .field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.comment-form .field > span { font-size: var(--f-sm); font-weight: 500; color: var(--ink); }
.comment-form input[type="text"], .comment-form input[type="email"],
.comment-form input[type="url"], .comment-form textarea {
  width: 100%; padding: 11px 14px; font: inherit; font-size: var(--f-sm);
  color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  transition: border-color .16s var(--ease);
}
.comment-form textarea { resize: vertical; min-height: 150px; line-height: 1.6; }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--pink); }
.comment-form .field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.comment-form .field-check { display: flex; align-items: flex-start; gap: 10px; font-size: var(--f-sm); color: var(--ink-2); cursor: pointer; }
.comment-form .field-check input { margin-top: 3px; accent-color: var(--pink); }
.field-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.comment-submit {
  align-self: flex-start; padding: 11px 22px; cursor: pointer;
  border: 1px solid var(--pink); border-radius: var(--r-sm);
  background: var(--pink); color: var(--bg); font-size: var(--f-sm); font-weight: 600;
  transition: background .16s var(--ease), border-color .16s var(--ease);
}
.comment-submit:hover:not(:disabled) { background: var(--orange); border-color: var(--orange); }
.comment-submit:disabled { opacity: .55; cursor: default; }
.comment-status, .form-status { margin: 0; font-size: var(--f-sm); min-height: 1.4em; }
.comment-status.is-ok, .form-status.is-ok { color: #1f7a4d; }
.comment-status.is-err, .form-status.is-err { color: #b3261e; }

/* ---------- about + contact ---------- */
.about-page { padding: var(--s7) 0 var(--s6); }
.cover-wrap { padding: var(--s6) 0 var(--s8); }
.cover-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); }
.cover-card {
  display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: var(--s4); align-items: center;
  padding: var(--s3); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: border-color .16s var(--ease), box-shadow .2s var(--ease);
}
.cover-card:hover { border-color: var(--orange); box-shadow: var(--sh-2); }
.cover-img { display: block; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--band-2); }
.cover-img img { width: 100%; height: 100%; object-fit: cover; }
.cover-txt { display: flex; flex-direction: column; gap: 6px; }
.cover-name { font-family: var(--font-display); font-weight: 800; font-size: var(--f-h3); text-transform: lowercase; color: var(--pink); letter-spacing: -.02em; }
.cover-intro { font-size: var(--f-sm); color: var(--ink-2); }
.cover-count { font-size: var(--f-xs); font-weight: 600; color: var(--orange); }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--s7); padding: var(--s7) 0 var(--s8); }
.contact-grid--solo { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.contact-info { display: flex; flex-direction: column; gap: var(--s6); }
.contact-block p { color: var(--ink-2); }
.contact-link { font-family: var(--font-display); font-weight: 700; font-size: var(--f-h3); color: var(--orange); }
.contact-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s6); }

/* ---------- search page + 404 ---------- */
.search-page-form { margin: var(--s4) 0 var(--s3); }
.search-page-form input { width: 100%; max-width: 420px; border-color: var(--on-dark); }
.search-page-form input:focus { width: 100%; max-width: 420px; }
.search-page-form button { background: var(--orange); border-color: var(--orange); }
.search-status { margin: 0; color: var(--muted); font-size: .9rem; }
.not-found { padding: var(--s8) 0; text-align: center; }
.not-found h1 { font-size: var(--f-h1); text-transform: lowercase; margin-bottom: var(--s4); }
.not-found .page-lede { margin: 0 auto var(--s5); }
.not-found .browse-list { justify-content: center; }
.browse-list { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: var(--on-dark); padding-top: var(--s8); overflow: hidden; }
.site-footer .section-title { color: var(--on-dark); font-size: 1.3rem; margin-bottom: var(--s3); }
.site-footer a { color: var(--on-dark); }

.footer-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s7); padding-bottom: var(--s6); border-bottom: 1px solid color-mix(in srgb, var(--on-dark) 14%, transparent); }
.footer-top--solo { grid-template-columns: minmax(0, 1fr); }
.footer-brand { display: flex; flex-direction: column; gap: var(--s4); align-items: flex-start; }
.footer-tagline { margin: 0; color: color-mix(in srgb, var(--on-dark) 70%, transparent); font-size: var(--f-sm); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: var(--f-sm); font-weight: 600; }
.footer-nav a { opacity: .85; transition: opacity .16s var(--ease), color .16s var(--ease); }
.footer-nav a:hover { opacity: 1; color: var(--orange); }
.site-footer .social-row a { border-color: color-mix(in srgb, var(--on-dark) 50%, transparent); color: var(--on-dark); }
.site-footer .social-row a:hover { background: var(--on-dark); color: var(--dark); border-color: var(--on-dark); }
.social-row { display: flex; flex-wrap: wrap; gap: 8px; }

.footer-news p { color: color-mix(in srgb, var(--on-dark) 75%, transparent); font-size: var(--f-sm); }
.news-row { display: flex; }
.news-row input {
  flex: 1; min-width: 0; padding: 11px 14px; font: inherit; font-size: var(--f-sm);
  border: 1px solid color-mix(in srgb, var(--on-dark) 40%, transparent); border-right: 0;
  border-radius: var(--r-sm) 0 0 var(--r-sm); background: transparent; color: var(--on-dark);
}
.news-row input::placeholder { color: color-mix(in srgb, var(--on-dark) 55%, transparent); }
.news-row input:focus { outline: none; border-color: var(--on-dark); }
.news-row button {
  padding: 11px 18px; cursor: pointer; border: 1px solid var(--orange);
  border-radius: 0 var(--r-sm) var(--r-sm) 0; background: var(--orange); color: #fff;
  font-size: var(--f-sm); font-weight: 600;
}
.news-row button:disabled { opacity: .6; cursor: default; }
.news-check { display: flex; gap: 10px; align-items: flex-start; margin-top: var(--s3); font-size: var(--f-xs); color: color-mix(in srgb, var(--on-dark) 75%, transparent); cursor: pointer; }
.news-check input { margin-top: 2px; accent-color: var(--orange); }
.site-footer .form-status { margin-top: var(--s2); }
.site-footer .form-status.is-ok { color: #9fe0bd; }
.site-footer .form-status.is-err { color: #ffb4a8; }

.footer-wordmark {
  font-family: var(--font-display); font-weight: 900; letter-spacing: -.05em;
  /* sized to the name: --wm-len is its character count, set in the template */
  font-size: min(15rem, calc(min(100vw - 40px, var(--wrap)) / (var(--wm-len, 9) * .56)));
  line-height: 1; color: var(--orange);
  text-transform: lowercase; text-align: center; padding-top: var(--s5);
  white-space: nowrap; overflow: hidden; user-select: none;
}
.copy {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s3);
  padding: var(--s4) 0 var(--s5); font-size: var(--f-xs); color: color-mix(in srgb, var(--on-dark) 60%, transparent);
}
.to-top { transition: color .16s var(--ease); }
.to-top:hover { color: var(--orange); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .header-social { display: none; }
  .hero-grid, .spotlight-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s6); }
  .card-grid, .card-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cover-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .menu-toggle { display: block; order: 2; margin-left: auto; }
  .nav-row { gap: var(--s3); }
  .nav-row nav { margin: 0; }
  .menu {
    display: none; position: absolute; right: 20px; top: 76px;
    flex-direction: column; align-items: stretch; gap: 2px;
    width: min(320px, calc(100vw - 40px)); padding: 8px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-2);
  }
  .nav-open .menu { display: flex; }
  .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 12px; }
  .search-form input { width: 130px; }
  .search-form input:focus { width: 150px; }
  .feature-card { grid-template-columns: minmax(0, 1fr); }
  .contact-grid, .footer-top { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .wrap, .wrap--narrow { width: min(100% - 32px, var(--wrap)); }
  .header-inner { min-height: 66px; }
  .menu { top: 66px; right: 16px; }
  .tabs-bar { top: 66px; }
  .nav-row > .search-form { display: none; }
  .hero, .spotlight { padding: var(--s7) 0; }
  .banner-nav { display: none; }
  .featured-wrap, .latest-wrap { padding: var(--s7) 0; }
  .card-grid, .card-grid--two, .card-grid--three { grid-template-columns: minmax(0, 1fr); gap: var(--s6); }
  .cover-card { grid-template-columns: 96px minmax(0, 1fr); }
  .comment-form .field-row { grid-template-columns: 1fr; }
  .logo img { height: 36px; }
  .logo-text { font-size: 1.5rem; }
}

@media print {
  .site-header, .site-footer, .tabs-bar, .recent-band, .share-row, .read-progress, .hero .banner-slider { display: none !important; }
  body { background: #fff; }
}
