/* =========================================================
   Robert Rossi — Author site
   Visual identity: warm Tuscan parchment, terracotta sunset,
   literary serif typography. Inspired by hand-pressed paper,
   Italian villa frescos, and dusk over the Serchio valley.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Palette */
  --c-bg:        #faf6ec;   /* parchment */
  --c-bg-alt:    #f3ebd6;   /* warmer parchment */
  --c-ink:       #2a2118;   /* deep umber */
  --c-ink-soft:  #4a3f30;
  --c-muted:     #7a6d5a;
  --c-line:      #e3d8bd;
  --c-line-dark: #c9b994;

  --c-accent:        #b04428;   /* terracotta */
  --c-accent-deep:   #8b3018;   /* burnt sienna */
  --c-gold:          #c8932f;
  --c-gold-soft:     #e3c277;
  --c-cream:         #fff8e8;

  /* Type */
  --f-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --f-body:    "Lora", Georgia, "Times New Roman", serif;
  --f-ui:      "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing */
  --max-w:     1200px;
  --max-w-narrow: 760px;
  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 18px;

  /* Effects */
  --shadow-soft: 0 8px 30px rgba(42, 33, 24, 0.10);
  --shadow-deep: 0 20px 60px rgba(42, 33, 24, 0.18);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--c-accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-accent-deep); }
h1,h2,h3,h4 {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--c-ink);
  line-height: 1.15;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.4rem, 5vw + 1rem, 4.6rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 2.6vw + 1rem, 3rem); font-weight: 500; }
h3 { font-size: clamp(1.3rem, 1vw + 1rem, 1.7rem); }
p { margin: 0 0 1em; }

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}
.wrap-narrow {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  padding: 0 28px;
}
section { padding: clamp(60px, 8vw, 110px) 0; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 236, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--c-line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--c-ink);
  letter-spacing: 0.01em;
}
.brand small {
  display: block;
  font-family: var(--f-ui);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--c-accent);
  margin-top: 2px;
}
.brand a { color: inherit; }

nav.primary ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 30px;
}
nav.primary a {
  font-family: var(--f-ui);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--c-ink-soft);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
nav.primary a:hover,
nav.primary a[aria-current="page"] {
  color: var(--c-accent);
  border-bottom-color: var(--c-accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.6rem;
  color: var(--c-ink);
  cursor: pointer;
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  nav.primary {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-line);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: all .25s;
  }
  nav.primary.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  nav.primary ul {
    flex-direction: column;
    gap: 0;
    padding: 12px 28px 24px;
  }
  nav.primary a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--c-line);
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  color: var(--c-cream);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--hero-image, linear-gradient(135deg, #6a2814, #b04428 45%, #d8862a 75%, #f0c267));
  background-size: cover;
  background-position: center;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(20,12,5,0.72) 100%),
    linear-gradient(95deg, rgba(20,12,5,0.55) 0%, rgba(20,12,5,0.05) 60%);
  z-index: -1;
}
.hero .wrap {
  padding-top: 90px;
  padding-bottom: 80px;
  width: 100%;
}
.hero .eyebrow {
  font-family: var(--f-ui);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--c-gold-soft);
  margin-bottom: 22px;
  display: inline-block;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(227, 194, 119, 0.5);
}
.hero h1 {
  color: var(--c-cream);
  max-width: 14ch;
  margin-bottom: 20px;
  text-shadow: 0 2px 30px rgba(0,0,0,0.4);
}
.hero h1 em {
  font-style: italic;
  color: var(--c-gold-soft);
  font-weight: 400;
}
.hero .lede {
  font-family: var(--f-display);
  font-size: clamp(1.2rem, 1vw + 1rem, 1.6rem);
  font-weight: 300;
  font-style: italic;
  max-width: 32ch;
  color: rgba(255,248,232,0.95);
  margin-bottom: 36px;
}
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--f-ui);
  font-size: 0.86rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border-radius: var(--r-sm);
  cursor: pointer;
  border: 0;
  transition: transform .15s, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--c-accent);
  color: var(--c-cream);
}
.btn-primary:hover { background: var(--c-accent-deep); color: var(--c-cream); }
.btn-ghost {
  background: transparent;
  color: var(--c-cream);
  border: 1px solid rgba(255,248,232,0.6);
}
.btn-ghost:hover { background: rgba(255,248,232,0.12); color: var(--c-cream); border-color: var(--c-cream); }
.btn-outline {
  background: transparent;
  color: var(--c-accent);
  border: 1px solid var(--c-accent);
}
.btn-outline:hover { background: var(--c-accent); color: var(--c-cream); }

/* ---------- Eyebrow / section heads ---------- */
.section-eyebrow {
  font-family: var(--f-ui);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--c-accent);
  margin-bottom: 14px;
  display: inline-block;
}
.section-eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--c-accent);
  vertical-align: middle;
  margin-right: 12px;
}

