/* Itmild site shell — deep steel \+ champagne + dusty gold — Ronaga-quality nav, compact footer, light/dark, compact book cards */

:root {
  --dg-bg: #2a2622;
  --dg-border: rgba(255, 255, 255, 0.06);
  --dg-text: #f5f0e6;
  --dg-text-secondary: rgba(245, 239, 232, 0.68);
  --dg-text-tertiary: rgba(245, 239, 232, 0.45);
  --dg-text-muted: rgba(245, 239, 232, 0.35);
  --dg-accent: #b8886a;
  --dg-accent-mist: #d4c4b0;
  --dg-accent-deep: #9a7358;
  --dg-azure: #c4b8a8;
  --font-sans: "Google Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Google Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --dg-container: min(96rem, calc(100vw - 2rem));
  --dg-easing: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

html[data-theme="light"] {
  --dg-bg: #f7f3ef;
  --dg-border: rgba(26, 20, 18, 0.1);
  --dg-text: #2a2622;
  --dg-text-secondary: rgba(26, 20, 18, 0.72);
  --dg-text-tertiary: rgba(26, 20, 18, 0.52);
  --dg-text-muted: rgba(26, 20, 18, 0.4);
  --dg-accent: #9a7358;
  --dg-accent-mist: #b8886a;
  --dg-accent-deep: #5c2530;
  --dg-azure: #9a7b4f;
  color-scheme: light;
}

html,
body.dg-site {
  transition: background-color 0.35s var(--dg-easing), color 0.35s var(--dg-easing);
}

body.dg-site {
  font-family: var(--font-sans) !important;
  letter-spacing: -0.011em;
  line-height: 1.5;
  background-color: var(--dg-bg) !important;
  color: var(--dg-text) !important;
}

html[data-theme="light"] body.dg-site.bg-ink-950,
html[data-theme="light"] body.dg-site .text-white {
  color: var(--dg-text) !important;
}
html[data-theme="light"] body.dg-site .text-white\/65,
html[data-theme="light"] body.dg-site .text-white\/60,
html[data-theme="light"] body.dg-site .text-white\/55,
html[data-theme="light"] body.dg-site .text-white\/50,
html[data-theme="light"] body.dg-site .text-white\/45,
html[data-theme="light"] body.dg-site .text-white\/30 {
  color: var(--dg-text-secondary) !important;
}
html[data-theme="light"] body.dg-site .border-white\/10,
html[data-theme="light"] body.dg-site .border-white\/\[0\.06\] {
  border-color: var(--dg-border) !important;
}
html[data-theme="light"] body.dg-site .bg-white\/\[0\.03\] {
  background: rgba(12, 13, 18, 0.04) !important;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--dg-accent);
  color: #fff;
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.875rem;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.dg-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--dg-easing), border-color 0.4s var(--dg-easing);
}
.dg-header.is-scrolled {
  background: color-mix(in srgb, var(--dg-bg) 88%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--dg-border);
}
.dg-header__inner {
  max-width: var(--dg-container);
  margin-inline: auto;
  padding-inline: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
@media (min-width: 640px) {
  .dg-header__inner {
    height: 5rem;
  }
}

.dg-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--dg-text), var(--dg-accent-mist));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
}

.dg-nav-desktop {
  display: none;
  align-items: center;
  gap: 0.15rem;
}
@media (min-width: 1024px) {
  .dg-nav-desktop {
    display: inline-flex;
  }
}
.dg-nav-desktop a {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  color: var(--dg-text-secondary);
  text-decoration: none;
  transition: color 0.25s var(--dg-easing);
}
.dg-nav-desktop a:hover,
.dg-nav-desktop a.is-active {
  color: var(--dg-text);
}

.dg-header__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.dg-theme-toggle {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-grid;
  place-items: center;
  border-radius: 9999px;
  border: 1px solid var(--dg-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--dg-text);
  cursor: pointer;
  padding: 0;
  transition: border-color 0.25s var(--dg-easing), background 0.25s var(--dg-easing);
}
.dg-theme-toggle:hover {
  border-color: rgba(249, 115, 22, 0.4);
  background: rgba(249, 115, 22, 0.08);
}
.dg-theme-toggle svg {
  width: 1.1rem;
  height: 1.1rem;
}
.dg-icon-sun {
  display: none;
}
.dg-icon-moon {
  display: block;
}
html[data-theme="light"] .dg-icon-sun {
  display: block;
}
html[data-theme="light"] .dg-icon-moon {
  display: none;
}

