@import url('https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@400;600&display=swap');

:root {
  --red: #ff1e00;
  --ink: #111;
  --paper: #fffdf8;
  --mute: #6b6b6b;
  --ice: #cfe9f2;
  --bg: var(--paper);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, -apple-system, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-size: 1.05rem;
  overflow-x: hidden;
}
a { color: var(--red); }

h1, h2, h3, .mark, .big {
  font-family: Anton, Impact, "Arial Narrow", sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
}
h1 { font-size: clamp(2.6rem, 9vw, 6rem); }
h2 { font-size: clamp(1.8rem, 5vw, 3rem); color: var(--red); margin-top: 3.5rem; }
h3 { font-size: 1.2rem; margin-top: 1.5rem; }
p { margin: 0.6rem 0; }

/* header used by history + admin */
.mast { padding: 2.5rem 1.5rem 1rem; border-bottom: 4px solid var(--red); }
.mark { font-size: 3rem; }
.edition { color: var(--mute); margin: 0.2rem 0 0; }

main { max-width: 44rem; margin: 0 auto; padding: 1.5rem 1.5rem 4rem; }
main.wide { max-width: 64rem; }

/* hero */
.hero {
  text-align: center;
  padding: 3rem 1.5rem 2rem;
  position: relative;
}
.hero .logo { width: min(62vw, 300px); height: auto; display: block; margin: 0 auto; }
.hero .logo .ring { font-family: Anton, Impact, sans-serif; font-size: 30px; letter-spacing: 0.06em; fill: var(--ink); }
.hero h1 { margin-top: 1rem; color: var(--red); }
.hero .sub { font-size: 1.15rem; margin-top: 0.4rem; }
.cta {
  display: inline-block;
  margin-top: 1.5rem;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-family: Anton, Impact, sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  padding: 0.7rem 1.6rem;
  text-transform: uppercase;
  transform: rotate(-2deg);
  transition: transform 120ms ease;
}



dl { margin: 0; }
dt { color: var(--mute); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.9rem; }
dd { margin: 0; }

