/* Dansk Casinoavis — generated. Tokens first, then shared base, then this
   publication's own composition. Edit the generator, not this file. */

:root {
  --ink: #1D493E;
  --accent: #9C3C3B;
  --paper: #FAF7EF;
  --surface: #F1ECE1;
  --body: #1b1d22;
  --muted: #4d525b;
  --rule: #d8d4cb;
  --focus: #0b5bd3;
  --display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1280px;
  --gap: 1.75rem;
  --rhythm: 2.75rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--ui);
  font-size: 1rem;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

/* Links are underlined by default and lose the underline on hover, per brief. */
a { color: var(--ink); text-underline-offset: 2px; }
a:hover { text-decoration: none; color: var(--accent); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 60;
  background: var(--ink); color: #fff; padding: .75rem 1.25rem;
}
.skip-link:focus { left: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1rem; }

.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
      overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ------------------------------------------------------------- masthead */

.masthead { padding-top: 1.35rem; }
.masthead__brand a { color: inherit; text-decoration: none; }

.masthead__title {
  font-family: var(--display);
  font-weight: 600; color: var(--ink); margin: 0; line-height: 1.04;
  letter-spacing: -.01em;
  font-size: clamp(2rem, 5.5vw, 3.9rem);
}
.masthead__tagline {
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); margin: .55rem 0 0;
}

.masthead--centered .masthead__bar { display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: var(--gap); }
.masthead--centered .masthead__brand { text-align: center; }

.masthead--left .masthead__bar { display: flex; align-items: center; justify-content: space-between;
  gap: var(--gap); flex-wrap: wrap; }

.masthead__values { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); text-align: right; line-height: 1.95; margin: 0; }

/* search */

