:root {
  --bg: #f4efe4;
  --paper: #fffaf0;
  --ink: #171714;
  --muted: #6c675d;
  --line: #d8cfbd;
  --green: #0d4b36;
  --green-2: #163f31;
  --gold: #c6a15b;
  --gold-soft: #ead9b5;
  --cream: #f8f1df;
  --max: 1180px;
  --reading: 760px;
  --radius: 22px;
  --shadow: 0 20px 55px rgba(27, 33, 27, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(198,161,91,.07), transparent 30%),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.reading {
  width: min(calc(100% - 40px), var(--reading));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(244,239,228,.92);
  border-bottom: 1px solid rgba(216,207,189,.85);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.03em;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: .95rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--green); }

.menu-button {
  display: none;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
}

.hero {
  padding: 72px 0 92px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: clamp(36px, 6vw, 78px);
  align-items: center;
}

.eyebrow {
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .76rem;
  font-weight: 800;
}

.gold-rule {
  width: 58px;
  height: 3px;
  background: var(--gold);
  border-radius: 999px;
  margin: 18px 0 0;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -.04em;
  line-height: 1.06;
  margin-top: 0;
}

h1 {
  font-size: clamp(4rem, 9vw, 7.8rem);
  margin: 16px 0 24px;
  max-width: 780px;
}

.page-title {
  font-size: clamp(3.1rem, 7vw, 6rem);
  margin: 14px 0 22px;
}

h2 { font-size: clamp(2.2rem, 4.5vw, 3.8rem); margin-bottom: 22px; }
h3 { font-size: 1.55rem; margin-bottom: 12px; }

.lede {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2.4vw, 1.72rem);
  line-height: 1.48;
  max-width: 760px;
  color: #3c3932;
}

.hero-actions, .button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.button {
  display: inline-block;
  padding: 12px 19px;
  border-radius: 999px;
  border: 1px solid var(--green);
  background: var(--green);
  color: white;
  text-decoration: none;
  font-weight: 750;
  font-size: .94rem;
}

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

.button.gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #1c180f;
}

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

.photo-frame {
  background: var(--green);
  border-radius: 30px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.photo-placeholder {
  aspect-ratio: 4 / 5;
  border-radius: 21px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255,255,255,.04), rgba(255,255,255,0)),
    linear-gradient(145deg, #255c48, #0b3527);
  color: rgba(255,255,255,.76);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.12);
}

.photo-placeholder small {
  display: block;
  margin-top: 8px;
  color: rgba(255,255,255,.58);
}

.photo-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--cream);
  padding: 14px 4px 2px;
  font-size: .88rem;
}

.photo-note span:last-child { color: var(--gold-soft); }

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

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: end;
  margin-bottom: 42px;
}

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

.feature {
  background:
    linear-gradient(135deg, rgba(198,161,91,.08), transparent 42%),
    var(--green);
  color: white;
  border-radius: 28px;
  padding: clamp(30px, 5vw, 60px);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 52px;
  align-items: center;
  box-shadow: var(--shadow);
}

.feature p { color: rgba(255,255,255,.78); }
.feature .button { background: var(--gold); color: #18150f; border-color: var(--gold); }
.feature .eyebrow { color: var(--gold-soft); }

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.card p { color: var(--muted); }
.card .meta { margin-top: auto; padding-top: 28px; font-size: .88rem; color: var(--muted); }
.card a.stretched { text-decoration: none; color: var(--green); font-weight: 700; }
.card a.stretched:hover { text-decoration: underline; }

.book-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.book-tile {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.book-cover {
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(198,161,91,.16), transparent 45%),
    var(--green-2);
  color: rgba(255,255,255,.82);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow);
}

.book-cover strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.2;
}

.book-tile h3 {
  font-size: 1.2rem;
  margin-bottom: 0;
}

.book-tile p {
  margin-top: 0;
  color: var(--muted);
  font-size: .92rem;
}

.ramble-list {
  border-top: 1px solid var(--line);
}

