:root {
  --bg: #0c0a09;
  --bg-elevated: #161210;
  --ink: #f5efe6;
  --muted: #b7a99a;
  --accent: #c45c3e;
  --accent-soft: #e8a48a;
  --line: rgba(245, 239, 230, 0.12);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Outfit", system-ui, sans-serif;
  --radius: 18px;
  --max: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(196, 92, 62, 0.18), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(232, 164, 138, 0.08), transparent 50%),
    var(--bg);
  line-height: 1.6;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

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

.logo {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
}

nav {
  display: flex;
  gap: 1.25rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 400;
}

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

.hero,
.books,
.about,
.contact {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.hero {
  padding-top: 4rem;
  padding-bottom: 4.5rem;
  max-width: 760px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--accent-soft);
  margin: 0 0 1rem;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  line-height: 1.1;
  margin: 0 0 1.25rem;
}

.lede {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 38rem;
  margin: 0 0 2rem;
}

.lede em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff8f4;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #d46848;
}

.btn-amazon {
  background: transparent;
  color: var(--accent-soft);
  border: 1px solid rgba(232, 164, 138, 0.45);
  width: 100%;
  margin-top: auto;
}

.btn-amazon:hover,
.btn-amazon:focus-visible {
  background: rgba(196, 92, 62, 0.15);
  border-color: var(--accent-soft);
}

.section-head {
  margin-bottom: 1.75rem;
}

.section-head h2 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  margin: 0 0 0.4rem;
}

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

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

.book-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 40%), var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.book-mark {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

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

.subtitle {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 1rem;
}

.blurb {
  color: var(--ink);
  opacity: 0.9;
  font-size: 0.98rem;
  margin: 0 0 1.5rem;
  flex: 1;
}

.about-card {
  max-width: 42rem;
  border-left: 2px solid var(--accent);
  padding: 0.25rem 0 0.25rem 1.25rem;
}

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

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

.contact-link {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--accent-soft);
  text-decoration: none;
}

.contact-link:hover,
.contact-link:focus-visible {
  text-decoration: underline;
}

.note {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0.75rem 0 0;
}

.site-footer {
  max-width: var(--max);
  margin: 2rem auto 0;
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

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

.fine {
  font-size: 0.8rem;
  opacity: 0.8;
}

@media (max-width: 900px) {
  .book-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2.5rem;
  }
}

@media (max-width: 560px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }
}


.book-grid {
  grid-template-columns: 1fr;
  gap: 2rem;
}

.book-card {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.25rem;
}

.cover-link {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--line);
}

.cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: #1a1512;
}

.book-body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.book-body .blurb {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.book-body .btn-amazon {
  margin-top: 0.75rem;
  width: auto;
  align-self: flex-start;
}

@media (max-width: 700px) {
  .book-card {
    grid-template-columns: 1fr;
  }

  .cover-link {
    max-width: 220px;
  }
}
