/* Nottatown Events: community bulletin board */
:root {
  --orange: #d9661f;
  --orange-deep: #b24f12;
  --orange-soft: #f8dcc2;
  --plum: #4a1f3d;
  --plum-deep: #33142a;
  --plum-soft: #f1e4ec;
  --paper: #fbf7f0;
  --paper-2: #f3ebdd;
  --note: #fffdf8;
  --note-yellow: #fff4d6;
  --note-orange: #fde7d3;
  --note-plum: #f4e8f0;
  --ink: #2a2126;
  --muted: #6d5f66;
  --line: #e6dccf;
  --radius: 12px;
  --shadow: 0 1px 1px rgba(51, 20, 42, .06), 0 6px 16px -6px rgba(51, 20, 42, .22);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-hand: "Caveat", "Segoe Print", cursive;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  font: 17px/1.6 var(--font-body);
  background-color: var(--paper);
  background-image:
    radial-gradient(rgba(74, 31, 61, .05) 1px, transparent 1.2px),
    radial-gradient(rgba(217, 102, 31, .05) 1px, transparent 1.2px);
  background-size: 22px 22px, 22px 22px;
  background-position: 0 0, 11px 11px;
}
h1, h2, h3 { font-family: var(--font-display); color: var(--plum); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); margin-top: 1.8em; }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1em; }
a { color: var(--orange-deep); text-underline-offset: 2px; }
a:hover { color: var(--plum); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 16px; }
.hand { font-family: var(--font-hand); font-weight: 700; }
.section-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
.section-title .hand { color: var(--orange); font-size: 1.5rem; }

/* Sponsor strip */
.sponsor-strip {
  background: var(--orange); color: #fff; font-size: .88rem; text-align: center;
  padding: 7px 16px; letter-spacing: .01em;
}
.sponsor-strip a { color: #fff; font-weight: 800; }
.sponsor-strip .slogan { font-style: italic; opacity: .95; }

/* Header */
.site-header {
  background: var(--plum); color: #fff; position: relative;
  border-bottom: 6px solid var(--orange);
  box-shadow: inset 0 -6px 0 var(--plum-deep);
}
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; padding-top: 14px; padding-bottom: 20px; }
.brand { color: #fff; text-decoration: none; display: flex; align-items: center; gap: 12px; }
.brand:hover { color: #fff; }
.brand-mark {
  width: 48px; height: 48px; border-radius: 12px; background: var(--orange);
  display: grid; place-items: center; flex: none; transform: rotate(-4deg);
  box-shadow: 0 3px 0 var(--plum-deep);
}
.brand-mark svg { width: 32px; height: 32px; }
.brand-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; display: block; line-height: 1.05; }
.brand-sub { font-size: .8rem; opacity: .82; display: block; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; }
.nav a {
  color: #fff; text-decoration: none; font-size: .95rem; font-weight: 700;
  padding: 7px 12px; border-radius: 999px;
}
.nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.nav a[aria-current="page"] { background: var(--orange); color: #fff; }

main { padding: 26px 0 48px; }

/* Lead note: the opening sentences of every page */
.lead-note {
  position: relative; background: var(--note); border: 1px solid var(--line);
  border-radius: 4px; padding: 20px 22px 18px; margin: 6px 0 26px;
  box-shadow: var(--shadow); max-width: 860px;
  font-size: 1.08rem; line-height: 1.65;
}
.lead-note::before {
  content: ""; position: absolute; top: -9px; left: 50%; width: 110px; height: 22px;
  transform: translateX(-50%) rotate(-2deg);
  background: rgba(217, 102, 31, .28); border-left: 2px dotted rgba(255,255,255,.5); border-right: 2px dotted rgba(255,255,255,.5);
}
.lead-note p { margin: 0; }
.lead-note strong { color: var(--plum); }

/* Pushpin */
.pin { position: relative; }
.pin::after {
  content: ""; position: absolute; top: -8px; left: 50%; width: 16px; height: 16px; margin-left: -8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffb27a 0 18%, var(--orange) 40%, var(--orange-deep) 100%);
  box-shadow: 0 2px 2px rgba(0,0,0,.25);
  z-index: 2;
}
.pin.plum-pin::after { background: radial-gradient(circle at 35% 35%, #c893b6 0 18%, #7a3566 40%, var(--plum-deep) 100%); }

/* Hero */
.hero {
  position: relative; background: var(--plum); color: #fff; border-radius: 18px;
  overflow: hidden; box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: stretch;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 12% 110%, rgba(217, 102, 31, .45), transparent 45%),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.025) 0 12px, transparent 12px 24px);
}
.hero-body { position: relative; padding: 34px 32px 30px; }
.hero .kicker {
  display: inline-block; background: var(--orange); color: #fff; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em; font-size: .75rem;
  padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}
