@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,700..800&family=Fraunces:opsz,wght@9..144,600..900&family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@400;500;600&display=swap");

/* ===================================================================
   DAVIDVESTIN.SE — redaktionell krönika om casino utan svensk licens
   Ett personligt magasin: essäistiskt, åsiktsdrivet, men sakligt.
   Magasinsomslag med gradient-mesh, oversized serif-rubriker och en
   pennskaftets bläckton. Palett: vinröd + guld på varmt gräddpapper.
=================================================================== */
:root {
  /* ----- Palett (obligatoriska namn) ----- */
  --color-primary: #9f1239; /* vinröd — bläck/varumärke      */
  --color-accent: #ca8a04; /* guld — dekorativ accent        */
  --color-bg: #fbf6ee; /* varmt gräddpapper                 */
  --color-surface: #ffffff; /* kort/ytor                    */
  --color-text: #1c1917; /* brödtext, nära svart            */

  /* ----- Interna alias (används i hela filen) ----- */
  --papier: var(--color-bg);
  --papier-tief: #f1e8d8; /* djupare papper / dämpad yta    */
  --linie: #e6ddcb; /* hårlinjer                            */
  --tinte: var(--color-text); /* bläck                      */
  --stempel: var(--color-primary); /* vinröd accent         */
  --stempel-dunkel: #3a0a18; /* djup vinröd (FAQ-sektion)    */
  --marker: #f3d27a; /* markeringspenna, ljus guld           */
  --tinte-08: rgba(28, 25, 23, 0.08);

  /* ----- Typography ----- */
  --font-display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo,
    Consolas, monospace;

  /* ----- Type scale ----- */
  --step-body: 1.0625rem;
  --step-h3: clamp(1.2rem, 1rem + 1vw, 1.45rem);
  --step-h2: clamp(1.55rem, 1.2rem + 1.6vw, 2.15rem);
  --step-h1: clamp(2.5rem, 1.4rem + 5vw, 4.8rem);

  /* ----- Layout / spacing ----- */
  --maxw: 1140px;
  --header-h: 70px;
  --gap: clamp(1rem, 3vw, 2rem);

  /* ----- Signature hard offset shadow ----- */
  --schatten: 8px 8px 0 var(--stempel);
  --schatten-tinte: 6px 6px 0 var(--tinte);
}

/* ===================== Reset / base ===================== */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-body);
  line-height: 1.62;
  color: var(--tinte);
  background-color: var(--papier);
  /* subtle 26px dot-grid paper texture */
  background-image: radial-gradient(var(--tinte-08) 1.1px, transparent 1.2px);
  background-size: 26px 26px;
  background-position: -6px -6px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--tinte);
}
h1 {
  font-size: var(--step-h1);
  margin: 0 0 0.6rem;
  text-wrap: balance;
}
h2 {
  font-size: var(--step-h2);
  margin: 2.6rem 0 0.9rem;
}
h3 {
  font-size: var(--step-h3);
  line-height: 1.08;
  margin: 1.9rem 0 0.6rem;
}
p {
  margin: 0 0 1.05rem;
}

a {
  color: var(--tinte);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: var(--stempel);
  transition: background-color 0.12s ease, color 0.12s ease,
    box-shadow 0.12s ease;
}
/* Highlighter hover: a warm gold marker swept over the link */
a:hover {
  color: var(--tinte);
  background: var(--marker);
  text-decoration-color: var(--tinte);
  box-shadow: 0 0 0 2px var(--marker);
}

strong {
  font-weight: 600;
  background: var(--marker);
  color: var(--tinte);
  padding: 0.02em 0.18em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

::selection {
  background: var(--marker);
  color: var(--tinte);
}

:focus-visible {
  outline: 3px solid var(--stempel);
  outline-offset: 2px;
}

/* ===================== Utility wrap ===================== */
.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gap);
}

/* ===================== Skip link ===================== */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--stempel);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  padding: 0.7rem 1.1rem;
  border: 2px solid var(--tinte);
  box-shadow: var(--schatten-tinte);
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 12px;
  color: #fff;
  background: var(--stempel);
  box-shadow: var(--schatten-tinte);
}

/* ===================== Reading progress bar ===================== */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0;
  background: var(--stempel);
  z-index: 120;
  will-change: width;
}

