:root {
  --bg: #FAF6EE;
  --surface: #F1EBDD;
  --text: #2B2A25;
  --textSecondary: #6B6558;
  --accent: #2F4D3A;
  --accentText: #FAF6EE;
  --content-max: 1200px;
  --gutter: 24px;
  --content-inset: max(var(--gutter), calc((100% - var(--content-max)) / 2));
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: "Work Sans", sans-serif;
}

h1,
h2,
h3 {
  font-family: "Fraunces", serif;
}

/* Nav */
header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 16px var(--content-inset);
}

header nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

header nav a {
  color: var(--accent);
  text-decoration: none;
}

/* Buttons */
.button {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.button:hover {
  opacity: 0.85;
}

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

.button-secondary {
  border: 1.5px solid var(--accent);
  color: var(--accent);
  background: transparent;
}

/* Section spacing */
main section,
footer {
  padding: 0 var(--content-inset);
}

/* Hero */
#home {
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero-photo {
  flex-shrink: 0;
  width: 300px;
  height: 380px;
  border-radius: 12px;
  object-fit: cover;
  object-position: center 25%;
}

/* About */
.about-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-photo {
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: 12px;
}

.about-text > p:first-child {
  margin-top: 0;
}

@media (min-width: 701px) {
  .about-layout {
    flex-direction: row;
    align-items: center;
    gap: 48px;
  }

  .about-photo {
    flex-shrink: 0;
    width: 340px;
    max-width: none;
  }

  .about-text {
    flex: 1;
    min-width: 0;
  }
}

/* Praise */
.praise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.praise-card {
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  border-radius: 14px;
  padding: 28px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.praise-card cite {
  font-weight: bold;
}

/* Shop */
.book-card {
  background: var(--bg);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  border-radius: 14px;
  padding: 28px;
  margin-bottom: 24px;
}

.book-card:last-child {
  margin-bottom: 0;
}

.book-card:has(.book-cover-image) {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

.book-cover-image {
  flex-shrink: 0;
  display: block;
  width: 180px;
  height: auto;
  aspect-ratio: 5 / 8;
  object-fit: cover;
  border-radius: 8px;
}

.badge {
  display: inline-block;
  width: fit-content;
  background: var(--accent);
  color: var(--accentText);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* Connect */
.connect-input {
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  background: var(--surface);
  color: var(--text);
  width: 300px;
}

.connect-button {
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: var(--accentText);
  font-weight: 600;
}

.social-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 16px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

#about,
#shop {
  background-color: var(--surface);
}

/* Responsive */
@media (max-width: 700px) {
  #home {
    flex-direction: column;
  }

  .hero-photo {
    width: 100%;
  }

  .book-card:has(.book-cover-image) {
    flex-direction: column;
  }

  .book-cover-image {
    width: 100%;
    max-width: 240px;
  }

  header nav {
    flex-wrap: wrap;
    gap: 16px;
  }
}
