/* Muletown Mail public site.
   Ink #0B1A17 on cream #F6F1E7 come from the logo (the logo itself never
   changes color). The supporting colors come from old postage stamps and the
   county: postmark red, Duck River blue, pasture green, goldenrod and dark
   copper. Each section owns one (server/site/stamps.php MM_SECTION_THEME).
   Goldenrod is ONLY a fill behind ink, never text on cream.
   tests/palette-tests.php checks every text/background pair below passes
   WCAG AA. Type: Bitter (headlines),
   Jost (labels, buttons; it echoes the logo's "MAIL" and "COLUMBIA,
   TENNESSEE"), Source Serif 4 (reading text). */

:root {
  --ink: #0B1A17;
  --ink-soft: #24332F;
  --cream: #F6F1E7;
  --cream-deep: #ECE4D3;
  --paper: #FFFCF6;
  --muted: #4A5550;
  --rule: #D8CEB9;
  --red: #A23B2A;
  --river: #1F4A63;        /* Duck River blue: events, This Weekend */
  --pasture: #2E5A3C;      /* pasture green: Around Town, Written Here */
  --gold: #E2A72E;         /* goldenrod: What's Going Up, signup band (fill only) */
  --copper: #8A531E;       /* dark copper: Food and Drink */
  --on-dark-soft: #E3DDD0; /* secondary text on the dark bands */
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --slab: "Bitter", Georgia, serif;
  --label: "Jost", "Avenir Next", "Segoe UI", sans-serif;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --control-h: 54px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 18px/1.6 var(--serif);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--ink); color: var(--cream); padding: 10px 14px;
  font: 600 14px/1 var(--label); text-decoration: none;
}
.skip:focus { top: 12px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Masthead ---------- */
.masthead {
  max-width: var(--wrap); margin: 0 auto;
  padding: 12px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-bottom: 1px solid var(--rule);
}
.masthead-home {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font: 600 14px/1 var(--label); letter-spacing: .16em; text-transform: uppercase;
}
.masthead-home { gap: 12px; }
.masthead-lockup { height: 58px; width: auto; }

/* ---------- Shared type ---------- */
.eyebrow {
  margin: 0 0 14px; color: var(--muted);
  font: 600 13px/1.3 var(--label); letter-spacing: .16em; text-transform: uppercase;
}
h1, h2 { font-family: var(--slab); font-weight: 700; line-height: 1.12; margin: 0; }
h2 { font-size: clamp(26px, 3.2vw, 34px); }
.link-arrow {
  font: 600 14px/1.4 var(--label); letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px;
}
.link-arrow::after { content: " \2192"; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) var(--gutter) clamp(48px, 7vw, 88px);
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  grid-template-areas: "head card" "lede card";
  column-gap: clamp(32px, 5vw, 72px); row-gap: 18px; align-items: start;
}
.hero-head { grid-area: head; align-self: end; }
.hero-card { grid-area: card; align-self: center; }
.hero-lede { grid-area: lede; }
.hero-logo { width: min(100%, 540px); margin: 0 0 clamp(22px, 3vw, 34px) -6px; }
.hero-title {
  font-size: clamp(30px, 3.9vw, 46px); letter-spacing: -.005em;
  max-width: 17ch; margin: 0;
}
.hero-lede { margin: 0; max-width: 34em; color: var(--ink-soft); font-size: 19px; }