/* ===================== Header / Nav ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--papier);
  border-bottom: 3px solid var(--tinte);
}
.site-header .wrap {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}
.logo:hover {
  background: none;
  box-shadow: none;
}
.logo img {
  height: 32px;
  width: auto;
  display: block;
}

.main-nav ul {
  display: flex;
  gap: 0.3rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.main-nav a {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--tinte);
  text-decoration: none;
  padding: 0.42rem 0.62rem;
  border: 2px solid transparent;
  white-space: nowrap;
}
.main-nav a:hover {
  background: var(--marker);
  color: var(--tinte);
  border-color: var(--tinte);
  box-shadow: none;
}
/* current page chip is inverted */
.main-nav a[aria-current="page"] {
  background: var(--tinte);
  color: var(--papier);
  border-color: var(--tinte);
}
.main-nav a[aria-current="page"]:hover {
  background: var(--stempel);
  color: #fff;
  border-color: var(--tinte);
}

/* Hamburger toggle (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 42px;
  padding: 0;
  background: var(--papier);
  border: 2px solid var(--tinte);
  box-shadow: 3px 3px 0 var(--stempel);
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.nav-toggle:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--stempel);
}
.nav-toggle:active {
  transform: translate(0, 0);
  box-shadow: 0 0 0 var(--stempel);
}
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2.5px;
  margin: 0 auto;
  background: var(--tinte);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
body.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
body.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
body.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

@media (max-width: 1024px) {
  .nav-toggle {
    display: flex;
  }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--papier);
    border-bottom: 3px solid var(--tinte);
    border-top: 1px solid var(--linie);
    box-shadow: 0 14px 0 -6px var(--tinte-08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, transform 0.18s ease,
      visibility 0.18s ease;
  }
  body.nav-open .main-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.6rem var(--gap) 1rem;
  }
  .main-nav a {
    padding: 0.85rem 0.7rem;
    font-size: 0.86rem;
    border: 2px solid transparent;
    border-bottom: 1px solid var(--linie);
  }
}

/* ===================== Hero — magasinsomslag med gradient-mesh ===================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.75rem, 6vw, 5rem) 0 clamp(2.25rem, 5vw, 4rem);
  border-bottom: 3px solid var(--tinte);
  /* soft multi-stop gradient mesh: wine + gold tints drifting over cream */
  background-color: var(--papier);
  background-image: radial-gradient(
      62rem 34rem at 8% -12%,
      rgba(159, 18, 57, 0.2),
      transparent 60%
    ),
    radial-gradient(
      52rem 38rem at 104% 4%,
      rgba(202, 138, 4, 0.22),
      transparent 58%
    ),
    radial-gradient(
      40rem 30rem at 88% 128%,
      rgba(159, 18, 57, 0.14),
      transparent 60%
    ),
    radial-gradient(
      34rem 26rem at 22% 132%,
      rgba(202, 138, 4, 0.13),
      transparent 62%
    );
}
/* always-active interactive gradient mesh that drifts behind the hero */
.hero::before {
  content: "";
  position: absolute;
  inset: -25%;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(
      36rem 28rem at 22% 24%,
      rgba(159, 18, 57, 0.32),
      transparent 60%
    ),
    radial-gradient(
      32rem 26rem at 78% 30%,
      rgba(202, 138, 4, 0.3),
      transparent 60%
    ),
    radial-gradient(
      40rem 32rem at 62% 88%,
      rgba(159, 18, 57, 0.22),
      transparent 62%
    ),
    radial-gradient(
      30rem 24rem at 20% 92%,
      rgba(202, 138, 4, 0.2),
      transparent 62%
    );
  filter: blur(6px);
  will-change: transform;
  animation: heroMeshDrift 22s ease-in-out infinite alternate;
}
@keyframes heroMeshDrift {
  0% {
    transform: translate3d(-5%, -3%, 0) scale(1.05) rotate(-1deg);
  }
  50% {
    transform: translate3d(4%, 3%, 0) scale(1.14) rotate(1.5deg);
  }
  100% {
    transform: translate3d(-2%, 5%, 0) scale(1.08) rotate(-0.5deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before {
    animation: none;
  }
}
/* faint magazine column rules along the right edge */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 42%;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0 47px,
    var(--linie) 47px 48px
  );
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 72%);
  mask-image: linear-gradient(90deg, transparent, #000 72%);
  pointer-events: none;
  z-index: 0;
}
.hero .wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* magazine kicker (e.g. "Krönika") — mono caps underlined in gold */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--stempel);
  background: transparent;
  padding: 0 0 0.4rem;
  margin: 0 0 1.15rem;
  border: none;
  border-bottom: 3px solid var(--color-accent);
}
.hero h1 {
  max-width: 20ch;
  margin-inline: auto;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 1.2rem + 3.4vw, 3.6rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.byline {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--tinte);
  margin: 1rem 0 1.4rem;
}
.byline a {
  color: var(--tinte);
  text-decoration-color: var(--stempel);
}
.hero p.lede {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.42rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--tinte);
  max-width: 60ch;
  margin: 0 auto 1.9rem;
  padding-top: 1.15rem;
  border-top: 4px solid var(--stempel);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-decoration: none;
  padding: 0.85rem 1.4rem;
  cursor: pointer;
  border: 2px solid var(--tinte);
  box-shadow: 4px 4px 0 var(--tinte);
  transition: transform 0.1s ease, box-shadow 0.1s ease,
    background-color 0.12s ease, color 0.12s ease;
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--tinte);
}
.btn:active {
  transform: translate(0, 0);
  box-shadow: 0 0 0 var(--tinte);
}
.btn-primary {
  background: var(--stempel);
  color: #fff;
}
.btn-primary:hover {
  background: var(--stempel);
  color: #fff;
}
.btn-secondary {
  background: var(--color-surface);
  color: var(--tinte);
}
.btn-secondary:hover {
  background: var(--marker);
  color: var(--tinte);
}

