/* Author site — styled after the officialjackcarr.com look:
   cream background, dark charcoal text, bold condensed display type,
   generous white space. Swap the accent color to taste. */

:root {
  --cream: #f7f4ee;
  --paper: #ffffff;
  --ink: #1a1a1a;
  --muted: #6b6459;
  --accent: #b3892b;      /* muted gold */
  --accent-dark: #8f6d20;
  --display: "Oswald", "Arial Narrow", sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
}

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 244, 238, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #e4ded2;
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.22em;
  color: var(--ink);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.6rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

.nav-links a:hover { color: var(--accent-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.8rem;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--cream);
}

.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(160deg, rgba(13, 27, 42, 0.92), rgba(27, 42, 65, 0.88)),
    var(--ink);
  color: var(--cream);
  text-align: center;
  padding: 7rem 1.5rem 6.5rem;
}

.kicker {
  font-family: var(--display);
  font-size: 0.9rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.6rem, 8vw, 5rem);
  letter-spacing: 0.14em;
  line-height: 1.1;
}

.tagline {
  font-style: italic;
  font-size: 1.15rem;
  color: #cfd8e3;
  margin: 1.2rem auto 2.2rem;
  max-width: 34rem;
}

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

.hero .btn { border-color: var(--cream); color: var(--cream); }
.hero .btn-primary { background: var(--accent); border-color: var(--accent); color: #12100a; }
.hero .btn-primary:hover { background: var(--cream); border-color: var(--cream); }
.hero .btn-ghost:hover { background: var(--cream); color: var(--ink); }

/* ---------- Sections ---------- */
section { padding: 5rem 1.5rem; }

.section-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 2rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
}

.section-title.left { text-align: left; }

.section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  background: var(--accent);
  margin: 0.9rem auto 0;
}

.section-title.left::after { margin-left: 0; }

.section-sub {
  text-align: center;
  color: var(--muted);
  margin-top: 1rem;
}

/* ---------- Books ---------- */
.book-grid {
  max-width: 1000px;
  margin: 3rem auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.book-card {
  background: var(--paper);
  border: 1px solid #e4ded2;
  box-shadow: 0 12px 30px rgba(26, 26, 26, 0.08);
}

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

.book-info { padding: 1.6rem 1.6rem 2rem; }

.book-info h3 {
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.book-status {
  font-family: var(--display);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin: 0.3rem 0 0.9rem;
}

.book-desc { color: var(--muted); margin-bottom: 1.4rem; }

/* ---------- About ---------- */
.about { background: var(--paper); }

.about-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  align-items: start;
}

.about-photo {
  aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, #d8d2c4, #bfb8a6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7a7362;
  text-align: center;
}

.about-text p { margin-top: 1.1rem; }

/* ---------- Newsletter ---------- */
.newsletter {
  background:
    linear-gradient(160deg, rgba(13, 27, 42, 0.94), rgba(5, 10, 18, 0.94)),
    var(--ink);
  color: var(--cream);
  text-align: center;
}

.newsletter h2 {
  font-family: var(--display);
  font-size: 1.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.newsletter p { margin-top: 0.8rem; color: #cfd8e3; }

.signup {
  margin: 1.8rem auto 0;
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 480px;
}

.signup input {
  flex: 1 1 260px;
  padding: 0.85rem 1rem;
  font-family: var(--serif);
  font-size: 1rem;
  border: none;
}

.signup .btn { border-color: var(--accent); background: var(--accent); color: #12100a; }

.fineprint { font-size: 0.8rem; color: #8a97a8; margin-top: 1rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: #12100c;
  color: #b9b2a4;
  text-align: center;
  padding: 3rem 1.5rem;
}

.footer-brand {
  font-family: var(--display);
  letter-spacing: 0.25em;
  color: var(--cream);
  font-size: 1.05rem;
}

.socials {
  list-style: none;
  display: flex;
  gap: 1.6rem;
  justify-content: center;
  margin: 1.2rem 0;
  flex-wrap: wrap;
}

.socials a {
  font-family: var(--display);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #b9b2a4;
  text-decoration: none;
}

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

.copyright { font-size: 0.8rem; }

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .nav { flex-direction: column; gap: 0.6rem; }
  .about-inner { grid-template-columns: 1fr; }
  .about-photo { max-width: 300px; }
  section { padding: 3.5rem 1.2rem; }
}
