/* ============================================
   KAL ROTH — author site
   Direction: literary & bookish — warm, classic
   Palette: aged paper & oxblood binding
   --paper     #F3EBDC  (aged paper, page ground)
   --vellum    #EDE2CE  (raised surfaces / bands)
   --ink       #29231A  (body ink)
   --oxblood   #6E2B2B  (binding-leather accent, marginalia ink)
   --fade      #8A7D6A  (secondary text, pencil grey-brown)
   --rule      #D9CCB4  (hairlines)
   Type: Cormorant Garamond (display) /
         Palatino stack (body — echoes the book's epigraph face) /
         Patrick Hand (road-diary marginalia)
   ============================================ */

:root {
  --paper: #F3EBDC;
  --vellum: #EDE2CE;
  --ink: #29231A;
  --oxblood: #6E2B2B;
  --fade: #8A7D6A;
  --rule: #D9CCB4;
  --serif-body: "Palatino Linotype", "Book Antiqua", Palatino, "URW Palladio L", Georgia, serif;
  --serif-display: "Cormorant Garamond", "Palatino Linotype", Georgia, serif;
  --hand: "Patrick Hand", cursive;
  --measure: 62ch;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

html {
  background: var(--paper);
}
body {
  position: relative;
  color: var(--ink);
  font-family: var(--serif-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
/* bookshelf photo behind everything, washed with translucent aged paper
   so the ink text stays readable; position:fixed works reliably on iOS */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(243, 235, 220, 0.87), rgba(243, 235, 220, 0.87)),
    url("assets/bookshelf.jpg") center / cover no-repeat;
}

a { color: var(--oxblood); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--oxblood);
  outline-offset: 3px;
}

