:root {
  --ink: #121212;
  --muted: #5a5a5a;
  --rule: #d9d9d9;
  --accent: #8b1d1d;
  --paper: #fff;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.5; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* Masthead */
.masthead { border-bottom: 3px double var(--ink); text-align: center; padding: 0.5rem 1rem 0; }
.topline {
  display: flex; justify-content: space-between; max-width: 1200px; margin: 0 auto;
  font-size: 0.8rem; color: var(--muted); border-bottom: 1px solid var(--rule); padding-bottom: 0.4rem;
}
.nameplate {
  display: block; font-family: "Old English Text MT", "UnifrakturMaguntia", var(--serif);
  font-size: clamp(2.2rem, 6vw, 4.2rem); line-height: 1.1; margin: 0.6rem 0 0.5rem; text-decoration: none;
  letter-spacing: 0.01em;
}
.nameplate.small { font-size: 1.8rem; margin: 0 0 0.5rem; }
.sections {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 0.2rem 1.4rem;
  border-top: 1px solid var(--ink); padding: 0.55rem 0; font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.sections a { text-decoration: none; }
.sections a:hover, .sections a.active { color: var(--accent); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }

/* Cards */
.card h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; margin: 0.25rem 0 0.4rem; font-size: 1.2rem; }
.card h3 a, .story h1 { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.kicker { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); text-decoration: none; }
.dek { font-family: var(--serif); color: #333; margin: 0 0 0.4rem; }
.meta { font-size: 0.8rem; color: var(--muted); margin: 0; }
.thumb img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; margin-bottom: 0.6rem; }

/* Front page */
.front { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--ink); }
.card.lead h3 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
.card.lead .dek { font-size: 1.15rem; }
.secondary { border-left: 1px solid var(--rule); padding-left: 1.5rem; }
.secondary .card { padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--rule); }
.secondary .card:last-child { border-bottom: 0; }
.section-block { margin-top: 2rem; }
.section-title {
  font-family: var(--serif); font-size: 1.35rem; border-top: 2px solid var(--ink);
  padding-top: 0.4rem; margin: 0 0 1rem;
}
.section-title a { text-decoration: none; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.section-head { font-family: var(--serif); font-size: 2.4rem; margin: 0 0 1rem; border-bottom: 1px solid var(--ink); }
.empty { text-align: center; padding: 4rem 1rem; color: var(--muted); }
.empty h2 { font-family: var(--serif); color: var(--ink); }

@media (max-width: 820px) {
  .front, .grid3 { grid-template-columns: 1fr; }
  .secondary { border-left: 0; padding-left: 0; }
  .topline span:last-child { display: none; }
}

/* Article */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 3rem; }
.story { max-width: 720px; }
.story h1 { font-family: var(--serif); font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.1; margin: 0.4rem 0 0.8rem; }
.standfirst { font-family: var(--serif); font-size: 1.3rem; color: #333; margin: 0 0 1rem; }
.byline { font-size: 0.9rem; color: var(--muted); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 0.6rem 0; }
.hero { margin: 1.25rem 0; }
.hero img { width: 100%; }
figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 0.4rem; }
.story-body { font-family: var(--serif); font-size: 1.18rem; line-height: 1.7; }
.story-body p:first-child::first-letter { float: left; font-size: 3.6em; line-height: 0.85; padding: 0.06em 0.08em 0 0; font-weight: 700; }
.story-body h3, .story-body h4 { font-family: var(--sans); margin-top: 2rem; }
.story-body blockquote { border-left: 4px solid var(--accent); margin: 1.5rem 0; padding: 0.2rem 0 0.2rem 1.2rem; font-style: italic; font-size: 1.3rem; }
.story-body figure { margin: 1.5rem 0; }
.rail { border-left: 1px solid var(--rule); padding-left: 1.5rem; }
.rail-title { text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.08em; border-top: 2px solid var(--ink); padding-top: 0.5rem; }
.rail .card { border-bottom: 1px solid var(--rule); padding-bottom: 0.8rem; margin-bottom: 0.8rem; }
.rail .card h3 { font-size: 1.05rem; }
@media (max-width: 900px) { .article-layout { grid-template-columns: 1fr; } .rail { border-left: 0; padding-left: 0; } }

/* Footer */
.site-footer { border-top: 3px double var(--ink); text-align: center; padding: 1.5rem 1rem 2.5rem; font-size: 0.85rem; color: var(--muted); }
.site-footer a { text-decoration: none; }

/* Domain branding: wilmapost.com shows "The Wilma Post" */
.brand-short { display: none; }
html.wilma .brand-short { display: inline; }
html.wilma .brand-full { display: none; }

