/* Small Revolution Publishing — static preview site */

:root {
  --paper: #f3eee4;
  --paper-deep: #e8e0d2;
  --cream: #faf6ef;
  --ink: #1c1914;
  --ink-soft: #5a5348;
  --gold: #8a7348;
  --gold-soft: #c4b08a;
  --olive: #4f5540;
  --rule: rgba(28, 25, 20, 0.16);
  --hero-veil: rgba(18, 15, 12, 0.58);
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --measure: 40rem;
  --wide: 70rem;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 10vw, 8rem);
}

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

html {
  scroll-behavior: smooth;
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 400;
}

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

a {
  color: inherit;
}

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  background: var(--cream);
  color: var(--ink);
  padding: 0.5rem 0.85rem;
  text-decoration: none;
  font-size: 0.9rem;
}

.skip-link:focus {
  top: 1rem;
}

.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;
}

.wrap {
  width: min(var(--wide), calc(100% - var(--pad) * 2));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 1rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

h1,
h2,
h3,
.logo-name {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
}

h1 {
  margin: 0;
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  line-height: 0.98;
  font-weight: 400;
}

h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.15rem, 4.5vw, 3.4rem);
  line-height: 1.1;
}

h3 {
  margin: 0 0 0.5rem;
  font-size: 1.65rem;
  line-height: 1.2;
}

.lede {
  margin: 1.25rem 0 0;
  max-width: 34rem;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.5;
  color: inherit;
}

.prose {
  max-width: var(--measure);
}

.prose p,
.muted {
  color: var(--ink-soft);
}

.prose p + p {
  margin-top: 1rem;
}

/* Header */

.site-header {
  position: relative;
  z-index: 20;
  padding: 1.15rem 0;
}

.site-header--overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  color: var(--cream);
}

.site-header--overlay a:hover {
  color: var(--gold-soft);
}

.site-header--solid {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.logo-mark {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 0.35rem;
}

.logo-mark--footer {
  width: 2.25rem;
  height: 2.25rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.logo-name {
  font-size: 1.15rem;
  line-height: 1.05;
}

.logo-sub {
  margin-top: 0.28rem;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.78;
}

.nav-toggle {
  display: none;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1rem;
  height: 1px;
  background: currentColor;
  position: relative;
  margin: 0 auto;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -5px;
}

.nav-toggle-bars::after {
  top: 5px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}

.nav-list a[aria-current="page"] {
  color: var(--gold);
}

.site-header--overlay .nav-list a[aria-current="page"] {
  color: var(--gold-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3rem;
  padding: 0.7rem 1.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  background: var(--ink);
  color: var(--cream);
}

.btn:hover {
  background: var(--gold);
  color: var(--cream);
}

.btn--light {
  background: var(--cream);
  color: var(--ink);
}

.btn--light:hover {
  background: var(--paper);
  color: var(--ink);
}

.btn--ghost {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}

.btn--ghost:hover {
  background: rgba(250, 246, 239, 0.12);
  color: inherit;
}

.btn--outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn--outline:hover {
  background: var(--ink);
  color: var(--cream);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero .actions {
  justify-content: center;
}

/* Hero */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  color: var(--cream);
  text-align: center;
  padding: 7rem var(--pad) 4rem;
  background:
    linear-gradient(180deg, rgba(18, 15, 12, 0.45) 0%, var(--hero-veil) 48%, rgba(18, 15, 12, 0.72) 100%),
    url("images/hero.jpg") center / cover no-repeat;
}

.hero-inner {
  width: min(48rem, 100%);
}

.hero .eyebrow {
  color: var(--gold-soft);
}

.hero .lede {
  margin-inline: auto;
  color: rgba(250, 246, 239, 0.88);
}

.hero-note {
  margin: 1.75rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.72;
}

/* Page hero (inner pages) */

.page-hero {
  padding: clamp(5.5rem, 12vw, 7.5rem) 0 clamp(3rem, 6vw, 4rem);
  background: var(--paper-deep);
  text-align: center;
}

.page-hero .lede {
  margin-inline: auto;
  color: var(--ink-soft);
}

/* Sections */

.section {
  padding: var(--section) 0;
}

.section--deep {
  background: var(--paper-deep);
}

.section--cream {
  background: var(--cream);
}

.section-head {
  max-width: 36rem;
  margin-bottom: 3rem;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .lede,
.section-head--center p {
  margin-inline: auto;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.pull-quote {
  padding: clamp(2.75rem, 6vw, 4.25rem) 0;
  background: var(--paper-deep);
  text-align: center;
}

.pull-quote blockquote {
  margin: 0 auto;
  max-width: 34rem;
}

.pull-quote p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.8vw, 2.05rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.3;
  color: var(--ink);
}

/* Book strip / carousel */

.book-strip-wrap {
  position: relative;
}

.book-strip {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.5rem 0 1.25rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-soft) transparent;
}

.book-strip::-webkit-scrollbar {
  height: 6px;
}

.book-strip::-webkit-scrollbar-thumb {
  background: var(--gold-soft);
  border-radius: 999px;
}

.book-card {
  flex: 0 0 auto;
  width: min(11.5rem, 42vw);
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
}

.book-card:hover {
  color: inherit;
}

.book-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(28, 25, 20, 0.14);
  background: var(--paper-deep);
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(250, 246, 239, 0.94);
  color: var(--ink);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.book-meta {
  margin-top: 1rem;
}

.book-meta h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.25;
}

.book-meta .byline {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.carousel-nav {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.carousel-btn {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--cream);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.carousel-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.carousel-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

/* Books grid (books page) */

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 2.5rem 1.75rem;
}

.books-grid .book-card {
  width: auto;
}

.feature-book {
  display: grid;
  grid-template-columns: minmax(10rem, 16rem) 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--cream);
  border: 1px solid var(--rule);
}

.feature-book .book-cover {
  max-width: 16rem;
  margin: 0;
}

.feature-book .lede {
  margin-top: 0.75rem;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.blurb {
  margin: 0.85rem 0 0;
  max-width: 40rem;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.7;
}

.meta-line {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.catalog {
  display: grid;
  gap: 2.5rem;
}

.catalog-item {
  display: grid;
  grid-template-columns: minmax(8.5rem, 12.5rem) 1fr;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: start;
  padding: clamp(1.25rem, 2.5vw, 1.85rem);
  background: var(--cream);
  border: 1px solid var(--rule);
}

.catalog-item .book-cover {
  max-width: 12.5rem;
  margin: 0;
}

.catalog-item h3 {
  margin: 0.15rem 0 0.35rem;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
}

.catalog-item .actions {
  margin-top: 1.25rem;
}

/* Accept / exclude lists */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

.panel {
  padding: 1.75rem 1.5rem;
  background: var(--cream);
  border-top: 2px solid var(--gold);
}

.panel--soft {
  background: var(--paper);
}

.panel h3 {
  margin-bottom: 1rem;
}

.panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.panel li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.15rem;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--rule);
  font-size: 0.98rem;
}

.panel li:last-child {
  border-bottom: 0;
}

.panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--gold-soft);
}