/* ---------- The envelope (signup card) ---------- */
.envelope {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 22px clamp(18px, 3vw, 30px) 26px;
  box-shadow: 0 1px 0 rgba(11,26,23,.04), 0 18px 40px -22px rgba(11,26,23,.45);
}
/* Airmail edge along the top. */
.envelope::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 7px;
  border-radius: 6px 6px 0 0;
  background: repeating-linear-gradient(-45deg, var(--red) 0 14px, var(--paper) 14px 22px, var(--ink) 22px 36px, var(--paper) 36px 44px);
  opacity: .9;
}
.envelope-top { position: relative; min-height: 150px; padding-top: 10px; }
.envelope-from {
  display: flex; flex-direction: column; gap: 2px;
  font: 600 12px/1.35 var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.envelope-stamp {
  position: absolute; top: 4px; right: 0;
  width: 104px; padding: 6px;
  /* Perforated edge: dots of paper color punched around the stamp. */
  background: radial-gradient(circle, var(--paper) 3.1px, var(--cream-deep) 3.5px) -6px -6px / 12px 12px;
  transform: none;
  filter: drop-shadow(0 1px 1px rgba(11,26,23,.14));
}
.envelope-stamp-face {
  background: var(--cream); padding: 10px 8px 8px;
  outline: 1px solid rgba(11,26,23,.35); outline-offset: -4px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.envelope-stamp-face img { width: 76px; }
.envelope-stamp-face span { font: 600 11px/1 var(--label); letter-spacing: .24em; text-transform: uppercase; padding-left: .24em; }
.envelope .postmark {
  position: absolute; top: 52px; right: 34px; width: 200px;
  color: var(--red); opacity: .82; transform: rotate(-7deg);
  mix-blend-mode: multiply;
  animation: stamp-down .42s cubic-bezier(.2,.9,.25,1.3) .35s both;
}
@keyframes stamp-down {
  from { opacity: 0; transform: rotate(-7deg) scale(1.35); }
  to   { opacity: .82; transform: rotate(-7deg) scale(1); }
}
.envelope-to {
  margin: 18px 0 6px;
  font: 600 12px/1 var(--label); letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}

/* ---------- Signup form ---------- */
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.signup-label {
  display: block; margin: 0 0 6px;
  font: 600 13px/1.3 var(--label); letter-spacing: .1em; text-transform: uppercase;
}
.signup-row { display: flex; gap: 10px; }
.signup-input {
  flex: 1 1 auto; min-width: 0; height: var(--control-h);
  padding: 0 14px; border: 1.5px solid var(--ink); border-radius: 4px;
  background: #fff; color: var(--ink);
  font: 400 19px/1 var(--serif);
}
.signup-input::placeholder { color: #8A928D; }
.signup-button {
  flex: 0 0 auto; height: var(--control-h); padding: 0 22px;
  border: 0; border-radius: 4px; cursor: pointer;
  background: var(--ink); color: var(--cream);
  font: 600 15px/1 var(--label); letter-spacing: .12em; text-transform: uppercase;
  transition: background .15s ease, transform .1s ease;
}
.signup-button:hover { background: var(--ink-soft); }
.signup-button:active { transform: translateY(1px); }
.signup-fine { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.signup-error { margin: 10px 0 0; color: var(--red); font: 600 15px/1.4 var(--label); }
.signup--envelope .signup-row { flex-direction: column; }
.signup--envelope .signup-input {
  border-width: 0 0 2px; border-radius: 0; padding: 0 2px; background: transparent;
  font-size: 22px;
}
.signup--envelope .signup-button { width: 100%; margin-top: 14px; }

/* ---------- Contents ---------- */
.contents {
  max-width: 980px; margin: 0 auto;
  padding: clamp(28px, 4vw, 48px) var(--gutter) clamp(40px, 6vw, 72px);
}
.contents-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; }
.contents-head p { margin: 0; color: var(--muted); max-width: 30em; }
.contents-list { list-style: none; margin: 0; padding: 0; }
.contents-list li {
  display: grid; grid-template-columns: 40px max-content minmax(32px, 1fr) minmax(0, 27em);
  align-items: start; gap: 16px;
  padding: 10px 0;
}
.contents-name { font: 600 16px/40px var(--label); letter-spacing: .14em; text-transform: uppercase; }
/* Everything in a row lines up on the stamp's centerline (40px), so a wrapped
   description keeps its FIRST line level with the label and leader. */
.contents-leader { height: 25px; border-bottom: 2px dotted rgba(11,26,23,.35); }
.contents-text { color: var(--ink-soft); padding-top: 6px; }

/* ---------- Written here ---------- */
.local { background: var(--ink); color: var(--cream); }
.local-inner {
  max-width: 980px; margin: 0 auto; padding: clamp(44px, 6vw, 76px) var(--gutter);
  display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center;
}
.local h2 { margin-bottom: 14px; }
.local p { margin: 0 0 14px; max-width: 40em; color: #E3DDD0; }
.local .local-towns {
  margin: 18px 0 0; color: var(--cream);
  font: 600 13px/1.6 var(--label); letter-spacing: .16em; text-transform: uppercase;
}

/* ---------- Tips + sponsors ---------- */
.asides {
  max-width: 980px; margin: 0 auto; padding: clamp(44px, 6vw, 72px) var(--gutter) 8px;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px);
}
.aside { border-top: 1px solid var(--ink); padding-top: 18px; }
.aside h2 { font-size: 24px; margin-bottom: 10px; }
.aside p { margin: 0 0 14px; color: var(--ink-soft); }
.aside .aside-links { display: flex; flex-wrap: wrap; gap: 14px 26px; }

/* ---------- Closer ---------- */
.closer {
  max-width: 640px; margin: 0 auto; text-align: center;
  padding: clamp(44px, 6vw, 72px) var(--gutter) clamp(56px, 8vw, 96px);
}
.closer h2 { margin-bottom: 18px; }
.closer .signup-label { position: absolute; left: -10000px; }
.closer .signup-fine { text-align: center; }

/* ---------- Footer ---------- */
.foot {
  background: var(--ink); color: #D9D3C6; text-align: center;
  padding: 44px var(--gutter) 40px; font-size: 16px;
}
.foot p { margin: 0 0 8px; }
.foot-logo { display: inline-block; margin: 0 auto 16px; }
.foot-logo img { width: 230px; }
.foot-name { color: var(--cream); font: 600 14px/1 var(--label) !important; letter-spacing: .2em; text-transform: uppercase; }
.foot-links { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; margin: 14px 0 12px; }
.foot-links a { color: var(--cream); }
.foot-copy { font-size: 14px; color: #A9B0AB; }

/* ---------- Welcome ---------- */
.welcome { max-width: 640px; margin: 0 auto; padding: clamp(36px, 7vw, 88px) var(--gutter) clamp(56px, 9vw, 110px); }
.envelope--done { padding-top: 26px; }
.envelope--done .postmark { top: 24px; right: 74px; }
.envelope--done .envelope-stamp { top: 18px; right: 22px; }
.welcome-title { font-size: clamp(32px, 5vw, 44px); margin: 132px 0 14px; }
.welcome-text, .welcome-share { color: var(--ink-soft); margin: 0 0 14px; }
.welcome-share { font-style: italic; }

/* ---------- Prose pages ---------- */
.prose { max-width: 720px; margin: 0 auto; padding: clamp(36px, 6vw, 72px) var(--gutter) clamp(56px, 8vw, 96px); }
.prose h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 6px; }
.prose-date { color: var(--muted); font: 500 14px/1 var(--label); letter-spacing: .1em; text-transform: uppercase; margin: 0 0 28px; }
.prose h2 { font-size: 24px; margin: 36px 0 10px; }
.prose li { margin-bottom: 8px; }

/* ---------- Small screens ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; grid-template-areas: "head" "card" "lede"; row-gap: 26px; }
  .hero-logo { width: min(78%, 380px); }
  .hero-title { max-width: 20ch; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .masthead-home span { font-size: 12px; }
  .hero-lede { font-size: 17px; }
  .envelope .postmark { width: 168px; right: 26px; top: 58px; }
  .envelope-stamp { width: 92px; }
  .envelope-stamp-face img { width: 64px; }
  .contents-list li { grid-template-columns: 40px minmax(0, 1fr); gap: 2px 14px; }
  .contents-list li .stamp { grid-row: 1 / span 2; align-self: start; }
  .contents-text { padding-top: 0; }
  .contents-leader { display: none; }
  .local-inner { grid-template-columns: 1fr; }
  .local-mark { width: 200px; }
  .masthead-lockup { height: 44px; }
  .asides { grid-template-columns: 1fr; }
  .closer .signup-row { flex-direction: column; }
  .closer .signup-button { width: 100%; }
}


@media (prefers-reduced-motion: reduce) {
  .envelope .postmark { animation: none; }
  .signup-button { transition: none; }
}

/* Envelope details at desktop size. */
.signup--envelope .signup-label { position: absolute; left: -10000px; }
@media (min-width: 861px) {
  .envelope-top { min-height: 176px; }
  .envelope-stamp { width: 122px; }
  .envelope-stamp-face img { width: 90px; }
  .envelope .postmark { width: 236px; top: 58px; right: 44px; }
  .envelope-from { font-size: 13px; }
}

/* ---------- Logo placements ---------- */
.divider {
  display: flex; align-items: center; gap: 18px;
  max-width: 980px; margin: 0 auto; padding: 0 var(--gutter);
}
.divider span { flex: 1 1 0; height: 2px; background: var(--ink); }
.divider img { width: 56px; height: auto; flex: 0 0 auto; }
.divider--left { padding: 0; margin: 4px 0 30px; }
.divider--left span:first-child { display: none; }
.divider--left img { width: 46px; }
.closer .divider { padding: 0; margin: 0 0 30px; }
.closer-wordmark { width: 250px; margin: 0 auto 18px; }
.local-mark { width: 260px; }
.welcome-logo { display: block; width: 240px; margin: 0 auto 26px; }

/* ==========================================================================
   Content site: masthead nav, events, sections, detail pages.
   Same materials as the envelope: ink rules, paper cards, postmark red for
   the day stamps (the round "cancellation" that marks each day of events).
   ========================================================================== */

/* ---------- Masthead nav ---------- */
.masthead { flex-wrap: wrap; row-gap: 10px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 22px; }
.site-nav a {
  display: inline-block; padding: 8px 0; text-decoration: none;
  font: 600 13px/1.2 var(--label); letter-spacing: .12em; text-transform: uppercase;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--rule); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.site-nav .site-nav-submit a { padding: 8px 12px; border: 1.5px solid var(--ink); border-radius: 4px; }
.site-nav .site-nav-submit a:hover { background: var(--ink); color: var(--cream); }
@media (max-width: 900px) {
  .site-nav { flex: 1 1 100%; }
  .site-nav ul { justify-content: flex-start; gap: 2px 18px; }
  .site-nav a { font-size: 12px; letter-spacing: .1em; }
}
@media (max-width: 400px) {
  .site-nav ul { gap: 0 14px; }
  .site-nav a { letter-spacing: .07em; }
}

/* ---------- Buttons ---------- */
.btn-ink, .btn-outline {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px;
  border-radius: 4px; text-decoration: none;
  font: 600 14px/1 var(--label); letter-spacing: .12em; text-transform: uppercase;
}
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { background: var(--ink-soft); }
.btn-outline { border: 1.5px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cream); }

/* ---------- Home hero (content-led) ---------- */
.hero--content {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-template-areas: "logo copy";
  align-items: center; padding-bottom: clamp(32px, 5vw, 56px);
}
.hero--content .hero-logo { grid-area: logo; margin: 0; width: min(100%, 460px); }
.hero--content .hero-copy { grid-area: copy; }
.hero--content .hero-title { max-width: 16ch; margin-bottom: 16px; }
.hero-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin: 24px 0 0; }

/* ---------- Home blocks ---------- */
.home-block { max-width: 980px; margin: 0 auto; padding: clamp(32px, 5vw, 56px) var(--gutter) 0; }
.home-block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px 24px; flex-wrap: wrap; margin-bottom: 18px; }
.home-block-dates { margin: 0; color: var(--muted); font: 600 13px/1.3 var(--label); letter-spacing: .14em; text-transform: uppercase; }
.home-block-more { margin: 18px 0 0; }
/* The last cream block before a color band needs room under its link. */
.home-block:has(+ .band), .home-block:has(+ section.band) { padding-bottom: clamp(44px, 6vw, 72px); }

