/* Spilafélag Vestfjarða
   Near-black page, a full-bleed Ísafjörður landscape that dissolves into it,
   light roman serif headlines (Newsreader) over a plain sans (Inter).
   Controls and labels are set in the sans, in sentence case; monospace is gone.
   No kickers above headings, no italic-first-word headlines: the 2026-11 UX pass
   (impeccable.style) removed those as template tells.

   Photos: drop files into public/img/ (see img/README.txt). Until then every
   photo slot falls back to a drawn fjord / textured gradient. */

@view-transition { navigation: auto; }

/* Fonts are served from /fonts (latin subset covers Icelandic), not Google: no visitor data leaves the site. */
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('fonts/newsreader-latin-opsz-normal.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 200 800; font-display: swap; src: url('fonts/newsreader-latin-opsz-italic.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/inter-latin-500-normal.woff2') format('woff2'); }


:root {
  --bg: #0f1011;
  --bg-2: #131415;
  --fg: #fafafa;
  --fg-2: rgba(250, 250, 250, 0.9);
  --muted: rgba(250, 250, 250, 0.62);
  --faint: rgba(250, 250, 250, 0.5);
  --line: rgba(255, 255, 255, 0.1);
  --glass: rgba(15, 16, 17, 0.42);
  --glass-line: rgba(255, 255, 255, 0.15);
  --accent: #9fd8f0;   /* the pale blue Origin uses for data points — here: Arctic water */
  --danger: #ff8a7a;

  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(0.455, 0.03, 0.515, 0.955);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1400px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--fg); color: var(--bg); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }

/* ── type ─────────────────────────────────────────────────────────── */

h1, h2, .display {
  font-family: var(--serif); font-weight: 300; font-optical-sizing: auto;
  letter-spacing: -0.02em; line-height: 0.95; margin: 0;
}
h1 { font-size: clamp(3rem, 7vw, 6rem); }
h2, .display { font-size: clamp(2.4rem, 5vw, 4.4rem); }
h1 em, h2 em, h3 em, .display em, .wordmark em, .schedule dd em { font-style: normal; }
h1, h2, h3 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
h3 { font: 500 1.05rem/1.35 var(--sans); margin: 0; letter-spacing: -0.01em; }
.sub { color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.12rem); line-height: 1.45; max-width: 30rem; margin: 1.6rem auto 0; }
.label {
  font: 500 14px/1.33 var(--sans);
  color: var(--muted); margin: 0 0 1rem;
}

/* ── nav: floating frosted bar ────────────────────────────────────── */

.site-header {
  position: fixed; inset: 16px 16px auto; z-index: 50;
  view-transition-name: site-header;
  border-radius: 12px; border: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s;
}
.site-header.glass, .site-header.scrolled {
  background: rgba(15, 16, 17, 0.35);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  border-color: var(--glass-line);
}
.site-header .bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 56px; padding: 0 8px 0 18px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; justify-self: start; }
.brand-mark { width: 24px; height: 24px; flex: none; }
.brand-name { font: 500 14px/1 var(--sans); white-space: nowrap; }
.nav-center { display: flex; gap: 8px; }
.nav-right { display: flex; align-items: center; gap: 8px; justify-self: end; }
.nav-link {
  font: 400 14px/1.5 var(--sans);
  text-decoration: none; color: var(--fg); padding: 8px 12px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.04); transition: background-color 0.3s var(--ease);
}
.nav-link:hover, .nav-link[aria-current='page'] { background: rgba(255, 255, 255, 0.12); }
.nav-link.plain { background: transparent; }
.nav-link.plain:hover { background: rgba(255, 255, 255, 0.08); }

/* ── buttons ──────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 18px; border-radius: 8px; border: 0;
  background: #fff; color: #000; cursor: pointer;
  font: 500 14px/1.33 var(--sans); text-decoration: none;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), opacity 0.3s;
}
.btn:hover { background: #e9e9e9; }
.btn .arrow { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn.ghost { background: rgba(255, 255, 255, 0.1); color: var(--fg); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.18); }
.btn.small { padding: 10px 14px; }
.btn[disabled] { opacity: 0.5; cursor: progress; }
.link-quiet { color: var(--muted); font-size: 0.92rem; text-underline-offset: 4px; text-decoration-color: var(--line); }
.link-quiet:hover { color: var(--fg); text-decoration-color: currentColor; }

/* ── hero ─────────────────────────────────────────────────────────── */

.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media .photo { background: center / cover no-repeat; }
.hero-media .hero-video { opacity: 0; transition: opacity 1.2s var(--ease-out); }
.hero-media .hero-video.on { opacity: 1; }
.hero-media::after {   /* dissolve the landscape into the page */
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(15,16,17,0.35) 0%, rgba(15,16,17,0.15) 30%, rgba(15,16,17,0.55) 70%, var(--bg) 100%),
    radial-gradient(60% 45% at 50% 52%, rgba(15,16,17,0.35), transparent 70%);
}
/* The media drifts down on scroll (parallax), which would carry its own fade
   out of frame and leave a hard edge. This fade belongs to the section, so it
   stays put and the picture always melts into the page. */
.hero::after {
  content: ''; position: absolute; inset: auto 0 0; height: 45%; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(15,16,17,0.6) 45%, var(--bg));
}
.fjord { transform-origin: 50% 100%; }
.fjord .clouds { animation: clouds 80s linear infinite alternate; }
@keyframes clouds { to { transform: translateX(-120px); } }

