:root {
  --bg: #0e1116;
  --bg-soft: #161b22;
  --panel: #1b2230;
  --line: #2a3340;
  --text: #e7ecf3;
  --muted: #9aa6b6;
  --accent: #d9a441;
  --accent-soft: rgba(217, 164, 65, 0.14);
  --light-sq: #e9e2cf;
  --dark-sq: #5d4a3a;
  --maxw: 1120px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; line-height: 1.1; margin: 0 0 .5em; }
p { margin: 0 0 1em; color: var(--muted); }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 17, 22, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 44px; height: 44px;
  border-radius: 10px;
  object-fit: contain;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  padding: 4px;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: "Cormorant Garamond", serif; font-size: 20px; font-weight: 700; }
.brand-sub { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.primary-nav a { padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--muted); transition: color .2s, background .2s; }
.primary-nav a:hover, .primary-nav a.active { color: var(--text); background: rgba(255,255,255,.04); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 10px; font-size: 14px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .2s, border-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #1a1206; }
.btn-primary:hover { background: #e6b352; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-join { margin-left: 12px; padding: 10px 18px; }

.nav-actions { display: flex; align-items: center; gap: 16px; margin-left: 8px; }
.lang-toggle {
  display: inline-flex; align-items: center;
  font-family: "Inter", sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  color: var(--muted);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.lang-toggle:hover { color: var(--accent); border-color: var(--accent); }
.lang-toggle .lang-current { color: var(--text); }
.lang-toggle .lang-sep { margin: 0 4px; opacity: .4; }
.lang-toggle .lang-other { color: var(--muted); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 120px 0 90px; }
.hero-board { position: absolute; inset: 0; opacity: .14; display: grid; place-items: center; }
.board {
  width: min(120vw, 900px); aspect-ratio: 1;
  background-image:
    linear-gradient(45deg, var(--dark-sq) 25%, transparent 25%),
    linear-gradient(-45deg, var(--dark-sq) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--dark-sq) 75%),
    linear-gradient(-45deg, transparent 75%, var(--dark-sq) 75%);
  background-size: 11.11% 11.11%;
  background-position: 0 0, 0 5.55%, 5.55% -5.55%, -5.55% 0;
  background-color: var(--light-sq);
  transform: rotate(-12deg) scale(1.4);
  filter: blur(.5px);
}
.hero-inner { position: relative; max-width: 720px; }
.eyebrow { letter-spacing: .22em; text-transform: uppercase; font-size: 12px; color: var(--accent); margin-bottom: 18px; }
.hero-title { font-size: clamp(40px, 7vw, 76px); letter-spacing: -.01em; }
.hero-lede { font-size: 18px; max-width: 560px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 56px; }
.hero-stats { display: flex; gap: 48px; list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); padding-top: 28px; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: "Cormorant Garamond", serif; font-size: 38px; color: var(--text); }
.hero-stats span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 100px 0; border-top: 1px solid var(--line); }
.grid { display: grid; gap: 56px; align-items: start; }
.grid.two { grid-template-columns: 1fr 1fr; }
.section-head.center { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.kicker { display: inline-block; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 48px); }
.ticks { list-style: none; padding: 0; margin: 8px 0 0; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: 10px; color: var(--text); }
.ticks li::before { content: "♞"; position: absolute; left: 0; color: var(--accent); }

/* ---------- Events ---------- */
.event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.event-card { display: flex; gap: 20px; padding: 26px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, transform .2s; }
.event-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.event-date { flex-shrink: 0; width: 56px; text-align: center; padding: 10px 0; background: var(--accent-soft); border: 1px solid rgba(217,164,65,.25); border-radius: 10px; color: var(--accent); }
.event-date span { display: block; font-family: "Cormorant Garamond", serif; font-size: 26px; font-weight: 700; line-height: 1; }
.event-date small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.event-body h3 { margin-bottom: 4px; font-size: 22px; }
.event-meta { font-size: 12px; letter-spacing: .04em; color: var(--accent); margin-bottom: 8px; }

