/* Claire Blanche English pages — shared visual language */

:root {
  --bg: #0b101c;
  --bg-2: #121827;
  --surface: rgba(32, 40, 59, .72);
  --surface-strong: #20283b;
  --surface-soft: rgba(219, 224, 221, .06);
  --text: #dbe0dd;
  --muted: #aaaab2;
  --faint: #686675;
  --line: rgba(226, 230, 224, .16);
  --line-soft: rgba(226, 230, 224, .10);
  --gold: #d0ae70;
  --gold-soft: rgba(208, 174, 112, .38);
  --blue: #7eafb0;
  --blue-soft: rgba(126, 175, 176, .26);
  --rose: #cf7791;
  --paper: #f3ece0;
  --paper-deep: #e5d7c5;
  --ink: #292638;
  --coffee: #b9865d;
  --font-headline: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-body: "DM Sans", Inter, system-ui, sans-serif;
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;
  --radius-full: 0;
  --shadow: 0 28px 80px rgba(4, 7, 13, .42);
  --shadow-glow: 0 0 48px rgba(207, 119, 145, .12);
}

html {
  background: var(--bg);
}

body {
  color: var(--text);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 12% 10%, rgba(126, 175, 176, .10), transparent 30rem),
    radial-gradient(circle at 88% 8%, rgba(207, 119, 145, .09), transparent 27rem),
    linear-gradient(145deg, var(--bg), var(--bg-2) 58%, var(--bg));
}

body::before,
body::after {
  display: none;
}

::selection {
  color: var(--ink);
  background: var(--rose);
}

