/* Texas Comicon — site styles */

:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-2: #f2ede4;
  --ink: #14181f;
  --ink-2: #4a5160;
  --ink-3: #6b7280;
  --line: #e4ddd1;
  --brand: #d9480f;
  --brand-ink: #ffffff;
  --brand-soft: #fff0e6;
  --navy: #0f1b2d;
  --gold: #f5b700;
  --ok: #1f7a4d;   --ok-bg: #e3f4ea;
  --warn: #8a5a00; --warn-bg: #fdf1d4;
  --cat-comic: #d9480f;
  --cat-anime: #c2255c;
  --cat-horror: #7b2cbf;
  --cat-gaming: #0b7285;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(20, 24, 31, .06), 0 4px 16px rgba(20, 24, 31, .06);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --wrap: 1180px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1117;
    --surface: #151b24;
    --surface-2: #1c2430;
    --ink: #eef1f5;
    --ink-2: #b7bfcc;
    --ink-3: #8b95a5;
    --line: #2a3340;
    --brand: #ff7a3d;
    --brand-ink: #14181f;
    --brand-soft: #2a1a12;
    --ok: #6fd3a0;   --ok-bg: #12291f;
    --warn: #f3c561; --warn-bg: #2b2311;
    --cat-comic: #ff8a50;
    --cat-anime: #f06595;
    --cat-horror: #b197fc;
    --cat-gaming: #3bc9db;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 16px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1117;
  --surface: #151b24;
  --surface-2: #1c2430;
  --ink: #eef1f5;
  --ink-2: #b7bfcc;
  --ink-3: #8b95a5;
  --line: #2a3340;
  --brand: #ff7a3d;
  --brand-ink: #14181f;
  --brand-soft: #2a1a12;
  --ok: #6fd3a0;   --ok-bg: #12291f;
  --warn: #f3c561; --warn-bg: #2b2311;
  --cat-comic: #ff8a50;
  --cat-anime: #f06595;
  --cat-horror: #b197fc;
  --cat-gaming: #3bc9db;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 16px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

