:root {
  --primary-color: #355C4D;
  --secondary-color: #F8F5F0;
  --accent-color: #C89B3C;
  --text-color: #222222;
  --muted-color: #666666;
  --background-color: #ffffff;
  --border-color: rgba(53, 92, 77, 0.16);
  --shadow: 0 18px 40px rgba(34, 34, 34, 0.08);
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text-color);
  background: var(--background-color);
  line-height: 1.7;
}

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

a {
  color: var(--primary-color);
}

a:hover,
a:focus-visible {
  color: var(--accent-color);
}

button,
a {
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 3px;
}

.site-shell {
  min-height: 100vh;
  background: linear-gradient(180deg, #fcfaf7 0%, #ffffff 100%);
}

.site-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border-color);
  background: var(--secondary-color);
  color: var(--primary-color);
  padding: 0.6rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
}

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

.site-nav a {
  text-decoration: none;
  color: var(--text-color);
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(53, 92, 77, 0.08);
  color: var(--primary-color);
}

.page-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem 0 2.5rem;
}

.eyebrow {
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  margin: 0 0 0.7rem;
}

.hero h1 {
  margin: 0 0 0.9rem;
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.15;
  max-width: 20ch;
}

.hero p {
  margin: 0;
  color: var(--muted-color);
  font-size: 1.05rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--primary-color);
  color: white;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #274438;
  color: white;
}

.button-secondary {
  background: var(--secondary-color);
  color: var(--primary-color);
  border-color: var(--border-color);
}

.hero-spotlight,
.section-card,
.book-card,
.about-card,
.newsletter-card {
  background: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
}

.hero-spotlight {
  overflow: hidden;
}

.hero-spotlight img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.spotlight-copy {
  padding: 1rem 1.1rem 1.2rem;
}

.spotlight-copy h2 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
}

.spotlight-copy p {
  margin: 0 0 0.6rem;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin: 0 0 1rem;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.35rem;
}

.section-heading p {
  margin: 0;
  color: var(--muted-color);
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.book-card {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.book-card img {
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
}

.book-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.book-card p {
  margin: 0;
  color: var(--muted-color);
}

.book-card a {
  margin-top: auto;
  text-decoration: none;
  font-weight: 700;
}

.about-card {
  margin-top: 1.5rem;
  padding: 1.2rem 1.25rem;
}

.about-card h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.about-card p {
  margin: 0 0 0.75rem;
  color: var(--muted-color);
}

.newsletter-card {
  margin-top: 1.5rem;
  padding: 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 1.5rem;
  align-items: center;
}

.newsletter-card h2,
.newsletter-card p {
  margin: 0;
}

.newsletter-card h2 {
  margin-bottom: 0.35rem;
}

.newsletter-card > div > p:last-child,
.newsletter-note {
  color: var(--muted-color);
}

.newsletter-form label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.newsletter-fields {
  display: flex;
  gap: 0.65rem;
}

.newsletter-fields input[type="email"] {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 0.8rem 1rem;
  background: var(--background-color);
  color: var(--text-color);
  font: inherit;
}

.newsletter-fields input[type="email"]:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
}

.newsletter-fields button {
  cursor: pointer;
  font: inherit;
}

.newsletter-note {
  margin-top: 0.55rem;
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.75rem;
}

.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1rem 2rem;
  color: var(--muted-color);
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 4.4rem;
    right: 1rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 0.7rem;
    box-shadow: var(--shadow);
    flex-direction: column;
    min-width: 180px;
  }

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

  .hero {
    grid-template-columns: 1fr;
  }

  .books-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding-top: 1rem;
  }

  .page-main {
    padding-top: 0.75rem;
  }

  .hero {
    padding-top: 1.25rem;
  }

  .section-heading {
    flex-direction: column;
    align-items: start;
  }

  .newsletter-fields {
    align-items: stretch;
    flex-direction: column;
  }
}