.hero h1, .hero h2 { color: #fff; margin-top: 0; }
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
.hero .hand { color: var(--orange-soft); font-size: 1.6rem; display: block; margin: -6px 0 10px; }
.hero p { color: #f3e7ee; }
.hero a:not(.btn) { color: var(--orange-soft); }
.hero-photo { position: relative; min-height: 320px; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--plum) 0, rgba(74,31,61,0) 28%);
}
.hero .date-badge { position: absolute; left: -10px; bottom: 26px; z-index: 3; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 6px 0 18px; }

/* Big tear-off calendar date badge */
.date-badge {
  width: 150px; background: #fff; color: var(--plum); border-radius: 12px; text-align: center;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.5); transform: rotate(-4deg); overflow: hidden;
  font-family: var(--font-body);
}
.date-badge .mon { display: block; background: var(--orange); color: #fff; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .95rem; padding: 7px 4px; }
.date-badge .day { display: block; font-family: var(--font-display); font-size: 4.2rem; font-weight: 800; line-height: 1; padding: 8px 0 0; }
.date-badge .dow { display: block; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; color: var(--orange-deep); }
.date-badge .yr { display: block; font-size: .85rem; color: var(--muted); padding-bottom: 10px; }

/* Small date box on cards */
.date-box {
  flex: none; width: 70px; background: #fff; border: 2px solid var(--plum); border-radius: 10px;
  text-align: center; overflow: hidden; line-height: 1.1;
}
.date-box .mon { display: block; background: var(--plum); color: #fff; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; padding: 3px 0; }
.date-box .day { display: block; font-family: var(--font-display); font-size: 1.75rem; font-weight: 800; color: var(--plum); padding-top: 3px; }
.date-box .dow { display: block; font-size: .68rem; font-weight: 800; text-transform: uppercase; color: var(--orange-deep); letter-spacing: .06em; }
.date-box .yr { display: block; font-size: .68rem; color: var(--muted); padding-bottom: 4px; }

/* Countdown pill */
.countdown {
  display: inline-block; background: var(--orange-soft); color: var(--plum-deep);
  font-weight: 800; font-size: .8rem; border-radius: 999px; padding: 2px 10px; white-space: nowrap;
}
.countdown[hidden] { display: none; }
.is-today .countdown, .countdown.big.today { background: var(--orange); color: #fff; }
.is-soon .countdown { background: var(--orange); color: #fff; }
.countdown.big { font-size: 1rem; padding: 6px 14px; background: #fff; color: var(--plum); }
.is-today .countdown.big { background: var(--orange); color: #fff; }
.is-past .countdown { background: var(--line); color: var(--muted); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.tag {
  display: inline-block; background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px; padding: 3px 12px; font-size: .85rem; font-weight: 700;
}
.tags.light .tag { background: var(--note-orange); color: var(--plum-deep); border-color: transparent; }

.btn {
  display: inline-block; background: var(--orange); color: #fff; text-decoration: none;
  padding: 10px 18px; border-radius: 999px; font-weight: 800; font-size: .95rem;
  box-shadow: 0 3px 0 var(--orange-deep); transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 4px 0 var(--orange-deep); }
.btn.alt { background: #fff; color: var(--plum); box-shadow: 0 3px 0 var(--plum-deep); }
.btn.alt:hover { color: var(--plum); }
.btn.plum { background: var(--plum); color: #fff; box-shadow: 0 3px 0 var(--plum-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Event board: pinned notes */
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 26px 22px; margin-top: 18px; padding-top: 8px; }
.note-card {
  background: var(--note); border: 1px solid var(--line); border-radius: 4px; padding: 20px 18px 16px;
  box-shadow: var(--shadow); display: flex; gap: 14px; align-items: flex-start;
  transition: transform .15s ease;
}
.board > .note-card:nth-child(4n+1) { transform: rotate(-1.2deg); background: var(--note-yellow); }
.board > .note-card:nth-child(4n+2) { transform: rotate(.9deg); }
.board > .note-card:nth-child(4n+3) { transform: rotate(-.6deg); background: var(--note-orange); }
.board > .note-card:nth-child(4n+4) { transform: rotate(1.3deg); background: var(--note-plum); }
.board > .note-card:hover { transform: rotate(0) translateY(-2px); }
.note-card h3 { margin: 0 0 .2em; font-size: 1.15rem; }
.note-card h3 a { color: inherit; text-decoration: none; }
.note-card h3 a:hover { text-decoration: underline; }
.note-card p { margin: 0; font-size: .95rem; color: var(--muted); }
.note-card .icon { font-size: 1.5rem; line-height: 1; margin-right: 2px; }
.note-card .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 2px 0 6px; font-size: .85rem; color: var(--muted); font-weight: 700; }
.note-card.featured { border: 2px solid var(--orange); }
.note-card.is-past { opacity: .7; }

/* Framed photo cards (polaroid style) */
.photo-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 22px; }
.frame {
  margin: 0; background: #fff; padding: 12px 12px 14px; border-radius: 3px; box-shadow: var(--shadow);
  position: relative;
}
.frame:nth-child(odd) { transform: rotate(-1.5deg); }
.frame:nth-child(even) { transform: rotate(1.2deg); }
.frame::before {
  content: ""; position: absolute; top: -10px; left: 50%; width: 96px; height: 22px; transform: translateX(-50%) rotate(3deg);
  background: rgba(248, 220, 194, .85); box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.frame img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: 1px solid #eee; }
.frame figcaption { padding: 10px 4px 0; }
.frame figcaption .hand { display: block; font-size: 1.5rem; color: var(--plum); line-height: 1.1; }
.frame figcaption p { margin: 4px 0 0; font-size: .92rem; color: var(--muted); }

/* Day-of timeline */
.timeline { list-style: none; margin: 18px 0 0; padding: 0; counter-reset: step; }
.timeline li { position: relative; padding: 0 0 20px 70px; min-height: 56px; }
.timeline li::after {
  content: ""; position: absolute; left: 25px; top: 52px; bottom: 0; width: 4px;
  background: repeating-linear-gradient(var(--orange) 0 8px, transparent 8px 14px); border-radius: 2px;
}
.timeline li:last-child::after { display: none; }
.timeline .node {
  position: absolute; left: 0; top: 0; width: 54px; height: 54px; border-radius: 50%;
  background: #fff; border: 3px solid var(--plum); display: grid; place-items: center;
  font-size: 1.5rem; box-shadow: 0 3px 0 var(--plum-deep);
}
.timeline li:first-child .node { border-color: var(--orange); }
.timeline li:last-child .node { background: var(--plum); border-color: var(--plum); }
.timeline .when {
  display: inline-block; font-weight: 800; color: #fff; background: var(--orange);
  font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; border-radius: 4px; padding: 2px 8px; margin-top: 4px;
}
.timeline .what { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--plum); margin-top: 2px; }
.timeline p { margin: 4px 0 0; color: var(--muted); font-size: .96rem; max-width: 640px; }
.timeline.card-steps li .step-body {
  background: var(--note); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px 12px; box-shadow: var(--shadow);
}
.timeline.compact { columns: 2; column-gap: 28px; }
.timeline.compact li { break-inside: avoid; padding-bottom: 16px; padding-left: 60px; min-height: 48px; }
.timeline.compact .node { width: 44px; height: 44px; font-size: 1.2rem; }
.timeline.compact li::after { left: 20px; top: 44px; }
.timeline.compact li:nth-child(4)::after { display: none; }
.timeline.compact .what { font-size: 1.05rem; }

.schedule-board {
  background: var(--note); border: 1px solid var(--line); border-radius: 6px; padding: 26px 26px 10px;
  margin-top: 30px; box-shadow: var(--shadow);
}
.schedule-board h2 { margin-top: 0; }

/* Sponsor ad */
.sponsor-ad {
  position: relative; margin: 44px 0 10px; background: var(--plum-deep); color: #fff;
  border-radius: 14px; overflow: hidden; box-shadow: var(--shadow);
  display: grid; grid-template-columns: .95fr 1.05fr; border: 3px solid var(--orange);
}
.sponsor-ad .ad-label {
  position: absolute; top: 10px; right: 12px; z-index: 2; font-size: .66rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.35); border-radius: 3px; padding: 1px 6px;
}
.sponsor-ad .ad-photo { position: relative; min-height: 260px; }
.sponsor-ad .ad-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sponsor-ad .burst {
  position: absolute; left: 14px; bottom: 14px; width: 120px; height: 120px; display: grid; place-items: center;
  text-align: center; background: var(--orange); color: #fff; font-weight: 900; font-size: .74rem; line-height: 1.15;
  text-transform: uppercase; letter-spacing: .02em; transform: rotate(-10deg);
  clip-path: polygon(50% 0, 61% 12%, 76% 6%, 80% 21%, 95% 24%, 90% 39%, 100% 50%, 90% 61%, 95% 76%, 80% 79%, 76% 94%, 61% 88%, 50% 100%, 39% 88%, 24% 94%, 20% 79%, 5% 76%, 10% 61%, 0 50%, 10% 39%, 5% 24%, 20% 21%, 24% 6%, 39% 12%);
}
.sponsor-ad .burst span { display: block; padding: 0 22px; }
.sponsor-ad .ad-body { padding: 26px 26px 24px; background:
  linear-gradient(135deg, transparent 0 70%, rgba(217,102,31,.18) 70% 100%); }
.sponsor-ad .ad-eyebrow { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; color: var(--orange-soft); margin: 0 0 6px; }
.ad-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.ad-logo svg { width: 52px; height: 40px; flex: none; }
.ad-logo .name { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.6rem, 3.6vw, 2.2rem); line-height: .95; text-transform: uppercase; letter-spacing: .01em; }
.ad-logo .name small { display: block; font-family: var(--font-body); font-size: .72rem; letter-spacing: .3em; color: var(--orange-soft); font-weight: 800; margin-top: 4px; }
.sponsor-ad .ad-slogan { font-family: var(--font-hand); font-size: 1.7rem; color: var(--orange-soft); margin: 4px 0 12px; line-height: 1.1; }
.sponsor-ad ul { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; font-size: .92rem; }
.sponsor-ad li::before { content: "\2714"; color: var(--orange); margin-right: 7px; font-weight: 900; }
.sponsor-ad .ad-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.sponsor-ad .fine { font-size: .78rem; opacity: .7; margin: 12px 0 0; }

/* Calendar table */
.cal-wrap { background: var(--note); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); overflow: hidden; margin-top: 10px; }
.cal { width: 100%; border-collapse: collapse; }
.cal th, .cal td { text-align: left; padding: 12px 14px; border-bottom: 1px dashed var(--line); vertical-align: middle; }
.cal th { background: var(--plum); color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.cal td:first-child { font-weight: 700; color: var(--plum); }
.cal .ev-icon { display: inline-block; width: 1.6em; }
.cal tr.highlight td { background: #fff1e3; }
.cal tr.past td { color: var(--muted); }
.cal tr.past td:first-child { text-decoration: line-through; text-decoration-color: rgba(109,95,102,.5); font-weight: 600; }
.cal .rule { color: var(--muted); font-size: .9rem; }
.cal-legend { margin-top: 10px; color: var(--muted); font-size: .9rem; }

/* Panels & notes */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 30px; }
.panel { background: var(--note); border: 1px solid var(--line); border-radius: 6px; padding: 22px 20px 18px; box-shadow: var(--shadow); }
.panel h3 { margin-top: 0; }
.panel ul { margin: 0; padding-left: 1.2em; }
.panel li { margin-bottom: 5px; }
.panel.lined { background-image: repeating-linear-gradient(transparent 0 27px, rgba(74,31,61,.07) 27px 28px); }
.note {
  background: var(--note-plum); border-left: 6px solid var(--plum); border-radius: 6px;
  padding: 14px 18px; margin: 26px 0;
}
.note p:last-child { margin-bottom: 0; }

/* History / story block */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; margin-top: 16px; }

/* Sponsor page details */
.fact-list { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.fact-list dt { font-weight: 800; color: var(--plum); }
.fact-list dd { margin: 0; }
.milestones { list-style: none; margin: 0; padding: 0; }
.milestones li { display: grid; grid-template-columns: 58px 1fr; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.milestones li:last-child { border-bottom: 0; }
.milestones b { color: var(--orange-deep); font-family: var(--font-display); }

/* Footer */
footer { background: var(--plum-deep); color: #e9dfe5; font-size: .92rem; border-top: 6px solid var(--orange); }
footer .wrap { padding-top: 26px; padding-bottom: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
footer a { color: var(--orange-soft); }
footer strong { color: #fff; }
footer .sponsor { border-left: 4px solid var(--orange); padding-left: 14px; }
footer .small { opacity: .75; font-size: .82rem; grid-column: 1 / -1; margin: 0; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .hero-photo { min-height: 240px; order: -1; }
  .hero-photo::after { background: linear-gradient(0deg, var(--plum) 0, rgba(74,31,61,0) 45%); }
  .hero .date-badge { left: 18px; bottom: -34px; }
  .hero-body { padding-top: 46px; }
  .sponsor-ad { grid-template-columns: 1fr; }
  .sponsor-ad .ad-photo { min-height: 210px; }
  .story { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .site-header .wrap { padding-bottom: 16px; }
  .nav { gap: 2px; }
  .nav a { padding: 5px 9px; font-size: .88rem; }
  .hero-body { padding: 46px 20px 24px; }
  .hero .date-badge { width: 118px; }
  .date-badge .day { font-size: 3.2rem; }
  .two-col, footer .wrap { grid-template-columns: 1fr; }
  .board { grid-template-columns: 1fr; }
  .board > .note-card:nth-child(n) { transform: rotate(0); }
  .board > .note-card:nth-child(odd) { transform: rotate(-.6deg); }
  .board > .note-card:nth-child(even) { transform: rotate(.6deg); }
  .frame:nth-child(n) { transform: rotate(0); }
  .timeline.compact { columns: 1; }
  .timeline.compact li:nth-child(4)::after { display: block; }
  .timeline li { padding-left: 62px; }
  .timeline .node { width: 46px; height: 46px; font-size: 1.25rem; }
  .timeline li::after { left: 21px; top: 46px; }
  .schedule-board { padding: 22px 16px 6px; }
  .lead-note { padding: 18px 16px 16px; font-size: 1rem; }
  .sponsor-ad .ad-body { padding: 22px 18px; }
  .sponsor-ad ul { grid-template-columns: 1fr; }
  /* Calendar table becomes stacked rows */
  .cal thead { display: none; }
  .cal, .cal tbody, .cal tr, .cal td { display: block; width: 100%; }
  .cal tr { padding: 12px 14px; border-bottom: 1px dashed var(--line); }
  .cal td { border: 0; padding: 2px 0; }
  .cal td[data-label]::before { content: attr(data-label) ": "; font-weight: 800; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
  .cal tr.highlight { background: #fff1e3; }
  .cal tr.highlight td { background: transparent; }
}
html:not(.dates-live) .js-only { display: none; }