.panel--exclude li::before {
  background: var(--ink-soft);
  opacity: 0.45;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.step-num {
  display: block;
  margin-bottom: 0.85rem;
  font-family: var(--serif);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum", "tnum";
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.fact {
  padding-top: 1.15rem;
  border-top: 1px solid var(--gold);
}

.fact strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum", "tnum";
}

.fact p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Form mock */

.form-mock {
  max-width: 36rem;
  display: grid;
  gap: 1.15rem;
}

.form-row {
  display: grid;
  gap: 0.4rem;
}

.form-row label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
}

.form-row textarea {
  min-height: 8rem;
  resize: vertical;
}

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

.form-note a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sample-banner {
  margin: 0;
  padding: 0.75rem 1rem;
  background: var(--paper-deep);
  border-left: 3px solid var(--gold);
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.section-head a,
.prose a,
.muted a {
  color: var(--gold);
  text-underline-offset: 2px;
}

/* CTA band */

.cta-band {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  text-align: center;
  background: var(--ink);
  color: var(--cream);
}

.cta-band .eyebrow {
  color: var(--gold-soft);
}

.cta-band .lede {
  margin-inline: auto;
  color: rgba(250, 246, 239, 0.82);
}

.cta-band .actions {
  justify-content: center;
}

/* Footer */

.site-footer {
  padding: 3rem 0 2.5rem;
  background: var(--paper-deep);
  border-top: 1px solid var(--rule);
}

.footer-inner {
  display: grid;
  gap: 1.5rem;
}

.footer-brand .logo-name {
  font-size: 1.25rem;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.footer-meta a {
  text-decoration: none;
}

.footer-credit {
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.footer-credit a {
  color: var(--gold);
}

/* Mobile */

@media (max-width: 860px) {
  .split,
  .two-col,
  .steps,
  .facts,
  .feature-book,
  .catalog-item {
    grid-template-columns: 1fr;
  }

  .catalog-item .book-cover,
  .feature-book .book-cover {
    max-width: 14rem;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.35rem);
    right: var(--pad);
    left: var(--pad);
    display: none;
    background: var(--cream);
    color: var(--ink);
    border: 1px solid var(--rule);
    border-radius: 4px;
    padding: 1rem;
    box-shadow: 0 16px 40px rgba(28, 25, 20, 0.12);
  }

  .site-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .nav-list .btn {
    width: 100%;
  }

  .site-header--overlay .site-nav {
    color: var(--ink);
  }
}

@media (max-width: 560px) {
  .books-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1rem;
  }

  .book-meta h3 {
    font-size: 1rem;
  }
}