.hero-content { text-align: center; padding: 120px var(--gutter) 80px; max-width: 1020px; will-change: transform, opacity; }
.hero-content .sub { max-width: 27rem; color: rgba(250, 250, 250, 0.9); font-size: 1.05rem; }
.hero-content .btn { margin-top: 1.8rem; }

.caption { color: var(--muted); margin-top: 1.4rem; font-size: 1rem; }

/* ── sections ─────────────────────────────────────────────────────── */

section { position: relative; padding: clamp(5rem, 11vw, 9rem) 0; }
.section-title { text-align: center; max-width: 980px; margin: 0 auto clamp(3rem, 6vw, 5rem); }
.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* tall photo cards with a glass panel inside */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1400px; margin: 0 auto; }
.feature {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 16px; min-height: 690px;
  display: flex; flex-direction: column; justify-content: space-between; gap: clamp(1.8rem, 3vw, 2.6rem);
  padding: clamp(1.2rem, 2.2vw, 1.6rem);
  background: var(--card-bg); background-size: cover; background-position: center;
}
.feature::before { /* photo, if present */
  content: ''; position: absolute; inset: 0; z-index: -2;
  background: var(--card-photo, none) center / cover no-repeat;
  transition: transform 1.4s var(--ease-out);
}
.feature:hover::before { transform: scale(1.04); }
.feature::after { /* darken the lower third so the copy reads */
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(15,16,17,0) 45%, rgba(15,16,17,0.82) 100%);
}
.feature .copy { max-width: 22rem; padding: 0 0.4rem 0.6rem; }
.feature .copy p { color: var(--muted); margin: 0.3rem 0 0; font-size: 1.06rem; line-height: 1.4; }

.f-bordspil { --card-bg: radial-gradient(120% 80% at 30% 10%, #3c5a35 0%, #1d2d1b 45%, #0d140c 100%); --card-photo: url('img/bordspil.jpg'); }
.f-safnkort { --card-bg: radial-gradient(120% 80% at 60% 20%, #2e5a52 0%, #173430 45%, #0a1615 100%); --card-photo: url('img/safnkortaspil.jpg'); }
.f-commander { --card-bg: radial-gradient(120% 80% at 35% 15%, #3a3560 0%, #1d1a33 45%, #0c0b14 100%); --card-photo: url('img/commander.jpg'); }
.cards.two { grid-template-columns: repeat(2, 1fr); max-width: 1180px; }
.cards.two .feature { min-height: 500px; justify-content: flex-end; }
/* real photos: the top shows the room, the copy sits on a dark lower part */
.cards.two .feature::after { background: linear-gradient(180deg, rgba(15,16,17,0.1) 0%, rgba(15,16,17,0.5) 30%, rgba(15,16,17,0.9) 58%, rgba(15,16,17,0.95) 100%); }
.feature .copy h3 { font: 300 clamp(2.2rem, 3.4vw, 3rem)/1 var(--serif); letter-spacing: -0.02em; margin-bottom: 0.9rem; }
.cards.two .feature .copy { max-width: 30rem; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 1.3rem 0 0; padding: 0; }
.tags li { padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,0.08); font: 400 13px/1.4 var(--sans); }
.f-hlutverk { --card-bg: radial-gradient(120% 80% at 50% 0%, #5a4a2a 0%, #2e2614 45%, #120f08 100%); --card-photo: url('img/hlutverkaspil.jpg'); }
.meter { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; }
.meter + .meter { margin-top: 14px; }
.meter b { font-weight: 400; font-variant-numeric: tabular-nums; }
.meter .track { grid-column: 1 / -1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.meter .track i { display: block; height: 100%; width: var(--w); background: #fff; border-radius: 3px; transform-origin: left; transform: scaleX(0); transition: transform 1.6s var(--ease-out) var(--d, 0.2s); }
.in .meter .track i, .meter.in .track i { transform: scaleX(1); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.stats div { padding: 12px 6px; border-bottom: 1px solid var(--line); }
.stats div:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
.stats div:nth-last-child(-n+3) { border-bottom: 0; }
.stats span { display: block; color: var(--muted); font-size: 12px; }
.stats b { font-weight: 400; font-size: 15px; }
.stats .roll { font-family: var(--serif); font-size: 26px; line-height: 1.1; }

/* steps */
.steps { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1180px; }
.steps li { border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); padding: 1.6rem; min-height: 260px; display: flex; flex-direction: column; }
.steps .n { font: 500 14px/1 var(--sans); color: var(--muted); margin-bottom: auto; }
.steps h3 { font: 300 2rem/1.05 var(--serif); letter-spacing: -0.015em; margin: 3rem 0 0.6rem; }
.steps p { margin: 0; color: var(--muted); }

/* closing band with the landscape again */
.cta { overflow: hidden; isolation: isolate; text-align: center; padding: clamp(7rem, 16vw, 13rem) 0; }
.cta .hero-media::after {
  /* a busy room photo: the middle, where the headline sits, needs a real scrim */
  background:
    radial-gradient(60% 45% at 50% 50%, rgba(15,16,17,0.55), transparent 80%),
    linear-gradient(180deg, var(--bg) 0%, rgba(15,16,17,0.62) 30%, rgba(15,16,17,0.62) 70%, var(--bg) 100%);
}
/* the closing band's photo is an <img> in the page, so it never shows a placeholder first */
.cta .actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 2rem; }

.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 2.4rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; }
.site-footer, .site-footer a { font: 400 14px/1.5 var(--sans); color: var(--muted); text-decoration: none; }
.site-footer nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.site-footer a:hover { color: var(--fg); }

/* ── forms ────────────────────────────────────────────────────────── */

.page { position: relative; min-height: 100svh; padding: 140px 0 6rem; isolation: isolate; }
.page .glow { position: absolute; inset: 0 0 auto; height: 70vh; z-index: -1; overflow: hidden; }
.page .glow::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,16,17,0.45), var(--bg)); }
.page .glow img { width: 100%; height: 100%; object-fit: cover; }
.page .wrap { max-width: 1120px; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2.5rem, 7vw, 6rem); align-items: start; }
.page.narrow .wrap { grid-template-columns: 1fr; max-width: 500px; text-align: center; }
.page.narrow .form { text-align: left; }
.page-intro h1 { font-size: clamp(3rem, 6vw, 5.2rem); }
.page-intro .sub { margin-left: 0; }
.page.narrow .page-intro .sub { margin-left: auto; }
.aside-list { list-style: none; padding: 0; margin: 2.6rem 0 0; border-top: 1px solid var(--line); }
.aside-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); color: var(--muted); display: flex; gap: 1rem; }
.aside-list li b { font: 500 14px/1.9 var(--sans); color: var(--fg); min-width: 1.6rem; }

.form {
  display: grid; gap: 1.2rem; padding: clamp(1.4rem, 3.5vw, 2.2rem); border-radius: 16px;
  background: rgba(19, 20, 21, 0.7); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; align-items: start; }
.field { display: grid; gap: 0.45rem; }
.field label, .field legend { font: 500 13px/1.4 var(--sans); color: var(--fg-2); }
.field .opt { color: var(--faint); }
.field input[type='text'], .field input[type='email'], .field input[type='tel'], .field input[type='password'], .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--fg);
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 10px; /* 3:1 against the card */
  padding: 0.85rem 1rem; transition: border-color 0.2s, background-color 0.2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.08); }
