/* Scrivi Books — private static preview stylesheet.
   Self-contained: no imports, no remote fonts, no tracking. */

:root {
  --cream: #fbf6ee;
  --paper: #fffdf8;
  --ink: #2c2a26;
  --ink-soft: #5b564d;
  --brand: #b52a8e;
  --brand-deep: #6e204a;
  --pink: #ad286e;
  --pink-soft: #f7e1ed;
  --gold: #c99a3f;
  --line: #e4dbcd;
  --shadow: 0 10px 30px rgba(44, 42, 38, 0.08);
  --radius: 14px;
  --max: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--cream);
  background-image: linear-gradient(180deg, #fbf6ee 0%, #f7efe3 100%);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  line-height: 1.22;
  color: var(--brand-deep);
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.95rem, 1.4rem + 2.2vw, 3.05rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.45rem, 1.15rem + 1.1vw, 2rem);
  margin-top: 0;
}

h3 {
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  margin-top: 1.6em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand-deep);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link ------------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 30;
  background: var(--brand);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease-in;
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

/* Preview banner -------------------------------------------------------- */

/* Header ---------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 246, 238, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.site-header__inner {
  max-width: var(--max);
  margin-inline: auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
}

.brand img {
  width: 148px;
  height: auto;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand-deep);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  cursor: pointer;
}

.menu-toggle__bars {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.25rem;
  align-items: center;
}

.site-nav a {
  display: inline-block;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-size: 0.97rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-soft);
}

.site-nav a:hover {
  background: var(--pink-soft);
  color: var(--brand-deep);
}

.site-nav a[aria-current="page"] {
  background: var(--brand);
  color: #fff;
}

/* Layout ---------------------------------------------------------------- */

main {
  display: block;
}

.section {
  max-width: var(--max);
  margin-inline: auto;
  padding: 2.6rem 1.25rem;
}

.section--tight {
  padding-block: 1.6rem;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--pink);
  margin-bottom: 0.6rem;
}

.lede {
  font-size: 1.13rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

.prose {
  max-width: 68ch;
}

.prose p {
  margin-bottom: 1em;
}

/* Hero ------------------------------------------------------------------ */

.hero {
  position: relative;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(2rem, 1.2rem + 3vw, 3.6rem) 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
}

.hero__media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #fff;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.button {
  display: inline-block;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.97rem;
  text-decoration: none;
  border: 1px solid transparent;
}

.button--primary {
  background: var(--brand);
  color: #fff;
}

.button--primary:hover {
  background: var(--brand-deep);
  color: #fff;
}

.button--ghost {
  background: transparent;
  color: var(--brand-deep);
  border-color: var(--brand);
}

.button--ghost:hover {
  background: var(--brand);
  color: #fff;
}

/* Cards and grids ------------------------------------------------------- */

.grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
  box-shadow: 0 2px 0 rgba(44, 42, 38, 0.02);
}

.card h3 {
  margin-top: 0;
}

.card p:last-child {
  margin-bottom: 0;
}

.card__link {
  display: inline-block;
  margin-top: 0.4rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.contents-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: grid;
  gap: 0.7rem;
}

.contents-list li {
  position: relative;
  padding-left: 1.8rem;
  color: var(--ink-soft);
}

.contents-list li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.55em;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--pink);
}

.bonus {
  background: var(--pink-soft);
  border: 1px solid #eccdd4;
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  margin-top: 1.4rem;
}

.bonus h2 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.bonus p {
  margin: 0;
  color: #6d3b46;
}

/* Book catalogue -------------------------------------------------------- */

.book-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  margin-top: 1.2rem;
}

.book-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
  box-shadow: 0 2px 0 rgba(44, 42, 38, 0.03);
}

.book-card__cover {
  min-height: 264px;
  margin: -0.3rem -0.3rem 1rem;
  padding: 0.5rem;
  border-radius: 10px;
  background: #fff;
  display: grid;
  place-items: center;
}

.book-card__cover img {
  max-width: 100%;
  max-height: 250px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.book-card__title {
  font-size: 1.12rem;
  margin: 0 0 0.45rem;
}

.book-card__sub {
  color: var(--ink-soft);
  font-size: 0.94rem;
  flex: 1 1 auto;
}

.book-card__link {
  margin-top: 0.9rem;
  align-self: flex-start;
  font-weight: 700;
  font-size: 0.93rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--brand);
  text-decoration: none;
  color: var(--brand-deep);
}

.book-card__link:hover {
  background: var(--brand);
  color: #fff;
}

.group-heading {
  margin-top: 2.2rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--pink-soft);
}

/* Campaign teasers ------------------------------------------------------ */

.campaign {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 1.2rem;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  margin-top: 1.2rem;
}

.campaign img {
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.campaign h3 {
  margin-top: 0;
}

/* Redirect stubs -------------------------------------------------------- */

.stub {
  max-width: 620px;
  margin: 0 auto;
  padding: clamp(2rem, 1rem + 5vw, 4.5rem) 1.25rem;
  text-align: center;
}

.stub p {
  color: var(--ink-soft);
}

/* Footer ---------------------------------------------------------------- */

.site-footer {
  margin-top: 2rem;
  background: var(--brand-deep);
  color: #e8e0d2;
}

.site-footer__inner {
  max-width: var(--max);
  margin-inline: auto;
  padding: 2.2rem 1.25rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.site-footer a {
  color: #f6e9d6;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer__brand {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: 1.25rem;
  margin: 0;
}

.site-footer__note {
  font-size: 0.88rem;
  color: #c8bfae;
  margin: 0;
}

.site-footer ul {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.site-footer a {
  text-decoration: none;
  font-size: 0.95rem;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Responsive ------------------------------------------------------------ */

.js .menu-toggle {
  display: none;
}

@media (max-width: 820px) {
  .js .menu-toggle {
    display: inline-flex;
  }

  .js .site-nav {
    display: none;
    flex-basis: 100%;
  }

  .js .site-nav.is-open {
    display: block;
  }

  .js .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    padding-top: 0.4rem;
    border-top: 1px solid var(--line);
  }

  .js .site-nav a {
    display: block;
    border-radius: 8px;
  }

  .hero__inner,
  .campaign {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__media {
    order: 0;
  }

  .hero__media img {
    max-height: 440px;
    width: auto;
    margin-inline: auto;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 1rem;
  }

  .brand img {
    width: 120px;
  }

  .section {
    padding-inline: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .skip-link {
    display: none;
  }
}