.dg-btn-mini {
  display: none;
  align-items: center;
  height: 2.5rem;
  padding: 0 1rem;
  border-radius: 9999px;
  border: 1px solid var(--dg-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--dg-text);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.25s var(--dg-easing), border-color 0.25s var(--dg-easing);
}
.dg-btn-mini:hover {
  border-color: rgba(249, 115, 22, 0.35);
  background: rgba(249, 115, 22, 0.1);
}
@media (min-width: 1024px) {
  .dg-btn-mini {
    display: inline-flex;
  }
}

.dg-menu-toggle {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-grid;
  place-items: center;
  border-radius: 9999px;
  border: 1px solid var(--dg-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--dg-text);
  cursor: pointer;
  padding: 0;
}
.dg-menu-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}
@media (min-width: 1024px) {
  .dg-menu-toggle {
    display: none;
  }
}

.dg-mobile-nav {
  display: none;
  border-top: 1px solid var(--dg-border);
  background: color-mix(in srgb, var(--dg-bg) 97%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.dg-mobile-nav.is-open {
  display: block;
}
.dg-mobile-nav__inner {
  max-width: var(--dg-container);
  margin-inline: auto;
  padding: 0.75rem 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.dg-mobile-nav a {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--dg-text-secondary);
  text-decoration: none;
  transition: background 0.2s var(--dg-easing), color 0.2s var(--dg-easing);
}
.dg-mobile-nav a:hover,
.dg-mobile-nav a.is-active {
  background: rgba(255, 255, 255, 0.04);
  color: var(--dg-text);
}
html[data-theme="light"] .dg-mobile-nav a:hover,
html[data-theme="light"] .dg-mobile-nav a.is-active {
  background: rgba(12, 13, 18, 0.05);
}
.dg-mobile-nav__label {
  margin: 0.75rem 1rem 0.25rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dg-text-muted);
}
.dg-mobile-nav .dg-btn-mini {
  display: inline-flex;
  justify-content: center;
  margin-top: 0.5rem;
}

.dg-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--dg-border);
}
.dg-footer__inner {
  max-width: var(--dg-container);
  margin-inline: auto;
  padding: 2rem 1.5rem 1rem;
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 768px) {
  .dg-footer__inner {
    grid-template-columns: 1.2fr 1.8fr;
    gap: 2rem;
    padding-block: 2.25rem 1rem;
  }
}
.dg-footer__brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--dg-text);
  text-decoration: none;
}
.dg-footer__desc {
  margin: 0.65rem 0 0;
  max-width: 22rem;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--dg-text-tertiary);
}
.dg-footer__cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 1rem;
}
@media (min-width: 640px) {
  .dg-footer__cols {
    grid-template-columns: repeat(3, 1fr);
  }
}
.dg-footer__cols h3 {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dg-text-muted);
}
.dg-footer__cols ul {
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
}
.dg-footer__cols li {
  margin-bottom: 0.45rem;
}
.dg-footer__cols a {
  font-size: 0.8125rem;
  color: var(--dg-text-secondary);
  text-decoration: none;
  transition: color 0.2s var(--dg-easing);
}
.dg-footer__cols a:hover {
  color: var(--dg-text);
}
.dg-footer__base {
  max-width: var(--dg-container);
  margin-inline: auto;
  padding: 0.85rem 1.5rem 1.25rem;
  border-top: 1px solid var(--dg-border);
  font-size: 0.7rem;
  color: var(--dg-text-muted);
  text-align: center;
}
@media (min-width: 640px) {
  .dg-footer__base {
    text-align: left;
  }
}

.dg-cookie {
  position: fixed;
  z-index: 70;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  max-width: 28rem;
  margin-inline: auto;
  padding: 1rem 1.15rem;
  border-radius: 16px;
  border: 1px solid var(--dg-border);
  background: color-mix(in srgb, var(--dg-bg) 94%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s var(--dg-easing), transform 0.35s var(--dg-easing);
}
.dg-cookie.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (min-width: 640px) {
  .dg-cookie {
    left: auto;
    right: 1.5rem;
    margin-inline: 0;
  }
}
.dg-cookie__text {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--dg-text-secondary);
}
.dg-cookie__text a {
  color: var(--dg-accent-mist);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.dg-cookie__actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.dg-cookie__btn {
  flex: 1;
  min-height: 2.25rem;
  border-radius: 9999px;
  border: none;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, var(--dg-accent-deep), var(--dg-accent));
  color: #fff;
}
.dg-cookie__btn--ghost {
  background: transparent;
  border: 1px solid var(--dg-border);
  color: var(--dg-text-secondary);
}