.field input:focus:not(:focus-visible), .field textarea:focus:not(:focus-visible) { outline: none; }
.field input:focus-visible, .field textarea:focus-visible, .check input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.field.invalid textarea { border-color: var(--danger); }
.field .hint { font-size: 0.8rem; color: var(--faint); }
.field .err { font-size: 0.82rem; color: var(--danger); }
.field.invalid input { border-color: var(--danger); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 0.3rem; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 8px 12px; border-radius: 8px; background: rgba(255, 255, 255, 0.06); font: 400 14px/1.4 var(--sans); cursor: pointer; transition: all 0.2s var(--ease); user-select: none; }
.chip span:hover { background: rgba(255, 255, 255, 0.12); }
.chip input:checked + span { background: #fff; color: #000; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.field label.check { display: flex; gap: 0.75rem; align-items: flex-start; font: 400 0.9rem/1.45 var(--sans); text-transform: none; letter-spacing: 0; color: var(--muted); }
.check input { margin-top: 0.2rem; accent-color: #fff; width: 1rem; height: 1rem; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 0.4rem; }
.alert { padding: 0.85rem 1rem; border-radius: 10px; font-size: 0.92rem; background: rgba(255, 138, 122, 0.1); color: var(--danger); }
.alert[hidden] { display: none; }
.done { display: grid; gap: 1rem; }
.done .display { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.done p { color: var(--muted); margin: 0; }

.member-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 3.5rem; }
.member-grid .form { min-height: 220px; align-content: start; }
.member-grid .form p { color: var(--muted); margin: 0; }

/* ── motion ───────────────────────────────────────────────────────── */

/* Sections are visible from the start; the hero's .rise is the page's one entrance. */

/* hero entrance on load */
.rise { animation: rise 1.4s var(--ease-out) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); filter: blur(8px); } }
.hero-media { animation: zoom-out 2.6s var(--ease-out) both; }
@keyframes zoom-out { from { transform: scale(1.08); opacity: 0.4; } }

::view-transition-old(root) { animation: 0.3s var(--ease) both vt-out; }
::view-transition-new(root) { animation: 0.55s var(--ease-out) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .meter .track i { transform: none; }
  html { scroll-behavior: auto; }
}

/* ── responsive ───────────────────────────────────────────────────── */

@media (max-width: 1000px) {
  .cards, .steps, .member-grid { grid-template-columns: 1fr; }
  .feature { min-height: 560px; }
  .page .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-center { display: none; }
  .site-header .bar { grid-template-columns: 1fr auto; }
  .brand-name { white-space: normal; font-size: 12px; line-height: 1.15; max-width: 6.5em; } /* stacked on two lines */
  .row { grid-template-columns: 1fr; }
  .site-header { inset: 10px 10px auto; }
  .steps li { min-height: 0; }
  .steps h3 { margin-top: 1.6rem; }
}

/* ── board (stjórn) ───────────────────────────────────────────────── */

.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1180px; margin: 0 auto; }
.person { border-radius: 16px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.portrait {
  aspect-ratio: 4 / 5; position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #34413f 0%, #1a2120 55%, #111415 100%);
  display: grid; place-items: center;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.25); transition: transform 1.4s var(--ease-out), filter 0.6s; }
