/* The demo papers' own stylesheet (M19d). One plain newspaper layout, four looks set by a class on <body>, in the
   colours of each paper's archetype profile so the embedded games sit on the same paper colour. System fonts only:
   the site runs under a strict CSP with nothing from other hosts but our games. */

:root {
  color-scheme: light;
}

.paper,
.index-page {
  --bg: #faf7f0;
  --ink: #1d1f1a;
  --muted: #5f625b;
  --rule: #ddd6c6;
  --accent: #2f6b3a;
  --on-accent: #ffffff;
  --head: Georgia, 'Times New Roman', serif;
  --text: Georgia, 'Times New Roman', serif;
  --ui: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

.paper-kapital {
  --bg: #fbf3ec;
  --ink: #14181c;
  --muted: #5a5f66;
  --rule: #e6d6c8;
  --accent: #7a1f2b;
  --head: 'Times New Roman', Georgia, serif;
  --text: Georgia, 'Times New Roman', serif;
}

.paper-broel {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #555555;
  --rule: #e4e4e4;
  --accent: #d0021b;
  --head: 'Arial Black', 'Helvetica Neue', Impact, Arial, sans-serif;
  --text: Arial, 'Helvetica Neue', sans-serif;
}

.paper-lanternen {
  --bg: #f8f6f2;
  --ink: #1f1d1f;
  --muted: #5e5a5e;
  --rule: #ddd7d0;
  --accent: #6b2a5a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 var(--text);
  -webkit-text-size-adjust: 100%;
}

a {
  color: inherit;
}

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

img {
  max-width: 100%;
}

/* The demo label: on every page, never mistaken for a real paper. */
.ribbon {
  margin: 0;
  padding: 7px 16px;
  background: #fff3b0;
  border-bottom: 1px solid #e0d27a;
  color: #3a3200;
  font: 600 13px/1.35 var(--ui);
  text-align: center;
}

.ribbon a {
  margin-left: 6px;
}

/* Masthead and sections ---------------------------------------------------------------------------------------- */

.mast {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 4px 12px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 16px 10px;
}

.mast-name {
  grid-column: 2;
  font: 700 clamp(28px, 7vw, 40px) / 1 var(--head);
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
}

.mast-date {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  color: var(--muted);
  font: 13px/1.3 var(--ui);
  text-align: center;
}

.mast-login {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font: 600 14px/1 var(--ui);
  cursor: pointer;
}

@media (max-width: 560px) {
  .mast {
    grid-template-columns: 1fr auto;
  }
  .mast-name,
  .mast-date {
    grid-column: 1;
    text-align: left;
  }
  .mast-login {
    grid-column: 2;
  }
}

.paper-kapital .mast-name {
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: clamp(24px, 6vw, 34px);
}

.paper-broel .mast-name {
  padding: 4px 14px 6px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: clamp(30px, 8vw, 44px);
}

.paper-lanternen .mast-name {
  font-style: italic;
  font-weight: 600;
}

.sections {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 20px;
  padding: 8px 16px;
  border-top: 1px solid var(--rule);
  border-bottom: 3px solid var(--ink);
  font: 600 14px/1.4 var(--ui);
}

@media (max-width: 560px) {
  .sections {
    gap: 2px 14px;
    font-size: 13px;
  }
}

.sections a,
.sections span {
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}

.sections span {
  color: var(--muted);
}

.sections [aria-current='page'] {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

/* Page body ---------------------------------------------------------------------------------------------------- */

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}

.kicker {
  margin: 10px 0 4px;
  color: var(--accent);
  font: 700 12px/1.2 var(--ui);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: var(--head);
  text-wrap: balance;
}

.paper-broel h1,
.paper-broel h2 {
  font-weight: 400;
}

/* Photo placeholders: the articles are made up, so are the pictures. */
.ph {
  aspect-ratio: 4 / 3;
  background: repeating-linear-gradient(135deg, var(--rule) 0 6px, transparent 6px 14px);
  border: 1px solid var(--rule);
}

.ph-wide {
  aspect-ratio: 16 / 7;
}

.top {
  display: grid;
  gap: 20px;
}

@media (min-width: 760px) {
  .top {
    grid-template-columns: 2fr 1fr;
  }
}

.lead h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1.1;
}

