:root,
:root[data-theme="dark"] {
  --bg: #070707;
  --bg-soft: #101010;
  --panel: #151412;
  --panel-light: #1d1b18;
  --text: #f2eee6;
  --muted: #b8afa0;
  --dim: #857b6d;
  --gold: #c8a35b;
  --gold-bright: #e0bf75;
  --line: rgba(226, 196, 128, 0.18);
  --line-soft: rgba(255,255,255,0.08);
  --header-bg: rgba(7, 7, 7, 0.86);
  --footer-bg: #050505;
  --article-bg: #0b0b0b;
  --button-text: #111;
  --disabled-border: rgba(255,255,255,0.16);
  --grid-line: rgba(255,255,255,0.025);
  --ambient-glow: rgba(200, 163, 91, 0.08);
  --panel-sheen: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  --shadow: rgba(0, 0, 0, 0.58);
  --max: 1180px;
}

:root[data-theme="light"] {
  --bg: #f3efe6;
  --bg-soft: #ebe3d4;
  --panel: #fffaf0;
  --panel-light: #f7eddc;
  --text: #1f1c18;
  --muted: #5f574c;
  --dim: #817568;
  --gold: #9a7430;
  --gold-bright: #7d5a1c;
  --line: rgba(136, 103, 43, 0.24);
  --line-soft: rgba(55, 45, 32, 0.12);
  --header-bg: rgba(243, 239, 230, 0.88);
  --footer-bg: #e7ddcc;
  --article-bg: #fbf6ec;
  --button-text: #fffaf0;
  --disabled-border: rgba(55, 45, 32, 0.2);
  --grid-line: rgba(54, 44, 32, 0.045);
  --ambient-glow: rgba(154, 116, 48, 0.12);
  --panel-sheen: linear-gradient(145deg, rgba(255,255,255,0.72), rgba(154,116,48,0.08));
  --shadow: rgba(67, 48, 22, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, var(--ambient-glow), transparent 38%);
  background-size: 72px 72px, auto;
  opacity: 0.48;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  padding: 0.6rem 0.9rem;
  background: var(--gold);
  color: #111;
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

.wrap {
  position: relative;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line-soft);
  background: var(--header-bg);
  backdrop-filter: blur(18px);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 76px;
}

