/* ==========================================================================
   These Days Are Ours — site stylesheet
   AutoFocus-spirit: minimal, serif body, calm gallery aesthetic.
   Mobile-first. Single breakpoint at 720px.
   ========================================================================== */

:root {
  --bg: #fdfdfb;
  --text: #222;
  --muted: #777;
  --link: #1a4d6e;
  --rule: #e5e2db;

  --font-serif: Georgia, Charter, "Iowan Old Style", "Palatino Linotype", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --measure-prose: 720px;
  --measure-wide: 1040px;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 720px) {
  body { font-size: 18px; }
}

/* Links */
a {
  color: var(--link);
  text-decoration: none;
}
a:hover,
a:focus { text-decoration: underline; }

/* Headings */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  margin: 1.6em 0 0.5em;
  color: var(--text);
}

h1 {
  font-size: 1.875rem; /* ~30px mobile */
  margin-top: 0;
}
@media (min-width: 720px) {
  h1 { font-size: 2.25rem; } /* ~36px desktop */
}

h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

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

/* ===== Site header / nav ===== */

.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}

@media (min-width: 720px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 10;
  }
}

.site-nav {
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0;
}

.site-nav a {
  color: var(--text);
  padding: 0.5rem 0.8rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
}

.site-nav a:hover,
.site-nav a:focus {
  background: var(--rule);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--muted);
}

@media (min-width: 720px) {
  .site-nav { gap: 0; }
  .site-nav a + a::before {
    content: "·";
    color: var(--muted);
    margin-right: 0.4rem;
  }
}

/* ===== Main content ===== */

main {
  max-width: var(--measure-prose);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.layout-wide main { max-width: var(--measure-wide); }

.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}

.page-header h1 { margin: 0; }

/* ===== Landing page hero ===== */

.hero {
  text-align: center;
  padding: 3rem 0 2rem;
}

.hero img.cover {
  width: 280px;
  max-width: 80%;
  margin: 0 auto 1.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

@media (min-width: 720px) {
  .hero img.cover { width: 340px; }
}

.hero h1 {
  font-size: 2.25rem;
  margin: 0.4em 0 0.2em;
}
@media (min-width: 720px) {
  .hero h1 { font-size: 3rem; }
}

.hero .author {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.hero .tagline {
  font-style: italic;
  color: var(--text);
  max-width: 32rem;
  margin: 0 auto 2rem;
}

.hero .ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

.hero .ctas a {
  padding: 0.6rem 1rem;
  border: 1px solid var(--link);
  border-radius: 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.hero .ctas a:hover,
.hero .ctas a:focus {
  background: var(--link);
  color: var(--bg);
  text-decoration: none;
}

.byline {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}

.byline img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.byline p { margin: 0; }
.byline a { font-weight: 600; }

/* ===== Content blocks ===== */

.content-image {
  margin: 1.5rem auto;
}

.content-image.right {
  float: none;
}

@media (min-width: 720px) {
  .content-image.right {
    float: right;
    margin: 0.4rem 0 1rem 1.5rem;
    max-width: 280px;
  }
}

/* ===== Reviews page ===== */

blockquote {
  margin: 1.5rem 0;
  padding: 0 0 0 1.25rem;
  border-left: 3px solid var(--rule);
  font-style: italic;
}

blockquote cite {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

blockquote cite::before { content: "— "; }

.starred {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

/* ===== Buy page ===== */

.retailers {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  font-family: var(--font-sans);
  font-size: 1rem;
}

.retailers li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
}

.retailers li:last-child { border-bottom: 0; }

.retailers a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.isbn {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 2rem;
}

/* ===== Events page ===== */

.event {
  margin: 0 0 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}

.event:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.event .when {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.4rem;
}

.event h2 { margin: 0 0 0.3rem; font-size: 1.25rem; }

.event .where {
  color: var(--muted);
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.event img {
  margin-top: 0.5rem;
  max-width: 100%;
}

.events-note {
  font-style: italic;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

/* ===== Footer ===== */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2rem 1.25rem;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--muted);
}

.site-footer p { margin: 0; }
