/* 3DPNC.org: home page. Black poster style with the world map. */

:root {
  --bg: #000;
  --fg: #f2f2f2;
  --dim: #b5b5b5;
  --muted: #8f8f8f;
  --line: #262626;
  --amber: #ffb020;
  --amber-text: #ffc54d;
  --blue: #3d7bff;
  --blue-text: #7aa5ff;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Archivo', Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--fg); text-decoration: none; }
a:hover { color: #fff; text-decoration: underline; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Top bar */
.topbar { border-bottom: 1px solid var(--line); }
.topbar nav { max-width: 1120px; margin: 0 auto; padding: 18px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.logo { font-family: 'Archivo Black', 'Arial Black', sans-serif; font-size: 20px; letter-spacing: 0.02em; }
.links { display: flex; flex-wrap: wrap; gap: 28px; font-size: 15px; font-weight: 500; color: #c9c9c9; }

/* Headline */
.hero { padding: 88px 0 56px; text-align: center; }
.hero h1 {
  font-family: 'Archivo Black', 'Arial Black', sans-serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 7vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin: 0 0 32px;
}
.hero p { max-width: 700px; margin: 0 auto; color: var(--dim); font-size: 19px; line-height: 1.65; }

/* Section labels */
.label { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #a3a3a3; }
.section { padding: 56px 0; border-top: 1px solid var(--line); }
.section > .label { margin-bottom: 28px; }

/* Map */
.map-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; color: #a3a3a3; }
.legend p { margin: 0; display: flex; align-items: center; gap: 10px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot-amber { background: var(--amber); box-shadow: 0 0 10px 2px rgba(255,176,32,0.8); }
.dot-blue { background: var(--blue); box-shadow: 0 0 10px 2px rgba(61,123,255,0.85); }

.map-outer { position: relative; }
.map-box {
  position: relative;
  overflow: hidden;
  aspect-ratio: 5 / 2;
  border: 1px solid #1c1c1c;
  border-radius: 12px;
  touch-action: pan-y; /* phones can still scroll the page past the map */
  outline: none;
  background: #000;
}
.map-box:focus-visible { border-color: #555; }
.map-box svg { display: block; width: 100%; height: 100%; }
.map-box .place { fill: #0b0b0b; stroke: #8a8a8a; stroke-width: 0.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; cursor: pointer; }
.map-box .hover { fill: rgba(255,255,255,0.10); stroke: #fff; stroke-width: 1.5; vector-effect: non-scaling-stroke; pointer-events: none; }
.map-box .no-events { pointer-events: none; }
.map-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; }

.map-controls { position: absolute; right: 14px; top: 14px; display: flex; flex-direction: column; gap: 6px; }
.map-controls button {
  width: 44px; height: 44px;
  border: 1px solid #3a3a3a; border-radius: 10px;
  background: rgba(13,13,13,0.9); color: var(--fg);
  font: inherit; font-size: 22px; cursor: pointer;
}
.map-controls button.fit { font-size: 12px; font-weight: 600; }
.map-controls button:hover { border-color: #777; }

.map-tip {
  position: absolute; max-width: 260px; padding: 8px 12px;
  border: 1px solid #3a3a3a; border-radius: 8px;
  background: rgba(10,10,10,0.96);
  font-size: 14px; line-height: 1.35; pointer-events: none;
}
.map-tip strong { display: block; }
.map-tip span { display: block; color: #a3a3a3; font-size: 13px; }
.map-tip span.amber { color: var(--amber-text); }
.map-tip span.blue { color: var(--blue-text); }

.map-card {
  position: absolute; left: 14px; bottom: 14px;
  width: 330px; max-width: calc(100% - 28px);
  padding: 18px 20px;
  border: 1px solid #3a3a3a; border-radius: 12px;
  background: rgba(10,10,10,0.97);
}
.map-card .row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.map-card h3 { margin: 0 0 6px; font-size: 20px; line-height: 1.2; }
.map-card p { margin: 0 0 6px; font-size: 15px; color: var(--dim); }
.map-card p.amber { color: var(--amber-text); }
.map-card p.blue { color: var(--blue-text); }
.map-card .close { width: 32px; height: 32px; flex-shrink: 0; border: 0; border-radius: 8px; background: #1c1c1c; color: var(--fg); font: inherit; cursor: pointer; }
.map-card .open { display: inline-block; margin-top: 8px; font-weight: 700; text-decoration: underline; }

.map-note { margin: 16px 0 0; font-size: 14px; color: var(--muted); text-align: center; }

/* Upcoming */
.upcoming-intro { margin: -20px 0 28px; color: var(--dim); }
.event {
  display: grid;
  grid-template-columns: 130px 200px 170px minmax(0, 1fr);
  gap: 20px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid #1c1c1c;
}
.event:hover { text-decoration: none; background: #0a0a0a; }
.event .date { font-weight: 700; }
.event .date.amber { color: var(--amber-text); text-shadow: 0 0 12px rgba(255,176,32,0.7); }
.event .date.blue { color: var(--blue-text); text-shadow: 0 0 12px rgba(61,123,255,0.85); }
.event .date.later { color: #d6d6d6; }
.event .place-name { font-weight: 600; }
.event .type { color: #a3a3a3; font-size: 15px; text-transform: uppercase; letter-spacing: 0.08em; }
.event .title { color: #d6d6d6; }
.empty { color: var(--muted); }

@media (max-width: 760px) {
  .event { grid-template-columns: 1fr; gap: 2px; }
}

/* Regions list */
.regions { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 36px 40px; }
.regions h3 { margin: 0 0 10px; font-size: 20px; font-weight: 700; }
.regions h3 a { color: #fff; }
.regions .list { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 16px; line-height: 1.9; color: #c9c9c9; }
.regions .list a { color: #f2f2f2; text-decoration: underline; text-decoration-color: #555; text-underline-offset: 3px; }
.regions .list a.no-page { color: #c9c9c9; text-decoration-style: dotted; text-decoration-color: #666; }
.regions .list a.no-page:hover { color: #fff; text-decoration-color: #fff; }

/* Resources */
.resources { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.resources a { display: block; }
.resources a:hover { text-decoration: none; }
.resources a:hover h3 { text-decoration: underline; }
.resources h3 { margin: 0 0 8px; font-size: 19px; }
.resources p { margin: 0; color: #a3a3a3; font-size: 15px; }

/* Support */
.support { text-align: center; }
.support h2 { margin: 0 0 12px; font-family: 'Archivo Black', 'Arial Black', sans-serif; font-weight: 400; font-size: 28px; text-transform: uppercase; }
.support .intro { max-width: 600px; margin: 0 auto 32px; color: var(--dim); }
.pay-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; align-items: center; max-width: 720px; margin: 0 auto; }
.pay-item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pay-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; max-width: 200px; height: 48px;
  border: 1px solid var(--fg); border-radius: 10px; font-weight: 700;
  transition: background 0.15s, color 0.15s;
}
.pay-btn:hover { background: var(--fg); color: #000; text-decoration: none; }
.pay-item small { font-size: 13px; color: var(--muted); }
.shop { gap: 10px; }
.shop:hover { text-decoration: none; }
.shop .shop-head { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.shop img { display: block; width: 100%; max-width: 200px; height: auto; border: 1px solid var(--line); border-radius: 10px; transition: border-color 0.15s; }
.shop:hover img { border-color: #777; }
.support .fineprint { max-width: 600px; margin: 32px auto 0; color: var(--muted); font-size: 14px; }

/* Newsletter (Brevo form, embedded) */
.newsletter { text-align: center; }
.newsletter iframe { display: block; margin: 0 auto; width: 540px; max-width: 100%; height: 820px; border: 0; background: transparent; }

/* Footer */
footer { border-top: 1px solid var(--line); }
footer .wrap { padding-top: 32px; padding-bottom: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 14px; }
footer a { color: #c9c9c9; text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