/* ---------- Event lists ---------- */
.ev-groups { display: flex; flex-direction: column; gap: 26px; }
.ev-day {
  position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr);
  grid-template-areas: "stamp head" "stamp list"; column-gap: 22px;
}
.ev-day .datestamp { grid-area: stamp; align-self: start; justify-self: start; transform: none; }
.ev-day:nth-child(even) .datestamp { transform: none; }
.ev-day-head { grid-area: head; margin: 6px 0 4px; font: 600 15px/1.3 var(--label); letter-spacing: .14em; text-transform: uppercase; }
.ev-day .ev-list { grid-area: list; }
.ev-day--ongoing { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "list"; }
.ev-list { list-style: none; margin: 0; padding: 0; }
.ev {
  display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 4px 18px; align-items: baseline;
  padding: 12px 0; align-content: start;
}
.ev:last-child { border-bottom: 0; }
.ev-time { color: var(--ink-soft); font: 600 13px/1.35 var(--label); letter-spacing: .08em; text-transform: uppercase; }
.ev-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ev-title { font: 700 19px/1.3 var(--slab); text-decoration: none; overflow-wrap: anywhere; }
.ev-title:hover { text-decoration: underline; }
.ev-meta { color: var(--muted); font-size: 16px; line-height: 1.4; }
.ev-list--dated .ev { grid-template-columns: 13em minmax(0, 1fr); }
@media (min-width: 900px) {
  .ev-groups--weekend .ev-day--ongoing { grid-column: 1 / -1; }
  .ev-groups--weekend .ev-day--ongoing .ev-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; }
  .ev-groups--weekend .ev-day--ongoing .ev { border-bottom: 0; }
  .ev-groups--weekend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: start; }
  .ev-groups--weekend .ev-day { grid-template-columns: 1fr; grid-template-areas: "stamp" "head" "list"; }
  .ev-groups--weekend .ev-day .datestamp { margin-bottom: 8px; }
  .ev-groups--weekend .ev { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 640px) {
  .ev, .ev-list--dated .ev { grid-template-columns: 1fr; gap: 2px; }
  .ev-day { grid-template-columns: 64px minmax(0, 1fr); column-gap: 14px; }
  .ev-day--ongoing { grid-template-columns: minmax(0, 1fr); }
  .ev-title { font-size: 18px; }
}

