/* Lisa Foley — author site
   The page is the book: cream watercolor paper, ink Cormorant type,
   luminous accents used sparingly. */

:root {
  --paper: #f7f0e4;
  --paper-deep: #f1e7d6;
  --ink: #47342f;
  --charcoal: #3a333b;
  --faded: #8a7a70;
  --emerald: #2e8b6a;
  --magenta: #c2417f;
  --amber: #d99a2b;
  --violet: #7a5fa8;
  --rule: rgba(71, 52, 47, 0.55);
  --max: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--charcoal);
  font-family: "EB Garamond", Georgia, serif;
  font-size: 19px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* paper grain over everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.28 0 0 0 0 0.20 0 0 0 0 0.18 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a { color: var(--ink); text-decoration: none; }

p a, li a {
  border-bottom: 1px solid var(--amber);
  transition: border-color 0.25s, color 0.25s;
}
p a:hover, li a:hover { color: var(--magenta); border-color: var(--magenta); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* ---------- type ---------- */

h1, h2, h3, .display {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.08;
}

.kicker {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--faded);
}

/* plate-style section heading: tracked caps between hairlines */
.plate-head {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-bottom: 3rem;
}
.plate-head::before, .plate-head::after {
  content: "";
  height: 1px;
  background: var(--rule);
  flex: 1;
}
.plate-head h2 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  white-space: nowrap;
}
.plate-head .no {
  font-size: 0.95rem;
  color: var(--amber);
  letter-spacing: 0.1em;
}

/* ---------- nav ---------- */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(71, 52, 47, 0.14);
}
nav .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.wordmark {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-size: 1.02rem;
}
nav ul { display: flex; gap: 1.7rem; list-style: none; }
nav ul a {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faded);
  border: 0;
  transition: color 0.25s;
}
nav ul a:hover { color: var(--magenta); }

/* ---------- hero ---------- */

header.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 7rem 16px 3rem;
  gap: 2rem;
}
.hero-art {
  position: relative;
}
.hero-art img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
}
.hero h1 {
  font-size: clamp(3.2rem, 7.5vw, 5.6rem);
  font-weight: 500;
  letter-spacing: 0.015em;
  margin: 1.1rem 0 1.3rem;
}
.hero .tag {
  font-size: 1.3rem;
  font-style: italic;
  color: var(--faded);
  max-width: 26ch;
}
.hero .rule {
  width: 72px; height: 2px;
  margin: 2rem 0;
  background: linear-gradient(90deg, var(--emerald), var(--amber), var(--magenta), var(--violet));
}
.hero .announce {
  font-size: 1.02rem;
  max-width: 44ch;
}
.hero .announce strong { color: var(--ink); }

.btn {
  display: inline-block;
  margin-top: 1.6rem;
  padding: 0.78rem 1.7rem;
  border: 1px solid var(--ink);
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.tint { border-color: var(--magenta); color: var(--magenta); }
.btn.tint:hover { background: var(--magenta); color: var(--paper); }

/* ---------- sections ---------- */

section { padding: 5.5rem 0; }

/* featured book: Despite Truth */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 4rem;
  align-items: center;
}
.feature .cover img {
  border: 1px solid rgba(71, 52, 47, 0.75);
  box-shadow: 14px 18px 40px rgba(71, 52, 47, 0.22);
  transform: rotate(-1deg);
}
.feature h3 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  margin-bottom: 0.4rem;
}
.feature .subtitle {
  font-style: italic;
  font-size: 1.22rem;
  color: var(--magenta);
  margin-bottom: 1.6rem;
}
.feature p { margin-bottom: 1rem; max-width: 56ch; }
.feature .small { font-size: 0.95rem; color: var(--faded); }

/* books grid */
.shelf {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.6rem;
}
.book { position: relative; }
.book .jacket {
  overflow: hidden;
  border: 1px solid rgba(71, 52, 47, 0.7);
  box-shadow: 8px 10px 26px rgba(71, 52, 47, 0.18);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.book:hover .jacket {
  transform: translateY(-6px) rotate(0.6deg);
  box-shadow: 10px 16px 34px rgba(71, 52, 47, 0.26);
}
.book h4 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.45rem;
  font-weight: 600;
  margin: 1.3rem 0 0.4rem;
}
.book .meta {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.7rem;
}
.book p { font-size: 1rem; margin-bottom: 0.8rem; }
.book .buy {
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--emerald);
  color: var(--emerald);
}
.book .buy:hover { color: var(--magenta); border-color: var(--magenta); }

