/* Felagie Books — v1
   Palette and type follow the approved mock-up (Felagie-Books-prototype-5.pdf).
   Fraunces for headings / italic lines, Karla for small text. */

:root {
  --bg: #1c1712;
  --cream: #e4d9c2;
  --gold: #d9a441;
  --red: #d0584a;
  --grey: #978f7f;
  --rule: #403931;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Karla", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 62rem;
  --gutter: 1.5rem;
  --block: clamp(3rem, 7vw, 5.5rem);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, p, figure { margin: 0; }
img { max-width: 100%; height: auto; display: block; }

a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

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

/* ---------- header ---------- */

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

.site-header {
  padding: 1.5rem var(--gutter);
  max-width: var(--wrap);
  margin-inline: auto;
}

.brand { display: inline-block; color: inherit; text-decoration: none; }

/* the mock-up's lockup: one file, one swap when Jim's logo lands */
.brand img { height: 2.5rem; width: auto; }

/* ---------- hero ---------- */

.hero {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: var(--block) var(--gutter);
  display: grid;
  gap: 2.5rem;
}

h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.75rem, 9vw, 5rem);
  line-height: 1;
  letter-spacing: -0.01em;
}

.hero__strap {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.25rem, 3.4vw, 1.75rem);
  color: var(--gold);
  margin-top: 1.75rem;
}

.hero__place {
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--grey);
  margin-top: 1rem;
}

.hero__figure { margin: 0; }

.hero__figure img { width: 100%; }

.hero__figure figcaption {
  font-size: 0.8125rem;
  color: var(--grey);
  margin-top: 0.7rem;
}

/* ---------- book rows ---------- */

.book--lead {
  border-top: 1px solid var(--rule);
}

.book {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: var(--block) var(--gutter);
  display: grid;
  gap: 1.75rem;
}

.book__cover img { width: 100%; }

.label {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--red);
}

h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.75rem, 4.6vw, 2.75rem);
  line-height: 1.08;
  margin-top: 1rem;
}

h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.6vw, 2rem);
  line-height: 1.1;
  margin-top: 1rem;
}

.book__text { margin-top: 1.1rem; }

.book__line {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.125rem, 2.6vw, 1.5rem);
  margin-top: 1rem;
}

.credit {
  font-size: 0.875rem;
  color: var(--grey);
  margin-top: 1.25rem;
}

.cta { margin-top: 1.75rem; }

.button {
  display: inline-block;
  background: var(--red);
  color: var(--bg);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.85rem 1.5rem;
  transition: background-color 160ms ease;
}

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

/* not yet a live link */
.button[aria-disabled="true"] { pointer-events: none; cursor: default; }

/* ---------- more from Felagie ---------- */

.more {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.more__title { margin-top: var(--block); }

.more .book { padding-block: clamp(1.75rem, 4vw, 3rem); }
.more .book:first-of-type { padding-top: clamp(1.5rem, 3vw, 2.5rem); }

/* ---------- place ---------- */

.place {
  border-top: 1px solid var(--rule);
  max-width: var(--wrap);
  margin-inline: auto;
  padding: var(--block) var(--gutter);
  display: grid;
  gap: 1.25rem;
}

.place__title { margin-top: 0; }

.place__text { color: var(--cream); }

/* ---------- sales note ---------- */

.sales-note {
  font-size: 0.9375rem;
  color: var(--grey);
  margin-top: 1.75rem;
  padding-bottom: var(--block);
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--rule);
  max-width: var(--wrap);
  margin-inline: auto;
  padding: var(--block) var(--gutter);
  display: grid;
  gap: 1.5rem;
}

.footer__strap {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.25rem, 3.2vw, 1.75rem);
}

.footer__note {
  font-size: 0.9375rem;
  color: var(--grey);
  margin-top: 0.4rem;
}

.footer__note--adults { color: var(--cream); }

.footer__contact { margin-top: 1.1rem; font-size: 1rem; }

.footer__copy { font-size: 0.8125rem; color: var(--grey); }

/* ---------- wider screens ---------- */

@media (min-width: 56rem) {
  /* hero: text then image, side by side */
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 4rem; align-items: start; }

  /* book rows: cover then text */
  .book { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 3.5rem; align-items: center; }
  .book--lead { grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); }

  .place { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 3.5rem; align-items: start; }

  .site-footer { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