/* ---------- Empty states ---------- */
.empty-note {
  padding: 18px 20px; background: var(--paper); border: 1px dashed var(--rule); border-radius: 6px;
  color: var(--ink-soft);
}
.empty-note p { margin: 0 0 10px; }
.empty-note p:last-child { margin-bottom: 0; }
.empty-note--quiet { margin: 0 0 20px; }

/* ---------- Latest from the sections ---------- */
.latest-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 4vw, 44px); }
.latest-col { padding-top: 4px; min-width: 0; }
.latest-col-title { margin: 0 0 6px; font: 600 15px/1.3 var(--label); letter-spacing: .14em; text-transform: uppercase; }
.latest-col-title a { text-decoration: none; }
.latest-item { padding: 10px 0; }
.latest-item h4 { margin: 0 0 4px; font: 700 18px/1.3 var(--slab); }
.latest-item h4 a { text-decoration: none; }
.latest-item h4 a:hover { text-decoration: underline; }
.latest-item p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.45; }
.latest-more { margin: 14px 0 0; }
.latest-empty { margin: 10px 0 0; color: var(--muted); font-style: italic; font-size: 16px; }
@media (max-width: 860px) { .latest-cols { grid-template-columns: 1fr; } }

/* ---------- Home signup (the envelope, now below the listings) ---------- */
.home-signup {
  max-width: 980px; margin: 0 auto; padding: clamp(48px, 7vw, 88px) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center;
}
.home-signup .hero-card { grid-area: auto; align-self: center; }
.home-signup h2 { margin-bottom: 14px; }
.home-signup-copy p { margin: 0; color: var(--ink-soft); max-width: 30em; }
@media (max-width: 860px) {
  .hero--content { grid-template-columns: 1fr; grid-template-areas: "logo" "copy"; row-gap: 18px; }
  .hero--content .hero-logo { width: min(55%, 240px); }
  .home-signup { grid-template-columns: 1fr; }
}