.dg-legal-section {
  padding: 6.5rem 1.5rem 3rem;
}
@media (min-width: 640px) {
  .dg-legal-section {
    padding-top: 7.5rem;
  }
}
.dg-prose {
  max-width: 42rem;
  margin-inline: auto;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--dg-text-secondary);
}
.dg-prose h1,
.dg-prose h2,
.dg-prose h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--dg-text);
}
.dg-prose h1 {
  font-size: clamp(2rem, 2vw + 1rem, 2.75rem);
  margin: 0 0 1.25rem;
  line-height: 1.08;
}
.dg-prose h2 {
  font-size: 1.375rem;
  margin: 2.75rem 0 0.85rem;
}
.dg-prose h3 {
  font-size: 1.1rem;
  margin: 2rem 0 0.65rem;
}
.dg-prose p {
  margin: 0 0 1.15rem;
}
.dg-prose ul,
.dg-prose ol {
  margin: 0 0 1.25rem 1.35rem;
  padding: 0;
}
.dg-prose li {
  margin-bottom: 0.45rem;
}
.dg-prose a {
  color: var(--dg-accent-mist);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.dg-prose a:hover {
  color: var(--dg-text);
}
.dg-prose strong {
  color: var(--dg-text);
  font-weight: 600;
}
.dg-legal-lead {
  font-size: 1.125rem !important;
  line-height: 1.65 !important;
  color: var(--dg-text-secondary) !important;
}
.dg-legal-meta {
  font-size: 0.7rem !important;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dg-text-muted) !important;
  margin-bottom: 2rem !important;
}
.dg-legal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dg-text-tertiary);
  margin: 0 0 0.75rem;
}
.dg-legal-eyebrow::before {
  content: "";
  width: 1.25rem;
  height: 1px;
  background: rgba(249, 115, 22, 0.55);
}

.read-main {
  padding-top: 5rem;
}

/* ── Wide editorial page shell ── */
.sf-page {
  width: 100%;
  max-width: min(96rem, calc(100vw - 1.5rem));
  margin-inline: auto;
  padding-inline: clamp(1rem, 2.5vw, 2rem);
}

