/* ---- Warm, minimal author-site theme -------------------------------- */

/* "Augusta" — the calligraphic display face used for the name and nav.
   Served straight from the TTF (works in every modern browser). */
@font-face {
  font-family: "Augusta";
  src: url("/assets/Augusta.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f2efe8;
  --surface: #ffffff;
  --ink: #2b2622;
  --muted: #6f665d;
  --accent: #8a5a3c;
  --accent-ink: #ffffff;
  --line: #e7ded2;
  --maxw: 46rem;
  --display: "Augusta", Georgia, "Times New Roman", serif;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.06rem;
  line-height: 1.65;
}

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  z-index: 10;
}

/* ---- Header / nav ---------------------------------------------------- */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 1rem;
}
.brand {
  font-family: var(--display);
  font-size: 1.9rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}
.site-nav a {
  font-family: var(--display);
  color: var(--muted);
  text-decoration: none;
  font-size: 1.2rem;
}
.site-nav a:hover { color: var(--accent); }

/* ---- Layout ---------------------------------------------------------- */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

h1, h2, h3 {
  font-family: var(--serif);
  line-height: 1.2;
  color: var(--ink);
}
h1 { font-family: var(--display); font-weight: 400; font-size: 2.6rem; margin: 0.5rem 0 0.75rem; }
.display { font-family: var(--display); font-weight: 400; }
h2 { font-size: 1.5rem; margin: 2rem 0 0.5rem; }
a { color: var(--accent); }

p { margin: 0 0 1.1rem; }

.lead {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.centered { text-align: center; }

/* Pull quote — the book's opening hook */
.pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.6rem;
  line-height: 1.35;
  color: var(--accent);
  text-align: center;
  max-width: 26rem;
  margin: 2rem auto 1.75rem;
}

/* Author portrait on the About page */
.portrait {
  float: right;
  width: 13rem;
  max-width: 40%;
  height: auto;
  border-radius: 8px;
  margin: 0.25rem 0 1rem 1.5rem;
  box-shadow: 0 6px 18px rgba(43, 38, 34, 0.16);
}
@media (max-width: 30rem) {
  .portrait {
    float: none;
    display: block;
    width: 11rem;
    max-width: 60%;
    margin: 0 auto 1.5rem;
  }
}

/* ---- Hero (home) ----------------------------------------------------- */
.hero {
  text-align: center;
  padding: 1rem 0 1rem;
}
.hero h1.display {
  font-size: clamp(2.1rem, 9vw, 3.2rem);
  margin: 0 0 0.5rem;
}
.hero .tagline {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  font-size: 1.3rem;
  margin: 0 auto 1.5rem;
  max-width: 34rem;
}
.hero .lead {
  color: var(--ink);
  max-width: 34rem;
  margin: 0 auto 0.5rem;
}

/* New cover art already carries its own watercolor background that blends
   into the page, so it needs no frame — just a soft lift off the page. */
.hero-cover {
  display: block;
  width: 100%;
  max-width: 24rem;
  height: auto;
  margin: 1.5rem auto 0.5rem;
}

/* ---- Buttons --------------------------------------------------------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
}
.btn:hover { filter: brightness(0.93); }

/* ---- Book layout ----------------------------------------------------- */
.book {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  align-items: flex-start;
}
.book img {
  flex: 0 0 12rem;
  width: 12rem;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(43, 38, 34, 0.18);
}
.book-body {
  flex: 1 1 18rem;
}
.book-body h1 { margin-bottom: 0.1rem; }
.subtitle {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  font-size: 1.15rem;
  margin: 0 0 1rem;
}
.hook {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.buy { margin-top: 1.5rem; }
.imprint {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* ---- Events ---------------------------------------------------------- */
.event-list { list-style: none; padding: 0; margin: 0; }
.event {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1rem;
}
.event h3 { margin: 0 0 0.25rem; font-size: 1.2rem; }
.event .when { color: var(--accent); font-weight: 600; font-size: 0.98rem; }
.event .where { color: var(--muted); margin: 0.15rem 0 0.5rem; }
.event.past { opacity: 0.6; }
.empty { color: var(--muted); font-style: italic; }

/* ---- Footer ---------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  padding: 1.5rem 1.25rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer p { margin: 0 0 0.4rem; }

/* Publisher logo, once the artwork is dropped in (see SETUP.md) */
.pub-logo {
  display: block;
  width: 120px;
  height: auto;
  margin: 0.75rem auto 0;
  opacity: 0.85;
}