/* ---------- header / nav ---------- */
header.site {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.5rem clamp(1.25rem, 5vw, 4rem);
  border-bottom: 1px double var(--rule);
}
.wordmark {
  font-family: var(--serif-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--ink);
}
.wordmark:hover { text-decoration: none; color: var(--oxblood); }
nav.site ul { list-style: none; display: flex; gap: clamp(1rem, 3vw, 2.25rem); }
nav.site a {
  color: var(--fade);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--oxblood); text-decoration: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: clamp(4rem, 12vh, 8rem) clamp(1.25rem, 5vw, 4rem) clamp(3rem, 8vh, 6rem);
  text-align: center;
}
.hero .eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fade);
}
.hero h1 {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(2.75rem, 9vw, 5.5rem);
  line-height: 1.05;
  margin: 1rem auto 0.5rem;
  max-width: 14ch;
}
/* small printer's ornament under the title */
.hero h1::after {
  content: "❦";
  display: block;
  font-size: 0.32em;
  color: var(--oxblood);
  margin-top: 0.6em;
}
.hero .scrawl {
  font-family: var(--hand);
  font-size: clamp(1.15rem, 3vw, 1.6rem);
  color: var(--oxblood);
  display: inline-block;
  margin-top: 0.5rem;
}
.hero .release {
  margin-top: 2rem;
  color: var(--fade);
  font-style: italic;
}
.cta-row {
  margin-top: 2.25rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 0.8rem 1.75rem;
  font-family: var(--serif-body);
  font-size: 1rem;
  letter-spacing: 0.04em;
  border: 1px solid var(--oxblood);
  border-radius: 2px;
  cursor: pointer;
}
.btn.solid { background: var(--oxblood); color: var(--paper); font-weight: 600; }
.btn.solid:hover { background: #5C2222; text-decoration: none; }
.btn.ghost { color: var(--oxblood); background: transparent; }
.btn.ghost:hover { background: rgba(110, 43, 43, 0.07); text-decoration: none; }

/* ---------- sections ---------- */
section.band { padding: clamp(3rem, 9vh, 6rem) clamp(1.25rem, 5vw, 4rem); }
section.band.raised { background: rgba(237, 226, 206, 0.72); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.band-inner { max-width: 1020px; margin: 0 auto; }

h2.section-title {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  margin-bottom: 0.35rem;
}
.section-kicker {
  font-family: var(--hand);
  color: var(--oxblood);
  font-size: 1.2rem;
  display: inline-block;
  margin-bottom: 2rem;
}

/* book layout */
.book-grid {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.cover-frame img {
  width: 100%;
  display: block;
  border: 1px solid var(--rule);
  box-shadow: 0 18px 42px rgba(41, 35, 26, 0.22);
}
.cover-frame figcaption {
  font-family: var(--hand);
  color: var(--fade);
  font-size: 1.05rem;
  margin-top: 0.9rem;
  transform: rotate(-0.8deg);
}
.book-copy p { max-width: var(--measure); margin-bottom: 1.15rem; }
.book-copy p:first-of-type::first-letter {
  font-family: var(--serif-display);
  font-size: 3.2em;
  float: left;
  line-height: 0.82;
  padding-right: 0.09em;
  color: var(--oxblood);
}
.book-meta {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--fade);
  font-size: 0.95rem;
  display: grid;
  gap: 0.35rem;
}
.book-meta span b { color: var(--ink); font-weight: 600; }

/* ---------- newsletter ---------- */
.newsletter { text-align: center; }
.newsletter p { max-width: 52ch; margin: 0 auto 1.75rem; color: var(--fade); }
form.signup {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 520px;
  margin: 0 auto;
}
input, textarea {
  background: #FBF6EB;
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--ink);
  font-family: var(--serif-body);
  font-size: 1rem;
  padding: 0.8rem 1rem;
}
form.signup input[type="email"] { flex: 1 1 260px; }
input::placeholder, textarea::placeholder { color: #A79A85; }

/* ---------- blog / road diaries ---------- */
.diary-list { list-style: none; max-width: 720px; }
.diary-entry {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--rule);
}
.diary-entry .date {
  font-family: var(--hand);
  color: var(--oxblood);
  font-size: 1.05rem;
}
.diary-entry h3 {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: 1.6rem;
  margin: 0.25rem 0 0.5rem;
}
.diary-entry h3 a { color: var(--ink); }
.diary-entry h3 a:hover { color: var(--oxblood); }
.diary-entry p { color: var(--fade); max-width: var(--measure); }

/* post page */
article.post { max-width: 720px; margin: 0 auto; }
article.post h1 {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 6vw, 3rem);
  line-height: 1.15;
  margin-bottom: 0.4rem;
}
article.post .date {
  font-family: var(--hand);
  color: var(--oxblood);
  font-size: 1.1rem;
  display: block;
  margin-bottom: 2rem;
}
article.post p { margin-bottom: 1.2rem; max-width: var(--measure); }

/* ---------- about ---------- */
/* photo-less about: center the text column on the page */
.band-inner.about-solo { max-width: var(--measure); }

.about-grid {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.about-grid img {
  width: 100%;
  display: block;
  border: 1px solid var(--rule);
  filter: sepia(0.12) saturate(0.9);
}
.about-copy p { max-width: var(--measure); margin-bottom: 1.15rem; }

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(300px, 1.2fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-copy p { max-width: var(--measure); margin-bottom: 1.25rem; }
.email-line { color: var(--fade); }
.email-big {
  font-family: var(--serif-display);
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 600;
  letter-spacing: 0.01em;
}

form.contact {
  display: grid;
  gap: 1rem;
  max-width: 560px;
}
form.contact textarea { min-height: 160px; resize: vertical; }
form.contact .btn { justify-self: start; }

/* ---------- footer ---------- */
footer.site {
  padding: 2.5rem clamp(1.25rem, 5vw, 4rem);
  border-top: 1px double var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--fade);
  font-size: 0.9rem;
}
footer.site .foot-scrawl {
  font-family: var(--hand);
  color: var(--fade);
  transform: rotate(-1deg);
}

/* honeypot */
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* ---------- responsive ---------- */
@media (max-width: 680px) {
  .book-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .cover-frame { max-width: 280px; margin: 0 auto; }
  header.site { flex-direction: column; gap: 0.75rem; align-items: center; }
}
