/* DevHaar — warm, quiet typography for a small family publisher */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond.woff2") format("woff2-variations"),
       url("fonts/cormorant-garamond.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-italic.woff2") format("woff2-variations"),
       url("fonts/cormorant-garamond-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3.woff2") format("woff2-variations"),
       url("fonts/source-sans-3.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3-italic.woff2") format("woff2-variations"),
       url("fonts/source-sans-3-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --cream: #fff9e9;
  --cream-deep: #f3ead4;
  --paper: #fffdf6;
  --ink: #3a2a24;
  --ink-soft: #5c463c;
  --maroon: #631218;
  --maroon-deep: #4a0e13;
  --gold: #b07d2a;
  --gold-text: #8a5e1c;
  --gold-bright: #c99a40;
  --navy: #2b3a55;
  --navy-deep: #223047;
  --tos-cream: #fff8ec;
  --line: #e4d5b6;
  --shadow: 0 10px 28px rgba(99, 18, 24, 0.09);
  --shadow-hover: 0 16px 36px rgba(99, 18, 24, 0.14);
  --radius: 10px;
  --content: 70rem;
  --font-serif: "Cormorant Garamond", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", Calibri, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--maroon);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--maroon-deep);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  z-index: 100;
  background: var(--maroon);
  color: var(--cream);
  padding: 0.5rem 0.9rem;
  border-radius: 4px;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
  color: var(--cream);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 249, 233, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.section-inner,
.footer-inner {
  width: min(var(--content), calc(100% - 2.5rem));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 4.25rem;
  padding: 0.4rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--maroon);
  text-decoration: none;
}

.brand img {
  width: 3rem;
  height: 3rem;
  background: var(--cream);
}

.brand-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.55rem;
  letter-spacing: 0.01em;
  line-height: 1;
}

.site-nav {
  display: flex;
  gap: 1.4rem;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--maroon);
}

/* Hero */

.hero {
  padding: 3.75rem 0 3.25rem;
  text-align: center;
}

.hero-logo {
  width: 15.5rem;
  height: 15.5rem;
  margin: 0 auto 1.25rem;
  background: var(--cream);
}

.hero h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  color: var(--maroon);
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin: 0 0 0.6rem;
}

.lede {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  color: var(--ink);
  margin: 0 0 0.85rem;
}

.hero-support {
  color: var(--ink-soft);
  max-width: 40rem;
  margin: 0 auto 1.75rem;
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1rem;
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin: 0 auto 1.75rem;
  width: min(18rem, 70%);
  color: var(--gold);
}

.ornament-line {
  flex: 1;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}

.ornament svg {
  flex: none;
  width: 0.85rem;
  height: 0.85rem;
}

/* Buttons */

.btn {
  display: inline-block;
  background: var(--maroon);
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  padding: 0.7rem 1.35rem;
  border-radius: 6px;
  border: 1px solid var(--maroon);
}

.btn:hover,
.btn:focus-visible {
  background: var(--maroon-deep);
  border-color: var(--maroon-deep);
  color: var(--cream);
}

.btn-ghost {
  background: transparent;
  color: var(--maroon);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--cream-deep);
  color: var(--maroon-deep);
  border-color: var(--maroon);
}

/* Sections */

#books,
#personalized,
#about,
#contact {
  scroll-margin-top: 5.5rem;
}

.section {
  padding: 3.5rem 0;
}

.section-books {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fbf6ea 0%, var(--cream) 100%);
}

.section h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: var(--maroon);
  text-align: center;
  margin: 0 0 0.75rem;
  line-height: 1.15;
}

.series-byline {
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--ink);
  margin: 0 0 1rem;
}

.section-intro {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 2.5rem;
  color: var(--ink-soft);
}

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

.book-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.book-card a.cover-link {
  display: block;
  background: var(--cream-deep);
}

.book-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.book-body {
  padding: 1.15rem 1.2rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.35rem;
}

.book-meta {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin: 0;
}

.book-card h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.55rem;
  line-height: 1.2;
  color: var(--maroon);
  margin: 0;
}

.book-card h3 a {
  color: inherit;
  text-decoration: none;
}

.book-card h3 a:hover {
  text-decoration: underline;
}