.ramble-item {
  display: grid;
  grid-template-columns: 145px 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.ramble-item time,
.ramble-item .read-time {
  color: var(--muted);
  font-size: .88rem;
}

.ramble-item a {
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
}

.ramble-item a:hover { color: var(--green); }

.signup {
  background:
    linear-gradient(135deg, rgba(198,161,91,.08), transparent 45%),
    var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(30px, 5vw, 58px);
  box-shadow: var(--shadow);
}

.signup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}

.form-placeholder {
  border: 1px dashed #ae9d7e;
  border-radius: 16px;
  padding: 24px;
  color: var(--muted);
  background: #fbf5e9;
}

.form-placeholder code {
  display: block;
  margin-top: 10px;
  font-size: .82rem;
  white-space: normal;
}

.small-hero {
  padding: 92px 0 66px;
  border-bottom: 1px solid var(--line);
}

.prose {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.13rem;
  line-height: 1.86;
}

.prose p { margin: 0 0 1.5em; }

.prose blockquote {
  margin: 2.2em 0;
  padding-left: 22px;
  border-left: 3px solid var(--gold);
  font-size: 1.35rem;
  line-height: 1.58;
}

.article-head {
  padding: 92px 0 56px;
}

.article-meta {
  color: var(--muted);
  margin-top: 18px;
}

.article-end {
  margin-top: 70px;
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.about-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 54px;
  align-items: start;
}

.about-photo {
  position: sticky;
  top: 110px;
}

.note {
  font-size: .86rem;
  color: var(--muted);
}

.footer {
  padding: 56px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 34px;
}

.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--green); }
.footer p { color: var(--muted); margin: 8px 0; }

.footer-links {
  display: grid;
  gap: 8px;
}

.copyright {
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: .84rem;
  color: var(--muted);
}

@media (max-width: 980px) {
  .book-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 20px;
    right: 20px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: var(--shadow);
  }

  .nav-links.open { display: flex; }
  .menu-button { display: block; }

  .hero { padding: 58px 0 68px; }
  .hero-grid,
  .section-head,
  .signup-grid,
  .feature,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .photo-frame { max-width: 520px; }
  .section { padding: 66px 0; }
  .grid { grid-template-columns: 1fr; }
  .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ramble-item { grid-template-columns: 1fr; gap: 7px; }
  .about-photo { position: static; }
  .footer-grid { grid-template-columns: 1fr; }
}

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

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* V4: real photography */
.photo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 21px;
}

.hero .photo-image {
  aspect-ratio: 4 / 5;
  object-position: center center;
}

.about-photo .photo-image {
  aspect-ratio: 4 / 5;
  object-position: 40% center;
}

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

.cat-card {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.cat-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.cat-card:first-child img { object-position: center 38%; }
.cat-card:last-child img { object-position: center 42%; }

.cat-card figcaption {
  padding: 16px 18px 18px;
  color: var(--muted);
  font-size: .88rem;
}

/* Production: book links */
.book-link {
  display: block;
  text-decoration: none;
}

.book-link .book-cover,
.book-link.book-cover {
  transition: transform .18s ease, box-shadow .18s ease;
}

.book-link:hover .book-cover,
.book-link:hover.book-cover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(20,20,20,.12);
}

.title-link {
  color: inherit;
  text-decoration: none;
}

.title-link:hover {
  color: var(--green);
}


/* Final hosted MailerLite signup CTA */
.hosted-signup {
  width: 100%;
  background: rgba(255,255,255,.97);
  color: var(--ink);
  border: 1px solid rgba(198,161,91,.42);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 14px 34px rgba(20,20,20,.08);
}

.hosted-signup h4 {
  margin: 0 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  line-height: 1.15;
  color: var(--ink);
}

.hosted-signup > p {
  margin: 0;
  color: var(--muted);
  font-size: .94rem;
}

.hosted-signup-button {
  display: block;
  width: 100%;
  margin-top: 18px;
  padding: 13px 18px;
  border-radius: 999px;
  background: var(--gold);
  border: 1px solid var(--gold);
  color: #18150f;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
}

.hosted-signup-button:hover {
  transform: translateY(-1px);
  filter: brightness(.97);
}

.hosted-signup .hosted-signup-note {
  margin-top: 10px;
  font-size: .78rem;
  color: var(--muted);
}