.person:hover .portrait img { transform: scale(1.04); filter: none; }
.portrait::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(19,20,21,0.9)); }
.monogram { font: 300 clamp(5rem, 10vw, 8rem)/1 var(--serif); color: rgba(250,250,250,0.85); letter-spacing: -0.04em; }
.person .info { padding: 0 1.5rem 1.6rem; margin-top: -3.2rem; position: relative; z-index: 1; }
.person .role { font: 500 14px/1.33 var(--sans); color: var(--muted); }
.person .name { font: 300 clamp(1.7rem, 2.4vw, 2.1rem)/1.05 var(--serif); letter-spacing: -0.015em; margin: 0.45rem 0 0; }
.person .text { color: var(--muted); margin: 0.7rem 0 0; font-size: 0.95rem; }

/* ── grant + sponsors ─────────────────────────────────────────────── */

.grant {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: center;
  max-width: 1180px; margin: 0 auto 16px; padding: clamp(1.6rem, 4vw, 3.2rem);
  border-radius: 16px; border: 1px solid var(--glass-line);
}
.grant > .bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.grant::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(15,16,17,0.88) 0%, rgba(15,16,17,0.6) 60%, rgba(15,16,17,0.35) 100%); }
.grant h3 { font: 300 clamp(2rem, 3.6vw, 3.2rem)/1 var(--serif); letter-spacing: -0.02em; margin: 0 0 1rem; }
.grant p { color: var(--fg-2); margin: 0; max-width: 34rem; }
.grant .support { margin-top: 1.2rem; font: 500 14px/1.4 var(--sans); color: var(--muted); }
.grant .btn { margin-top: 1.6rem; }
.grant .mark { justify-self: end; text-align: right; }
.grant .mark img { max-height: 190px; width: auto; margin-left: auto; padding: 18px 22px; border-radius: 12px; background: rgba(255,255,255,0.92); }
.grant .year { font: 300 clamp(5rem, 12vw, 10rem)/0.85 var(--serif); letter-spacing: -0.04em; }
.grant .year-label { font: 500 14px/1 var(--sans); color: var(--muted); margin-top: 0.8rem; }

.sponsors { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; max-width: 1180px; margin: 0 auto; }
.sponsor {
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; min-height: 190px;
  padding: 1.4rem 1.5rem; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line);
  text-decoration: none; transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
