:root {
  --slate: #15202b;
  --slate-soft: #243447;
  --birch: #f2efe6;
  --birch-2: #e8e2d4;
  --frost: #dceef5;
  --frost-deep: #a8d5e5;
  --amber: #d97706;
  --amber-text: #b45309;
  --amber-light: #fbbf24;
  --pine: #2d5a4a;
  --ink: #1a1f24;
  --ink-soft: #4b5563;
  --ink-mute: #5b6573;
  --rule: #d4cfc0;
  --pad: clamp(1rem, 3vw, 2rem);
  --max: 72rem;
  --ff-display: "Syne", system-ui, sans-serif;
  --ff-body: "IBM Plex Sans", system-ui, sans-serif;
  --ff-mono: "IBM Plex Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}
body {
  font-family: var(--ff-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--birch);
  min-height: 100vh;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--pine); text-underline-offset: 0.18em; }
button { font: inherit; cursor: pointer; border: none; background: none; }
:focus-visible {
  outline: 2px solid var(--frost-deep);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
.lang-en { display: none; }
html[lang="en"] .lang-en { display: inline; }
html[lang="en"] .lang-sv { display: none; }
html[lang="en"] .block-en { display: block; }
html[lang="en"] .block-sv { display: none; }
.block-en { display: none; }

.skip {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  background: var(--amber);
  color: #fff;
  padding: 0.45rem 0.75rem;
  z-index: 30;
  border-radius: 0.35rem;
}
.skip:focus { top: 1rem; }

.weave-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(90deg, transparent 49.5%, var(--rule) 49.5%, var(--rule) 50.5%, transparent 50.5%),
    linear-gradient(0deg, transparent 49.5%, var(--rule) 49.5%, var(--rule) 50.5%, transparent 50.5%);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
}

.ribbon {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(21, 32, 43, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #2f4054;
}
.ribbon-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.65rem var(--pad);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
}
.brand-glyph {
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, var(--amber), var(--frost-deep));
  border-radius: 0.45rem;
  position: relative;
}
.brand-glyph::after {
  content: "";
  position: absolute;
  inset: 0.35rem;
  border: 2px solid rgba(255,255,255,0.85);
  border-radius: 0.2rem;
}
.brand-name {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.brand-tag {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
  display: block;
}

.ribbon-nav {
  display: none;
  gap: 0.15rem;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}
.ribbon-nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.82rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}
.ribbon-nav a:hover { background: rgba(255,255,255,0.08); color: #fff; }

.ribbon-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.lang-switch {
  color: #e2e8f0;
  border: 1px solid #475569;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}
.lang-switch:hover { border-color: var(--frost-deep); color: #fff; }
.menu-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.45rem;
  border: 1px solid #475569;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
}
.menu-btn span {
  display: block;
  width: 1rem;
  height: 2px;
  background: #e2e8f0;
  border-radius: 1px;
}

.drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 25;
  background: rgba(15, 23, 42, 0.55);
}
.drawer.is-open { display: block; }
.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(18rem, 88vw);
  height: 100%;
  background: var(--slate);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  box-shadow: -8px 0 32px rgba(0,0,0,0.25);
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #334155;
}
.drawer-head span {
  font-family: var(--ff-display);
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
}
.drawer-close {
  width: 2rem;
  height: 2rem;
  border-radius: 0.45rem;
  border: 1px solid #475569;
  color: #e2e8f0;
  font-size: 1.25rem;
  line-height: 1;
}
.drawer-panel a {
  color: #e2e8f0;
  text-decoration: none;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px dashed #334155;
  font-size: 0.95rem;
}

.shell { position: relative; z-index: 1; }
.page { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad) 4rem; }