/* ===================== Layout (article + TOC) ===================== */
.layout {
  display: grid;
  grid-template-columns: 265px 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(2rem, 5vw, 3.25rem) 0 3.5rem;
}
.layout > * {
  min-width: 0;
}
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }
  aside {
    order: -1;
  }
}

/* ===================== Table of contents — spaltregister ===================== */
.toc {
  position: sticky;
  top: calc(var(--header-h) + 1.25rem);
  align-self: start;
  background: var(--color-surface);
  border: 2px solid var(--tinte);
  box-shadow: var(--schatten-tinte);
}
.toc h2 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--papier);
  background: var(--tinte);
  margin: 0;
  padding: 0.7rem 0.95rem;
  line-height: 1.2;
}
.toc ul {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  counter-reset: toc;
}
.toc li {
  counter-increment: toc;
  margin: 0;
}
.toc a {
  display: grid;
  grid-template-columns: 2.1em 1fr;
  gap: 0.35rem;
  align-items: baseline;
  padding: 0.42rem 0.95rem;
  color: var(--tinte);
  text-decoration: none;
  font-size: 0.86rem;
  line-height: 1.32;
  border-left: 4px solid transparent;
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--stempel);
}
.toc a:hover {
  background: var(--marker);
  color: var(--tinte);
  box-shadow: none;
}
.toc a:hover::before {
  color: var(--tinte);
}
.toc a.is-active {
  font-weight: 600;
  border-left-color: var(--stempel);
  background: color-mix(in srgb, var(--stempel) 12%, var(--papier));
}

/* ===================== Article ===================== */
.article {
  counter-reset: sec;
}
.article > :first-child {
  margin-top: 0;
}
.article p {
  max-width: 68ch;
}
.article ul,
.article ol {
  padding-left: 1.3rem;
  margin: 0 0 1.3rem;
  max-width: 66ch;
}
.article li {
  margin-bottom: 0.45rem;
}

/* auto-numbered section headings — "Nr 01" krönike-marker */
.article h2 {
  counter-increment: sec;
  border-top: 3px solid var(--tinte);
  padding-top: 1.1rem;
  margin: 3rem 0 1rem;
}
.article h2::before {
  content: "Nr " counter(sec, decimal-leading-zero);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--stempel);
  margin-bottom: 0.45rem;
}
.article h3 {
  color: var(--tinte);
}

/* figures */
.article figure {
  margin: 2rem 0;
}
.article figure img {
  border: 3px solid var(--tinte);
  box-shadow: var(--schatten);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
  background: var(--papier-tief);
}
.article figcaption {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--tinte);
  margin-top: 0.9rem;
  padding-left: 0.85rem;
  border-left: 3px solid var(--linie);
}

/* ===================== Callout ===================== */
.callout {
  position: relative;
  background: #fff;
  border: 3px solid var(--tinte);
  box-shadow: var(--schatten);
  padding: 1.4rem 1.5rem 1.4rem 1.75rem;
  margin: 2.4rem 0;
}
.callout::before {
  content: "!";
  position: absolute;
  top: -20px;
  left: -20px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--stempel);
  color: #fff;
  border: 2px solid var(--tinte);
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 1;
  transform: rotate(-12deg);
}
.callout p {
  margin: 0;
  max-width: none;
}
.callout strong {
  background: var(--marker);
}