/* ---------- Cards ---------- */
.card {
  background: var(--c-cream);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-deep); }

/* ---------- Two-column ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.two-col.flip > div:first-child { order: 2; }
@media (max-width: 820px) {
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .two-col.flip > div:first-child { order: 0; }
}

/* ---------- Pull quote ---------- */
.pullquote {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(1.4rem, 1.4vw + 1rem, 2.2rem);
  line-height: 1.4;
  color: var(--c-ink);
  border-left: 3px solid var(--c-accent);
  padding-left: 28px;
  margin: 30px 0;
  max-width: 38ch;
}
.pullquote cite {
  display: block;
  margin-top: 16px;
  font-size: 0.9rem;
  font-family: var(--f-ui);
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-muted);
}

/* ---------- Event poster image ---------- */
.event-poster {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  margin-top: 18px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--c-line);
}

/* ---------- Generic feature image ---------- */
.feature-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--c-line);
}
.feature-image-wide {
  display: block;
  width: 100%;
  height: auto;
  margin: 40px 0;
  box-shadow: var(--shadow-deep);
}

/* ---------- Event cards ---------- */
.event-card {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 28px;
  background: var(--c-cream);
  border: 1px solid var(--c-line);
  border-left: 4px solid var(--c-accent);
  border-radius: var(--r-md);
  margin-bottom: 18px;
  position: relative;
  transition: transform .2s, box-shadow .2s;
}
.event-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.event-card .date {
  text-align: center;
  padding: 12px 8px;
  border: 1px solid var(--c-line-dark);
  border-radius: var(--r-sm);
  background: var(--c-bg-alt);
}
.event-card .date .day {
  font-family: var(--f-display);
  font-size: 2.4rem;
  font-weight: 500;
  display: block;
  line-height: 1;
  color: var(--c-accent);
}
.event-card .date .mon {
  font-family: var(--f-ui);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--c-ink-soft);
  display: block;
  margin-top: 6px;
}
.event-card .date .yr {
  font-family: var(--f-ui);
  font-size: 0.7rem;
  color: var(--c-muted);
  display: block;
  margin-top: 4px;
}
.event-card h3 { margin: 0 0 6px; }
.event-card .meta {
  font-family: var(--f-ui);
  font-size: 0.85rem;
  color: var(--c-muted);
  margin-bottom: 8px;
}
.event-card .blurb { margin: 0; color: var(--c-ink-soft); font-size: 0.95rem; }
.event-card .badge {
  position: absolute;
  top: -10px;
  right: 18px;
  font-family: var(--f-ui);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 6px 14px;
  border-radius: 999px;
}
.badge.sold-out { background: var(--c-accent-deep); color: var(--c-cream); }
.badge.upcoming { background: var(--c-gold); color: var(--c-cream); }
.badge.new       { background: #2f5f3f; color: var(--c-cream); }

@media (max-width: 700px) {
  .event-card {
    grid-template-columns: 100px 1fr;
    gap: 18px;
    padding: 22px;
  }
  .event-card .cta-cell { grid-column: 1 / -1; }
}

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
.stats .stat .num {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 2vw + 1.5rem, 3.4rem);
  color: var(--c-accent);
  line-height: 1;
  margin-bottom: 8px;
}
.stats .stat .lbl {
  font-family: var(--f-ui);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--c-muted);
}
@media (max-width: 700px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

/* ---------- Form ---------- */
.form-row { display: flex; gap: 12px; flex-wrap: wrap; }
.form-row > * { flex: 1; min-width: 0; }
input, textarea, select {
  font-family: var(--f-body);
  font-size: 1rem;
  width: 100%;
  padding: 14px 16px;
  background: var(--c-cream);
  border: 1px solid var(--c-line-dark);
  border-radius: var(--r-sm);
  color: var(--c-ink);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus {
  outline: 0;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(176,68,40,0.15);
}
label {
  display: block;
  font-family: var(--f-ui);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--c-ink-soft);
  margin-bottom: 8px;
}
.form-field { margin-bottom: 18px; }

/* ---------- Decorative dividers ---------- */
.flourish {
  display: block;
  margin: 24px 0;
  text-align: center;
  color: var(--c-gold);
  font-size: 1.4rem;
  letter-spacing: 0.6em;
}
.flourish::before { content: "❦"; }

/* ---------- Hero illustrations (CSS-only Tuscan landscape) ---------- */
.hero-illus {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 70% at 70% 0%, #f6c270 0%, transparent 55%),
    radial-gradient(80% 60% at 25% 25%, #e88f3f 0%, transparent 55%),
    linear-gradient(180deg, #4a1d0d 0%, #8b3018 25%, #b04428 55%, #d8862a 80%, #f0c267 100%);
  z-index: -2;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #1f1812;
  color: rgba(255,248,232,0.75);
  padding: 70px 0 30px;
  margin-top: 60px;
}
.site-footer h4 {
  color: var(--c-cream);
  font-family: var(--f-ui);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 18px;
}
.site-footer a { color: var(--c-gold-soft); }
.site-footer a:hover { color: var(--c-cream); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 50px;
  margin-bottom: 50px;
}
.footer-grid p { font-size: 0.92rem; line-height: 1.65; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: 10px; font-family: var(--f-ui); font-size: 0.9rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,248,232,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-family: var(--f-ui);
  font-size: 0.78rem;
  color: rgba(255,248,232,0.5);
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Page header (non-hero pages) ---------- */
.page-header {
  background: linear-gradient(180deg, var(--c-bg-alt) 0%, var(--c-bg) 100%);
  padding: 110px 0 60px;
  border-bottom: 1px solid var(--c-line);
  text-align: center;
}
.page-header .eyebrow {
  font-family: var(--f-ui);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--c-accent);
  display: inline-block;
  margin-bottom: 18px;
}
.page-header h1 { margin: 0 auto; max-width: 18ch; }
.page-header p {
  font-family: var(--f-display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--c-ink-soft);
  max-width: 52ch;
  margin: 18px auto 0;
}

/* ---------- Drop cap ---------- */
.dropcap::first-letter {
  font-family: var(--f-display);
  font-size: 4.4rem;
  font-weight: 500;
  float: left;
  line-height: 0.92;
  margin: 6px 12px 0 0;
  color: var(--c-accent);
}

/* ---------- Utilities ---------- */
.bg-cream { background: var(--c-cream); }
.bg-alt   { background: var(--c-bg-alt); }
.bg-ink   { background: var(--c-ink); color: rgba(255,248,232,0.92); }
.bg-ink h1, .bg-ink h2, .bg-ink h3 { color: var(--c-cream); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

/* ---------- Book cover (real image) ---------- */
.bookcover-img {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  border-radius: 4px;
  box-shadow: var(--shadow-deep);
  transition: transform .25s ease;
}
.bookcover-img:hover { transform: translateY(-3px) scale(1.01); }

/* ---------- Book cover (CSS-rendered fallback) ---------- */
.bookcover {
  width: 280px;
  aspect-ratio: 2 / 3;
  background:
    linear-gradient(160deg, rgba(255,255,255,0.08) 0%, rgba(0,0,0,0.18) 100%),
    linear-gradient(180deg, #1a0c06 0%, #4a1d0d 30%, #8b3018 70%, #b04428 100%);
  border-radius: 4px 8px 8px 4px;
  box-shadow:
    inset 8px 0 14px rgba(0,0,0,0.45),
    var(--shadow-deep);
  position: relative;
  color: var(--c-gold-soft);
  font-family: var(--f-display);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 24px;
  text-align: center;
}
.bookcover .author {
  font-family: var(--f-ui);
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--c-gold-soft);
  border-bottom: 1px solid var(--c-gold-soft);
  padding-bottom: 10px;
}
.bookcover .title {
  font-size: 1.6rem;
  line-height: 1.15;
  color: #f5e4b8;
  font-weight: 500;
}
.bookcover .title em { font-style: italic; display: block; color: var(--c-gold-soft); font-size: 1.1rem; margin-top: 8px;}
.bookcover .crest {
  width: 50px;
  height: 50px;
  margin: 0 auto;
  border: 1px solid var(--c-gold-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.bookcover.book-2 {
  background:
    linear-gradient(160deg, rgba(255,255,255,0.06) 0%, rgba(0,0,0,0.2) 100%),
    linear-gradient(180deg, #0c1a2c 0%, #1a3554 35%, #2d5879 75%, #4a7fa6 100%);
}
.bookcover.book-3 {
  background:
    linear-gradient(160deg, rgba(255,255,255,0.06) 0%, rgba(0,0,0,0.2) 100%),
    linear-gradient(180deg, #1a1a0c 0%, #3d3a1a 35%, #6e612a 75%, #a98c40 100%);
}

/* ---------- FAQ / accordion ---------- */
.faq details {
  border-bottom: 1px solid var(--c-line);
  padding: 22px 0;
}
.faq summary {
  cursor: pointer;
  font-family: var(--f-display);
  font-size: 1.3rem;
  font-weight: 500;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--c-ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--f-ui);
  font-size: 1.6rem;
  color: var(--c-accent);
  transition: transform .2s;
}
.faq details[open] summary::after { content: "−"; }
.faq details > p { margin-top: 14px; color: var(--c-ink-soft); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--c-ink);
  color: var(--c-cream);
  padding: 14px 24px;
  border-radius: var(--r-sm);
  font-family: var(--f-ui);
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: all .25s;
  z-index: 100;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