table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.45rem 0.5rem 0.45rem 0; border-bottom: 1px solid #ddd; vertical-align: top; }
th { color: var(--mute); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
td.icicle { font-family: Anton, Impact, sans-serif; font-size: 1.15rem; }




blockquote { margin: 1.2rem 0 0; padding-left: 1rem; border-left: 4px solid var(--red); font-style: italic; }



.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 0.5rem; margin-top: 1rem; }
.grid img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.warn { color: #b3541e; border: 1px solid #b3541e; padding: 0.5rem 0.75rem; }
nav { margin: 1rem 0; }
pre { white-space: pre-wrap; font-size: 0.85rem; color: var(--mute); }

footer { text-align: center; padding: 2rem 1.5rem 3rem; color: var(--mute); font-size: 0.9rem; border-top: 4px solid var(--red); }


.count { color: var(--mute); margin-top: 1rem; }
ul { padding-left: 1.2rem; }

.mapwrap { position: relative; margin-top: 1.2rem; padding: 10px; background: linear-gradient(135deg, #f4fbfd, #a9d3e0 30%, #ffffff 50%, #bfe3ee 70%, #eaf6fb); box-shadow: 0 0 0 1px #8fc1cf, 0 6px 24px rgba(120, 180, 200, 0.35); }
.mapwrap::after { content: ""; position: absolute; inset: 10px; pointer-events: none; z-index: 500; box-shadow: inset 0 0 28px 6px rgba(226, 244, 250, 0.95); }
.map { width: 100%; height: 62vh; min-height: 340px; max-height: 620px; }
.mapbar { display: flex; gap: 0.5rem; align-items: center; padding: 0.5rem 0 0; font-size: 0.85rem; color: #35606e; }
.mapwrap.full .mapbar { padding: 0.5rem; background: #fff; }
.mapbar button { font: 600 0.85rem Inter, sans-serif; background: var(--ink); color: #fff; border: 0; padding: 0.45rem 0.8rem; cursor: pointer; }
.mapbar button:hover { background: var(--red); }
.mapwrap.full { position: fixed; inset: 0; z-index: 1000; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mapwrap.full::after { inset: 0; }
.mapwrap.full .map { flex: 1; height: auto; max-height: none; }
body.noscroll { overflow: hidden; }
.pin { background: var(--ink); color: #fff; font: 700 11px/22px Inter, sans-serif; text-align: center; border-radius: 4px; }
.cues { padding-left: 1.4rem; margin: 1rem 0 0; }
.cues li { margin: 0.4rem 0; }
.km { background: var(--ink); color: #fff; border-radius: 50%; font: 700 11px/26px Inter, sans-serif; text-align: center; }
.leaflet-container { font-family: inherit; }
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .hero { padding: 2rem 1rem 1rem; }
  .hero .logo { width: min(70vw, 260px); }
  main { padding: 1rem 1rem 3rem; }
  h2 { margin-top: 2.5rem; }
  table { font-size: 0.9rem; }
  td.icicle { font-size: 1.05rem; }
  .charter p { font-size: 2rem; }
}

/* Invitations and host desk */
[hidden] { display: none !important; }
body { -webkit-font-smoothing: antialiased; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.topnav { max-width: 76rem; margin: auto; padding: 1.25rem 2rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-bottom: 1px solid #dedbd5; font-size: .85rem; }
.topnav a { text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; }
.wordmark { font-family: Anton, Impact, sans-serif; font-size: 1.7rem; gap: .75rem; }
.wordmark span { font-family: Inter, sans-serif; font-size: .65rem; letter-spacing: .13em; color: var(--ink); }
.eyebrow { font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.hero-actions { display: flex; justify-content: center; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin: 1.5rem 0; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .8rem 1.2rem; border: 0; border-radius: 4px; background: var(--red); color: white; font: 600 .95rem Inter, sans-serif; cursor: pointer; text-decoration: none; transition: background-color 150ms ease, transform 150ms ease; }
.button:hover { background: #cb1800; }
.button:active, .small-button:active { transform: scale(.96); }
.button:disabled { opacity: .55; cursor: wait; }
.button.secondary { background: var(--ink); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: .9rem; font-weight: 600; }
.invite-layout { max-width: 76rem; display: grid; grid-template-columns: 1.15fr 1fr; gap: 5rem; padding: 5rem 2rem 6rem; align-items: start; }
.invite-intro h1 { color: var(--red); font-size: clamp(3.5rem, 6.7vw, 6.6rem); margin: 1.5rem 0; }
.lead { font-size: 1.15rem; }
.event-ticket { display: grid; grid-template-columns: 1fr 1.3fr; margin: 2.5rem 0 1.5rem; border-top: 3px solid var(--ink); border-bottom: 1px solid #d5d2cb; padding: 1.5rem 0; gap: 1.5rem; }
.event-ticket > div { display: flex; flex-direction: column; }
.event-ticket > div + div { padding-left: 1.5rem; border-left: 1px dashed #bab6ae; }
.event-ticket strong { font: 2.8rem Anton, Impact, sans-serif; }
.event-ticket span { font-size: .8rem; }
.event-ticket b { font-size: 1.25rem; }
.event-ticket b:not(:first-child) { margin-top: .6rem; }
.form-card { padding: 2rem; background: white; border-radius: 8px; box-shadow: 0 0 0 1px rgba(0,0,0,.07), 0 8px 24px rgba(0,0,0,.04); }
.form-card h2 { margin: .5rem 0 1rem; color: var(--ink); font-size: 2.5rem; }
.form-card label:not(.choices label), .guest-section > label { display: block; font-weight: 600; font-size: .85rem; margin: 1.25rem 0 .5rem; }
input, select, textarea { font: inherit; color: inherit; max-width: 100%; }
input:not([type=radio]), select, textarea { width: 100%; border: 1px solid #c9c6c0; background: var(--paper); border-radius: 4px; padding: .75rem; min-height: 46px; }
textarea { resize: vertical; }
fieldset { padding: 0; border: 0; margin: 1.5rem 0; min-width: 0; }
legend { font-weight: 600; font-size: .85rem; margin-bottom: .6rem; }
.choices { display: flex; flex-direction: column; gap: .5rem; }
.choices label { display: flex; align-items: center; gap: .6rem; min-height: 48px; border-radius: 4px; padding: .65rem; background: var(--paper); border: 1px solid #dedbd5; cursor: pointer; }
.choices label:has(input:checked) { border-color: var(--red); background: #fff0e9; }
input[type=radio] { accent-color: var(--red); width: 18px; height: 18px; }
.form-card .button { width: 100%; margin-top: 1.25rem; }
.optional, .fine { font-weight: 400; color: var(--mute); font-size: .75rem; }
.fine { margin-top: 1rem; }
:focus-visible { outline: 3px solid #007fa3; outline-offset: 4px; }
.success-mark { font-size: 3rem; color: #27653f; margin-top: 1rem; }
.login-card { max-width: 30rem; margin: 2rem 0; }
.host-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 1.5rem 0; }
.small-button { min-height: 40px; font: 600 .8rem Inter, sans-serif; border: 1px solid #c9c6c0; padding: .5rem .8rem; border-radius: 4px; background: white; cursor: pointer; transition: transform 150ms ease; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 2rem 0; }
.stat { border-top: 3px solid var(--red); padding: 1rem 0; }
.stat strong { display: block; font: 3rem Anton, Impact, sans-serif; font-variant-numeric: tabular-nums; }
.stat span { color: var(--mute); font-size: .8rem; }
.host-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.share-card { background: var(--ice); }
.guest-section h2 { margin: 2rem 0 1rem; }
.guest-section select { max-width: 18rem; }
.guest-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid #dedbd5; padding: 1.5rem 0; }
.guest-row h3 { margin: 0; font-family: Inter, sans-serif; text-transform: none; font-weight: 600; font-size: 1rem; }
.guest-details { min-width: 0; overflow-wrap: anywhere; }
.guest-row button { flex-shrink: 0; }
.guest-notes { white-space: pre-wrap; font-size: .85rem; color: var(--mute); }
.response { font-size: .85rem; }
.response.yes { color: #27653f; }
.response.maybe { color: #906000; }
.empty-state { padding: 2rem 0; color: var(--mute); }
.count { font-variant-numeric: tabular-nums; }
@media (max-width: 800px) { .invite-layout { grid-template-columns: 1fr; gap: 2.5rem; padding: 2.5rem 1.25rem 4rem; max-width: 40rem; } .host-grid { grid-template-columns: 1fr; } .topnav { padding: 1rem 1.25rem; } }
@media (max-width: 480px) { .form-card { padding: 1.25rem; } .stats { grid-template-columns: repeat(2, 1fr); } .guest-row { align-items: flex-start; flex-direction: column; } .event-ticket { gap: 1rem; } .wordmark span { font-size: .6rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }

/* Optional merch poll and unpaid reservations */
.merch-panel { max-width: 46rem; margin: 0 auto 3rem; }
.merch-item { display:grid; grid-template-columns:2fr 1fr 1fr auto; gap:.5rem; align-items:center; margin-bottom:.75rem; }
.merch-item select,.merch-item input { min-width:0; margin:0; }
.merch-item button { min-height:44px; }
.merch-panel h3 { margin-top:2rem; }
.merch-panel #add-merch { margin-bottom:1rem; }
.merch-table-wrap { overflow-x:auto; }
.merch-table { width:100%; border-collapse:collapse; text-align:left; font-size:.85rem; }
.merch-table th,.merch-table td { padding:.75rem; border-bottom:1px solid #ddd; vertical-align:top; }
@media(max-width:700px) { .merch-panel { margin:0 1rem 2rem; } .merch-item { grid-template-columns:2fr 1fr; } }
