/* Diane Fable author site. Cozy cottage-magic, mobile first. */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-400.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-600.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-700.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-italic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-400.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-600.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-italic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #241e1a;
  --ink-soft: #4f453c;
  --cream: #fbf6ee;
  --paper: #f4eadc;
  --dusk: #2a355c;
  --dusk-deep: #1c243f;
  --dusk-mid: #3d4a73;
  --teal: #3a6562;
  --teal-dark: #2a4d4a;
  --coral: #c56b55;
  --gold: #c9a056;
  --gold-soft: #e8c36a;
  --peach: #f0c9b0;
  --lantern: #f7e6bc;
  --white: #fffdf8;
  --focus: #c9a056;
  --shadow: 0 18px 40px rgba(28, 36, 63, 0.22);
  --radius: 1.1rem;
  --wrap: 68rem;
  --font-display: "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--teal-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--coral);
}

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

.skip {
  position: absolute;
  left: 0.8rem;
  top: -4rem;
  z-index: 20;
  background: var(--white);
  color: var(--ink);
  padding: 0.6rem 0.9rem;
  border-radius: 0.4rem;
}

.skip:focus {
  top: 0.8rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 246, 238, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 160, 86, 0.28);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 0.85rem 0;
}

.brand {
  color: var(--dusk);
  text-decoration: none;
  min-width: 0;
}

.brand:hover {
  color: var(--teal-dark);
}

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.brand-mark {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.nav a {
  color: var(--dusk);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--coral);
}

.hero {
  position: relative;
  color: var(--cream);
  background:
    linear-gradient(180deg, #24315a 0%, #3d4a73 42%, #8a6b78 76%, #c9957a 100%);
  padding: 3.5rem 0 4.25rem;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4.5rem;
  background: linear-gradient(180deg, transparent, var(--cream));
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 42rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lantern);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 9vw, 5rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: #fff8ee;
}

.tagline {
  margin: 0.9rem 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 3.4vw, 1.7rem);
  line-height: 1.3;
  color: var(--lantern);
}

.lede {
  margin: 1.1rem auto 0;
  max-width: 34rem;
  color: rgba(251, 246, 238, 0.92);
  font-size: 1.05rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--lantern);
  color: var(--dusk-deep);
}

.btn-primary:hover {
  background: #fff4d6;
  color: var(--dusk-deep);
}

.btn-secondary {
  background: transparent;
  color: var(--cream);
  border-color: rgba(247, 230, 188, 0.7);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.btn-teal {
  background: var(--teal);
  color: #fffdf8;
}

.btn-teal:hover {
  background: var(--teal-dark);
  color: #fffdf8;
}

.btn.is-placeholder {
  background: var(--paper);
  color: var(--ink-soft);
  border: 1px dashed var(--gold);
  cursor: default;
}

.btn.is-placeholder:hover {
  background: var(--paper);
  color: var(--ink-soft);
}

.section {
  padding: 3rem 0;
}

.section-tight {
  padding-top: 1.5rem;
}

.section-head {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 2rem;
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin: 0 0 0.9rem;
  color: var(--gold);
}

.ornament::before,
.ornament::after {
  content: "";
  width: 3.2rem;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}

.ornament span {
  font-size: 0.85rem;
  line-height: 1;
}

h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 5vw, 2.7rem);
  line-height: 1.15;
  color: var(--dusk);
}

.section-head p {
  margin: 0.7rem 0 0;
  color: var(--ink-soft);
}

.book {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}

.cover-frame {
  margin: 0 auto;
  width: min(100%, 22rem);
}

.cover-frame img {
  width: 100%;
  border-radius: 0.35rem 0.7rem 0.7rem 0.35rem;
  box-shadow: var(--shadow);
  background: var(--paper);
}

.book-copy .kicker {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

.book-copy h3 {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 4.5vw, 2.4rem);
  line-height: 1.15;
  color: var(--dusk);
}

.release {
  margin: 0.55rem 0 1.1rem;
  font-weight: 600;
  color: var(--coral);
}

.hook {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.35;
  color: var(--dusk);
}

.blurb p {
  margin: 0 0 1rem;
}

.blurb p:last-child {
  margin-bottom: 0;
}

.series-note {
  margin: 1.1rem 0 0;
  color: var(--ink-soft);
}

.about-card,
.newsletter-card,
.contact-card {
  background: var(--white);
  border: 1px solid rgba(201, 160, 86, 0.28);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  box-shadow: 0 8px 24px rgba(28, 36, 63, 0.06);
}

.about-card p,
.newsletter-card p,
.contact-card p {
  margin: 0 0 1rem;
}

.about-card p:last-child,
.newsletter-card p:last-child,
.contact-card p:last-child {
  margin-bottom: 0;
}

.newsletter-card,
.contact-card {
  text-align: center;
}

.newsletter-card .btn,
.contact-card .btn {
  margin-top: 0.4rem;
}

.note {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.email-link {
  font-weight: 600;
  font-size: 1.05rem;
  word-break: break-word;
}

.site-footer {
  margin-top: 1rem;
  padding: 2rem 0 2.4rem;
  border-top: 1px solid rgba(201, 160, 86, 0.28);
  color: var(--ink-soft);
  font-size: 0.92rem;
  text-align: center;
}

.site-footer p {
  margin: 0.25rem 0;
}

.not-found {
  min-height: 70vh;
  display: grid;
  align-content: center;
  text-align: center;
  padding: 3rem 0;
}

.not-found h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3rem);
  color: var(--dusk);
}

@media (min-width: 760px) {
  .wrap {
    width: min(100% - 3rem, var(--wrap));
  }

  .hero {
    padding: 5.5rem 0 6rem;
  }

  .book {
    grid-template-columns: minmax(16rem, 22rem) 1fr;
    gap: 3rem;
    align-items: center;
  }

  .cover-frame {
    margin: 0;
  }

  .about-card,
  .newsletter-card,
  .contact-card {
    padding: 2rem 2.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