.brand {
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.site-nav a,
.site-footer a,
.footer-link,
.theme-toggle {
  color: var(--muted);
  font: inherit;
  font-size: 0.86rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-footer a:hover,
.footer-link:hover,
.theme-toggle:hover {
  color: var(--gold-bright);
}

.footer-link,
.theme-toggle {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.theme-toggle {
  min-height: 36px;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  color: var(--gold-bright);
  font-weight: 700;
}

.theme-toggle:hover {
  background: rgba(200, 163, 91, 0.12);
}

.section {
  padding: clamp(4.5rem, 9vw, 8rem) 0;
}

.section-dark {
  background:
    linear-gradient(120deg, rgba(255,255,255,0.035), transparent 30%),
    var(--bg);
}

.section-muted {
  border-block: 1px solid var(--line-soft);
  background: var(--bg-soft);
}

.hero {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(240px, 440px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 6.5rem);
}

.hero-cover {
  padding: clamp(0.75rem, 2vw, 1.2rem);
  border: 1px solid var(--line);
  background: var(--panel-sheen);
  box-shadow: 0 34px 90px var(--shadow);
}

.hero-cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  box-shadow: 0 18px 45px rgba(0,0,0,0.55);
}

.eyebrow,
.section-kicker {
  margin: 0 0 1rem;
  color: var(--gold-bright);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.05;
}

h1 {
  max-width: 780px;
  font-size: clamp(3rem, 9vw, 7.4rem);
}

h2 {
  max-width: 780px;
  font-size: clamp(2.1rem, 5vw, 4.5rem);
}

h3 {
  font-size: 1.45rem;
}

p {
  margin: 1.1rem 0 0;
  color: var(--muted);
}

.subtitle {
  max-width: 780px;
  color: var(--gold-bright);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  line-height: 1.2;
}

.positioning {
  max-width: 680px;
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.button-row {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.78rem 1.15rem;
  border: 1px solid transparent;
  color: var(--text);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.button-primary {
  background: var(--gold);
  color: var(--button-text);
}

.button-primary:hover {
  background: var(--gold-bright);
}

.button-secondary {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.button-secondary:hover {
  background: rgba(200, 163, 91, 0.12);
}

.button-disabled {
  border-color: var(--disabled-border);
  color: var(--dim);
  cursor: not-allowed;
}

.sample-cta {
  margin-top: 1.5rem;
}

.text-column,
.prose {
  max-width: 820px;
}

.text-column p,
.prose p {
  font-size: 1.08rem;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
  margin-bottom: 2.5rem;
}

.interest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.interest-card {
  min-height: 230px;
  padding: 1.4rem;
  border: 1px solid var(--line-soft);
  background: var(--panel);
}

.interest-card p {
  font-size: 0.98rem;
}

.split,
.author-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: start;
}

.split-copy,
.author-copy {
  max-width: 680px;
}

.author-panel {
  padding: clamp(2rem, 5vw, 3rem);
  border-block: 1px solid var(--line);
}

.author-copy .button {
  margin-top: 1.5rem;
}

.site-footer {
  border-top: 1px solid var(--line-soft);
  background: var(--footer-bg);
}

.site-footer p {
  margin: 0;
  color: var(--dim);
  font-size: 0.86rem;
}

.sample-hero {
  padding: clamp(4rem, 10vw, 7rem) 0;
}

.sample-hero-grid {
  display: grid;
  grid-template-columns: minmax(130px, 210px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.75rem, 5vw, 4rem);
}

.sample-cover {
  padding: 0.65rem;
  border: 1px solid var(--line);
  background: var(--panel-sheen);
  box-shadow: 0 22px 60px var(--shadow);
}

.sample-cover img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.sample-heading {
  max-width: 920px;
}

.sample-heading h1 {
  font-size: clamp(2.8rem, 8vw, 6.2rem);
}

.sample-article {
  background: var(--article-bg);
}

.prose {
  font-family: Georgia, "Times New Roman", serif;
}

.prose p {
  color: var(--muted);
  font-size: clamp(1.13rem, 2vw, 1.28rem);
  line-height: 1.85;
}

.prose h3 {
  margin-top: 3.5rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.prose .lead {
  color: var(--muted);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 1.06rem;
  line-height: 1.75;
}

.sample-closing .button {
  margin-top: 1.5rem;
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 50;
  width: min(calc(100% - 2rem), 720px);
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 26px 70px rgba(0,0,0,0.7);
  transform: translateX(-50%);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-title {
  margin: 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  line-height: 1.2;
}

.cookie-text {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.cookie-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}

.cookie-actions button {
  min-height: 46px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-bright);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.cookie-actions button:hover {
  background: rgba(200, 163, 91, 0.12);
}

#cc-main {
  --cc-font-family: "Inter", "Segoe UI", Arial, sans-serif;
  --cc-bg: var(--panel);
  --cc-primary-color: var(--text);
  --cc-secondary-color: var(--muted);
  --cc-btn-primary-bg: transparent;
  --cc-btn-primary-color: var(--gold-bright);
  --cc-btn-primary-border-color: var(--gold);
  --cc-btn-primary-hover-bg: rgba(200, 163, 91, 0.12);
  --cc-btn-primary-hover-color: var(--gold-bright);
  --cc-btn-primary-hover-border-color: var(--gold-bright);
  --cc-btn-secondary-bg: transparent;
  --cc-btn-secondary-color: var(--gold-bright);
  --cc-btn-secondary-border-color: var(--gold);
  --cc-btn-secondary-hover-bg: rgba(200, 163, 91, 0.12);
  --cc-btn-secondary-hover-color: var(--gold-bright);
  --cc-btn-secondary-hover-border-color: var(--gold-bright);
  --cc-toggle-on-bg: var(--gold);
  --cc-toggle-off-bg: #3a3630;
  --cc-toggle-readonly-bg: #2c2925;
  --cc-cookie-category-block-bg: var(--panel-light);
  --cc-cookie-category-block-border: var(--line);
  --cc-separator-border-color: var(--line-soft);
  --cc-footer-border-color: var(--line-soft);
}

#cc-main .cm__btn,
#cc-main .pm__btn {
  border-width: 1px;
  font-weight: 700;
}

#cc-main .cm__btn-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 880px) {
  body {
    font-size: 17px;
  }

  .header-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 1rem 0;
  }

  .site-nav {
    gap: 0.9rem;
  }

  .hero {
    min-height: 0;
  }

  .hero-grid,
  .sample-hero-grid,
  .split,
  .author-panel {
    grid-template-columns: 1fr;
  }

  .hero-cover {
    width: min(100%, 360px);
  }

  .sample-cover {
    width: min(100%, 190px);
  }

  .interest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .wrap {
    width: min(100% - 1.25rem, var(--max));
  }

  .brand {
    font-size: 0.9rem;
  }

  .site-nav,
  .site-footer nav {
    gap: 0.75rem;
  }

  .hero-grid {
    gap: 2rem;
  }

  .button-row,
  .button {
    width: 100%;
  }

  .interest-grid {
    grid-template-columns: 1fr;
  }

  .interest-card {
    min-height: auto;
  }

  .section-heading {
    display: block;
  }

  .cookie-actions {
    grid-template-columns: 1fr;
  }
}
