/* Bondi Literary Salon. Layout: sticky header, full-bleed photo hero, alternating cream bands, dark footer. */
:root {
  --paper: #fcfaf8;      /* page */
  --tint: #f4efea;       /* events band */
  --card: #ffffff;
  --ink: #2b2321;        /* text, dark buttons */
  --muted: #6f625e;
  --wine: #8c3b3b;       /* accent */
  --rule: #ddd7d5;
  --night: #2d2422;      /* footer */
  --night-text: #d9d0cc;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --maxw: 1180px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.75 var(--font-body); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, .h2 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; text-wrap: balance; margin: 0; }
h2, .h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 em { color: var(--wine); }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 760px; }
.center { text-align: center; }
.band { padding-block: clamp(64px, 9vw, 112px); }
.band-tint { background: var(--tint); }
.eyebrow { font: 600 .7rem/1 var(--font-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--wine); margin-bottom: 14px; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-lede { color: var(--muted); max-width: 58ch; margin: 16px auto 0; }
.section-lede + .btn-row { margin-top: 32px; }

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row.center { justify-content: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 24px; border-radius: 999px; font: 500 .85rem/1.2 var(--font-ui); text-decoration: none; transition: background .2s, color .2s, border-color .2s; border: 1px solid transparent; text-align: center; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--tint); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--wine); }
.btn-accent { background: var(--wine); color: #fff; }
.btn-accent:hover { background: #73302f; }
.btn-outline-dark { border-color: var(--ink); color: var(--ink); }
.btn-outline-dark:hover { background: var(--ink); color: #fff; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(252,250,248,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { font: 600 1.2rem/1.2 var(--font-display); text-decoration: none; letter-spacing: -.01em; }
#site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 26px; }
#site-nav a { font: 500 .72rem/1 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; padding: 8px 0; }
#site-nav a:hover, #site-nav a[aria-current] { color: var(--wine); }
#site-nav .nav-shop { background: var(--wine); color: #fff; padding: 10px 16px; border-radius: 999px; }
#site-nav .nav-shop:hover { background: #73302f; color: #fff; }
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 0; color: var(--ink); }
.bars, .bars::before, .bars::after { display: block; width: 22px; height: 2px; background: currentColor; margin: 0 auto; position: relative; transition: transform .2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; } .bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  #site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--rule); }
  #site-nav.open { display: block; }
  #site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px max(24px, env(safe-area-inset-right, 0px)) 20px max(24px, env(safe-area-inset-left, 0px)); }
  #site-nav li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: .8rem; }
  #site-nav li:last-child a { margin-top: 16px; text-align: center; border: 0; }
}

/* Hero */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--ink); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,22,20,.55) 0%, rgba(30,22,20,.45) 60%, rgba(252,250,248,.0) 85%, var(--paper) 100%); }
.hero-inner { position: relative; text-align: center; padding-block: clamp(96px, 16vw, 180px) clamp(110px, 16vw, 190px); }
.est { display: inline-block; font: 500 .65rem/1 var(--font-ui); letter-spacing: .18em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); margin-bottom: 22px; }
.hero h1 { font-size: clamp(2.8rem, 8vw, 5.6rem); max-width: 12ch; margin: 0 auto; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero-lede { max-width: 56ch; margin: 22px auto 34px; font-size: clamp(1rem, 1.6vw, 1.1rem); color: rgba(255,255,255,.92); text-shadow: 0 1px 12px rgba(0,0,0,.4); }
.hero .btn-row { justify-content: center; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-text { min-width: 0; display: grid; gap: 18px; }
.about-text h2 { margin-bottom: 6px; }
.about-text p:not(.eyebrow) { color: var(--muted); max-width: 60ch; }
.about-photo { position: relative; margin-bottom: 48px; }
.about-photo img { border-radius: 4px; box-shadow: 0 20px 50px rgba(43,35,33,.18); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.about-photo blockquote { position: absolute; left: -32px; bottom: -48px; margin: 0; background: var(--card); padding: 22px 26px; max-width: 280px; box-shadow: 0 12px 34px rgba(43,35,33,.14); border: 1px solid var(--rule); }
.about-photo blockquote p { font: italic 400 1rem/1.5 var(--font-body); }
.about-photo cite { display: block; margin-top: 12px; font: 600 .65rem/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--wine); font-style: normal; }
@media (max-width: 820px) {
  .about { grid-template-columns: 1fr; }
  .about-photo blockquote { left: 16px; right: 16px; max-width: none; }
}

/* Masonry galleries */
.masonry { columns: 3 280px; column-gap: 18px; }
.masonry figure { margin: 0 0 18px; break-inside: avoid; overflow: hidden; border-radius: 3px; background: var(--tint); }
.masonry img { width: 100%; transition: transform .7s ease; }
.masonry figure:hover img { transform: scale(1.04); }
.masonry-books { columns: 4 220px; }
@media (max-width: 640px) { .masonry, .masonry-books { columns: 2; column-gap: 10px; } .masonry figure { margin-bottom: 10px; } }
.books-cta { margin-top: 40px; }
.page-top { padding-top: clamp(48px, 7vw, 88px); }

/* Events */
.events { display: grid; gap: 28px; max-width: 560px; margin: 0 auto; }
.event { background: var(--card); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; box-shadow: 0 6px 22px rgba(43,35,33,.06); }
.event-poster { padding: 8px 8px 0; }
.event-poster img { width: 100%; border-radius: 4px; }
.event-body { padding: 24px 28px 28px; display: grid; gap: 6px; }
.event-date { font: 500 .85rem/1.4 var(--font-body); color: var(--wine); }
.event h3 { font-size: 1.5rem; margin-top: 4px; }
.event-author { font-style: italic; color: var(--muted); }
.event-blurb { color: var(--muted); font-size: .92rem; margin-top: 8px; }
.event-meta { list-style: none; padding: 0; margin: 10px 0 14px; color: var(--muted); font-size: .82rem; display: grid; gap: 2px; }
.event .btn { width: 100%; }
.event-empty { background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: clamp(28px, 5vw, 44px); text-align: center; display: grid; gap: 14px; }
.event-empty h3 { font-size: 1.7rem; }
.event-empty p { color: var(--muted); }
.event-empty .btn-row { justify-content: center; margin-top: 8px; }
.events-more { text-align: center; margin-top: 32px; font: 500 .85rem/1 var(--font-ui); }
.events-more a { color: var(--wine); }

/* Footer */
.site-footer { background: var(--night); color: var(--night-text); padding-block: 64px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand { font: 400 1.35rem/1.2 var(--font-display); color: #fff; margin-bottom: 14px; }
.footer-about { max-width: 36ch; font-size: .9rem; }
.footer-fb { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); margin-top: 20px; color: #fff; }
.footer-fb:hover { background: var(--wine); }
.footer-label { font: 600 .68rem/1 var(--font-ui); letter-spacing: .16em; text-transform: uppercase; color: #a5968f; margin-bottom: 18px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links a, .footer-email a { text-decoration: none; color: #fff; }
.footer-links a:hover, .footer-email a:hover { color: #e6b8b2; }
address { font-style: normal; color: #fff; }
.footer-email { margin-top: 14px; overflow-wrap: anywhere; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 22px; font: .74rem/1.5 var(--font-ui); color: #a5968f; }
.heart { color: #c75a5a; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