/* ---------- Content pages ---------- */
.content-page { max-width: 980px; margin: 0 auto; padding: clamp(28px, 5vw, 56px) var(--gutter) clamp(40px, 6vw, 72px); }
.page-head { margin-bottom: 22px; }
.page-title { font-size: clamp(32px, 5vw, 48px); letter-spacing: -.005em; max-width: 20ch; margin: 0 0 12px; }
.page-lede { margin: 0; max-width: 38em; color: var(--ink-soft); font-size: 19px; }
.page-links { display: flex; flex-wrap: wrap; gap: 14px 26px; }
.view-nav { margin: 0 0 28px; }
.view-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.view-nav a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1.5px solid var(--rule); border-radius: 999px;
  text-decoration: none; font: 600 13px/1 var(--label); letter-spacing: .1em; text-transform: uppercase; background: var(--paper);
}
.view-nav a:hover { border-color: var(--ink); }
.view-nav a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.cal-box {
  display: flex; justify-content: space-between; align-items: center; gap: 16px 28px; flex-wrap: wrap;
  margin: 40px 0 0; padding: 20px 22px; background: var(--paper); border: 1px solid var(--rule); border-radius: 6px;
}
.cal-box h2 { font-size: 22px; margin: 0 0 6px; }
.cal-box p { margin: 0; color: var(--ink-soft); max-width: 34em; }
.cal-box .cal-links { display: flex; align-items: center; gap: 12px 22px; flex-wrap: wrap; }
.signup-block { margin: 48px 0 0; padding: 0; }
.signup-block-inner { position: relative; padding: 28px clamp(18px, 3vw, 32px); background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; }
.signup-block-inner::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 7px; border-radius: 6px 6px 0 0;
  background: repeating-linear-gradient(-45deg, var(--red) 0 14px, var(--paper) 14px 22px, var(--ink) 22px 36px, var(--paper) 36px 44px);
  opacity: .9;
}
.signup-block h2 { font-size: clamp(24px, 3vw, 30px); margin: 8px 0 8px; }
.signup-block-text { margin: 0 0 16px; color: var(--ink-soft); max-width: 36em; }
.signup-block .signup-label { position: absolute; left: -10000px; }
@media (max-width: 640px) {
  .signup-block .signup-row { flex-direction: column; }
  .signup-block .signup-button { width: 100%; }
}

/* ---------- Items ---------- */
.item-list { display: flex; flex-direction: column; }
.item-card { padding: 16px 0; }
.item-card:first-child { padding-top: 4px; }
.item-eyebrow { margin: 0 0 6px; color: var(--muted); font: 600 12px/1.4 var(--label); letter-spacing: .14em; text-transform: uppercase; }
.item-card-title { margin: 0 0 6px; font: 700 clamp(21px, 2.4vw, 25px)/1.25 var(--slab); }
.item-card-title a { text-decoration: none; }
.item-card-title a:hover { text-decoration: underline; }
.item-card-text { margin: 0 0 8px; color: var(--ink-soft); max-width: 40em; }
.item-credit { margin: 0; color: var(--muted); font: 500 13px/1.4 var(--label); letter-spacing: .06em; }
.item-list--compact .item-card-title { font-size: 20px; }