/* ---------- Archive ---------- */
.archive .section-head.center { margin-bottom: 32px; }
.archive-intro { max-width: 540px; margin: 0 auto; }
.archive-filter { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 0 auto 40px; }
.filter-btn {
  font-family: "Inter", sans-serif;
  font-size: 13px; font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.filter-btn:hover { color: var(--text); border-color: var(--accent); }
.filter-btn.active { background: var(--accent); color: #1a1206; border-color: var(--accent); }

.archive-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.archive-item { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); border: 1px solid var(--line); transition: border-color .2s, transform .2s, opacity .25s; }
.archive-item:hover { border-color: var(--accent); transform: translateY(-3px); }
.archive-item.hide { display: none; }
.archive-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--panel);
  background-image:
    linear-gradient(45deg, var(--dark-sq) 25%, transparent 25%),
    linear-gradient(-45deg, var(--dark-sq) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--dark-sq) 75%),
    linear-gradient(-45deg, transparent 75%, var(--dark-sq) 75%);
  background-size: 16.66% 16.66%;
  background-position: 0 0, 0 8.33%, 8.33% -8.33%, -8.33% 0;
  background-color: var(--light-sq);
}
.archive-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.archive-item:hover .archive-media img { transform: scale(1.04); }
.archive-media img.missing { display: none; }
.archive-tag {
  position: absolute; top: 12px; left: 12px;
  background: rgba(14,17,22,.78);
  color: var(--accent);
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 6px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(217,164,65,.25);
}
.archive-item figcaption { padding: 18px 20px 22px; }
.archive-date { display: inline-block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.archive-item h3 { font-size: 20px; margin-bottom: 6px; }
.archive-item p { font-size: 14px; margin: 0; }

@media (max-width: 980px) {
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .archive-grid { grid-template-columns: 1fr; }
}

/* ---------- Membership ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; padding: 32px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); }
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 20px 60px -30px rgba(217,164,65,.5); }
.price-card .badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #1a1206; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.price-card h3 { font-size: 24px; }
.price { display: flex; align-items: baseline; gap: 2px; margin: 6px 0 18px; font-family: "Cormorant Garamond", serif; font-size: 54px; font-weight: 700; color: var(--text); }
.price span { font-size: 24px; align-self: flex-start; color: var(--muted); }
.price small { font-size: 16px; color: var(--muted); font-family: "Inter", sans-serif; font-weight: 400; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.price-card li { padding: 10px 0; border-top: 1px solid var(--line); color: var(--text); font-size: 14px; }
.price-card .btn { width: 100%; }
.price-note { text-align: center; max-width: 580px; margin: 28px auto 0; font-size: 14px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-intro { color: var(--muted); max-width: 480px; }
.contact-list { list-style: none; padding: 0; margin: 20px 0 0; }
.contact-list li { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--text); }
.contact-list span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); align-self: center; }
.contact-list .c-val a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.contact-list .c-val a:hover { color: var(--text); }
.contact-list .c-val { overflow-wrap: anywhere; }
.contact-form { display: flex; flex-direction: column; gap: 14px; padding: 32px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); }
.contact-form h3 { font-size: 24px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-form input, .contact-form textarea { font-family: inherit; font-size: 16px; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.form-note { color: var(--accent); margin: 0; font-size: 14px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 36px; }
.footer-inner { display: flex; flex-direction: column; gap: 18px; align-items: center; text-align: center; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-nav a { color: var(--muted); font-size: 14px; }
.footer-nav a:hover { color: var(--accent); }
.brand-footer { flex-direction: row; align-items: center; }
.copy { font-size: 12px; color: var(--muted); margin: 8px 0 0; }

/* ---------- Responsive ---------- */

/* Tablet landscape og ned: collapsende nav, da der er 5 menupunkter + Join + sprog */
@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    padding: 18px 24px 28px;
    gap: 8px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, transform .2s;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .primary-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .primary-nav ul { flex-direction: column; gap: 2px; width: 100%; }
  .primary-nav a { display: block; padding: 14px 14px; font-size: 16px; }
  .btn-join { margin: 8px 0 0; width: 100%; padding: 14px 18px; }
  .nav-actions { width: 100%; justify-content: space-between; gap: 12px; margin-top: 8px; }
  .lang-toggle { flex: 1; justify-content: center; padding: 12px 10px; font-size: 13px; }

  .grid.two { grid-template-columns: 1fr; gap: 32px; }
  .price-grid { grid-template-columns: 1fr; }
  .hero { padding: 70px 0 60px; }
  .hero-stats { gap: 28px; flex-wrap: wrap; }
}

/* Mobil: 2-koloners events og arkiv på større telefoner, 1 kolonne på små */
@media (max-width: 880px) {
  .event-grid { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
}

@media (max-width: 600px) {
  .event-grid { grid-template-columns: 1fr; }
  .event-card { padding: 20px; gap: 14px; }
  .event-date { width: 48px; padding: 8px 0; }
  .event-date span { font-size: 22px; }
  .event-body h3 { font-size: 19px; }
  .archive-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .archive-item figcaption { padding: 14px 14px 18px; }
  .archive-item h3 { font-size: 16px; }
  .archive-item p { font-size: 13px; }
  .archive-tag { font-size: 10px; padding: 4px 8px; top: 8px; left: 8px; }
  .container { padding: 0 18px; }
  .hero-title { font-size: clamp(34px, 9vw, 50px); }
  .hero-lede { font-size: 16px; }
  .section-head h2 { font-size: clamp(26px, 7vw, 36px); }
  .price { font-size: 46px; }
  .contact-form { padding: 22px; }
  .price-card { padding: 26px 22px; }
}

@media (max-width: 520px) {
  .hero-stats strong { font-size: 24px; }
  .hero-stats li { min-width: 0; }
  .hero-stats span { font-size: 11px; letter-spacing: .08em; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .contact-list li { grid-template-columns: 1fr; gap: 4px; }
  .footer-nav { gap: 14px; }
  .footer-nav a { font-size: 13px; }
}

@media (max-width: 400px) {
  .archive-grid { grid-template-columns: 1fr; }
  .brand-name { font-size: 17px; }
  .brand-sub { font-size: 10px; }
  .hero { padding: 56px 0 48px; }
}