.hero {
  display: grid;
  gap: 2rem;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 3rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.1fr 0.9fr; }
  .ribbon-nav { display: flex; }
  .menu-btn { display: none; }
}
.hero-kicker {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pine);
  margin-bottom: 0.75rem;
}
.hero h1 {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--slate);
  margin-bottom: 1rem;
}
.hero h1 .accent { color: var(--amber); }
.hero-lead {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 38ch;
  margin-bottom: 1.25rem;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.hero-badges span {
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--frost);
  color: var(--slate-soft);
  padding: 0.35rem 0.65rem;
  border-radius: 0.35rem;
  border: 1px solid var(--frost-deep);
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--slate);
  color: #fff;
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border-radius: 0.55rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s, background 0.15s;
}
.hero-cta:hover { background: var(--slate-soft); transform: translateY(-1px); color: #fff; }

.hero-visual {
  background: var(--slate);
  border-radius: 1.25rem;
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
  min-height: 16rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 15%, rgba(217,119,6,0.2), transparent 50%);
}
.map-svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  flex: 1;
  min-height: 10rem;
}
.map-svg .coast { fill: rgba(168,213,229,0.12); stroke: #64748b; stroke-width: 1.2; }
.map-svg .lat { stroke: rgba(148,163,184,0.35); stroke-width: 0.8; stroke-dasharray: 4 6; }
.map-svg .route { fill: none; stroke: var(--amber-light); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.map-svg .node { fill: var(--amber-light); }
.lattice { display: none; }
.hero-caption {
  position: relative;
  z-index: 1;
  margin-top: 1rem;
  font-size: 0.82rem;
  color: #94a3b8;
  font-family: var(--ff-mono);
}

.section {
  padding: 3rem 0;
  border-top: 1px solid var(--rule);
}
.section-head {
  margin-bottom: 1.75rem;
  max-width: 42rem;
}
.section-num {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--amber-text);
  display: block;
  margin-bottom: 0.35rem;
}
.section h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  letter-spacing: -0.02em;
  color: var(--slate);
  margin-bottom: 0.65rem;
}
.section-lead { color: var(--ink-soft); }

.bento {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .bento { grid-template-columns: repeat(3, 1fr); } }
.bento-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 1rem;
  padding: 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.bento-card:hover {
  box-shadow: 0 12px 32px rgba(21,32,43,0.08);
  transform: translateY(-2px);
}
.bento-card.wide { grid-column: 1 / -1; }
@media (min-width: 960px) {
  .bento-card.span2 { grid-column: span 2; }
}
.bento-card em {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pine);
  font-style: normal;
}
.bento-card strong {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  color: var(--slate);
}
.bento-card p { font-size: 0.92rem; color: var(--ink-soft); }
.meter {
  height: 0.35rem;
  background: var(--birch-2);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.35rem;
}
.meter i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--pine), var(--frost-deep));
  border-radius: inherit;
}

.timeline {
  display: grid;
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
}
.timeline-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--birch-2);
  align-items: start;
}
.timeline-row:last-child { border-bottom: none; }
.timeline-row b {
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  color: var(--amber);
  padding-top: 0.15rem;
}
.timeline-row h3 {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  color: var(--slate);
}
.timeline-row p { font-size: 0.9rem; color: var(--ink-soft); }