/* Corrections + disclaimer */
.corrections { margin: 1.5rem 0 0; padding: 0.8rem 1rem; background: #f6f3ee; border-left: 4px solid var(--accent); font-size: 0.95rem; }
.corrections p { margin: 0.3rem 0; }
.disclaimer { margin-top: 1.5rem; padding-top: 0.8rem; border-top: 1px solid var(--rule); font-size: 0.88rem; color: var(--muted); font-style: italic; }
.disclaimer a { color: var(--accent); }
.form-page { max-width: 640px; }
.form-page label { display: block; font-weight: 600; margin: 1rem 0 0.3rem; }
.form-page input, .form-page textarea { width: 100%; padding: 0.6rem 0.7rem; font: inherit; border: 1px solid #bbb; border-radius: 6px; }
.form-page .hint { font-weight: 400; color: var(--muted); font-size: 0.85rem; }
.form-page button { margin-top: 1.2rem; padding: 0.7rem 1.4rem; font: inherit; font-weight: 700; background: var(--accent); color: #fff; border: 0; border-radius: 6px; cursor: pointer; }
.form-page .hp { position: absolute; left: -9999px; }
.form-status { margin-top: 1rem; font-weight: 600; }

/* Upcoming performances */
.events { margin: 0 0 2rem; }
.ev-list { list-style: none; padding: 0; margin: 0.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.25rem 1.5rem; }
.ev-list li { padding: 0.6rem 0; border-bottom: 1px solid var(--rule); display: grid; gap: 0.1rem; }
.ev-when { font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); }
.ev-title { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; text-decoration: none; }
.ev-title:hover { text-decoration: underline; }
.ev-venue { font-size: 0.85rem; color: var(--muted); }
.ev-more { margin-top: 0.6rem; font-weight: 600; }

/* Local ads */
.ad-slot { display: none; }
.ad-slot.filled { display: block; margin: 0 0 1.5rem; }
.ad-label { display: block; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; color: #888; margin-bottom: 0.25rem; }
.ad-slot a { display: block; text-decoration: none; color: inherit; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; background: #fff; }
.ad-slot img { width: 100%; display: block; }
.ad-top img { max-height: 300px; object-fit: cover; }
.ad-side img, .ad-inline img { max-height: 320px; object-fit: contain; background: #fafafa; }
.ad-inline { max-width: 640px; margin: 2rem auto !important; }
.ad-headline { display: block; padding: 0.5rem 0.75rem 0; font-weight: 700; }
.ad-business { display: block; padding: 0.2rem 0.75rem 0.6rem; font-size: 0.8rem; color: var(--muted); }
.ad-house { padding: 1.2rem; text-align: center; font-family: var(--serif); font-weight: 700; font-size: 1.1rem; background: #f6f3ee !important; border-style: dashed !important; }
.ad-house small { font-family: var(--sans); font-weight: 600; color: var(--accent); font-size: 0.85rem; }

/* Archive */
.archive-list { list-style: none; padding: 0; columns: 2; }
.archive-list li { padding: 0.35rem 0; break-inside: avoid; }
.archive-list a { font-family: var(--serif); font-weight: 700; text-decoration: none; }
.archive-banner { background: #fff1d6; padding: 0.6rem 0.9rem; border-radius: 6px; font-size: 0.9rem; }
@media (max-width: 600px) { .archive-list { columns: 1; } }

/* Dating section promo */
.dating-promo { margin: 0 0 2rem; padding: 1.4rem 1.6rem; border-radius: 12px; background: linear-gradient(135deg, #e9f7f5, #fff4e6); border: 1px solid #d7ebe7; }
.dating-promo h2 { font-family: var(--serif); margin: 0.2rem 0 0.4rem; color: #075955; }
.dating-promo p { margin: 0 0 0.8rem; }
.dp-btn { display: inline-block; padding: 0.55rem 1.2rem; border-radius: 999px; background: #f2705e; color: #fff; font-weight: 700; text-decoration: none; }
.dating-promo .disclosure { margin: 0.9rem 0 0; font-size: 0.8rem; color: var(--muted); }

/* Search */
.topline { align-items: center; }
.search-mini { display: flex; gap: 0.25rem; }
.search-mini input { width: 170px; padding: 0.25rem 0.5rem; font: inherit; font-size: 0.8rem; border: 1px solid var(--rule); border-radius: 999px; }
.search-mini button { border: 0; background: none; cursor: pointer; font-size: 0.85rem; }
.search-big { display: flex; gap: 0.5rem; margin: 0 0 1rem; }
.search-big input { flex: 1; padding: 0.7rem 0.9rem; font: inherit; font-size: 1.1rem; border: 1px solid #bbb; border-radius: 8px; }
.search-big button { padding: 0 1.2rem; font: inherit; font-weight: 700; background: var(--accent); color: #fff; border: 0; border-radius: 8px; cursor: pointer; }
.result { padding: 0.9rem 0; border-bottom: 1px solid var(--rule); }
.result h3 { font-family: var(--serif); margin: 0.2rem 0; }
.result h3 a { text-decoration: none; }
.result p { margin: 0.2rem 0; color: #333; }
mark { background: #fff1b8; padding: 0 0.1em; }
@media (max-width: 600px) { .search-mini input { width: 120px; } }