.standfirst {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.side {
  display: grid;
  align-content: start;
  gap: 14px;
}

.story h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.side .story {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}

.side .story .kicker {
  margin-top: 0;
}

.story a {
  text-decoration: none;
}

.story a:hover {
  text-decoration: underline;
}

.more {
  display: grid;
  gap: 20px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

@media (min-width: 640px) {
  .more {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* The front-page games band (P1 "Spilbåndet", docs/research/front-page-game-teasers.md): a calm index in the
   paper's own type, icon right, hairlines only. */
.band {
  margin-top: 28px;
  padding-top: 12px;
  border-top: 3px solid var(--ink);
}

.band-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.band-head h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.1;
}

.band-head a {
  color: var(--accent);
  font: 700 14px/1.2 var(--ui);
  text-decoration: none;
  white-space: nowrap;
}

.band-list {
  display: grid;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 760px) {
  .band-list {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 28px;
  }
}

.band-list a {
  display: grid;
  grid-template-columns: 1fr 72px;
  align-items: center;
  gap: 14px;
  min-height: 100%;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}

.band-list img {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 22%;
}

.band-text strong {
  display: block;
  margin-bottom: 4px;
  font: 700 20px/1.15 var(--head);
}

.paper-broel .band-text strong {
  font-weight: 400;
}

.band-text span {
  display: block;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
}

.band-list a:hover strong {
  color: var(--accent);
}

/* Article ------------------------------------------------------------------------------------------------------ */

.article {
  max-width: 680px;
  margin: 0 auto;
}

.article h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1.1;
}

.byline {
  margin: 0 0 16px;
  color: var(--muted);
  font: 13px/1.3 var(--ui);
}

.article .ph {
  margin-bottom: 18px;
}

.games-tip {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  gap: 8px 14px;
  margin-top: 24px;
  padding: 14px 0;
  border-top: 3px solid var(--accent);
  border-bottom: 1px solid var(--rule);
  font: 15px/1.4 var(--ui);
}

.games-tip img {
  border-radius: 22%;
}

.games-tip p {
  margin: 0;
}

.games-tip .button {
  grid-column: 2;
  justify-self: start;
}

@media (min-width: 560px) {
  .games-tip {
    grid-template-columns: 56px 1fr auto;
  }
  .games-tip .button {
    grid-column: 3;
  }
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 4px;
  background: var(--accent);
  color: var(--on-accent);
  font: 700 15px/1 var(--ui);
  text-decoration: none;
  cursor: pointer;
}

.button-quiet {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
}

/* Footer ------------------------------------------------------------------------------------------------------- */

.foot {
  padding: 18px 16px 28px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font: 13px/1.5 var(--ui);
  text-align: center;
}

.foot p {
  margin: 4px 0;
}

.linkish {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* The site's front door ---------------------------------------------------------------------------------------- */

.index h1 {
  margin: 12px 0 10px;
  font-size: clamp(28px, 6vw, 40px);
  line-height: 1.1;
}

.index .standfirst {
  max-width: 62ch;
}

.index code {
  font-size: 0.9em;
}

.picks {
  display: grid;
  gap: 18px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .picks {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pick {
  display: grid;
  gap: 6px;
  padding: 22px 18px;
  border: 1px solid var(--rule);
  border-top: 6px solid var(--accent);
  background: var(--bg);
  color: var(--ink);
  text-decoration: none;
}

.pick-name {
  font: 700 28px/1.1 var(--head);
}

.pick-blurb {
  color: var(--muted);
  font: 15px/1.4 var(--ui);
}

.pick-spil {
  display: inline-block;
  margin-top: 8px;
  font: 600 14px/1.4 var(--ui);
}

/* The paper's own (fake) login and checkout ------------------------------------------------------------------- */

.sheet {
  width: min(420px, calc(100% - 32px));
  padding: 22px 20px;
  border: 0;
  border-radius: 10px;
  background: #ffffff;
  color: var(--ink);
  font: 16px/1.45 var(--ui);
  box-shadow: 0 20px 50px rgb(0 0 0 / 0.25);
}

.sheet::backdrop {
  background: rgb(0 0 0 / 0.45);
}

.sheet h2 {
  margin: 0 0 6px;
  font: 700 22px/1.2 var(--head);
}

.sheet p {
  margin: 0 0 12px;
}

.sheet .demo-note {
  padding: 6px 10px;
  border-radius: 4px;
  background: #fff3b0;
  color: #3a3200;
  font-size: 13px;
}

.sheet label {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
  font-weight: 600;
  font-size: 14px;
}

.sheet input {
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid #8a8a8a;
  border-radius: 4px;
  font: inherit;
}

.sheet .price {
  font-size: 18px;
  font-weight: 700;
}

.sheet .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* "Vis hændelser": what the page's handler receives, for sales demos. */
.events {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 10;
  width: min(360px, calc(100% - 24px));
  max-height: 45vh;
  overflow: auto;
  padding: 10px 12px;
  border: 1px solid #c9c9c9;
  border-radius: 8px;
  background: #ffffff;
  color: #1b1b1b;
  font:
    12px/1.45 ui-monospace,
    Consolas,
    monospace;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.18);
}

.events h2 {
  margin: 0 0 6px;
  font: 700 13px/1.2 var(--ui);
}

.events ol {
  margin: 0;
  padding-left: 18px;
}