/* ── Hero ── */
.sf-hero {
  padding: 6.5rem 0 2.5rem;
}
@media (min-width: 1024px) {
  .sf-hero {
    padding: 7.5rem 0 3rem;
  }
}
.sf-hero__inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .sf-hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem 3rem;
  }
}
.sf-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid var(--dg-border);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.4rem 0.85rem;
  font-size: 0.75rem;
  color: var(--dg-text-secondary);
}
.sf-hero__slash {
  opacity: 0.35;
}
.sf-hero__headline {
  margin: 1.25rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 4.5vw + 1rem, 5.25rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--dg-text);
}
.sf-hero__lede {
  margin: 1.25rem 0 0;
  max-width: 36rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--dg-text-secondary);
}
.sf-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.75rem;
}
.sf-hero__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
  margin-top: 1.75rem;
}
.sf-hero__stat-num {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dg-text);
}
.sf-hero__stat-label {
  margin: 0.25rem 0 0;
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dg-text-muted);
}
.sf-hero__stat-divider {
  width: 1px;
  height: 2rem;
  background: var(--dg-border);
}
.sf-cat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.5rem;
}
.sf-cat-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 0.85rem;
  border-radius: 9999px;
  border: 1px solid var(--dg-border);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--dg-text-secondary);
  text-decoration: none;
  transition: border-color 0.25s var(--dg-easing), color 0.25s var(--dg-easing), background 0.25s var(--dg-easing);
}
.sf-cat-pill:hover {
  color: var(--dg-text);
  border-color: rgba(249, 115, 22, 0.35);
  background: rgba(249, 115, 22, 0.08);
}
.sf-hero__visual {
  display: none;
}
@media (min-width: 1024px) {
  .sf-hero__visual {
    display: grid;
    gap: 1rem;
    align-content: center;
  }
}
.sf-hero__stage {
  position: relative;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr 0.85fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.85rem;
  align-items: end;
  min-height: 22rem;
  padding: 0.5rem;
}
.sf-hero__cover {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--dg-border);
  background: rgba(0, 0, 0, 0.25);
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.75);
  text-decoration: none;
  transition: transform 0.45s var(--dg-easing), box-shadow 0.45s var(--dg-easing);
}
.sf-hero__cover:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 64px -24px rgba(0, 0, 0, 0.8), 0 0 24px -8px rgba(249, 115, 22, 0.25);
}
.sf-hero__cover--left {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: center;
  aspect-ratio: 2 / 3;
  max-height: 15rem;
  transform: rotate(-4deg);
}
.sf-hero__cover--main {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: end;
  aspect-ratio: 2 / 3;
  max-height: 19rem;
  z-index: 2;
}
.sf-hero__cover--right {
  grid-column: 3;
  grid-row: 2;
  aspect-ratio: 2 / 3;
  max-height: 13rem;
  transform: rotate(5deg);
}
.sf-hero__cover--left:hover {
  transform: rotate(-4deg) translateY(-4px);
}
.sf-hero__cover--right:hover {
  transform: rotate(5deg) translateY(-4px);
}
.sf-hero__img,
.sf-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s var(--dg-easing);
}
.sf-hero__cover:hover .sf-hero__img,
.sf-card__link:hover .sf-card__img {
  transform: scale(1.04);
}
.sf-hero__cover-glow {
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(to top, rgba(12, 13, 18, 0.65), transparent);
  pointer-events: none;
}
.sf-hero__spotlight {
  margin-top: 0.25rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid var(--dg-border);
  background: color-mix(in srgb, var(--dg-bg) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.sf-hero__spotlight-label {
  margin: 0;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dg-accent-mist);
}
.sf-hero__spotlight-title {
  margin: 0.45rem 0 0;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--dg-text);
}
.sf-hero__spotlight-author {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  color: var(--dg-text-tertiary);
}
.sf-hero__spotlight-note {
  margin: 0.55rem 0 0;
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--dg-text-secondary);
}
.sf-hero__spotlight-link {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--dg-accent-mist);
  text-decoration: none;
}
.sf-hero__spotlight-link:hover {
  color: var(--dg-text);
}

/* ── Shelf sections ── */
.sf-shelf {
  padding: 2rem 0 2.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
html[data-theme="light"] .sf-shelf {
  border-top-color: rgba(12, 13, 18, 0.06);
}
.sf-shelf:first-of-type {
  border-top: none;
  padding-top: 1.5rem;
}
.sf-shelf__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.sf-shelf__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dg-text-tertiary);
}
.sf-shelf__eyebrow::before {
  content: "";
  width: 1.25rem;
  height: 1px;
  background: rgba(249, 115, 22, 0.55);
}
.sf-shelf__title {
  margin: 0.45rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.5vw + 1rem, 2.25rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.sf-shelf__more {
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--dg-text-secondary);
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid var(--dg-border);
  transition: color 0.25s var(--dg-easing), border-color 0.25s var(--dg-easing), background 0.25s var(--dg-easing);
}
.sf-shelf__more:hover {
  color: var(--dg-text);
  border-color: rgba(249, 115, 22, 0.35);
  background: rgba(249, 115, 22, 0.08);
}
.sf-shelf__desc {
  margin: 0.65rem 0 0;
  max-width: 42rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--dg-text-tertiary);
}
.sf-shelf__grid {
  margin-top: 1rem;
}

