/* Visit Bath demo — shared by the live site and the Sveltia CMS preview pane */
:root {
  --stone: #f5efe3;
  --stone-deep: #e8dcc4;
  --ink: #2a2620;
  --muted: #6b6255;
  --accent: #7a2e2e;
  --accent-ink: #fff;
  --line: #d9ccb3;
  --radius: 10px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--stone); color: var(--ink); font: 17px/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.35rem; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Header */
.site-header { background: var(--ink); color: var(--stone); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { color: inherit; text-decoration: none; font-family: var(--serif); font-size: 1.6rem; font-weight: 600; letter-spacing: .02em; }
.brand small { display: block; font: 12px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.nav { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.nav a { color: var(--stone); text-decoration: none; font-size: 15px; }
.nav a:hover { text-decoration: underline; }
.lang { border: 1px solid rgba(255,255,255,.35); border-radius: 99px; padding: 2px 10px; font-size: 13px !important; }

.announce { background: var(--accent); color: var(--accent-ink); text-align: center; padding: 8px 16px; font-size: 15px; }
.announce a { color: inherit; }

/* Hero */
.hero { position: relative; min-height: 62vh; display: grid; align-items: end; color: #fff; background: #333 center/cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,.05) 60%); }
.hero .wrap { position: relative; z-index: 1; padding-bottom: 48px; width: 100%; }
.hero p { font-size: 1.2rem; max-width: 640px; }
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); padding: 10px 20px; border-radius: 99px; text-decoration: none; font-weight: 600; }

section { padding: 56px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: var(--muted); margin-bottom: 6px; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card .body { padding: 16px 18px 20px; flex: 1; }
.card h3 a { color: inherit; text-decoration: none; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.tag { display: inline-block; background: var(--stone-deep); color: var(--ink); border-radius: 99px; padding: 1px 10px; font-size: 12px; margin: 0 4px 6px 0; text-decoration: none; }
.badge-featured { background: var(--accent); color: #fff; }

/* Article */
.article-hero { aspect-ratio: 21/9; object-fit: cover; width: 100%; max-height: 520px; }
.meta { color: var(--muted); font-size: 15px; }
.facts { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 24px 0; }
.facts dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; }
.prose { font-size: 18px; }
.prose blockquote { border-left: 4px solid var(--accent); margin: 1.5em 0; padding: .2em 1.2em; font-family: var(--serif); font-size: 1.3rem; font-style: italic; }
.prose table { border-collapse: collapse; width: 100%; }
.prose th, .prose td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.gallery figure { margin: 0; }
.gallery figcaption { font-size: 13px; color: var(--muted); }
.map-frame { width: 100%; height: 320px; border: 1px solid var(--line); border-radius: var(--radius); }
.event-row { display: grid; grid-template-columns: 96px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.datebox { background: var(--ink); color: var(--stone); border-radius: var(--radius); text-align: center; padding: 10px 6px; font-family: var(--serif); }
.datebox b { display: block; font-size: 2rem; line-height: 1; }
.cancelled { text-decoration: line-through; opacity: .6; }
.author-box { display: flex; gap: 14px; align-items: center; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.author-box img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }

/* Footer */
.site-footer { background: var(--ink); color: var(--stone-deep); padding: 40px 0; font-size: 14px; margin-top: 40px; }
.site-footer a { color: var(--stone); }
.credits { opacity: .7; font-size: 12px; }

@media (max-width: 600px) {
  .event-row { grid-template-columns: 70px 1fr; }
  .hero { min-height: 48vh; }
}