.search { display: flex; max-width: 16rem; width: 100%; }
.search__field { display: flex; align-items: center; gap: .5rem; width: 100%;
  border: 1px solid var(--rule); border-radius: 999px; background: #fff; padding: .5rem .9rem; }
.search__field:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.search__input { border: 0; background: transparent; font: inherit; font-size: .85rem;
  width: 100%; min-height: 24px; }
.search__input:focus { outline: none; }
.search__btn { border: 0; background: none; padding: 0; color: var(--muted); cursor: pointer;
  display: grid; place-items: center; min-width: 24px; min-height: 24px; }
.search__btn:hover { color: var(--accent); }

/* ------------------------------------------------------------------ nav */

.nav { margin-top: 1.4rem; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.nav--rules { border-top: 3px double var(--accent); border-bottom: 3px double var(--accent); }
.nav--bar { background: var(--accent); border: 0; }
.nav--tabs { border-top: 0; border-bottom: 2px solid var(--rule); }

.nav__list { display: flex; gap: clamp(1.1rem, 4vw, 3.2rem); list-style: none; margin: 0;
  padding: .8rem 0; flex-wrap: wrap; }
.nav--centered .nav__list { justify-content: center; }

.nav__link {
  font-family: var(--display); font-size: 1.05rem; color: var(--ink);
  text-decoration: none; padding: .3rem 0; display: inline-block;
  position: relative; transition: color 180ms ease;
}
/* An underline that grows from the left, rather than a default text-decoration. */
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 200ms ease;
}
.nav__link:hover { color: var(--accent); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav--bar .nav__link { color: #fff; font-family: var(--ui); font-weight: 500;
  letter-spacing: .04em; text-transform: uppercase; font-size: .82rem; }
.nav--bar .nav__link::after { background: #fff; }
.nav--bar .nav__link:hover { color: #fff; }

.nav-toggle {
  display: none; align-items: center; gap: .55rem; background: none;
  border: 1px solid var(--rule); border-radius: 4px; padding: .6rem .9rem;
  font: inherit; font-size: .9rem; color: var(--ink); cursor: pointer; min-height: 44px;
}

/* ---------------------------------------------------------------- blocks */

.kicker { display: block; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .4rem; font-weight: 600; }

.rail__heading, .band__heading {
  font-family: var(--display); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink); margin: 0 0 1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--rule);
}

.media {
  background: var(--surface); border: 1px solid var(--rule); display: grid; place-items: center;
  color: var(--muted); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  text-align: center; padding: .5rem;
}
.media--4x3 { aspect-ratio: 4/3; }
.media--16x9 { aspect-ratio: 16/9; }
.media--21x9 { aspect-ratio: 21/9; }

.story { margin: 0 0 1.9rem; }
.story:last-child { margin-bottom: 0; }
.story__media { margin-bottom: .8rem; }
.story__title { font-family: var(--display); font-weight: 600; color: var(--ink);
  line-height: 1.18; margin: 0 0 .45rem; font-size: 1.25rem; }
.story__title a { color: inherit; text-decoration: none; }
.story__title a:hover { color: var(--accent); }
.story__summary { margin: 0; color: var(--muted); font-size: .94rem; }

.lead__title { font-family: var(--display); font-weight: 600; color: var(--ink);
  font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.08; margin: 1rem 0 .7rem;
  letter-spacing: -.015em; }
.lead__title a { color: inherit; text-decoration: none; }
.lead__title a:hover { color: var(--accent); }
.lead__deck { font-family: var(--display); font-size: clamp(1.1rem, 2vw, 1.45rem);
  color: var(--muted); margin: 0 0 1rem; line-height: 1.35; }
.lead__body { margin: 0; max-width: 62ch; }

.age { display: flex; gap: .85rem; align-items: center; background: var(--surface);
  border: 1px solid var(--rule); padding: .85rem; margin-top: 1.6rem; }
.age__mark { flex: none; width: 2.7rem; height: 2.7rem; border: 2px solid var(--ink);
  border-radius: 50%; display: grid; place-items: center; font-family: var(--display);
  font-weight: 600; color: var(--ink); font-size: .9rem; }
.age__text { margin: 0; font-size: .8rem; color: var(--muted); line-height: 1.45; }

/* --------------------------------------------------------------- footer */

.footer { border-top: 3px double var(--accent); padding-block: 2.4rem 1.4rem; margin-top: var(--rhythm); }
.footer--centered { text-align: center; }
.footer--dark { background: var(--ink); color: #fff; border-top: 0; }
.footer--dark a, .footer--dark .footer__brand { color: #fff; }
.footer--tint { background: var(--surface); }

.footer__brand { font-family: var(--display); font-weight: 600; color: var(--ink);
  font-size: 1.8rem; margin: 0; }
.footer__tagline { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); margin: .45rem 0 1.6rem; }
.footer--dark .footer__tagline { color: rgba(255,255,255,.72); }

.footer__links { list-style: none; margin: 0 0 .85rem; padding: 0; display: flex;
  flex-wrap: wrap; gap: .55rem 1.5rem; font-size: .9rem; }
.footer--centered .footer__links { justify-content: center; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: var(--accent); }
.footer--dark .footer__links a:hover { color: #fff; opacity: .78; }

.footer__consent { background: none; border: 0; padding: 0; font: inherit; font-size: .9rem;
  color: inherit; cursor: pointer; text-decoration: underline; }
.footer__consent:hover { text-decoration: none; color: var(--accent); }

.footer__rule { border: 0; border-top: 1px solid var(--rule); max-width: 30rem; margin: 1.4rem auto; }
.footer__meta { font-size: .8rem; color: var(--muted); margin: 0 0 .4rem; }
.footer--dark .footer__meta { color: rgba(255,255,255,.72); }

/* ------------------------------------------------------------- utility */

.to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid var(--accent); background: var(--accent);
  color: #fff; display: grid; place-items: center; cursor: pointer;
  opacity: 0; visibility: hidden; transition: opacity 200ms ease, visibility 200ms ease; z-index: 30;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
body.consent-open .to-top { bottom: 11rem; }

.consent { position: fixed; inset-inline: 0; bottom: 0; background: #fff;
  border-top: 3px double var(--accent); padding: 1.15rem 1rem; z-index: 40;
  box-shadow: 0 -8px 24px rgba(0,0,0,.12); }
.consent[hidden] { display: none; }
.consent__inner { max-width: var(--container); margin-inline: auto; display: grid;
  grid-template-columns: minmax(0,1fr) auto; gap: var(--gap); align-items: center; }
.consent__title { font-family: var(--display); font-size: 1.1rem; color: var(--ink); margin: 0 0 .3rem; }
.consent__text { margin: 0; font-size: .88rem; color: var(--muted); }
.consent__actions { display: flex; gap: .7rem; flex-wrap: wrap; }

.btn { font: inherit; font-size: .9rem; padding: .7rem 1.2rem; min-height: 44px;
  border-radius: 3px; cursor: pointer; border: 1px solid var(--ink); background: #fff;
  color: var(--ink); text-decoration: none; display: inline-flex; align-items: center;
  transition: background-color 180ms ease, color 180ms ease; }
.btn:hover { background: var(--surface); color: var(--ink); }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--accent); color: #fff; }

/* ------------------------------------------------------------ 404 page */

.notfound { padding-block: 4rem; max-width: 46rem; }
.notfound__code { font-family: var(--display); font-size: 4rem; color: var(--accent); margin: 0; }
.notfound__title { font-family: var(--display); font-size: 2rem; color: var(--ink); margin: .5rem 0 1rem; }

/* ----------------------------------------------------------- responsive */

@media (max-width: 1024px) {
  .lead-grid { grid-template-columns: minmax(0,1fr) 15rem !important; }
  .lead-grid .rail--left { grid-column: 1 / -1; order: 3; border-right: 0; padding-right: 0;
    border-top: 1px solid var(--rule); padding-top: var(--gap); }
  .band--3, .band--4 { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
}

@media (max-width: 760px) {
  :root { --rhythm: 2rem; }
  .masthead--centered .masthead__bar, .masthead--left .masthead__bar {
    grid-template-columns: 1fr; display: grid; gap: .9rem; }
  .masthead__values { display: none; }
  .search { max-width: none; }

  .nav-toggle { display: inline-flex; margin: .6rem 0; }
  .nav__list { display: none; flex-direction: column; gap: 0; padding-bottom: .5rem; }
  .nav__list.is-open { display: flex; }
  .nav__list li { width: 100%; border-bottom: 1px solid var(--rule); }
  .nav__list li:last-child { border-bottom: 0; }
  .nav__link { display: block; width: 100%; padding: .85rem 0; min-height: 44px; }
  .nav__link::after { display: none; }
  .nav--bar .nav__list li { border-color: rgba(255,255,255,.25); }

  .lead-grid { grid-template-columns: minmax(0,1fr) !important; }
  .lead-grid .rail--left, .lead-grid .rail--right {
    border: 0; padding: 0; border-top: 1px solid var(--rule); padding-top: var(--gap); }
  .lead-grid .rail--left { order: 3; }
  .lead-grid .rail--right { order: 4; }

  .band, .band--2, .band--3, .band--4, .split { grid-template-columns: minmax(0,1fr) !important; }
  .band > * + * { border-left: 0 !important; padding-left: 0 !important; }
  .consent__inner { grid-template-columns: minmax(0,1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}

@media print { .nav, .search, .to-top, .consent { display: none !important; } }

/* ------------------------------------------------- this publication only */


.lead-grid {{ display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--gap);
  padding-block: var(--rhythm); }}
.lead-grid .lead {{ grid-column: 1 / 3; }}
.band {{ display: grid; gap: var(--gap); padding-block: var(--rhythm); border-top: 3px double var(--accent); }}
.band--3 {{ grid-template-columns: repeat(3, minmax(0,1fr)); }}
.pullquote {{ font-family: var(--display); font-size: clamp(1.5rem, 3.2vw, 2.4rem); line-height: 1.25;
  color: var(--ink); margin: 0; text-align: center; max-width: 28ch; margin-inline: auto; }}