a {
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.site-header {
  background: rgba(11, 16, 28, .88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}

.site-header.is-scrolled {
  background: rgba(11, 16, 28, .96);
  border-color: rgba(226, 230, 224, .22);
}

.nav-bar {
  width: min(calc(100% - 48px), 1260px);
  min-height: 78px;
  margin-inline: auto;
  padding: 0;
}

.site-title {
  color: var(--text);
  font-family: var(--font-headline);
  font-size: clamp(1.25rem, 2.2vw, 1.9rem);
  font-style: normal;
  font-weight: 600;
  letter-spacing: -.045em;
}

.nav-links {
  gap: clamp(12px, 2vw, 28px);
}

.nav-link {
  color: rgba(219, 224, 221, .70);
  font-size: 10px;
  letter-spacing: .14em;
}

.nav-link::after {
  bottom: -8px;
  background: var(--rose);
}

.nav-link:hover {
  color: var(--mist, #dbe0dd);
}

.btn {
  border-radius: 0;
  box-shadow: none;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-header {
  padding: 11px 18px;
  color: var(--ink);
  background: var(--mist, #dbe0dd);
  font-size: 10px;
  letter-spacing: .12em;
}

.btn-header:hover {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 12px 30px rgba(219, 224, 221, .13);
}

.btn-primary {
  color: #fff;
  background: var(--rose);
  box-shadow: 0 16px 38px rgba(207, 119, 145, .18);
}

.btn-primary:hover {
  background: #da8ca4;
  box-shadow: 0 20px 48px rgba(207, 119, 145, .26);
}

.btn-outline {
  color: var(--text);
  border-color: rgba(219, 224, 221, .26);
  background: transparent;
}

.btn-outline:hover {
  color: var(--text);
  border-color: var(--teal, #7eafb0);
  background: rgba(126, 175, 176, .10);
}

.btn-spotify {
  color: var(--ink);
  background: var(--blue);
  box-shadow: 0 12px 30px rgba(126, 175, 176, .16);
}

.btn-spotify:hover {
  color: var(--ink);
  background: #9ec6c4;
  box-shadow: 0 18px 38px rgba(126, 175, 176, .24);
}

.seo-main,
.video-page-main,
.kindle-help-main {
  padding-top: 78px;
  background: var(--bg);
}

.section {
  padding: clamp(68px, 9vw, 132px) 0;
  background: transparent;
}

.section::before,
.section::after {
  display: none;
}

.section-intro {
  max-width: 820px;
  margin: 0 0 clamp(42px, 6vw, 76px);
  text-align: left;
}

.eyebrow {
  color: var(--rose);
  font-size: 10px;
  letter-spacing: .28em;
}

.eyebrow-tertiary,
.eyebrow-secondary {
  color: var(--gold);
}

.section-title {
  color: var(--text);
  font-family: var(--font-headline);
  font-size: clamp(3.5rem, 7vw, 7.6rem);
  font-weight: 500;
  line-height: .84;
  letter-spacing: -.075em;
}

/* Daniel Stone uses his own markup, so give his headings the same deliberate
   headline treatment as the Claire pages instead of relying on browser/body
   defaults. */
body.daniel-stone-site main h1,
body.daniel-stone-site main h2,
body.daniel-stone-site main h3 {
  color: var(--text);
  font-family: var(--font-headline);
  font-style: normal;
  font-weight: 500;
  letter-spacing: -.06em;
}

body.daniel-stone-site main h1 {
  font-size: clamp(4rem, 7.2vw, 7.6rem);
  line-height: .84;
}

body.daniel-stone-site main h2 {
  font-size: clamp(2.6rem, 4.8vw, 4.8rem);
  line-height: .9;
}

body.daniel-stone-site main h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  line-height: .96;
}

body.daniel-stone-site main p {
  color: var(--muted);
}

body.daniel-stone-site main .eyebrow {
  color: var(--gold);
}

body.daniel-stone-site .pullquote {
  color: var(--text);
  border-left-color: var(--rose);
}

body.daniel-stone-site .article-callout {
  color: var(--ink);
  background: var(--paper);
}

.section-description {
  max-width: 680px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.16rem);
  line-height: 1.8;
}

.seo-hero {
  min-height: 390px;
  display: flex;
  align-items: flex-end;
  padding: clamp(112px, 15vw, 210px) 0 clamp(58px, 8vw, 100px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(11, 16, 28, .96), rgba(11, 16, 28, .72) 52%, rgba(11, 16, 28, .90)),
    linear-gradient(to bottom, rgba(11, 16, 28, .16), rgba(11, 16, 28, .92)),
    url("images/bg-book.png") center/cover no-repeat;
}

.seo-hero .container-medium {
  width: min(100% - 40px, 1260px);
}

.seo-hero .section-title {
  max-width: 1050px;
  color: var(--text);
}

.seo-lede {
  max-width: 760px;
  margin: 28px 0 0;
  color: rgba(219, 224, 221, .72);
  font-size: clamp(1.02rem, 1.45vw, 1.28rem);
  line-height: 1.8;
}

.seo-hero-split {
  padding-bottom: clamp(64px, 9vw, 118px);
}

.seo-hero-inner,
.seo-grid {
  gap: clamp(24px, 4vw, 56px);
}

.seo-feature-image {
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.seo-panel {
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid rgba(41, 38, 56, .16);
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .30), rgba(255, 255, 255, .04)),
    var(--paper);
  box-shadow: 0 24px 70px rgba(4, 7, 13, .20);
}

.seo-panel h2 {
  color: var(--ink);
  font-family: var(--font-headline);
  font-size: clamp(2rem, 3.2vw, 3.4rem);
  font-weight: 600;
  line-height: .92;
  letter-spacing: -.06em;
}

.seo-panel p,
.seo-panel li,
.seo-panel dd,
.seo-panel summary {
  color: rgba(41, 38, 56, .72);
  font-size: 1rem;
  line-height: 1.8;
}

.seo-panel p:first-of-type,
.seo-prose p:first-of-type {
  color: var(--ink);
}

.seo-panel a {
  color: #88556b;
  border-bottom-color: rgba(136, 85, 107, .32);
}

.seo-panel a:hover {
  color: #ad5f7c;
}

.seo-date,
.seo-prose p.seo-date {
  color: #98703c;
  font-size: .76rem;
  letter-spacing: .14em;
}

.seo-card-list {
  gap: 16px;
}

.seo-card-list a {
  padding: 22px;
  border: 1px solid rgba(219, 224, 221, .16);
  border-radius: 0;
  background: rgba(32, 40, 59, .54);
  transition: transform .28s ease, border-color .28s ease, background .28s ease;
}

.seo-card-list a:hover {
  transform: translateY(-4px);
  border-color: rgba(207, 119, 145, .62);
  background: rgba(47, 52, 75, .76);
}

.seo-card-list strong {
  color: var(--text);
  font-family: var(--font-headline);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
}

.seo-card-list span {
  color: var(--muted);
  line-height: 1.65;
}

.seo-card-list em {
  color: var(--rose);
}

.article-cta {
  margin: 46px 0;
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid rgba(207, 119, 145, .34);
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(207, 119, 145, .17), rgba(126, 175, 176, .08)),
    var(--surface-strong);
  box-shadow: var(--shadow-glow);
}

.article-cta h2 {
  color: var(--text);
  font-family: var(--font-headline);
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: .9;
}

.article-cta p {
  color: var(--muted);
}

.language-alternate a {
  border: 1px solid var(--blue-soft);
  border-radius: 0;
  background: rgba(126, 175, 176, .08);
  color: var(--text);
}

.homepage-seo-section {
  background: var(--bg-2);
}

.homepage-explore-group {
  border-top-color: var(--line);
}

.homepage-explore-group h3 {
  color: var(--gold);
}

.homepage-explore-link {
  border-bottom-color: var(--line-soft);
  color: var(--text);
}

.homepage-explore-link:hover,
.homepage-explore-arrow {
  color: var(--rose);
}

.video-list {
  width: min(100%, 1080px);
  margin-inline: auto;
  gap: clamp(54px, 8vw, 112px);
}

.video-card {
  gap: 22px;
  padding-bottom: clamp(54px, 8vw, 100px);
  border-bottom: 1px solid var(--line);
}

.video-card:last-child {
  border-bottom: 0;
}

.video-card-title {
  color: var(--text);
  font-family: var(--font-headline);
  font-size: clamp(2.2rem, 4.4vw, 4.7rem);
  font-weight: 500;
  line-height: .9;
  letter-spacing: -.06em;
  text-align: left;
}

.video-embed,
.seo-video-embed {
  border: 1px solid var(--line);
  border-radius: 0;
  background: #080d17;
  box-shadow: var(--shadow);
}

.nora-shell {
  justify-content: flex-start;
}

.nora-playlist {
  width: min(100%, 1040px);
  border: 1px solid var(--line);
  border-radius: 0;
  background: #080d17;
  box-shadow: var(--shadow);
}

.nora-video-list {
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.nora-video-card {
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface-strong);
}

.nora-video-card:hover {
  transform: translateY(-4px);
  border-color: var(--rose);
  background: rgba(207, 119, 145, .12);
}

.character-card,
.kindle-help-panel,
.kindle-note,
.kindle-app-card,
.playlist-panel {
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.character-card:hover,
.kindle-app-card:hover {
  border-color: rgba(207, 119, 145, .58);
  box-shadow: 0 30px 80px rgba(4, 7, 13, .48);
}

.character-name,
.kindle-help-panel h2,
.kindle-app-card strong {
  color: var(--text);
  font-family: var(--font-headline);
  font-style: normal;
}

.character-text,
.kindle-steps,
.kindle-note p,
.kindle-app-card span:last-child {
  color: var(--muted);
}

.site-footer {
  padding: 86px 0 44px;
  color: rgba(219, 224, 221, .66);
  background: #080d17;
  border-top: 1px solid var(--line);
}

.footer-title {
  color: var(--text);
  font-family: var(--font-headline);
  font-size: 2.1rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: -.05em;
}

.footer-content a:hover {
  color: var(--rose);
}

.footer-meta {
  color: rgba(219, 224, 221, .42);
}

/* The contact page is intentionally standalone, but shares the same system. */
body:has(.form-panel) {
  background:
    radial-gradient(circle at 14% 18%, rgba(126, 175, 176, .13), transparent 28rem),
    radial-gradient(circle at 88% 14%, rgba(207, 119, 145, .12), transparent 25rem),
    linear-gradient(145deg, var(--bg), var(--bg-2));
}

body:has(.form-panel) main {
  min-height: 100vh;
  padding: clamp(52px, 8vw, 110px) 20px;
}

body:has(.form-panel) .wrap {
  width: min(100%, 1120px);
  gap: clamp(32px, 7vw, 92px);
}

body:has(.form-panel) .eyebrow {
  color: var(--rose);
}

body:has(.form-panel) h1 {
  color: var(--text);
  font-family: var(--font-headline);
  font-size: clamp(4.4rem, 9vw, 9rem);
  font-weight: 500;
  line-height: .82;
  letter-spacing: -.075em;
}

body:has(.form-panel) .lead {
  color: var(--muted);
}

body:has(.form-panel) .back-link {
  color: var(--blue);
}

body:has(.form-panel) .back-link::before {
  background: var(--rose);
}

body:has(.form-panel) .form-panel {
  border: 1px solid rgba(219, 224, 221, .18);
  border-radius: 0;
  background: var(--paper);
  box-shadow: 0 32px 90px rgba(4, 7, 13, .42);
}

body:has(.form-panel) .form-title {
  color: var(--ink);
  font-family: var(--font-headline);
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: .9;
  letter-spacing: -.06em;
}

body:has(.form-panel) .form-note,
body:has(.form-panel) .fine {
  color: rgba(41, 38, 56, .66);
}

body:has(.form-panel) label {
  color: #88556b;
}

body:has(.form-panel) input,
body:has(.form-panel) textarea {
  border: 1px solid rgba(41, 38, 56, .20) !important;
  border-radius: 0 !important;
  background: rgba(255, 255, 255, .52) !important;
  color: var(--ink) !important;
}

body:has(.form-panel) input:focus,
body:has(.form-panel) textarea:focus {
  border-color: var(--rose) !important;
  box-shadow: 0 0 0 3px rgba(207, 119, 145, .14);
}

body:has(.form-panel) button {
  border-radius: 0;
  color: #fff;
  background: var(--rose);
}

body:has(.form-panel) button:hover {
  background: #da8ca4;
}

body:has(.form-panel) .whisper {
  border-top-color: rgba(41, 38, 56, .16);
  color: #88556b;
  font-family: var(--font-headline);
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav-bar {
    min-height: 68px;
  }

  .section-title {
    font-size: clamp(3.2rem, 12vw, 6rem);
  }
}

@media (max-width: 640px) {
  .nav-bar,
  .seo-hero .container-medium {
    width: min(100% - 30px, 1260px);
  }

  .site-title {
    white-space: normal;
  }

  .btn-header {
    display: none;
  }

  .seo-main,
  .video-page-main,
  .kindle-help-main {
    padding-top: 68px;
  }

  .seo-panel {
    padding: 24px;
  }

  body:has(.form-panel) main {
    padding-inline: 15px;
  }

  body:has(.form-panel) .wrap {
    grid-template-columns: 1fr;
  }
}

/* Keep Daniel Stone's editorial layout intact when the shared Claire styles
   are loaded after his page-specific rules. */
body.daniel-stone-site {
  overflow-x: hidden;
}

@media (max-width: 780px) {
  body.daniel-stone-site .shell {
    width: min(calc(100% - 30px), 1180px);
  }

  body.daniel-stone-site .topbar,
  body.daniel-stone-site .footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  body.daniel-stone-site nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
  }

  body.daniel-stone-site .hero,
  body.daniel-stone-site .section-grid,
  body.daniel-stone-site .book {
    grid-template-columns: 1fr;
  }

  body.daniel-stone-site .hero {
    gap: 28px;
    padding-top: 48px;
    padding-bottom: 60px;
  }

  body.daniel-stone-site .hero-image {
    order: -1;
  }

  body.daniel-stone-site .hero-image img {
    max-height: 520px;
  }

  body.daniel-stone-site .section {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  body.daniel-stone-site .book {
    gap: 32px;
  }

  body.daniel-stone-site .book-cover {
    max-height: 460px;
  }

  body.daniel-stone-site main h1 {
    font-size: clamp(4.15rem, 15.5vw, 6.6rem);
  }

  body.daniel-stone-site main h2 {
    font-size: clamp(2.7rem, 10.5vw, 4.4rem);
  }

  body.daniel-stone-site .article-shell {
    width: min(calc(100% - 30px), 820px);
  }
}

@media (max-width: 640px) {
  .section-title {
    font-size: clamp(4.3rem, 17vw, 6.8rem);
  }

  .seo-hero .section-title {
    font-size: clamp(4.5rem, 18vw, 7.2rem);
  }

  body:has(.form-panel) h1 {
    font-size: clamp(4.8rem, 18vw, 7rem);
  }

  body.daniel-stone-site .topbar {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  body.daniel-stone-site .field-hero {
    padding-top: 52px;
    padding-bottom: 48px;
  }

  body.daniel-stone-site .article-header {
    padding-top: 52px;
  }

  body.daniel-stone-site .article-header h1 {
    font-size: clamp(3.8rem, 15.5vw, 6.1rem);
  }

  body.daniel-stone-site .mishap-copy h2 {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
  }
}