/* ---------- Detail pages ---------- */
.detail { max-width: 860px; }
.crumb { margin: 0 0 18px; font: 600 13px/1.3 var(--label); letter-spacing: .14em; text-transform: uppercase; }
.crumb a { text-decoration: none; border-bottom: 2px solid var(--rule); }
.crumb a::before { content: "\2190  "; }
.detail-title { font-size: clamp(30px, 4.6vw, 44px); letter-spacing: -.005em; margin: 0; overflow-wrap: anywhere; }
.item-article .detail-title { margin-bottom: 18px; }
.detail-alert { margin: 0 0 22px; padding: 12px 16px; border-left: 4px solid var(--red); background: #FBF0EC; border-radius: 4px; }
.detail-alert a { margin-left: 6px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 260px); gap: clamp(22px, 4vw, 40px); align-items: start; }
.detail-grid:not(:has(.detail-figure)) { grid-template-columns: minmax(0, 1fr); }
.facts { margin: 0 0 20px; border-top: 2px solid var(--ink); }
.facts div { display: grid; grid-template-columns: 8em minmax(0, 1fr); gap: 4px 16px; padding: 8px 0; }
.facts dt { font: 600 13px/1.6 var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.detail-body { max-width: 38em; }
.detail-body p { margin: 0 0 16px; }
.detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin: 22px 0; }
.detail-credit { margin: 18px 0 0; color: var(--muted); font-size: 16px; max-width: 38em; }
.detail-figure { margin: 0; }
.detail-figure img { width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 4px; background: var(--paper); }
.detail-figure--wide { margin: 0 0 22px; }
.more { margin-top: 44px; }
.more-title { font-size: 22px; margin: 0 0 6px; }
@media (max-width: 700px) {
  .detail-grid { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) { .site-nav a, .btn-ink, .btn-outline { transition: none; } }


/* ==========================================================================
   Color pass: section colors, postage stamps, bands, the town drawing.
   ========================================================================== */

/* ---------- Section colors ----------
   --sec is the section's color, --on-sec the text that sits on it, and
   --on-sec-soft the secondary text on it. Every pair is checked for AA in
   tests/palette-tests.php. */
.c-river   { --sec: var(--river);   --on-sec: var(--cream); --on-sec-soft: var(--on-dark-soft); }
.c-pasture { --sec: var(--pasture); --on-sec: var(--cream); --on-sec-soft: var(--on-dark-soft); }
.c-copper  { --sec: var(--copper);  --on-sec: var(--cream); --on-sec-soft: var(--on-dark-soft); }
.c-red     { --sec: var(--red);     --on-sec: var(--cream); --on-sec-soft: var(--on-dark-soft); }
.c-ink     { --sec: var(--ink);     --on-sec: var(--cream); --on-sec-soft: var(--on-dark-soft); }
.c-gold    { --sec: var(--gold);    --on-sec: var(--ink);   --on-sec-soft: var(--ink-soft); }

/* ---------- Postage stamps ----------
   The envelope stamp's perforated edge: dots of the background color punched
   into a paper margin. Sizes are multiples of the 10px perforation so the
   holes land evenly on every edge. */
.stamp {
  position: relative; display: inline-block; flex: none; padding: 5px; line-height: 0; vertical-align: middle;
  filter: drop-shadow(0 1px 1.5px rgba(11,26,23,.22));
}
/* The paper margin is its own layer with REAL holes (a mask), so the shadow
   follows the perforations and the stamp reads on any background. */
.stamp::before {
  content: ""; position: absolute; inset: 0;
  background: var(--stamp-paper, var(--paper));
  -webkit-mask:
    radial-gradient(circle, #0000 2.5px, #000 3px) -5px -5px / 10px 10px,
    linear-gradient(#000 0 0) 5px 5px / calc(100% - 10px) calc(100% - 10px) no-repeat;
          mask:
    radial-gradient(circle, #0000 2.5px, #000 3px) -5px -5px / 10px 10px,
    linear-gradient(#000 0 0) 5px 5px / calc(100% - 10px) calc(100% - 10px) no-repeat;
}
.stamp > .stamp-face { position: relative; }
.stamp-face {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--sec, var(--ink)); color: var(--on-sec, var(--cream));
  outline: 1px solid color-mix(in srgb, var(--on-sec, var(--cream)) 45%, transparent); outline-offset: -4px;
}
.stamp .icon { display: block; }
.stamp--sm .stamp-face { width: 30px; height: 30px; outline: 0; }
.stamp--sm .icon { width: 22px; height: 22px; }
.stamp--md .stamp-face { width: 50px; height: 50px; }
.stamp--md .icon { width: 34px; height: 34px; }
.stamp--lg .stamp-face { width: 90px; height: 90px; }
.stamp--lg .icon { width: 62px; height: 62px; }

/* Date stamps: weekday, day, month, colored by the day. */
.datestamp .stamp-face { font-family: var(--label); text-align: center; line-height: 1; }
.datestamp-dow, .datestamp-mon { font-weight: 600; letter-spacing: .14em; padding-left: .14em; }
.datestamp-day { font: 800 26px/1 var(--slab); margin: 3px 0 2px; }
.datestamp.stamp--md .stamp-face { width: 50px; height: 60px; font-size: 10px; }
.datestamp.stamp--lg .stamp-face { width: 80px; height: 90px; font-size: 12px; }
.datestamp.stamp--lg .datestamp-day { font-size: 40px; margin: 5px 0 4px; }
.datestamp.stamp--xs .stamp-face { width: 40px; height: 40px; font-size: 9px; outline: 0; }
.datestamp.stamp--xs .datestamp-dow { display: none; }
.datestamp.stamp--xs .datestamp-day { font-size: 18px; margin: 0 0 2px; }

/* The red This Weekend mark: a rubber stamp on paper, so it reads on any band. */
.weekend-badge {
  display: inline-flex; align-items: center; gap: 3px; margin-left: 8px;
  color: var(--red); vertical-align: middle; white-space: nowrap;
}
.weekend-badge-text {
  background: var(--paper); border: 3px double var(--red); border-radius: 999px; padding: 3px 10px 2px;
  font: 600 11px/1.2 var(--label); letter-spacing: .14em; text-transform: uppercase;
}
.weekend-badge svg { width: 28px; height: 14px; }

/* ---------- Bands ----------
   Full-width blocks in a section color. Their bottom edge is a stamp-sheet
   perforation, so a band tears off into the cream page below it. */
.band { position: relative; background: var(--sec); color: var(--on-sec); --stamp-hole: var(--sec); }
.band::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 10px; z-index: 1; pointer-events: none;
  background: radial-gradient(circle, var(--cream) 4px, transparent 4.5px) 0 0 / 14px 10px repeat-x;
}
.band .eyebrow { color: var(--on-sec-soft); }
.band .link-arrow, .band .crumb a { color: var(--on-sec); }
.band .crumb a { border-bottom-color: var(--on-sec-soft); }
.band-wrap { max-width: 980px; margin: 0 auto; padding: clamp(28px, 4vw, 48px) var(--gutter) clamp(44px, 6vw, 72px); }
.band-inner {
  max-width: 980px; margin: 0 auto; padding: clamp(28px, 5vw, 52px) var(--gutter) clamp(34px, 5vw, 56px);
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(18px, 3vw, 34px); align-items: center;
}
.band-inner > .stamp { transform: none; }
.band-copy { min-width: 0; }
.band--page .page-title, .band--page .sub-title, .band--page .detail-title { color: var(--on-sec); margin-bottom: 10px; }
.band--page .page-lede, .band--page .sub-lede { color: var(--on-sec-soft); }
.band--page .page-lede:last-child, .band--page .sub-lede:last-child { margin-bottom: 0; }
.band--page .crumb { margin-bottom: 12px; }
.band-when { margin: 0; color: var(--on-sec-soft); font: 600 14px/1.4 var(--label); letter-spacing: .1em; text-transform: uppercase; }
.band-badge { margin: 14px 0 0; }
.band-badge .weekend-badge { margin-left: 0; }
.content-page { padding-top: clamp(32px, 5vw, 52px); }

/* Content inside a band. */
.band .home-block-head { margin-bottom: 26px; }
.band .home-block-dates, .band .ev-time, .band .ev-meta { color: var(--on-sec-soft); }
.band .ev-title { color: var(--on-sec); }
.band .ev-day-head { color: var(--on-sec); }
.band .empty-note { background: rgba(255,252,246,.08); border-color: var(--on-sec-soft); color: var(--on-sec); }
.band .home-block-more { margin-top: 26px; }

.home-block-title { display: flex; align-items: center; gap: 16px; }
.home-block-title .stamp { transform: none; }

/* ---------- The town drawing (home) ----------
   It hands off into the This Weekend band: the river's water IS the band. */
.town-drawing { line-height: 0; }
.town-drawing img { display: block; width: 100%; height: auto; }
.td-hill, .td-tree { stroke: var(--pasture); }
.td-hill--far { opacity: .45; }
.td-town, .td-mule { stroke: var(--ink); }
.td-sun { stroke: var(--gold); }
.td-fence { stroke: var(--copper); opacity: .75; }
.td-bird { stroke: var(--ink-soft); opacity: .7; }
.td-river { fill: var(--river); }
.td-ripple { stroke: var(--on-dark-soft); opacity: .45; }
.page-home .hero--content { padding-bottom: clamp(8px, 2vw, 24px); }
.band--weekend { margin-top: -3px; }

/* ---------- Coming Up: a small date stamp on each row ---------- */
.ev-list--dated .ev.ev--tiled { grid-template-columns: 50px 12em minmax(0, 1fr); align-items: center; column-gap: 18px; padding: 9px 0; }
.ev--tiled .datestamp { transform: none; }
.ev--tiled:nth-child(even) .datestamp { transform: none; }
@media (max-width: 640px) {
  .ev-list--dated .ev.ev--tiled { grid-template-columns: 50px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; align-items: start; }
  .ev--tiled .datestamp { grid-row: 1 / span 2; }
  .ev--tiled .ev-time, .ev--tiled .ev-main { grid-column: 2; }
}

/* ---------- Around Columbia columns ---------- */
.latest-col > .stamp { margin-bottom: 12px; transform: none; }
.latest-col:nth-child(2) > .stamp { transform: none; }
.latest-col-title a { border-bottom: 3px solid var(--sec); padding-bottom: 1px; }
.latest-more .link-arrow, .page-section .item-list ~ .signup-block .link-arrow { border-bottom-color: var(--sec); }

/* ---------- Signup band (goldenrod, ink text) ---------- */
.band--signup .home-signup h2 { color: var(--ink); }
.band--signup .home-signup-copy p { color: var(--ink-soft); }
.band--signup .envelope { box-shadow: 0 1px 0 rgba(11,26,23,.06), 0 22px 44px -20px rgba(11,26,23,.55); }

/* ---------- Written Here: pasture green ---------- */
.local.c-pasture { background: var(--pasture); }
.local.c-pasture p { color: var(--on-dark-soft); }

/* ---------- The envelope's courthouse stamp, now in pasture green ---------- */
.envelope-stamp-face { background: var(--pasture); color: var(--cream); outline-color: rgba(246,241,231,.5); }

/* ---------- Nav: each section's color as a small stamp square ---------- */
.site-nav li[class*="c-"] > a::before {
  content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 7px; vertical-align: 1px;
  background: var(--sec); border-radius: 1px; transform: none;
}
.site-nav li[class*="c-"] > a:hover { border-bottom-color: var(--sec); }
.site-nav li[class*="c-"] > a[aria-current="page"] { border-bottom-color: var(--ink); }

/* ---------- Section pages: items carry the section square ---------- */
.content-page[class*="c-"] .item-eyebrow::before {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; vertical-align: 1px;
  background: var(--sec); border-radius: 1px; transform: none;
}
.crumb--stamp { display: flex; align-items: center; gap: 12px; }
.crumb--stamp a::before { content: none; }
.crumb--stamp a { border-bottom-color: var(--sec); }

/* ---------- Empty states wear the section stamp ---------- */
.empty-note--stamp { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 18px; align-items: center; }
.empty-note--stamp .stamp { grid-row: 1 / span 2; transform: none; --stamp-hole: var(--paper); --stamp-paper: var(--cream-deep); }

@media (max-width: 640px) {
  .band-inner { gap: 16px; align-items: start; }
  .stamp--lg .stamp-face { width: 60px; height: 60px; }
  .stamp--lg .icon { width: 42px; height: 42px; }
  .datestamp.stamp--lg .stamp-face { width: 60px; height: 70px; font-size: 10px; }
  .datestamp.stamp--lg .datestamp-day { font-size: 28px; margin: 3px 0 2px; }
  .home-block-title { gap: 12px; }
  .home-block-title .stamp--md .stamp-face { width: 40px; height: 40px; }
  .home-block-title .stamp--md .icon { width: 28px; height: 28px; }
}
@media (max-width: 860px) {
  .latest-col > .stamp { float: left; margin: 0 14px 6px 0; }
  .latest-col-title { padding-top: 20px; }
  .latest-col .latest-item:first-of-type { clear: both; }
}
/* The cancellation crosses the green stamp like a real one; multiply would turn it black there. */
.envelope .postmark { mix-blend-mode: normal; }

/* ---------- Links always show the hand, even with the editor loaded ---------- */
.site-nav a, .site-nav a *, .masthead-home, .masthead-home * { cursor: pointer; }

/* ---------- Phone web ----------
   One compact header row (logo), then the sections as a single swipeable row
   instead of three wrapped lines. The home hero drops its big logo on phones
   because the header already carries the brand. */
@media (max-width: 760px) {
  .masthead { padding: 10px var(--gutter) 6px; row-gap: 4px; }
  .masthead-lockup { height: 40px; }
  .site-nav { flex: 1 1 100%; margin: 0 calc(var(--gutter) * -1); min-width: 0; }
  .site-nav ul {
    flex-wrap: nowrap; justify-content: flex-start; gap: 0 18px;
    overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; padding: 2px var(--gutter) 4px;
    -webkit-mask-image: linear-gradient(to right, #000 88%, transparent);
            mask-image: linear-gradient(to right, #000 88%, transparent);
  }
  .site-nav ul::-webkit-scrollbar { display: none; }
  .site-nav li { flex: 0 0 auto; }
  .site-nav a { white-space: nowrap; }
  .site-nav .site-nav-submit a { padding: 6px 10px; }
  .page-home .hero--content .hero-logo { display: none; }
  .page-home .hero--content { padding-top: 18px; row-gap: 0; }
  .hero--content .hero-title { font-size: clamp(28px, 8.4vw, 36px); margin-bottom: 12px; }
  .hero--content .hero-lede { font-size: 17px; }
  .hero-links { margin-top: 18px; }
}

/* Day headings with the This Weekend mark: the mark sits level, centered on the date. */
.ev-day-head:has(.weekend-badge) { display: flex; flex-wrap: wrap; align-items: center; column-gap: 10px; row-gap: 6px; }
.ev-day-head .weekend-badge { margin-left: 0; }
