:root {
  --bg: #f6f1e8;
  --paper: #fffdf8;
  --ink: #1a1714;
  --muted: #5c564e;
  --line: #e0d6c6;
  --accent: #6b5428;
  --accent-hover: #4e3c1c;
  --shadow: 0 14px 30px rgba(26, 23, 20, 0.12);
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.site-header,
main,
.site-footer {
  width: min(44rem, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  padding: 4.5rem 0 2.5rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.kicker {
  margin: 0 0 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.6rem, 8vw, 4.1rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
}

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

h2 {
  margin: 0 0 1.15rem;
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.2;
}

section {
  padding: 2.75rem 0;
  border-bottom: 1px solid var(--line);
}

#about p,
#contact p,
.book-body p,
.also li {
  color: var(--ink);
}

#about p,
#contact p,
.book-body p {
  margin: 0 0 1rem;
}

#about p:last-child,
#contact p:last-child,
.book-body p:last-child {
  margin-bottom: 0;
}

cite {
  font-style: italic;
}

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

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

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

.book {
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr);
  gap: 1.6rem;
  align-items: start;
  padding: 1.4rem;
  margin-bottom: 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.book:last-of-type {
  margin-bottom: 2rem;
}

.cover {
  display: block;
  width: 100%;
  height: auto;
  background: #111;
  box-shadow: 0 8px 18px rgba(26, 23, 20, 0.18);
}

.subtitle {
  margin: 0.35rem 0 0.9rem !important;
  color: var(--muted);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.4;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.25rem;
  margin-top: 0.35rem;
}

.status {
  margin-top: 0.35rem;
  font-weight: 600;
  color: var(--muted);
}

.also h3 {
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
}

.also ul {
  margin: 0;
  padding-left: 1.15rem;
}

.also li + li {
  margin-top: 0.55rem;
}

.email {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.site-footer {
  padding: 1.8rem 0 3rem;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 640px) {
  .site-header,
  main,
  .site-footer {
    width: min(44rem, calc(100% - 1.75rem));
  }

  .site-header {
    padding-top: 3rem;
  }

  .book {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 1.15rem;
  }

  .cover {
    width: min(11.5rem, 58%);
  }

  .links {
    justify-content: center;
  }

  .also ul {
    padding-left: 1.1rem;
    text-align: left;
  }
}