/* ===================== Comparison table ===================== */
.table-wrap {
  overflow-x: auto;
  margin: 2rem 0;
  border: 3px solid var(--tinte);
  box-shadow: var(--schatten);
  -webkit-overflow-scrolling: touch;
}
table.cmp {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.94rem;
  font-variant-numeric: tabular-nums;
  background: #fff;
}
table.cmp th,
table.cmp td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--linie);
  border-right: 1px solid var(--linie);
  vertical-align: top;
}
table.cmp th:last-child,
table.cmp td:last-child {
  border-right: none;
}
table.cmp thead th {
  background: var(--stempel);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-right-color: color-mix(in srgb, #fff 25%, var(--stempel));
  border-bottom: 3px solid var(--tinte);
}
table.cmp tbody th {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--tinte);
  background: var(--papier-tief);
  white-space: nowrap;
}
table.cmp tbody tr:last-child th,
table.cmp tbody tr:last-child td {
  border-bottom: none;
}

/* ===================== Pros / cons ===================== */
.procons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 2.2rem 0;
}
@media (max-width: 560px) {
  .procons {
    grid-template-columns: 1fr;
  }
}
.procons-col {
  background: #fff;
  border: 3px solid var(--tinte);
  box-shadow: var(--schatten-tinte);
  padding: 0;
}
.procons-col h3 {
  margin: 0;
  padding: 0.7rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.procons-pro h3 {
  background: var(--stempel);
  color: #fff;
  border-bottom: 3px solid var(--tinte);
}
.procons-con h3 {
  background: var(--papier-tief);
  color: var(--tinte);
  border-bottom: 3px dashed var(--tinte);
}
.procons ul {
  list-style: none;
  margin: 0;
  padding: 1rem 1.2rem;
}
.procons li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: 0.7rem;
}
.procons li:last-child {
  margin-bottom: 0;
}
.procons-pro li::before,
.procons-con li::before {
  position: absolute;
  left: 0;
  top: -0.05em;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.3;
}
.procons-pro li::before {
  content: "+";
  color: var(--stempel);
}
.procons-con li::before {
  content: "\2212"; /* − minus */
  color: color-mix(in srgb, var(--tinte) 55%, var(--papier));
}

/* ===================== Link box (sources / read-more) ===================== */
.linkbox {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  background: var(--papier-tief);
  border: 2px solid var(--tinte);
  box-shadow: var(--schatten-tinte);
  padding: 1.6rem;
  margin: 2.4rem 0;
}
@media (max-width: 560px) {
  .linkbox {
    grid-template-columns: 1fr;
    gap: 1.3rem;
  }
}
.linkbox h3 {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tinte);
  margin: 0 0 0.9rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid var(--tinte);
}
.linkbox ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.linkbox li {
  margin-bottom: 0.65rem;
  padding-left: 1.4rem;
  position: relative;
  font-size: 0.95rem;
}
.linkbox li:last-child {
  margin-bottom: 0;
}
.linkbox li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--stempel);
}
.linkbox .internal li::before {
  content: "\2192"; /* → */
}
.linkbox .external li::before {
  content: "\2197"; /* ↗ */
}
.linkbox a {
  text-decoration-color: var(--stempel);
}

/* ===================== Author box ===================== */
.author-box {
  display: flex;
  gap: 1.4rem;
  align-items: flex-start;
  background: #fff;
  border: 3px solid var(--tinte);
  box-shadow: var(--schatten);
  padding: 1.6rem;
  margin: 2.8rem 0 0.5rem;
}
.author-box img {
  width: 88px;
  height: 88px;
  flex: none;
  object-fit: cover;
  border: 2px solid var(--tinte);
  box-shadow: 5px 5px 0 var(--stempel);
  transform: rotate(-3deg);
}
.author-box .name {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 1.28rem;
  letter-spacing: -0.01em;
  margin: 0.15rem 0 0;
}
.author-box .position {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--stempel);
  font-weight: 600;
  margin: 0.35rem 0 0.7rem;
}
.author-box p.bio {
  margin: 0;
  color: var(--tinte);
  font-size: 0.95rem;
  max-width: 62ch;
}
@media (max-width: 480px) {
  .author-box {
    flex-direction: column;
  }
}

