/* events-near-me.org: "Show up" (DESIGN.md). Palette: coolors.co 5aa9e6-7fc8f8-f9f9f9-ffe45e-ff6392. */
:root {
  --blue: #5aa9e6;
  --sky: #7fc8f8;
  --paper: #f9f9f9;
  --sun: #ffe45e;
  --pink: #ff6392;

  --bg: #f9f9f9;
  --card: #ffffff;
  --ink: #1b2230;
  --ink-2: #4a5263;
  --muted: #6b7385;
  --line: #e6e8ee;
  --link: #1d6aad;
  --pink-ink: #c8285a;
  --btn: #1b2230;
  --btn-ink: #ffffff;
  --shadow: 0 1px 2px rgba(27, 34, 48, .06), 0 6px 20px rgba(27, 34, 48, .06);
  --foot: #1b2230;
  --foot-ink: #e9edf4;
  --foot-muted: #a7b0c2;
  --r: 16px;
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--link); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.01em; margin: 0; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--btn); color: var(--btn-ink); padding: 8px 14px; border-radius: 99px; z-index: 50; }
.skip:focus { left: 12px; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; border: 0; border-radius: 99px; background: var(--btn); color: var(--btn-ink); font: 700 15px/1 var(--font); padding: 14px 24px; text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(27, 34, 48, .18); }
.btn.big { font-size: 17px; padding: 17px 30px; }
.btn.small { padding: 11px 18px; font-size: 14px; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.textlink { font-weight: 700; color: var(--link); text-decoration: none; white-space: nowrap; background: none; border: 0; font-size: 15px; font-family: inherit; cursor: pointer; padding: 0; }
.textlink:hover { text-decoration: underline; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo svg { width: 38px; height: 38px; }
.logo b { font: 900 25px/1 var(--font); letter-spacing: -.035em; color: var(--pink-ink); }
.search { flex: 1; max-width: 520px; display: flex; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 99px; box-shadow: var(--shadow); padding: 5px 5px 5px 20px; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 400 15px/1.2 var(--font); padding: 9px 0; -webkit-appearance: none; appearance: none; }
.search input::-webkit-search-decoration { -webkit-appearance: none; }
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; }
.search:focus-within { border-color: var(--blue); }
.search button { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--btn); color: var(--btn-ink); cursor: pointer; }
.nav .links { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav .links a { white-space: nowrap; }
.nav .links a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav .links a:not(.btn):hover, .nav .links a[aria-current] { color: var(--link); }

/* Hero */
.hero { text-align: center; padding: 64px 0 56px; }
.hero h1 { font-size: clamp(36px, 6.2vw, 64px); font-weight: 800; letter-spacing: -.03em; line-height: 1.13; }
.hero h1 .ln { display: block; }
.chip { display: inline-grid; place-items: center; width: .82em; height: .82em; border-radius: .24em; vertical-align: -.08em; margin: 0 .05em; color: #1b2230; }
.chip svg { width: 60%; height: 60%; }
.chip.c1 { background: var(--sky); transform: rotate(-8deg); }
.chip.c2 { background: var(--sun); transform: rotate(7deg); }
.chip.c3 { background: var(--pink); transform: rotate(-5deg); }
.hero .lede { max-width: 580px; margin: 26px auto 34px; font-size: 18px; color: var(--ink-2); }

/* Section heads */
.section { padding: 44px 0; }
.shead { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.shead h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; letter-spacing: -.02em; }
.shead h2 em { font-style: normal; color: var(--link); }
.shead p { margin: 8px 0 0; color: var(--ink-2); max-width: 640px; }

/* Event cards */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 22px; }
.ev a { display: block; color: inherit; text-decoration: none; }
.ev .pic { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--sky); }
.ev .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.ev a:hover .pic img { transform: scale(1.04); }
.pill { position: absolute; left: 10px; top: 10px; z-index: 1; background: #fff; color: #1b2230; font: 700 12px/1 var(--font); padding: 6px 10px; border-radius: 99px; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.ev h3 { font-size: 18px; font-weight: 800; margin: 12px 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev a:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.ev .when { margin: 0; color: var(--ink-2); font-size: 14px; font-weight: 600; }
.ev .by { margin: 2px 0 0; color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.grid:not(.all) .ev.extra:not(.match) { display: none; }
.grid .ev[hidden] { display: none; }
.grid.more .ev:nth-child(n+5) { display: none; }

/* Placeholder art (cards without a picture, the empty state) */
.art { width: 100%; height: 100%; display: grid; place-items: center; position: relative; overflow: hidden; color: #1b2230; }
.art svg { width: 30%; height: auto; position: relative; z-index: 1; }
.art.t1 { background: var(--sky); }
.art.t2 { background: var(--sun); }
.art.t3 { background: var(--pink); }
.art.t4 { background: var(--blue); }
.art::before, .art::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .3); }
.art::before { width: 70%; aspect-ratio: 1; left: -18%; bottom: -40%; }
.art::after { width: 36%; aspect-ratio: 1; right: -8%; top: -14%; background: rgba(255, 255, 255, .22); }
.grid .ev:nth-child(4n+1) .art { background: var(--sky); }
.grid .ev:nth-child(4n+2) .art { background: var(--sun); }
.grid .ev:nth-child(4n+3) .art { background: var(--pink); }
.grid .ev:nth-child(4n+4) .art { background: var(--blue); }
.soon .when { color: var(--muted); }
.soon + .filter-note { margin-top: 20px; }
.filter-note { margin: -6px 0 22px; color: var(--ink-2); font-weight: 600; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.filter-note button { border: 1.5px solid var(--line); background: var(--card); color: var(--ink); border-radius: 99px; padding: 7px 12px; font: 600 13px/1 var(--font); cursor: pointer; }
.nomatch { padding: 26px; border: 1.5px dashed var(--line); border-radius: var(--r); color: var(--ink-2); text-align: center; margin: 0; }
.more-row { display: flex; justify-content: center; margin-top: 30px; }

.signup label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.signup .row { display: flex; gap: 10px; flex-wrap: wrap; }
.signup input[type=email] { flex: 1 1 220px; min-width: 0; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 99px; padding: 14px 20px; font: 400 16px/1.2 var(--font); }
.signup input[type=email]:focus { outline: none; border-color: var(--blue); }
.signup .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Join */
.join { padding: 20px 0 44px; }
.join .card { background: var(--card); border-radius: 28px; box-shadow: var(--shadow); padding: 44px 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; border-top: 8px solid var(--pink); }
.join h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -.025em; margin-bottom: 10px; }
.join p { color: var(--ink-2); margin: 0; }

/* Categories */
.cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cat a { width: 100%; text-decoration: none; text-align: left; background: var(--card); color: var(--ink); border: 0; border-radius: var(--r); box-shadow: var(--shadow); padding: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; font: inherit; border-bottom: 6px solid var(--c); transition: transform .15s ease; }
.cat a:hover { transform: translateY(-2px); }
.cat b { font-size: 16px; font-weight: 800; line-height: 1.25; }
.cat .blob { width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--c); display: grid; place-items: center; color: #1b2230; }
.cat .blob svg { width: 22px; height: 22px; }

/* Footer */
.foot { background: var(--foot); color: var(--foot-ink); border-radius: 32px 32px 0 0; margin-top: 40px; padding: 44px 0 36px; }
.foot .top { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-bottom: 26px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.foot .flinks { display: flex; gap: 22px; flex-wrap: wrap; }
.foot .flinks a { color: var(--foot-muted); text-decoration: none; font-weight: 600; }
.foot .flinks a:hover { color: #fff; text-decoration: underline; }
.foot a { color: var(--foot-ink); }
.foot .logo b { color: var(--pink); }
.foot .base { padding-top: 24px; display: grid; gap: 10px; color: var(--foot-muted); font-size: 14px; }
.foot .base p { margin: 0; }
.foot .buzzz a { color: var(--sun); font-weight: 800; letter-spacing: .04em; text-decoration: none; }
.foot .signup { max-width: 540px; margin: 4px 0 6px; }
.foot .signup label { color: var(--foot-ink); }
.foot .signup input[type=email] { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .22); color: #fff; }
.foot .signup .btn { background: var(--pink); color: #1b2230; }

/* Article */
.ahead { padding: 30px 0 28px; border-bottom: 1px solid var(--line); background: var(--card); }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--link); text-decoration: underline; }
.ahead h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; letter-spacing: -.025em; max-width: 900px; }
.ahead .dek { font-size: 19px; color: var(--ink-2); margin: 14px 0 0; max-width: 760px; }
.posted { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.abody { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; padding: 36px 20px 20px; align-items: start; }
.figure { margin: 0 0 30px; }
.figure img { width: 100%; height: auto; border-radius: 20px; background: var(--sky); }
.figure figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.body { font-size: 18px; line-height: 1.7; }
.body h2 { font-size: 26px; font-weight: 800; margin: 38px 0 12px; }
.body h3 { font-size: 20px; font-weight: 800; margin: 26px 0 8px; }
.body p, .body ul, .body ol { margin: 0 0 18px; }
/* The facts readers scan for, in **bold** (writerRules in sites.json; Cara, 2026-11-11: "highlight the important information in blue"): a sky-blue marker under dark text, so it stays easy to read. */
.body strong { font-weight: 700; color: var(--ink); background: linear-gradient(transparent 52%, rgba(127, 200, 248, .6) 52%); -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 1px; }
.body strong a, .body a strong { color: var(--link); }
.body img { border-radius: 14px; margin: 8px 0; }
.body blockquote { margin: 0 0 18px; padding: 4px 20px; border-left: 4px solid var(--pink); color: var(--ink-2); }
.side { position: sticky; top: 96px; display: grid; gap: 16px; }
.box { background: var(--card); border-radius: 20px; box-shadow: var(--shadow); padding: 22px 24px; }
.box h2 { font-size: 16px; font-weight: 800; margin-bottom: 14px; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.facts li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.facts li > svg { width: 20px; height: 20px; color: var(--ink-2); margin-top: 2px; flex: none; }
.facts b { display: block; font-weight: 700; }
.facts span { color: var(--muted); }
.toc { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: s; }
.toc a { display: flex; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; line-height: 1.35; }
.toc a::before { counter-increment: s; content: counter(s); flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--sky); color: #1b2230; font: 800 12px/24px var(--font); text-align: center; }
.toc a:hover { color: var(--link); }
.panel { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.panel h2 { font-size: 20px; font-weight: 800; margin-bottom: 12px; }
.panel ol, .panel ul { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.panel small { color: var(--muted); }

/* Category pages */
.chead { border-bottom: 6px solid var(--c); }
.ctitle { display: flex; align-items: center; gap: 16px; }
.ctitle .blob { width: 58px; height: 58px; flex: none; border-radius: 16px; background: var(--c); display: grid; place-items: center; color: #1b2230; transform: rotate(-4deg); }
.ctitle .blob svg { width: 30px; height: 30px; }
/* Free resource tiles at the top of a category page (Cara, 2026-11-11). Colors cycle through the palette. */
.tiles-sec { padding-bottom: 8px; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 18px; }
.tile { --t: var(--sky); }
.tile:nth-child(4n+2) { --t: var(--sun); }
.tile:nth-child(4n+3) { --t: var(--pink); }
.tile:nth-child(4n+4) { --t: var(--blue); }
.tile a { height: 100%; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); background: var(--card); border-radius: 22px; box-shadow: var(--shadow); padding: 22px 22px 18px; border-top: 8px solid var(--t); transition: transform .15s ease; }
.tile a:hover { transform: translateY(-2px); }
.tile .kick { font-size: 21px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.tile a:hover .kick { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.tile .name { font-size: 15px; font-weight: 700; color: var(--ink-2); }
.tile .txt { font-size: 15px; color: var(--muted); line-height: 1.5; }
.tile .host { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--link); }
.tile .host svg { width: 13px; height: 13px; flex: none; }
.tnote { margin: 16px 0 0; font-size: 14px; color: var(--muted); }

/* About */
.prose { max-width: 780px; }
.prose h2 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin: 40px 0 16px; }
.prose p { font-size: 18px; color: var(--ink-2); }
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.rules li { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 18px 22px; border-left: 6px solid var(--c, var(--blue)); }
.rules b { display: block; font-size: 17px; }
.rules span { color: var(--ink-2); }

@media (max-width: 1020px) {
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .abody { grid-template-columns: 1fr; }
  .side { position: static; }
  .nav .wrap, .nav .links { gap: 16px; }
}
/* With Free Tools in the menu (Cara, 2026-11-11), the search moves to its own row below 900px so the links fit. */
@media (max-width: 900px) {
  .nav .wrap { flex-wrap: wrap; height: auto; padding-block: 12px; gap: 12px 16px; }
  .search { order: 3; max-width: none; flex-basis: 100%; }
}
@media (max-width: 760px) {
  .join .card { grid-template-columns: 1fr; padding: 28px 22px; gap: 18px; }
  .nav .wrap { flex-wrap: wrap; height: auto; padding-block: 12px; gap: 12px 16px; }
  .search { order: 3; max-width: none; flex-basis: 100%; }
    .nav .links { gap: 14px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .ev h3 { font-size: 16px; }
  .hero { padding: 40px 0 36px; }
  .shead { flex-wrap: wrap; }
  html { scroll-padding-top: 140px; }
}
@media (max-width: 560px) {
  /* Favorites stay big pictures on phones, two across (Cara, 2026-11-11). */
  .grid.favs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  .grid.favs .ev { display: block; }
  .grid.favs .ev .pic { aspect-ratio: 4 / 3; border-radius: var(--r); }
  .grid.favs .ev h3 { margin: 10px 0 0; font-size: 16px; }
  .tiles { grid-template-columns: 1fr; gap: 14px; }
  .tile .kick { font-size: 19px; }
}
@media (max-width: 480px) {
  .grid { gap: 18px; }
  .ev > a, .soon .ev { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 4px 14px; align-items: start; }
  .ev .pic { grid-row: span 3; aspect-ratio: 1 / 1; border-radius: 12px; }
  .ev .pill { display: none; }
  .ev h3 { margin: 0; font-size: 16px; }
  .art svg { width: 44%; }
  .cats { gap: 12px; }
  .cat a { flex-direction: column-reverse; align-items: flex-start; height: 100%; padding: 16px; }
  .nav .links a:not(.btn) { display: none; }
  .logo b { font-size: 22px; }
  .grid { grid-template-columns: 1fr; }
    .search .bar, }

/* Free Tools tiles (Cara, 2026-11-11): the form's first page on a soft desk, its name, one line and the formats.
   Used on the home page, the Free Tools page and under each form. */
.toolcards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.toolcard a { height: 100%; display: flex; flex-direction: column; gap: 6px; color: var(--ink); text-decoration: none; }
.toolcard .sheet { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 18px; background: #e9edf3; padding: 18px 18px 0; margin-bottom: 8px; }
.toolcard .sheet img { display: block; width: 100%; height: auto; border-radius: 3px 3px 0 0; box-shadow: 0 1px 2px rgba(27, 34, 48, .08), 0 8px 22px rgba(27, 34, 48, .12); transition: transform .2s ease; }
.toolcard a:hover .sheet img { transform: translateY(-4px); }
.toolcard h2, .toolcard h3 { font-size: 18px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.toolcard a:hover h2, .toolcard a:hover h3 { color: var(--link); }
.toolcard .sum { color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.toolcard .fmt { margin-top: auto; padding-top: 4px; color: var(--muted); font-size: 13px; font-weight: 600; }
@media (max-width: 1020px) { .toolcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .toolcards { grid-template-columns: 1fr; } }