.book-author {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.book-blurb {
  margin: 0.25rem 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

.verse {
  margin: 0.45rem 0 0.7rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.12rem;
  color: var(--ink);
  line-height: 1.45;
}

.verse cite {
  font-style: italic;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  display: inline;
}

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

.book-body .btn {
  margin-top: auto;
  text-align: center;
}

.series-link {
  text-align: center;
  margin: 0;
}

.series-link a {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.1rem;
}

.series-link a:hover {
  border-bottom-color: var(--maroon);
}

/* About & contact */

.narrow {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}

.narrow p {
  color: var(--ink-soft);
  margin: 0 0 1rem;
}

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

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 1.75rem;
  display: grid;
  gap: 1rem;
}

.contact-list a {
  font-weight: 600;
  text-decoration: none;
  font-size: 1.15rem;
}

.contact-list a:hover {
  text-decoration: underline;
}

.contact-list span {
  display: block;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ink-soft);
  margin-top: 0.15rem;
}

.facebook-link {
  font-weight: 600;
  text-decoration: none;
}

.facebook-link:hover {
  text-decoration: underline;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 2rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

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

.footer-mark {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--maroon);
}

/* Hover lift for cards, without being jumpy */
@media (hover: hover) and (pointer: fine) {
  .book-card {
    transition: transform 0.22s ease, box-shadow 0.22s ease;
  }

  .book-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
  }
}

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

  .book-card,
  .book-card:hover {
    transition: none;
    transform: none;
  }
}

/* Responsive */

@media (max-width: 880px) {
  .book-grid {
    grid-template-columns: 1fr;
    max-width: 24rem;
    margin-inline: auto;
    margin-bottom: 2rem;
  }

  .hero {
    padding: 2.5rem 0 2.4rem;
  }

  .hero-logo {
    width: 12.5rem;
    height: 12.5rem;
  }

  .section {
    padding: 2.75rem 0;
  }
}

@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: center;
    min-height: 0;
    padding: 0.65rem 0 0.7rem;
    gap: 0.45rem 1rem;
  }

  .site-nav {
    gap: 1rem 1.15rem;
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 620px) {
  .header-inner,
  .section-inner,
  .footer-inner {
    width: min(var(--content), calc(100% - 1.75rem));
  }

  .site-nav {
    gap: 0.7rem 0.95rem;
  }

  .site-nav a {
    font-size: 0.95rem;
  }

  body {
    font-size: 1.0625rem;
  }

  .hero-logo {
    width: 11rem;
    height: 11rem;
  }
}

.section-contact {
  padding-top: 0.5rem;
}


/* TheirOwnStory — visually distinct navy band */
.section-personalized {
  background: var(--navy);
  color: var(--tos-cream);
  text-align: center;
  padding: 4rem 0;
}

.section-personalized h2 {
  color: var(--tos-cream);
  margin-bottom: 0.4rem;
}

.tos-logo {
  width: min(20rem, 86%);
  height: auto;
  margin: 0 auto 1.15rem;
}

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

.tos-lede {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  margin: 0 auto 1rem;
  max-width: 32rem;
  color: var(--tos-cream);
}

.tos-intro {
  max-width: 38rem;
  margin: 0 auto 2.25rem;
  color: var(--tos-cream);
  opacity: 0.92;
}

.tos-steps-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tos-cream);
  margin: 0 0 1.25rem;
  opacity: 0.85;
}

.tos-steps {
  list-style: none;
  margin: 0 auto 2.25rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  max-width: 52rem;
  text-align: center;
}

.tos-steps li {
  background: rgba(255, 248, 236, 0.08);
  border: 1px solid rgba(255, 248, 236, 0.18);
  border-radius: var(--radius);
  padding: 1.35rem 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.tos-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 248, 236, 0.55);
  font-weight: 600;
  font-size: 1rem;
  color: var(--tos-cream);
}

.tos-steps p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--tos-cream);
}

.btn-tos {
  background: var(--tos-cream);
  color: var(--navy);
  border-color: var(--tos-cream);
}

.btn-tos:hover,
.btn-tos:focus-visible {
  background: #fff;
  color: var(--navy-deep);
  border-color: #fff;
}

.section-personalized :focus-visible {
  outline-color: var(--tos-cream);
}

@media (max-width: 880px) {
  .tos-steps {
    grid-template-columns: 1fr;
    max-width: 22rem;
  }

  .section-personalized {
    padding: 3.15rem 0;
  }

  .tos-logo {
    width: min(16.5rem, 78%);
  }

  #books,
  #personalized,
  #about,
  #contact {
    scroll-margin-top: 7.5rem;
  }
}