.spectrum {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}
@media (min-width: 480px) { .spectrum { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 700px) { .spectrum { grid-template-columns: repeat(5, 1fr); } }
.spectrum-cell {
  background: var(--slate);
  color: #fff;
  border-radius: 0.85rem;
  padding: 1rem 0.85rem;
  text-align: center;
}
.spectrum-cell b {
  display: block;
  font-family: var(--ff-mono);
  font-size: 1.1rem;
  color: var(--amber-light);
  margin-bottom: 0.35rem;
}
.spectrum-cell strong {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 0.25rem;
}
.spectrum-cell span { font-size: 0.72rem; color: #94a3b8; }

.faq { display: grid; gap: 0.65rem; }
.faq details {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
}
.faq summary {
  font-family: var(--ff-display);
  font-weight: 600;
  color: var(--slate);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--ff-mono);
  color: var(--amber-text);
  font-size: 1.1rem;
  line-height: 1.2;
}
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { margin-bottom: 0.65rem; color: var(--pine); }
.faq p { font-size: 0.92rem; color: var(--ink-soft); }

.read-grid {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 700px) { .read-grid { grid-template-columns: repeat(3, 1fr); } }
.read-grid a {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 0.85rem;
  padding: 1.1rem;
  transition: border-color 0.15s, transform 0.15s;
  color: inherit;
}
.read-grid a:hover { border-color: var(--frost-deep); transform: translateY(-2px); }
.read-grid .n {
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  color: var(--amber);
}
.read-grid .title {
  font-family: var(--ff-display);
  font-weight: 650;
  color: var(--slate);
}
.read-grid .dek { font-size: 0.85rem; color: var(--ink-mute); }

.office {
  display: grid;
  gap: 1.5rem;
  background: var(--slate);
  color: #e2e8f0;
  border-radius: 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
@media (min-width: 800px) { .office { grid-template-columns: 1.2fr 0.8fr; } }
.office h2 {
  font-family: var(--ff-display);
  color: #fff;
  font-size: 1.65rem;
  margin-bottom: 0.65rem;
}
.office-lead { color: #94a3b8; margin-bottom: 1rem; }
.vcard {
  font-family: var(--ff-mono);
  font-size: 0.82rem;
  line-height: 1.8;
  color: #cbd5e1;
}
.stamp {
  background: rgba(255,255,255,0.06);
  border: 1px dashed #475569;
  border-radius: 0.85rem;
  padding: 1.15rem;
}
.stamp h3 {
  font-family: var(--ff-display);
  color: var(--amber-light);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.stamp p { font-size: 0.88rem; color: #94a3b8; }
.stamp a { color: var(--frost-deep); }

.colophon {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 1rem;
}
.colophon nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}
.colophon nav a {
  font-size: 0.88rem;
  text-decoration: none;
  color: var(--ink-soft);
}
.colophon nav a:hover { color: var(--pine); }
.colophon-fine {
  font-size: 0.78rem;
  color: var(--ink-mute);
  max-width: 52rem;
}

.consent {
  position: fixed;
  inset-inline: var(--pad);
  bottom: var(--pad);
  z-index: 40;
  max-width: 28rem;
  background: var(--slate);
  color: #e2e8f0;
  border-radius: 1rem;
  padding: 1.15rem;
  box-shadow: 0 16px 48px rgba(0,0,0,0.22);
  transform: translateY(calc(100% + 2rem));
  transition: transform 0.35s ease;
}
.consent.is-in { transform: translateY(0); }
.consent p { font-size: 0.85rem; margin-bottom: 0.85rem; color: #94a3b8; }
.consent-title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 0.35rem;
}
.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;
}
.consent-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.consent-actions button {
  padding: 0.5rem 0.85rem;
  border-radius: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
}
.consent-ok { background: #92400e; color: #fff; }
.consent-no { background: transparent; color: #cbd5e1; border: 1px solid #475569; }
@media (max-width: 639px) {
  .consent {
    inset-inline: 0.75rem;
    bottom: 0.75rem;
    max-width: none;
    padding: 0.85rem 1rem;
  }
  .consent p { font-size: 0.78rem; margin-bottom: 0.65rem; }
}
.timeline-row b { color: var(--amber-text); }
.read-grid .n { color: var(--amber-text); }
.hero h1 .accent { color: var(--amber-text); }
.bento-card em { font-size: 0.72rem; }
.vcard a { color: var(--frost-deep); text-decoration: none; }
.vcard a:hover { text-decoration: underline; }
.page-foot {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: 0.82rem;
  color: var(--ink-mute);
}
.page-foot nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; margin-top: 0.5rem; }
.page-foot nav a { color: var(--ink-soft); text-decoration: none; }
.page-foot nav a:hover { color: var(--pine); }

.legal-page { padding: 2.5rem 0 4rem; max-width: 42rem; }
.legal-page h1 {
  font-family: var(--ff-display);
  font-size: 2rem;
  color: var(--slate);
  margin-bottom: 0.5rem;
}
.legal-meta {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  color: var(--ink-mute);
  margin-bottom: 1.5rem;
}
.legal-page h2 {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--slate);
}
.legal-page p, .legal-page li {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
}
.legal-page ul { padding-left: 1.25rem; }

.article-page { padding: 2rem 0 4rem; max-width: 40rem; }
.article-page h1 {
  font-family: var(--ff-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  color: var(--slate);
  margin-bottom: 0.75rem;
}
.article-kicker {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pine);
  margin-bottom: 0.5rem;
}
.article-page p { margin-bottom: 1rem; color: var(--ink-soft); }
.back-link {
  display: inline-flex;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
  text-decoration: none;
  color: var(--pine);
  font-weight: 600;
}