.series-note {
  max-width: 62ch;
  margin: 0 auto 3.4rem;
  text-align: center;
  font-style: italic;
  color: var(--faded);
}

/* secrets untold stripe */
.stripe {
  background: var(--paper-deep);
  border-top: 1px solid rgba(71, 52, 47, 0.12);
  border-bottom: 1px solid rgba(71, 52, 47, 0.12);
}

/* about */
.about {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 4rem;
  align-items: start;
}
.portrait {
  position: relative;
  width: min(300px, 70%);
  margin: 0 auto;
}
.portrait img {
  border-radius: 50%;
  border: 1px solid rgba(71, 52, 47, 0.6);
  box-shadow: 0 14px 34px rgba(71, 52, 47, 0.2);
}
.portrait::after {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 1px solid rgba(71, 52, 47, 0.35);
}
.about blockquote {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 1.4rem;
}
.about p { margin-bottom: 1rem; max-width: 58ch; }

.reading {
  margin-top: 3.4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.reading h3 {
  font-size: 0.92rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.reading ul { list-style: none; }
.reading li {
  padding: 0.42rem 0;
  border-bottom: 1px dotted rgba(71, 52, 47, 0.25);
  font-size: 1.02rem;
}
.reading li em { color: var(--faded); font-size: 0.92rem; }

/* press cards */
.press {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem;
}
.card {
  border: 1px solid rgba(71, 52, 47, 0.3);
  padding: 2rem 1.8rem;
  position: relative;
  background: color-mix(in srgb, var(--paper) 60%, #fff 8%);
}
.card::before {
  content: "";
  position: absolute;
  top: 8px; left: 8px; right: 8px; bottom: 8px;
  border: 1px solid rgba(71, 52, 47, 0.14);
  pointer-events: none;
}
.card .tag {
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--violet);
}
.card h3 {
  font-size: 1.35rem;
  margin: 0.7rem 0 0.8rem;
}
.card p { font-size: 0.98rem; margin-bottom: 1rem; }

/* credits */
.credits-list {
  columns: 2;
  column-gap: 4rem;
  max-width: 880px;
  margin: 0 auto;
  list-style: none;
}
.credits-list li {
  break-inside: avoid;
  padding: 0.55rem 0;
  border-bottom: 1px dotted rgba(71, 52, 47, 0.25);
  font-size: 1.02rem;
}
.credits-list .mag { font-style: italic; color: var(--faded); }
.credits-intro {
  max-width: 62ch;
  margin: 0 auto 3rem;
  text-align: center;
}

/* mailing list */
.signup {
  position: relative;
  text-align: center;
  padding: 6rem 16px;
  overflow: hidden;
}
.signup .ornament {
  width: min(360px, 70%);
  margin: 0 auto 1.6rem;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse 65% 65% at 50% 50%, #000 50%, transparent 96%);
  mask-image: radial-gradient(ellipse 65% 65% at 50% 50%, #000 50%, transparent 96%);
}
.signup h2 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  margin-bottom: 0.9rem;
}
.signup p { max-width: 46ch; margin: 0 auto 1.2rem; }

/* kindle note + footer */
.kindle-note {
  max-width: 62ch;
  margin: 0 auto;
  text-align: center;
}
.kindle-note h3 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

footer {
  border-top: 1px solid rgba(71, 52, 47, 0.2);
  padding: 3rem 16px 3.4rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--faded);
}
footer .wordmark { display: block; margin-bottom: 0.8rem; }
footer a { border-bottom: 1px solid rgba(71, 52, 47, 0.3); }
footer a:hover { color: var(--magenta); border-color: var(--magenta); }
footer .fine { margin-top: 1.4rem; font-size: 0.82rem; }

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  header.hero { grid-template-columns: 1fr; min-height: 0; padding-top: 6rem; text-align: center; }
  .hero .tag, .hero .announce { margin-left: auto; margin-right: auto; }
  .hero .rule { margin: 2rem auto; }
  .hero-art { order: -1; max-width: 420px; margin: 0 auto; }
  .feature, .about { grid-template-columns: 1fr; gap: 2.4rem; }
  .feature .cover { max-width: 340px; margin: 0 auto; }
  .shelf, .press { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .credits-list { columns: 1; }
  .reading { grid-template-columns: 1fr; }
  nav ul { display: none; }
}