/* ── Dense book grid: 2 / 3–4 / 5–6 columns ── */
.sf-home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 0.6rem;
  align-items: stretch;
}
@media (min-width: 640px) {
  .sf-home-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem 0.7rem;
  }
}
@media (min-width: 768px) {
  .sf-home-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .sf-home-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.9rem 0.75rem;
  }
}
@media (min-width: 1280px) {
  .sf-home-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* ── Compact vertical book cards ── */
.sf-card {
  contain: layout style paint;
  height: 100%;
}
.sf-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 0.85rem;
  border: 1px solid var(--dg-border);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.008));
  text-decoration: none;
  transition: border-color 0.3s var(--dg-easing), box-shadow 0.3s var(--dg-easing), transform 0.3s var(--dg-easing);
}
html[data-theme="light"] .sf-card__link {
  background: linear-gradient(160deg, #fff, rgba(250, 248, 245, 0.92));
}
.sf-card__link:hover {
  border-color: rgba(249, 115, 22, 0.28);
  box-shadow: 0 14px 36px -18px rgba(0, 0, 0, 0.65), 0 0 18px -8px rgba(249, 115, 22, 0.2);
  transform: translateY(-2px);
}
.sf-card__cover {
  position: relative;
  aspect-ratio: 2 / 3;
  max-height: 10.5rem;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.22);
}
@media (min-width: 768px) {
  .sf-card__cover {
    max-height: 11.5rem;
  }
}
.sf-card__badge {
  position: absolute;
  left: 0.45rem;
  top: 0.45rem;
  max-width: calc(100% - 0.9rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 9999px;
  border: 1px solid var(--dg-border);
  background: color-mix(in srgb, var(--dg-bg) 78%, transparent);
  padding: 0.15rem 0.45rem;
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--dg-text);
}
.sf-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.2rem;
  padding: 0.55rem 0.6rem 0.65rem;
  min-width: 0;
}
.sf-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--dg-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sf-card__author {
  margin: 0;
  font-size: 0.6875rem;
  color: var(--dg-text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sf-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.15rem;
  font-size: 0.625rem;
  color: var(--dg-text-muted);
}
.sf-card__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
}
.sf-star {
  width: 0.65rem;
  height: 0.65rem;
  fill: #d4c4b0;
  color: #d4c4b0;
}
.sf-card__year {
  font-variant-numeric: tabular-nums;
}
.sf-hero__stage--fan {
  grid-template-columns: 1fr 1.1fr;
  grid-template-rows: 1fr 1fr;
  min-height: 20rem;
  align-items: stretch;
}
.sf-hero__stage--fan .sf-hero__cover--main {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  max-height: 21rem;
  transform: none;
}
.sf-hero__stage--fan .sf-hero__cover--left {
  grid-column: 1;
  grid-row: 1;
  max-height: 9.5rem;
  transform: rotate(-3deg);
}
.sf-hero__stage--fan .sf-hero__cover--right {
  grid-column: 1;
  grid-row: 2;
  max-height: 9.5rem;
  transform: rotate(4deg);
}
.sf-hero--atrium::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(184, 136, 106, 0.14), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.sf-hero__inner--atrium {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
  align-items: center;
}
.sf-hero__visual--atrium {
  width: 100%;
  max-width: 32rem;
}
.sf-hero__copy--atrium {
  max-width: 40rem;
}
.sf-hero__stage--atrium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.65rem;
  min-height: 18rem;
  padding-bottom: 0.5rem;
}
.sf-hero__stage--atrium .sf-hero__cover--left,
.sf-hero__stage--atrium .sf-hero__cover--right {
  max-height: 9.5rem;
  opacity: 0.88;
  transform: translateY(0.35rem);
}
.sf-hero__stage--atrium .sf-hero__cover--left { transform: translateY(0.35rem) rotate(-3deg); }
.sf-hero__stage--atrium .sf-hero__cover--right { transform: translateY(0.35rem) rotate(3deg); }
.sf-hero__stage--atrium .sf-hero__cover--main {
  max-height: 21rem;
  border-radius: 0.5rem;
  box-shadow: 0 28px 48px -18px rgba(0, 0, 0, 0.55), 0 0 24px -8px rgba(184, 136, 106, 0.18);
}
.sf-hero__spotlight--atrium {
  margin-top: 1.5rem;
  text-align: left;
  max-width: 28rem;
  margin-inline: auto;
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  border: 1px solid var(--dg-border);
  background: rgba(42, 38, 34, 0.5);
}
.sf-card--im .sf-card__cover { position: relative; overflow: hidden; }
.sf-card--im .sf-card__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(26, 20, 18, 0.55), transparent 55%);
  opacity: 0.85;
  transition: opacity 0.35s var(--dg-easing);
  pointer-events: none;
}
.sf-card--im .sf-card__link:hover .sf-card__veil { opacity: 1; }
.sf-card--im .sf-card__author {
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dg-text-tertiary);
}
.sf-card--im .sf-card__title { font-size: 0.8125rem; letter-spacing: -0.02em; }
.sf-card--im .sf-card__link:hover {
  border-color: rgba(139, 58, 74, 0.4);
  box-shadow: 0 12px 32px -14px rgba(0, 0, 0, 0.55), 0 0 16px -4px rgba(196, 165, 116, 0.15);
}