a.sponsor:hover { border-color: rgba(255,255,255,0.3); background: #17181a; }
.sponsor .logo { height: 56px; display: flex; align-items: center; gap: 14px; }
.sponsor .logo img { max-height: 56px; max-width: 180px; width: auto; filter: grayscale(1) brightness(1.6); opacity: 0.85; transition: filter 0.4s, opacity 0.4s; }
a.sponsor:hover .logo img { filter: none; opacity: 1; }
.sponsor .wordmark { font: 300 1.8rem/1 var(--serif); letter-spacing: -0.015em; }
.sponsor .meta { display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.sponsor .what { font: 500 14px/1.33 var(--sans); color: var(--muted); }
.sponsor .ext { width: 16px; height: 16px; color: var(--muted); flex: none; transition: transform 0.3s var(--ease), color 0.3s; }
a.sponsor:hover .ext { transform: translate(2px, -2px); color: var(--fg); }
.sponsor.invite { border-style: dashed; background: transparent; }
.sponsor.invite p { margin: 0.6rem 0 0; color: var(--muted); font-size: 0.95rem; }

.photo-credit { position: absolute; right: var(--gutter); bottom: 24px; margin: 0; font: 400 13px/1.4 var(--sans); color: rgba(250,250,250,0.6); }
.photo-credit a { text-decoration: none; }
.photo-credit a:hover { color: var(--fg); }
.support-line { color: var(--muted); }

@media (max-width: 1000px) {
  .board { grid-template-columns: 1fr; max-width: 460px; }
  .grant { grid-template-columns: 1fr; }
  .grant .mark { justify-self: start; text-align: left; }
  .grant .mark img { margin-left: 0; }
}

/* ── board bio dialog ─────────────────────────────────────────────── */

.person.has-bio { cursor: pointer; }
.person.has-bio:hover { border-color: rgba(255,255,255,0.3); }
.person:focus-within { border-color: rgba(255,255,255,0.3); }
.person .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 1rem; padding: 0; border: 0; background: none; cursor: pointer; font: 500 14px/1 var(--sans); color: var(--muted); transition: color 0.3s; }
.person .more svg { width: 12px; height: 12px; transition: transform 0.3s var(--ease); }
.person.has-bio:hover .more, .person .more:focus-visible { color: var(--fg); }
.person.has-bio:hover .more svg { transform: translateX(3px); }

dialog.bio {
  width: min(880px, calc(100vw - 32px)); max-height: calc(100svh - 48px); padding: 0; border: 1px solid var(--glass-line); border-radius: 20px;
  background: rgba(19, 20, 21, 0.86); color: var(--fg); overflow: auto;
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  box-shadow: 0 40px 120px -30px rgba(0,0,0,0.8);
  opacity: 0; transform: translateY(18px) scale(0.98);
  transition: opacity 0.4s var(--ease-out), transform 0.5s var(--ease-out), overlay 0.4s allow-discrete, display 0.4s allow-discrete;
}
dialog.bio[open] { opacity: 1; transform: none; }
@starting-style { dialog.bio[open] { opacity: 0; transform: translateY(18px) scale(0.98); } }
dialog.bio::backdrop { background: rgba(8, 9, 10, 0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); transition: all 0.4s var(--ease-out), overlay 0.4s allow-discrete, display 0.4s allow-discrete; }
dialog.bio[open]::backdrop { background: rgba(8, 9, 10, 0.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@starting-style { dialog.bio[open]::backdrop { background: rgba(8, 9, 10, 0); backdrop-filter: blur(0); } }
body:has(dialog.bio[open]) { overflow: hidden; }

.bio-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; }
.bio .portrait { aspect-ratio: auto; min-height: 100%; }
.bio .portrait::after { background: linear-gradient(90deg, transparent 60%, rgba(19,20,21,0.6)); }
.bio-body { padding: clamp(1.6rem, 4vw, 2.8rem); display: flex; flex-direction: column; }
.bio-body .role { font: 500 14px/1.33 var(--sans); color: var(--muted); }
.bio-body h2 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin: 0.6rem 0 1.4rem; }
.bio-body p { color: var(--fg-2); margin: 0 0 1rem; line-height: 1.6; }
.bio-body .faves { margin-top: auto; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.bio-body .faves .label { margin-bottom: 0.7rem; }
.bio-body .faves ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.bio-body .faves li { padding: 8px 12px; border-radius: 8px; background: rgba(255,255,255,0.07); font: 400 14px/1.3 var(--sans); }
.bio-close {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: var(--fg); background: rgba(15,16,17,0.55);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: background-color 0.3s;
}
.bio-close:hover { background: rgba(255,255,255,0.18); }
.bio-close svg { width: 16px; height: 16px; }

@media (max-width: 760px) {
  .bio-grid { grid-template-columns: 1fr; }
  .bio .portrait { aspect-ratio: 16 / 10; min-height: 0; }
  .bio .portrait::after { background: linear-gradient(180deg, transparent 50%, rgba(19,20,21,0.9)); }
  .bio .monogram { font-size: 5rem; }
}
.bio-close:focus:not(:focus-visible) { outline: none; }

/* ── um félagið ───────────────────────────────────────────────────── */

.about { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); max-width: 1180px; margin: 0 auto; align-items: start; }
.about-head { position: sticky; top: 120px; }
.about-head h2 { font-size: clamp(2.6rem, 5.4vw, 4.8rem); margin: 0.6rem 0 0; }
.about-body p { margin: 0 0 1.1rem; color: var(--muted); font-size: 1.05rem; line-height: 1.6; max-width: 36rem; }
.about-body .lead { color: var(--fg); font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.5; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 2rem 0 0; border-top: 1px solid var(--line); max-width: 36rem; }
.facts div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts div:nth-child(odd) { padding-right: 1rem; }
.facts dt { font: 500 13px/1.4 var(--sans); color: var(--muted); }
.facts dd { margin: 0.25rem 0 0; font: 300 1.25rem/1.2 var(--serif); }

/* the board, smaller: a row of name chips under "um félagið" */
.board-block { max-width: 1180px; margin: clamp(3.5rem, 7vw, 6rem) auto 0; padding-top: 2rem; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.board-head h3 { font: 300 2rem/1.05 var(--serif); letter-spacing: -0.015em; }
.board-head p { color: var(--muted); margin: 0.6rem 0 0; max-width: 22rem; }
.board.compact { grid-template-columns: 1fr; gap: 10px; max-width: none; margin: 0; }
.board.compact .person { display: flex; align-items: center; gap: 16px; padding: 12px 18px 12px 12px; border-radius: 14px; text-align: left; }
.board.compact .portrait { width: 64px; height: 64px; aspect-ratio: 1; border-radius: 50%; flex: none; }
.board.compact .portrait::after { display: none; }
.board.compact .monogram { font-size: 1.9rem; }
.board.compact .info { margin: 0; padding: 0; flex: 1; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name more" "role more" "text text"; align-items: center; column-gap: 1rem; }
.board.compact .name { grid-area: name; font-size: 1.45rem; margin: 0; }
.board.compact .role { grid-area: role; margin-top: 0.3rem; }
.board.compact .text { grid-area: text; }
.board.compact .more { grid-area: more; margin: 0; }

/* ── upcoming events + first-timer Q&A ─────────────────────────────── */

/* same columns and gap as the two cards below, so the boxes line up as one grid */
.dates-block { max-width: 1180px; margin: 0 auto 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dates-block > div { padding: clamp(1.4rem, 3vw, 2rem); border-radius: 16px; border: 1px solid var(--line); background: var(--bg-2); }
.dates { list-style: none; margin: 0; padding: 0; }
.dates li { display: grid; grid-template-columns: 4.6rem 1fr; gap: 1rem; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.dates li:first-child { border-top: 0; padding-top: 0; }
.dates .day { font: 300 2.4rem/0.9 var(--serif); letter-spacing: -0.02em; }
.dates .day small { display: block; margin-top: 0.35rem; font: 500 13px/1.2 var(--sans); color: var(--muted); }
.dates h4 { font: 500 1.05rem/1.3 var(--sans); margin: 0; }
.dates .meta { color: var(--muted); font-size: 0.92rem; margin: 0.15rem 0 0; }
.dates .note { color: var(--faint); font-size: 0.88rem; margin: 0.2rem 0 0; }
.dates-empty { color: var(--muted); margin: 0; }
.faq { margin: 0; }
.faq div + div { margin-top: 1.1rem; }
.faq dt { font: 400 1.05rem/1.3 var(--sans); }
.faq dd { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.95rem; }

/* ── in English ──────────────────────────────────────────────────────── */

.english { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 0.8fr 1.2fr; column-gap: clamp(2rem, 6vw, 5rem); align-items: start;
  padding: clamp(1.6rem, 3.5vw, 2.6rem); border-radius: 16px; border: 1px solid var(--line); background: var(--bg-2); }
.english .label { grid-column: 1 / -1; }
.english h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.english p { color: var(--muted); margin: 0 0 1rem; }
.english p:last-child { margin-bottom: 0; }

.volunteer { max-width: 1180px; margin: 16px auto 0; display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: clamp(1.6rem, 3vw, 2.4rem); border-radius: 16px; border: 1px dashed rgba(255,255,255,0.22); }
.volunteer h3 { font: 300 clamp(1.7rem, 2.6vw, 2.2rem)/1.1 var(--serif); letter-spacing: -0.015em; }
.volunteer p { margin: 0.7rem 0 0; color: var(--muted); max-width: 44rem; }
.volunteer .btn { flex: none; }

@media (max-width: 1000px) {
  .about, .board-block { grid-template-columns: 1fr; }
  .dates-block, .english { grid-template-columns: 1fr; }
  .english h2 { margin-bottom: 1.2rem; }
  .cards.two { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .volunteer { flex-direction: column; align-items: flex-start; }
  .board.compact .info { grid-template-areas: "name" "role" "more" "text"; grid-template-columns: 1fr; }
  .board.compact .more { margin-top: 0.5rem; }
}
@media (max-width: 1000px) { .about-head { position: static; } }

/* when & where — a glass strip under "Magic fyrst" */
  border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2); overflow: hidden; }
@media (max-width: 1000px) {
}

/* ── long text pages (persónuvernd) ───────────────────────────────── */

.page.text .wrap { grid-template-columns: 1fr; max-width: 760px; gap: 2.5rem; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 2.4rem 0 0.8rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin: 0 0 1rem; line-height: 1.6; color: var(--muted); }
.prose ul { padding-left: 1.2rem; }
.prose li + li { margin-top: 0.35rem; }
.prose strong { color: var(--fg-2); font-weight: 500; }
.prose a { text-underline-offset: 3px; }
.prose .updated { font: 500 14px/1.4 var(--sans); color: var(--faint); margin-top: 2.4rem; }

/* ── members area ─────────────────────────────────────────────────── */
.sample-note { margin: 1rem 0 0; font: 400 14px/1.5 var(--sans); color: var(--faint); }
#m-error { margin-top: 1.5rem; max-width: 34rem; }
.m-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); margin: 3rem 0 0;
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: rgba(19, 20, 21, 0.7); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
}
.m-stats > div { padding: 1.3rem 1.4rem 1.4rem; display: grid; gap: 0.35rem; align-content: start; }
.m-stats > div + div { border-left: 1px solid var(--line); }
.m-stats dt { font: 500 13px/1.4 var(--sans); color: var(--muted); }
.m-stats dd { margin: 0; font: 300 clamp(2.2rem, 4vw, 3rem)/1 var(--serif); font-variant-numeric: tabular-nums; }
.m-stats small { color: var(--faint); font-size: 0.8rem; }

.m-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.m-card { align-content: start; gap: 0.9rem; }
.m-card .label { margin: 0; }
.m-card h3 { margin: 0; }
.m-card > p:not(.label) { color: var(--muted); margin: 0; font-size: 0.95rem; }
.m-wide { grid-column: 1 / -1; }
.m-empty { color: var(--muted); }

.m-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.m-table th { text-align: left; font: 500 13px/1.4 var(--sans); color: var(--faint); padding: 0 0.8rem 0.6rem 0; }
.m-table td { padding: 0.75rem 0.8rem 0.75rem 0; border-top: 1px solid var(--line); vertical-align: top; }
.m-table td small { display: block; color: var(--faint); font-size: 0.8rem; }
.m-table td:first-child { color: var(--muted); white-space: nowrap; }
.m-table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.m-table tr.first td:nth-child(3) { color: var(--fg); font-weight: 500; }
.m-table tr.first td:nth-child(3)::before { content: '★ '; color: #e7c86a; }

.m-list { list-style: none; margin: 0; padding: 0; }
.m-list li { display: grid; grid-template-columns: 4.2rem 1fr; gap: 0.6rem; padding: 0.7rem 0; border-top: 1px solid var(--line); font-size: 0.95rem; }
.m-list .when { color: var(--muted); white-space: nowrap; }
.m-list small { display: block; color: var(--faint); font-size: 0.8rem; }
.m-list .won { margin-left: 0.5rem; font: 500 14px/1 var(--sans); padding: 3px 6px; border-radius: 6px; background: rgba(231, 200, 106, 0.15); color: #e7c86a; vertical-align: 2px; }

.m-adild div { margin-top: auto; }
.btn.danger { background: rgba(255, 138, 122, 0.14); color: var(--danger); }
.btn.danger:hover { background: rgba(255, 138, 122, 0.24); }

dialog.m-dialog {
  width: min(460px, calc(100vw - 32px)); padding: 0; border: 0; background: transparent; color: var(--fg);
}
dialog.m-dialog::backdrop { background: rgba(8, 9, 10, 0.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
dialog.m-dialog .form { background: rgba(19, 20, 21, 0.94); box-shadow: 0 40px 120px -30px rgba(0,0,0,0.8); }
dialog.m-dialog h2 { margin: 0; font-size: 1.6rem; }
dialog.m-dialog p { margin: 0; color: var(--muted); }

@media (max-width: 860px) {
  .m-grid { grid-template-columns: 1fr; }
  .m-stats { grid-template-columns: 1fr 1fr; }
  .m-stats > div:nth-child(3) { border-left: 0; }
  .m-stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Facebook line under the event cards, governance notes under "Aðild", language switch */
.fb-line { max-width: 40rem; margin-top: clamp(2rem, 4vw, 3rem); }
.fb-line a { text-underline-offset: 3px; }
.governance { max-width: 1180px; margin: 16px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.governance > div { padding: 1.4rem 1.6rem; border-radius: 16px; border: 1px solid var(--line); }
.governance h3 { font: 300 1.5rem/1.1 var(--serif); letter-spacing: -0.01em; margin-bottom: 0.5rem; }
.governance p { margin: 0; color: var(--muted); }
.lang-switch { font-weight: 500; }
@media (max-width: 760px) { .governance { grid-template-columns: 1fr; } .cards.two .feature { min-height: 560px; } }
.fb-line ~ .volunteer { margin-top: clamp(2.5rem, 5vw, 4rem); }


/* Upcoming sets on the members page: a countdown per set, the next one lit. */
.m-sets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.m-sets li {
  display: grid; gap: 0.35rem; align-content: start; padding: 1.1rem 1.2rem 1.2rem;
  border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.03);
}
.m-sets li.next { border-color: rgba(159, 216, 240, 0.4); background: rgba(159, 216, 240, 0.06); }
.m-sets .count { font: 300 clamp(2.2rem, 4vw, 2.8rem)/1 var(--serif); font-variant-numeric: tabular-nums; }
.m-sets li.next .count { color: var(--accent); }
.m-sets .count small { margin-left: 0.4rem; font: 500 13px/1 var(--sans); font-style: normal; color: var(--muted); }
.m-sets .name { font-weight: 500; margin-top: 0.3rem; }
.m-sets .date { color: var(--muted); font-size: 0.9rem; }

/* ── 2026-11 UX pass ─────────────────────────────────────────────── */
input::placeholder, textarea::placeholder { color: var(--faint); opacity: 1; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.photo-credit { color: var(--fg); background: rgba(0, 0, 0, 0.55); padding: 4px 8px; border-radius: 6px; }
.dates-block h3 { font: 400 1.25rem/1.2 var(--serif); margin: 0 0 1rem; }
.m-card h2 { font: 500 1.05rem/1.35 var(--sans); margin: 0; letter-spacing: -0.01em; }
.hero .actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }

/* bylaws: one row under Aðild that opens the full text */
.bylaws-all { max-width: 1180px; margin: 16px auto 0; border: 1px solid var(--line); border-radius: 16px; }
.bylaws-all > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1.3rem 1.6rem; font: 300 1.5rem/1.1 var(--serif); }
.bylaws-all > summary::-webkit-details-marker { display: none; }
.bylaws-all > summary span { font: 400 0.9rem/1 var(--sans); color: var(--muted); }
.bylaws-all > summary span::after { content: ' +'; content: ' +' / ''; } /* the sign is decoration; the open state is announced by <details> */
.bylaws-all[open] > summary span::after { content: ' −'; content: ' −' / ''; }
.bylaws-text { padding: 0 1.6rem 1.6rem; max-width: 48rem; color: var(--muted); }
.bylaws-text h3 { color: var(--fg); margin: 1.6rem 0 0.5rem; }
.bylaws-text p { margin: 0 0 0.7rem; }
.bylaws-text ol { margin: 0 0 0.7rem; padding-left: 1.4rem; }
.bylaws-text li + li { margin-top: 0.25rem; }
.bylaws-text .note { color: var(--faint); font-size: 0.92rem; }
.volunteer p { max-width: 62ch; }
.btn { white-space: nowrap; }
/* Narrow phones: login stays in the footer, so the header keeps EN and the join button on one line */
@media (max-width: 480px) { .nav-right a[href$="innskraning"], .nav-right a[href$="en/login"] { display: none; } }

/* ── membership: why first, then how (replaces the three steps) ───── */
.join { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.join-why .sub { margin: 1.4rem 0 0; max-width: 34rem; }
.join-list { list-style: none; margin: 2rem 0 0; padding: 0; max-width: 34rem; }
.join-list li { padding: 0.9rem 0; border-top: 1px solid var(--line); }
.join-list li:last-child { border-bottom: 1px solid var(--line); }
.join-how { padding: clamp(1.4rem, 3vw, 2rem); border-radius: 16px; border: 1px solid var(--line); background: var(--bg-2); display: grid; gap: 1rem; justify-items: start; }
.join-how h3 { font: 400 1.5rem/1.15 var(--serif); }
.join-how p { margin: 0; color: var(--muted); }
.join-how .btn { margin-top: 0.4rem; }
#adild .governance { margin-top: clamp(2.5rem, 5vw, 4rem); }
@media (max-width: 860px) { .join { grid-template-columns: 1fr; } }

/* ── phone menu; anchors clear the fixed header ───────────────────── */
html { scroll-padding-top: 88px; }
.menu-btn { display: none; align-items: center; gap: 6px; border: 0; cursor: pointer; }
.menu-btn svg { width: 16px; height: 16px; }
.nav-center .m-only { display: none; }
@media (max-width: 760px) {
  .menu-btn { display: inline-flex; }
  .nav-right > .nav-link.plain { display: none; }
  .site-header.menu-open { background: rgba(15, 16, 17, 0.92); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); border-color: var(--glass-line); }
  .site-header.menu-open .bar { height: auto; min-height: 56px; }
  .site-header.menu-open .nav-center { display: flex; flex-direction: column; gap: 4px; grid-column: 1 / -1; grid-row: 2; padding: 4px 0 12px; }
  .site-header.menu-open .nav-right { grid-row: 1; grid-column: 2; }
  .site-header.menu-open .brand { grid-row: 1; height: 56px; }
  .site-header.menu-open .nav-center .nav-link { padding: 12px; font-size: 15px; }
  .nav-center .m-only { display: block; }
}

/* ── accessibility helpers ────────────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--fg); color: var(--bg); font: 500 14px/1 var(--sans); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
/* Pause control for the hero video (moving content needs a way to stop it) */
.video-toggle { position: absolute; left: clamp(14px, 3vw, 28px); bottom: clamp(14px, 3vw, 28px); z-index: 2; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--glass-line); background: rgba(15, 16, 17, 0.55); color: var(--fg); cursor: pointer; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.video-toggle svg { width: 14px; height: 14px; }
.small-note { font-size: 0.95rem; margin-top: 1.2rem; }
.form-reply-back { margin-top: 2rem; }
/* Phones: the photo sits right behind the headline, so the scrim is heavier there */
@media (max-width: 760px) {
  .hero-media::after {
    background:
      linear-gradient(180deg, rgba(15,16,17,0.55) 0%, rgba(15,16,17,0.45) 35%, rgba(15,16,17,0.7) 70%, var(--bg) 100%),
      radial-gradient(70% 50% at 50% 50%, rgba(15,16,17,0.45), transparent 75%);
  }
}
#efni:focus { outline: none; }
/* Phones: the club name stays in the header (stacked), EN stays visible when there is room,
   and the menu button drops its word to make space (its label is still read out). */
@media (max-width: 760px) {
  .nav-right > .nav-link.plain.lang-switch { display: inline-flex; }
  .nav-center .m-only[lang] { display: none; }
}
@media (max-width: 480px) {
  .menu-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .site-header .bar { padding-left: 14px; gap: 0.5rem; }
  .nav-right .btn .arrow { display: none; }
}
@media (max-width: 374px) {
  .nav-right > .nav-link.plain.lang-switch { display: none; }
  .nav-center .m-only[lang] { display: block; }
}

/* ── news (Fréttir) ───────────────────────────────────────────────── */
.news-post { padding: 2.6rem 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.news-post:first-child { border-top: 0; padding-top: 0; }
.news-date { margin: 0 0 0.5rem; font: 500 14px/1.4 var(--sans); color: var(--faint); }
.news-post h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0 0 1.2rem; }
.news-figure { margin: 0 0 1.4rem; }
.news-img { display: block; width: auto; max-width: 100%; max-height: 620px; height: auto; border-radius: 14px; } /* tall photos stay a sensible size */
.news-figure figcaption { margin-top: 0.6rem; font-size: 0.9rem; line-height: 1.5; color: var(--faint); }
.news-action { margin: 1.6rem 0 0.4rem; }
.news-body p { margin: 0 0 1rem; line-height: 1.6; color: var(--muted); }
.news-body h3 { font: 500 1rem/1.4 var(--sans); color: var(--fg-2); margin: 1.4rem 0 0.5rem; }
.news-list { margin: 0 0 1.2rem; padding-left: 1.4rem; color: var(--muted); line-height: 1.6; }
.deck { margin: 1.2rem 0; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.deck summary { cursor: pointer; padding: 0.8rem 1rem; font: 500 15px/1.4 var(--sans); color: var(--fg-2); }
.deck summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 12px; }
.decklist { margin: 0; padding: 0 1rem 1rem; font: 400 14px/1.6 var(--sans); color: var(--muted); white-space: pre-wrap; columns: 2 14rem; }
/* the latest post, under the events on the front page */
.news-latest { max-width: 1180px; margin: 1.6rem auto 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0.4rem 0.9rem; text-align: center; color: var(--muted); }
.news-latest-date { font: 500 14px/1.4 var(--sans); color: var(--faint); }
.news-latest a { text-underline-offset: 3px; }
.news-latest-all { font-size: 0.95rem; color: var(--muted); }

/* the subtitle in the "Vertu með" band sits on a photo: full-strength text there */
.cta .sub { color: var(--fg-2); }
/* tablets: the full nav plus every header link doesn't fit, so "Innskráning" lives in the footer and join page there */
@media (min-width: 761px) and (max-width: 960px) {
  .nav-right > .nav-link.plain:not(.lang-switch) { display: none; }
  .site-header .bar { gap: 0.6rem; }
}
/* very narrow or zoomed-in screens: the header keeps the name, EN and the menu; joining is one tap away in the menu and the hero */
@media (max-width: 320px) {
  .nav-right .btn { display: none; }
}
@media (max-width: 760px) { .menu-btn { min-height: 44px; min-width: 44px; justify-content: center; } }
/* long words and email addresses wrap instead of pushing the page sideways on narrow or zoomed screens */
h1, h2, h3, h4, p, li, dd, dt, a { overflow-wrap: break-word; }
.governance > *, .grant > *, .grant > * > *, .dates-block > *, .cards > * { min-width: 0; }
a[href^="mailto:"] { overflow-wrap: anywhere; }
.page .wrap > *, .board > *, .board-head, .about > * { min-width: 0; }
.news-action .btn { white-space: normal; text-align: left; }
