/* ---------- Reset & base ---------- */
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, p, blockquote, figure, form { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }

:root {
  --maroon: #920604;
  --blue: #0d78cb;
  --blue-tint: rgba(13, 120, 203, 0.05);
  --text-dark: #0e0e0e;
  --text-muted: #3c3c3c;
  --font-heading: 'Questrial', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-nav: 'Lato', 'Open Sans', 'Helvetica Neue', Helvetica, sans-serif;
  --font-body: Tahoma, Geneva, Verdana, sans-serif;
  --header-height: 90px;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.5;
  background: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { font-family: var(--font-heading); font-weight: 400; }

/* ---------- Wavy divider ---------- */
.wavy {
  display: block;
  height: 16px;
  width: 320px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='16' viewBox='0 0 40 16'%3E%3Cpath d='M0 8 C10 1, 10 1, 20 8 C30 15, 30 15, 40 8' stroke='%23920604' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: round no-repeat;
  background-size: 40px 16px;
  max-width: 100%;
}
.wavy--sm { width: 140px; margin: 10px 0 22px; }
.wavy--md { width: 240px; margin: 16px 0 40px; }
.wavy--lg { width: 320px; margin: 16px 0 32px; }
.wavy.center { margin-left: auto; margin-right: auto; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled {
  background-color: rgba(0, 0, 0, 0.92);
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.static-page .site-header {
  background-color: rgba(0, 0, 0, 0.92);
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo-link { display: block; flex-shrink: 0; }
.logo-img { height: 62px; width: auto; }

.main-nav { display: flex; gap: 40px; }
.main-nav a {
  font-family: var(--font-nav);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  white-space: nowrap;
}
.main-nav a:hover { text-decoration: underline; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px; height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
}

/* ---------- Section nav (sticky jump menu on the front page) ---------- */
:root { --section-nav-height: 48px; }
html { scroll-padding-top: calc(var(--header-height) + var(--section-nav-height)); }

.section-nav {
  position: sticky;
  top: var(--header-height);
  z-index: 90;
  height: var(--section-nav-height);
  display: flex;
  gap: 4px;
  padding: 0 16px;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow-x: auto;
  scrollbar-width: none;
}
.section-nav::-webkit-scrollbar { display: none; }
.section-nav a {
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-family: var(--font-nav);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
/* auto margins centre the links but still let the bar scroll from the first one */
.section-nav a:first-child { margin-left: auto; }
.section-nav a:last-child { margin-right: auto; }
.section-nav a:hover { color: var(--blue); }
.section-nav a.active { color: var(--maroon); border-bottom-color: var(--maroon); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + 40px) 24px 80px;
  background-image: url("../assets/images/hero-bg.jpg");
  background-size: cover;
  background-position: center;
}
.hero-panel {
  max-width: 1100px;
  width: 100%;
  background: rgba(255, 255, 255, 0.6);
  padding: 60px 50px;
  text-align: center;
}
.hero-panel h1 {
  font-family: Verdana, Geneva, sans-serif;
  font-weight: bold;
  font-size: clamp(40px, 7vw, 96px);
  line-height: 1.05;
  color: var(--text-dark);
  margin-bottom: 24px;
}
.hero-panel .lead {
  font-weight: bold;
  font-size: clamp(16px, 2vw, 22px);
  max-width: 780px;
  margin: 0 auto 20px;
}

/* ---------- Adventure ---------- */
.adventure {
  position: relative;
  padding: 100px 24px;
  display: flex;
  justify-content: center;
  background-image: url("../assets/images/adventure-bg.png");
  background-size: cover;
  background-position: right center;
}
.adventure-panel {
  max-width: 700px;
  width: 100%;
  background: rgba(255, 255, 255, 0.75);
  padding: 40px;
  text-align: center;
}
.adventure-panel h2 {
  font-size: clamp(28px, 4vw, 40px);
}
.adventure-panel p {
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 16px;
}

/* ---------- Legal / static content pages ---------- */
.legal-page {
  padding: calc(var(--header-height) + 60px) 0 100px;
}
.legal-page .container { max-width: 900px; }
.legal-page h1 { text-align: center; }
.legal-page > .container > p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 24px;
}
.legal-page h2 { font-size: 26px; margin: 56px 0 20px; }
.legal-page a { color: var(--blue); }
.legal-table-wrap {
  overflow-x: auto;
  margin-bottom: 32px;
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.legal-table th, .legal-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  vertical-align: top;
}
.legal-table th {
  font-family: var(--font-heading);
  font-weight: 400;
  background: var(--blue-tint);
}
.legal-table code {
  background: var(--blue-tint);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 14px;
}

/* ---------- Section heading ---------- */
.section-heading {
  text-align: center;
  font-size: clamp(26px, 4vw, 32px);
}

/* ---------- Tint + pattern backgrounds ---------- */
.tint-bg { background-color: var(--blue-tint); }
.diagonal-pattern {
  background-image:
    repeating-linear-gradient(45deg, rgba(0,0,0,0.035) 0, rgba(0,0,0,0.035) 1px, transparent 1px, transparent 14px);
}

/* ---------- Features ---------- */
.features { padding: 80px 0; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  text-align: center;
  margin-top: 20px;
}
.check-icon svg { width: 56px; height: 56px; margin: 0 auto 16px; }
.feature-item h3 { font-size: 24px; margin-bottom: 14px; }
.feature-item p { color: var(--text-dark); font-size: 17px; }

/* ---------- Event calendar ---------- */
/* Type colours: the names editors can write in the «Typer» sheet (see js/events.js) */
.event--blue   { --event-color: #3c78d8; --event-bg: #e8f0fd; }
.event--red    { --event-color: #cc4125; --event-bg: #fbe9e7; }
.event--yellow { --event-color: #d9a400; --event-bg: #fff6dc; }
.event--green  { --event-color: #5e9e45; --event-bg: #eaf4e5; }
.event--purple { --event-color: #7e6bb8; --event-bg: #f0ecf8; }
.event--orange { --event-color: #e07b1f; --event-bg: #fdefe0; }
.event--gray   { --event-color: #8a8a8a; --event-bg: #f2f2f2; }

/* "Neste hendelse" in the hero panel */
.next-event { margin-top: 32px; }
.next-event-label {
  font-family: var(--font-nav);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 10px;
}
.next-event-card {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  min-width: min(100%, 420px);
  background: #fff;
  border-left: 6px solid var(--event-color);
  padding: 16px 28px;
  text-align: left;
  text-decoration: none;
  color: var(--text-dark);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.next-event-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16); }
.next-event-title { font-family: var(--font-heading); font-size: 26px; line-height: 1.2; }
.next-event-when { font-weight: 700; font-size: 17px; }
.next-event-when::first-letter { text-transform: uppercase; }
.next-event-where { color: var(--text-muted); font-size: 15px; }
.next-event-more { color: var(--blue); font-size: 14px; margin-top: 6px; }
.next-event-empty { font-size: 17px; }
.next-event-empty a { color: var(--blue); }

/* Calendar section */
.calendar { padding: 80px 0; }
.event-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-bottom: 32px;
  font-size: 15px;
  color: var(--text-muted);
}
.event-legend[hidden] { display: none; }
.event-legend-item { display: flex; align-items: center; gap: 8px; }
.event-legend-item::before {
  content: "";
  width: 14px; height: 14px;
  border-radius: 3px;
  background: var(--event-bg);
  border: 3px solid var(--event-color);
}

.event-list { position: relative; max-width: 920px; margin: 0 auto; }

/* Scroll box: js/events.js sets max-height so the first 4 events show */
.event-list--scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  box-shadow: inset 0 -12px 12px -12px rgba(0, 0, 0, 0.15);
}
.event-list--scroll .event-month-heading {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
  margin: 0 0 10px;
  padding: 16px 0 6px;
}
.event-list--scroll .event:last-child { margin-bottom: 16px; }
.event-status { text-align: center; color: var(--text-muted); font-size: 17px; }
.event-status a { color: var(--blue); }

.event-month-heading {
  font-size: 22px;
  margin: 36px 0 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}
.event-list > .event-month-heading:first-child { margin-top: 0; }

.event {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  align-items: center;
  gap: 20px;
  margin-bottom: 10px;
  padding: 14px 20px 14px 16px;
  background: var(--event-bg);
  border-left: 6px solid var(--event-color);
  border-radius: 4px;
}

.event-date { display: flex; flex-direction: column; align-items: center; line-height: 1.1; text-align: center; }
.event-weekday, .event-month { font-size: 13px; color: var(--text-muted); }
.event-day { font-family: var(--font-heading); font-size: 30px; margin: 2px 0; }

.event-type {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--event-color);
  filter: brightness(0.8);
}
.event-title { font-family: var(--font-heading); font-weight: 400; font-size: 21px; margin: 0 0 4px; }
.event-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 15px; }
.event-time { font-weight: 700; }
.event-week { color: var(--text-muted); font-size: 13px; }
.event-age {
  font-weight: 700;
  font-size: 13px;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(13, 120, 203, 0.12);
  color: var(--blue);
}
.event-age--adult { background: rgba(146, 6, 4, 0.12); color: var(--maroon); }
.event-shift { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

.event-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.event-place { font-size: 15px; }
.event-place--link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: var(--text-dark);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.event-place--link::before { content: "📍"; font-size: 13px; }
.event-place--link:hover { border-color: var(--blue); color: var(--blue); }

.add-to-cal { position: relative; }
.add-to-cal-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 14px;
  color: var(--blue);
  text-decoration: underline;
  cursor: pointer;
  white-space: nowrap;
}
.add-to-cal-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  min-width: 200px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  padding: 6px 0;
}
.add-to-cal-menu[hidden] { display: none; }
.add-to-cal-menu a, .add-to-cal-menu button {
  display: block;
  width: 100%;
  padding: 10px 16px;
  text-align: left;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 15px;
  color: var(--text-dark);
  text-decoration: none;
  cursor: pointer;
}
.add-to-cal-menu a:hover, .add-to-cal-menu button:hover { background: var(--blue-tint); color: var(--blue); }

.event-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}
.event-actions [hidden] { display: none; }
.event-list--past { margin-top: 32px; }
.event-list--past .event { opacity: 0.7; }

/* ---------- Social / starfield ---------- */
.starfield {
  position: relative;
  padding: 70px 24px;
  display: flex;
  justify-content: center;
  background-color: #0a0e2a;
  background-image:
    radial-gradient(1.6px 1.6px at 20px 30px, #fff, transparent),
    radial-gradient(1.2px 1.2px at 90px 80px, #fff, transparent),
    radial-gradient(1.6px 1.6px at 150px 40px, #fff, transparent),
    radial-gradient(1.2px 1.2px at 210px 120px, #fff, transparent),
    radial-gradient(1.6px 1.6px at 60px 150px, #fff, transparent),
    radial-gradient(1.2px 1.2px at 170px 10px, #fff, transparent),
    radial-gradient(1.6px 1.6px at 240px 90px, #fff, transparent);
  background-repeat: repeat;
  background-size: 260px 200px;
}
.social-card {
  max-width: 900px;
  width: 100%;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 6px;
  padding: 50px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  text-align: center;
}
.icon-link { display: block; width: 100px; margin: 0 auto; }
.social-icon { width: 100px; height: 100px; margin: 0 auto 20px; transition: transform 0.25s ease; }
.icon-link:hover .social-icon { transform: scale(1.08); }
.social-col p { font-size: 17px; margin-bottom: 22px; }

.btn-pill {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 36px;
  border-radius: 999px;
  border: none;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.btn-pill:hover { background: #0a5c9c; }

.btn-pill.btn-outline {
  background: transparent;
  color: var(--text-dark);
  border: 1px solid rgba(0,0,0,0.25);
}
.btn-pill.btn-outline:hover { background: rgba(0,0,0,0.05); }

.link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--blue);
  font-family: inherit;
  font-size: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.link-btn:hover { color: #0a5c9c; }

/* ---------- Announcements ---------- */
.announcements { padding: 80px 0; }
.news-panel {
  max-width: 620px;
  margin: 0 auto;
  background: #fff;
  padding: 40px;
  text-align: center;
}
.news-panel--discord {
  max-width: 820px;
  background: none;
  padding: 0;
}
.news-intro { font-size: 17px; margin-bottom: 24px; }

.embed-placeholder {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-tint);
  margin-bottom: 20px;
}
.embed-placeholder .fb-page,
.embed-placeholder iframe {
  width: 100%;
}
.embed-consent-message {
  font-size: 15px;
  color: var(--text-muted);
  padding: 0 24px;
  line-height: 1.6;
}

.fallback-link {
  color: var(--blue);
  font-size: 15px;
  text-decoration: none;
}
.fallback-link:hover { text-decoration: underline; }

/* Discord news feed (ORKLib widget, styled like a Discord message list) */
[data-orklib-news] {
  background: #313338;
  color: #dbdee1;
  font-family: "gg sans", "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.375rem;
  text-align: left;
  border-radius: 8px;
  padding: 16px;
  margin: 0 auto 20px;
  min-height: 220px;
  max-height: 640px;
  overflow-y: auto;
}
[data-orklib-news] .orklib-news-item {
  padding: 10px 0;
  border-bottom: 1px solid #3f4147;
}
[data-orklib-news] .orklib-news-item:last-child { border-bottom: none; }
[data-orklib-news] .orklib-news-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 2px;
}
[data-orklib-news] .orklib-news-author { font-weight: 600; color: #f2f3f5; }
[data-orklib-news] .orklib-news-date { font-size: 0.75rem; color: #949ba4; }
[data-orklib-news] .orklib-news-content {
  color: #dbdee1;
  overflow-wrap: break-word;
}
[data-orklib-news] .orklib-news-content strong { font-weight: 700; }
[data-orklib-news] .orklib-news-content em { font-style: italic; }
[data-orklib-news] .orklib-news-content u { text-decoration: underline; }
[data-orklib-news] .orklib-news-content del { text-decoration: line-through; }
[data-orklib-news] .orklib-news-content code {
  background: #2b2d31;
  border-radius: 3px;
  padding: 0 4px;
  font-family: Consolas, Monaco, monospace;
  font-size: 0.85em;
}
[data-orklib-news] .orklib-news-content a { color: #00a8fc; text-decoration: none; }
[data-orklib-news] .orklib-news-content a:hover { text-decoration: underline; }
/* @everyone / @here */
[data-orklib-news] .orklib-discord-mention {
  color: #a8b9ff;
  background: rgba(88, 101, 242, 0.3);
  border-radius: 3px;
  padding: 0 2px;
  font-weight: 500;
}
/* Discord's "pill" look for a dynamic timestamp */
[data-orklib-news] .orklib-discord-timestamp {
  background: rgba(79, 84, 92, 0.48);
  border-radius: 3px;
  padding: 0 3px;
  color: #dbdee1;
}
[data-orklib-news] .orklib-news-images {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
[data-orklib-news] .orklib-news-image {
  max-width: min(300px, 100%);
  max-height: 300px;
  border-radius: 8px;
  display: block;
}
/* Discord's attachment-chip look for a file that isn't shown directly */
[data-orklib-news] .orklib-news-file {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #2b2d31;
  border: 1px solid #1e1f22;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.8125rem;
  color: #dbdee1;
}

/* ---------- Showcase ---------- */
.showcase { padding: 80px 0; }
.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 56px;
}
.showcase-row:first-of-type { margin-top: 40px; }
.showcase-row.reverse .showcase-text { order: 2; }
.showcase-row.reverse .showcase-image { order: 1; }
.showcase-text h3, .showcase-text .showcase-p {
  font-size: 22px;
  font-weight: 400;
}
.showcase-image { overflow: hidden; }
.showcase-image img {
  width: 100%; height: 340px; object-fit: cover;
  transition: transform 0.35s ease;
}
.showcase-image--portrait img { height: 349px; width: auto; margin: 0 auto; object-fit: cover; }
.showcase-image:hover img { transform: scale(1.06); }

/* ---------- Gallery ---------- */
.gallery { padding: 80px 0; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.gallery-grid a { display: block; overflow: hidden; }
.gallery-grid img {
  width: 100%; height: 260px; object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-grid a:hover img { transform: scale(1.08); }

/* ---------- Testimonials ---------- */
.testimonials { padding: 80px 0; }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.testimonial {
  background: #fff;
  padding: 40px 28px;
  text-align: center;
  position: relative;
}
.quote-mark { font-family: Georgia, serif; font-size: 48px; color: var(--maroon); line-height: 0.5; display: block; }
.quote-mark--open { margin-bottom: 14px; }
.quote-mark--close { margin-top: 14px; }
.testimonial p { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.testimonial cite { font-style: normal; font-size: 16px; color: var(--text-muted); }

/* ---------- Contact ---------- */
.contact { padding: 80px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}
.contact-info h3, .contact-form-card h3 {
  font-size: 26px;
  margin-bottom: 24px;
}
.contact-form-card h3 { border-bottom: 1px solid rgba(0,0,0,0.15); padding-bottom: 16px; }
.contact-line {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-muted);
  font-size: 18px;
  margin-bottom: 24px;
  text-decoration: none;
  width: fit-content;
}
.contact-line:hover { color: var(--blue); }
.contact-line:hover .contact-icon { color: var(--blue); }
.contact-icon { width: 22px; height: 22px; flex-shrink: 0; color: var(--text-muted); transition: color 0.2s ease; }

.contact-form-card {
  background: var(--blue-tint);
  padding: 36px;
}
.contact-form { display: flex; flex-direction: column; }
.contact-form label {
  font-size: 16px;
  color: #4a4a4a;
  margin-bottom: 8px;
  margin-top: 18px;
}
.contact-form label:first-of-type { margin-top: 0; }
.contact-form input, .contact-form textarea {
  font-family: inherit;
  font-size: 16px;
  padding: 10px 12px;
  border: 1px solid #c8c8c8;
  border-radius: 2px;
  background: #fff;
  width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}
.form-privacy { font-size: 14px; color: var(--text-muted); margin-top: 18px; }
.form-privacy a { color: var(--blue); }
.btn-send { margin-top: 20px; align-self: flex-start; padding: 14px 44px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blue-tint);
  text-align: center;
  padding: 24px;
  font-size: 14px;
  color: var(--text-muted);
}
.footer-links { margin-top: 8px; }
.footer-links a { color: var(--text-muted); }
.footer-links .link-btn { font-size: 14px; color: var(--text-muted); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cookie-banner-inner p { font-size: 15px; }
.cookie-banner-inner a { color: var(--blue); }
.cookie-banner-actions { display: flex; gap: 12px; flex-shrink: 0; }
.cookie-banner-actions .btn-pill { padding: 10px 26px; font-size: 15px; }

@media (max-width: 700px) {
  .cookie-banner-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-banner-actions { justify-content: center; }
}

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .header-inner { padding: 10px 16px; }
  .site-header { background-color: #000; }
  .logo-img { height: 34px; }

  .main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: rgba(0, 0, 0, 0.97);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    padding: 100px 32px 32px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { padding: 16px 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .menu-toggle { display: flex; }

  /* the mobile header is only 54px tall (34px logo + 10px padding top and bottom) */
  html { scroll-padding-top: calc(54px + var(--section-nav-height)); }
  .section-nav { top: 54px; }
  .section-nav a { padding: 0 10px; font-size: 14px; }

  .event {
    grid-template-columns: 56px 1fr;
    gap: 6px 14px;
    padding: 12px 14px 12px 10px;
  }
  .event-list--scroll { padding: 0 10px; }
  .event-side { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .next-event-card { padding: 14px 18px; }
  .next-event-title { font-size: 22px; }

  .news-panel { padding: 24px; }
  .news-panel--discord { padding: 0; }

  .hero-panel, .adventure-panel { padding: 32px 22px; }

  .feature-grid,
  .showcase-row,
  .showcase-row.reverse,
  .social-card,
  .gallery-grid,
  .testimonial-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .showcase-row.reverse .showcase-text,
  .showcase-row.reverse .showcase-image { order: initial; }
  .showcase-image--portrait img { height: auto; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-form-card { padding: 24px; }
}

@media (max-width: 500px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ---------- Full-height starfield sections (404 page) ---------- */
.full-height-hero {
  min-height: 100vh;
  align-items: center;
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 80px;
}

/* ---------- Contact form feedback + honeypot ---------- */
.form-message { margin-top: 16px; padding: 12px 16px; border-radius: 4px; font-size: 15px; }
.form-message--error { background: rgba(146, 6, 4, 0.08); color: var(--maroon); border: 1px solid rgba(146, 6, 4, 0.25); }
.form-message--success { background: rgba(13, 120, 203, 0.08); color: var(--blue); border: 1px solid rgba(13, 120, 203, 0.25); }

/* Honeypot field -- hidden from real visitors, catches simple bots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- 404 page ---------- */
.error-card { max-width: 640px; text-align: center; }
.error-die { width: 140px; height: auto; margin: 0 auto 24px; }
.error-code { font-family: var(--font-heading); font-size: clamp(64px, 14vw, 140px); color: #fff; line-height: 1; margin-bottom: 8px; }
.error-title { font-family: var(--font-heading); font-size: clamp(22px, 3vw, 30px); color: #fff; margin-bottom: 16px; }
.error-flavor { color: rgba(255, 255, 255, 0.75); font-size: 17px; line-height: 1.7; margin-bottom: 36px; }