/* ===================== FAQ — mörk vinröd sektion ===================== */
.faq {
  background: var(--stempel-dunkel);
  color: var(--papier);
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  border-top: 3px solid var(--tinte);
  background-image: radial-gradient(
    rgba(251, 246, 238, 0.05) 1.1px,
    transparent 1.2px
  );
  background-size: 26px 26px;
}
.faq h2 {
  color: var(--papier);
  margin: 0 0 1.6rem;
  padding-bottom: 0.9rem;
  border-bottom: 3px solid var(--marker);
}
.faq h2::after {
  content: "\00b7 L\00c4SARFR\00c5GOR";
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--marker);
  vertical-align: middle;
  margin-left: 0.6rem;
}
.faq-item {
  border: 2px solid rgba(251, 246, 238, 0.24);
  background: rgba(251, 246, 238, 0.03);
  margin-bottom: 0.75rem;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--papier);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--marker);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1;
  flex: none;
}
.faq-item[open] {
  border-color: var(--marker);
}
.faq-item[open] summary::after {
  content: "\2212"; /* − */
}
.faq-item[open] summary {
  color: var(--marker);
}
.faq-item .answer {
  padding: 0 1.25rem 1.2rem;
  color: rgba(251, 246, 238, 0.85);
}
.faq-item .answer p {
  margin: 0;
  max-width: 74ch;
}
.faq-item .answer a {
  color: var(--marker);
  text-decoration-color: var(--marker);
}
.faq-item .answer a:hover {
  background: var(--marker);
  color: var(--tinte);
}
.faq strong {
  background: var(--marker);
  color: var(--tinte);
}

/* ===================== Footer ===================== */
.site-footer {
  background: var(--tinte);
  color: var(--papier);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.25rem;
}
@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
.footer-logo {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
}
.footer-logo:hover {
  background: none;
  box-shadow: none;
}
.footer-logo img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}
.footer-col p {
  color: rgba(251, 246, 238, 0.72);
  font-size: 0.92rem;
  margin: 1rem 0 0;
  max-width: 42ch;
}
.footer-col h3 {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--papier);
  margin: 0 0 1.1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(251, 246, 238, 0.2);
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col li {
  margin-bottom: 0.6rem;
}
.footer-col a {
  color: rgba(251, 246, 238, 0.82);
  text-decoration: none;
  font-size: 0.94rem;
  text-decoration-color: var(--stempel);
}
.footer-col a:hover {
  background: var(--marker);
  color: var(--tinte);
  box-shadow: 0 0 0 2px var(--marker);
}

/* Responsible-gambling note (18+) */
.rg-note {
  position: relative;
  display: block;
  margin-top: 1.4rem;
  padding: 1rem 1.1rem;
  border: 2px dashed rgba(251, 246, 238, 0.42);
  background: transparent;
  font-size: 0.86rem;
  color: rgba(251, 246, 238, 0.78);
  max-width: 42ch;
}
.rg-note strong {
  display: inline-block;
  background: var(--marker);
  color: var(--tinte);
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  margin-right: 0.35rem;
  border: 1px solid var(--tinte);
  transform: rotate(-4deg);
}

.footer-bottom {
  border-top: 1px solid rgba(251, 246, 238, 0.2);
  margin-top: 2.5rem;
  padding-top: 1.4rem;
  font-size: 0.82rem;
  color: rgba(251, 246, 238, 0.6);
}
.footer-bottom p {
  margin: 0 0 0.5rem;
  max-width: none;
}
.footer-disclaimer {
  font-size: 0.8rem;
}

/* ===================== Scroll reveal (JS-driven) ===================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ===================== Reduced motion ===================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ===================== Print ===================== */
@media print {
  .site-header,
  .nav-toggle,
  .main-nav,
  .read-progress,
  aside,
  .toc,
  .site-footer,
  .hero-actions,
  .skip-link {
    display: none !important;
  }
  body {
    background: #fff !important;
    color: #000;
    font-size: 11pt;
  }
  .hero::after {
    display: none;
  }
  .layout {
    display: block;
    padding: 0;
  }
  a {
    color: #000;
    text-decoration: underline;
  }
  strong {
    background: none;
    text-decoration: underline;
  }
  .callout,
  .table-wrap,
  .author-box,
  .procons-col,
  .article figure img,
  .linkbox {
    box-shadow: none !important;
    border-color: #000;
  }
  .callout::before {
    background: #000;
  }
  .faq {
    background: #fff;
    color: #000;
  }
  .faq h2,
  .faq-item summary {
    color: #000;
  }
  .faq-item {
    border-color: #000;
  }
  .faq-item .answer {
    color: #000;
  }
}