/* ----- Base ----- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.muted { color: var(--ink-3); }
.fine { font-size: .82rem; color: var(--ink-3); margin: .75em 0 0; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 68ch; }

/* ----- Header ----- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.2rem;
  color: var(--ink); text-decoration: none; letter-spacing: -.01em;
}
.brand b { color: var(--brand); font-weight: 800; }
.brand-mark { width: 26px; height: 26px; color: var(--brand); }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a {
  color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem;
  padding: 6px 10px; border-radius: 999px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.nav .nav-cta { color: var(--brand); border: 1px solid currentColor; }
.nav .nav-cta:hover { background: var(--brand); color: var(--brand-ink); }
@media (max-width: 520px) {
  .header-inner { padding-top: 8px; padding-bottom: 8px; }
  .nav { width: 100%; justify-content: space-between; }
  .nav a { padding: 6px 8px; font-size: .9rem; }
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 18px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  font: 600 .95rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.btn:hover { border-color: var(--ink-3); transform: translateY(-1px); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { border-color: var(--brand); filter: brightness(1.07); }
.btn-small { padding: 8px 14px; font-size: .88rem; }
.linklike { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; text-decoration: underline; cursor: pointer; }

/* ----- Hero ----- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 400px at 85% -10%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%),
    radial-gradient(800px 300px at -10% 110%, color-mix(in srgb, var(--gold) 18%, transparent), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero-inner { padding-top: clamp(40px, 8vw, 96px); padding-bottom: clamp(40px, 7vw, 80px); }
.hero h1 { max-width: 20ch; }
.hl { color: var(--brand); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-2); background: var(--surface); border: 1px solid var(--line);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }

/* ----- Sections ----- */
.section { padding-top: clamp(32px, 5vw, 56px); }
.section-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-h { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin-bottom: 18px; }
.more { font-weight: 600; text-decoration: none; white-space: nowrap; }
.page-head { padding-top: clamp(28px, 5vw, 56px); padding-bottom: 20px; }
.crumbs { font-size: .88rem; color: var(--ink-3); margin-bottom: 12px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.crumbs span { margin: 0 4px; }

/* ----- Cards ----- */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.grid > .ad { grid-column: 1 / -1; }
.card {
  display: flex; gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow);
  transition: transform .15s ease, border-color .15s ease;
  position: relative;
}
.card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.card.is-sponsored { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), var(--shadow); }
.card-date {
  flex: 0 0 62px; align-self: flex-start;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--surface-2); border-radius: var(--radius-sm); padding: 8px 4px;
  font-family: var(--font-display); line-height: 1.05;
}
.cd-m { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); }
.cd-d { font-size: 1.55rem; font-weight: 800; }
.cd-y { font-size: .72rem; color: var(--ink-3); }
.card-body { min-width: 0; flex: 1; }
.card-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 0 0 6px; font-size: .8rem; color: var(--ink-3); }
.card-title { font-size: 1.12rem; margin: 0 0 4px; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card-title a:hover { color: var(--brand); }
.card-where { font-size: .88rem; color: var(--ink-2); margin: 0 0 4px; }
.card-when { font-size: .88rem; color: var(--ink-2); margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.card-desc { font-size: .92rem; color: var(--ink-2); margin: 0; }
.post-card .card-title { font-size: 1.2rem; }

.tag {
  display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; color: var(--c, var(--ink-2));
  background: color-mix(in srgb, var(--c, var(--ink-3)) 13%, transparent);
}
.tag-comic { --c: var(--cat-comic); }
.tag-anime { --c: var(--cat-anime); }
.tag-horror { --c: var(--cat-horror); }
.tag-gaming { --c: var(--cat-gaming); }
.tag-sponsored { --c: var(--warn); background: var(--warn-bg); }

.pill { display: inline-block; font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.pill-ok { color: var(--ok); background: var(--ok-bg); }
.pill-warn { color: var(--warn); background: var(--warn-bg); }
.pill-muted { color: var(--ink-3); background: var(--surface-2); }

/* ----- Regions & types ----- */
.regions, .types { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.region, .type {
  display: flex; flex-direction: column; gap: 2px;
  padding: 18px; border-radius: var(--radius); text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  transition: border-color .15s ease, transform .15s ease;
}
.region strong, .type strong { font-family: var(--font-display); font-size: 1.08rem; }
.region span, .type span { color: var(--ink-3); font-size: .88rem; }
.region:hover, .type:hover { border-color: var(--brand); transform: translateY(-2px); }
.type { border-left: 4px solid var(--c); }
.type-comic { --c: var(--cat-comic); }
.type-anime { --c: var(--cat-anime); }
.type-horror { --c: var(--cat-horror); }
.type-gaming { --c: var(--cat-gaming); }

/* ----- Filters ----- */
.filters {
  display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: flex-end;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin-bottom: 20px;
}
.filters fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.filters legend { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-bottom: 6px; padding: 0; }
.chip-toggle { position: relative; }
.chip-toggle input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip-toggle {
  display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: .88rem; font-weight: 500;
  border: 1px solid var(--line); color: var(--ink-2); cursor: pointer; user-select: none;
}
.chip-toggle:has(input:checked) { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip-toggle:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.filters select {
  font: inherit; font-size: .9rem; padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.filter-count { margin: 0 0 0 auto; font-size: .9rem; color: var(--ink-3); }
.filter-count span { font-weight: 700; color: var(--ink); }
.empty { padding: 24px 0; color: var(--ink-2); }

/* ----- Convention page ----- */
.con-hero { background: var(--surface); border-bottom: 1px solid var(--line); padding: clamp(24px, 4vw, 48px) 0 28px; }
.con-hero h1 { margin-bottom: .3em; }
.con-facts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin: 24px 0; }
.fact { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; }
.fact-k { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.fact-v { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; }
.fact-s { font-size: .86rem; color: var(--ink-2); }
.con-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 0; }

.con-layout { display: grid; gap: 32px; padding-top: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) {
  .con-layout { grid-template-columns: minmax(0, 1fr) 320px; }
  .con-side { position: sticky; top: 84px; align-self: start; }
}
.con-side { display: flex; flex-direction: column; gap: 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.panel-h { font-size: 1rem; margin-bottom: 10px; }
.panel p { font-size: .92rem; color: var(--ink-2); }
.panel-claim { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.links a {
  display: block; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--bg);
  border: 1px solid var(--line); text-decoration: none; font-size: .88rem; font-weight: 500; color: var(--ink);
}
.links a:hover { border-color: var(--brand); color: var(--brand); }
.links li:first-child { grid-column: 1 / -1; }
.chips { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: .85rem; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.related { padding-top: 40px; }

.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li { display: flex; flex-direction: column; padding: 8px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.mini-list li:first-child { border-top: 0; }
.mini-list a { font-weight: 600; text-decoration: none; color: var(--ink); }
.mini-list a:hover { color: var(--brand); }
.mini-list span { color: var(--ink-3); font-size: .84rem; }

/* ----- Prose ----- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin-bottom: .4em; }
.prose code { font-size: .88em; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
.seo-copy { padding-bottom: 8px; }
.region-copy { padding-top: 32px; }
.post-meta { color: var(--ink-3); font-size: .9rem; }
.disclosure { background: var(--warn-bg); color: var(--warn); padding: 10px 14px; border-radius: var(--radius-sm); font-size: .9rem; max-width: 72ch; }

.table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 1em 0 1.5em; display: block; overflow-x: auto; }
.table th, .table td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.table td:first-child { white-space: nowrap; }

/* ----- Calendar ----- */
.month-h { font-size: 1.15rem; margin: 28px 0 8px; color: var(--brand); }
.month-h:first-child { margin-top: 0; }
.cal { list-style: none; margin: 0 0 8px; padding: 0; }
.cal-row {
  display: grid; gap: 4px 14px; align-items: center;
  grid-template-columns: 1fr auto;
  padding: 12px 0; border-top: 1px solid var(--line);
}
.cal-date { font-size: .86rem; color: var(--ink-3); grid-column: 1 / -1; }
.cal-name { font-weight: 600; color: var(--ink); text-decoration: none; }
.cal-name:hover { color: var(--brand); }
.cal-where { display: none; color: var(--ink-2); font-size: .9rem; }
@media (min-width: 720px) {
  .cal-row { grid-template-columns: 170px 1fr 140px auto; }
  .cal-date { grid-column: auto; }
  .cal-where { display: block; }
}
.cal-row.is-past { display: none; }
.month-h.is-empty { display: none; }

/* ----- Ads ----- */
.ad { margin: 24px 0; text-align: center; }
.ad-label { display: block; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.ad-leaderboard { margin: 28px auto; }
main > .ad-leaderboard { max-width: var(--wrap); padding: 0 16px; }
.house-ad {
  display: flex; flex-direction: column; gap: 4px; align-items: center;
  padding: 18px; border: 1px dashed var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink-2); background: var(--surface);
}
.house-ad strong { font-family: var(--font-display); color: var(--ink); font-size: 1.05rem; }
.house-cta { color: var(--brand); font-weight: 600; font-size: .9rem; }
.house-ad:hover { border-color: var(--brand); }
.con-side .ad { margin: 0; }

/* ----- Advertise ----- */
.offers { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin: 1em 0 2em; }
.offer { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.offer h3 { margin-top: 0; color: var(--brand); }
.offer p { margin: 0; font-size: .94rem; color: var(--ink-2); }


.pager { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; color: var(--ink-3); }

/* ----- Footer ----- */
.site-footer { margin-top: 72px; background: var(--navy); color: #c9d1dd; padding: 48px 0 24px; }
.site-footer a { color: #e8edf4; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.brand-footer { color: #fff; margin-bottom: 8px; }
.brand-footer b { color: #ff7a3d; }
.site-footer .muted { color: #9aa6b8; font-size: .9rem; }
.footer-h { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #9aa6b8; font-family: var(--font-body); font-weight: 600; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .94rem; }
.footer-legal { border-top: 1px solid #23324a; margin-top: 32px; padding-top: 18px; font-size: .8rem; color: #8592a6; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* ----- Ended / claimed states ----- */
[data-upcoming] .is-past { display: none !important; }
/* Cards carry both date variants; .is-live shows the upcoming dates.
   site.js drops .is-live once an edition's end date passes. */
.card .when-live, .card.is-live .when-tba { display: none; }
.card.is-live .when-live { display: contents; }
.card-when .when-tba, .card.is-live .card-when .when-live { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.card.is-live .card-when .when-tba { display: none; }
.card-date .when-tba { display: contents; }
.tag-verified { --c: var(--ok); background: var(--ok-bg); }
.ended-note {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  background: var(--warn-bg); color: var(--warn); border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: .92rem; margin: 0 0 18px;
}
.ended-note a { color: inherit; font-weight: 600; }
.panel-verified { background: var(--ok-bg); border-color: color-mix(in srgb, var(--ok) 30%, var(--line)); }
.panel-sponsor .fine { margin-top: 10px; }
.panel-sponsor .panel-h a { color: var(--ink); }
.work-with-us { padding-top: 40px; }
.disclaimer { margin-bottom: 16px; }
.cta-pair { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.cta-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.cta-box:first-child { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.cta-box h2 { font-size: 1.25rem; }
.cta-box p { color: var(--ink-2); }
.contact-actions { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin: 1em 0; }
.contact-action { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: var(--ink); }
.contact-action strong { font-family: var(--font-display); color: var(--brand); }
.contact-action span { font-size: .9rem; color: var(--ink-2); }
.contact-action:hover { border-color: var(--brand); }

/* ----- Outreach (internal) ----- */
.outreach .wrap { max-width: 1440px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.outreach-table { display: table; margin: 0; font-size: .86rem; }
.outreach-table th, .outreach-table td { padding: 10px 12px; }
.outreach-table td:first-child { white-space: normal; color: var(--ink-3); }
.outreach-table td.note { min-width: 220px; color: var(--ink-2); }
.outreach-table tbody tr:hover { background: var(--surface-2); }
