/* The demo site Eksempelposten. Its own look. Not Studio. The design file, part "The demo site". */
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-latin-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-latin-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-latin-ext-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light dark;
  --paper: #fbfaf6;
  --ink: #161512;
  --ink2: #4d493f;
  --ink3: #6a655a;
  --rule: #e2ded2;
  --red: #c8102e;
  --tint: #f2efe6;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* The only value of the embed that the page sets. Guide part 3. */
  --norspire-accent: #c8102e;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #131210;
    --ink: #eeeae0;
    --ink2: #c4bfb2;
    --ink3: #a09a8c;
    --rule: #2f2c26;
    --red: #ff5a6a;
    --tint: #1c1a16;
  }
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 19px / 1.65 var(--serif);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
}
h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  z-index: 9;
}
.skip:focus {
  left: 8px;
}
:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}
.wrap {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

/* The masthead */
.topline {
  border-bottom: 1px solid var(--rule);
  font: 500 13px / 1 var(--sans);
  color: var(--ink3);
}
.topline .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
  gap: 16px;
}
.topline .l {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px 18px;
}
.logo {
  font: 600 clamp(26px, 5vw, 40px) / 1 var(--serif);
  letter-spacing: -0.025em;
  text-decoration: none;
  display: flex;
  align-items: baseline;
}
.logo em {
  font-style: italic;
  font-weight: 400;
  color: var(--red);
}
.mast .r {
  display: flex;
  align-items: center;
  gap: 6px;
}
norspire-account {
  display: inline-flex;
  font: 700 15px / 1 var(--sans);
  color: var(--red);
}
.acct {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding-inline: 10px;
  color: var(--red);
  text-decoration: none;
  font-weight: 700;
}
.acct:hover .t {
  text-decoration: underline;
}
.icon {
  flex: none;
}
.subscribe-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  background: var(--ink);
  color: var(--paper);
  font: 700 15px / 1 var(--sans);
  text-decoration: none;
  border-radius: 999px;
}
.subscribe-btn:hover {
  background: #c8102e;
  color: #fff;
}
.sections {
  display: flex;
  gap: 4px 26px;
  flex-wrap: wrap;
  border-block: 1px solid var(--ink);
  font: 600 15px / 1 var(--sans);
}
.sections a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}
.sections a:hover {
  border-bottom-color: var(--red);
}

/* Front page */
.kicker {
  font: 800 12px / 1 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}
.front {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px;
  padding-block: 32px 40px;
}
.pic {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: var(--tint);
}
.pic svg {
  display: block;
  width: 100%;
  height: 100%;
}
.lead .pic {
  aspect-ratio: 16 / 10;
  margin-bottom: 16px;
}
.lead h2 {
  font: 600 clamp(32px, 4.2vw, 54px) / 1.06 var(--serif);
  letter-spacing: -0.025em;
  margin: 12px 0;
  text-wrap: balance;
}
.most a {
  text-decoration: none;
}
.most a:hover {
  text-decoration: underline;
}
.foot a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  text-decoration: none;
}
.foot a:hover {
  text-decoration: underline;
}
.lead h2 a,
.story h3 a {
  text-decoration: none;
}
.lead h2 a:hover,
.story h3 a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.stand-short {
  font-size: 17px;
  color: var(--ink2);
  line-height: 1.5;
}
.lead .stand-short {
  color: var(--ink2);
  font-size: 20px;
  max-width: 46ch;
}
.meta {
  font: 500 13px / 1.4 var(--sans);
  color: var(--ink3);
  margin-top: 10px;
  display: flex;
  gap: 8px 14px;
  flex-wrap: wrap;
  align-items: center;
}
.access {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: 700 12px / 1 var(--sans);
  letter-spacing: 0.02em;
}
.access-paid {
  color: var(--red);
}
.stack {
  display: grid;
  align-content: start;
}
.story {
  padding-block: 18px;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 8px;
}
.stack .story:first-child {
  border-top: 0;
  padding-top: 0;
}
.story h3 {
  font: 600 clamp(22px, 2vw, 26px) / 1.15 var(--serif);
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.story .meta,
.lead .meta {
  margin-top: 2px;
}
.band {
  background: var(--tint);
  padding-block: 40px;
}
.band h2,
.most-read h2,
.all > h2 {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}
.band h2 {
  font: 800 13px / 1 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.band h2::after {
  content: "";
  height: 1px;
  background: var(--rule);
  flex: 1;
}
.cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}
.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.cols .story {
  border-top: 0;
  padding: 0;
  align-content: start;
}
.cols .pic {
  aspect-ratio: 4 / 3;
  margin-bottom: 6px;
}
.most-read {
  padding-block: 40px 8px;
}
.most {
  counter-reset: m;
}
.most li {
  counter-increment: m;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 8px;
  padding-block: 14px;
  border-top: 1px solid var(--rule);
  font: 600 20px / 1.25 var(--serif);
}
.most li::before {
  content: counter(m);
  font: 300 40px / 1 var(--serif);
  color: var(--red);
}
.all {
  padding-block: 32px 16px;
}
.group h3 {
  font: 800 13px / 1 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-block: 24px 4px;
  scroll-margin-top: 16px;
}
.group li {
  padding-block: 14px;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 4px;
}
.group li a {
  font: 600 22px / 1.2 var(--serif);
  text-decoration: none;
}
.group li a:hover {
  text-decoration: underline;
}

/* Article page */
.art {
  max-width: 720px;
  margin-inline: auto;
  padding: 28px clamp(16px, 4vw, 32px) 56px;
  box-sizing: content-box;
}
.art h1 {
  font: 600 clamp(34px, 5.4vw, 60px) / 1.05 var(--serif);
  letter-spacing: -0.03em;
  margin: 14px 0 16px;
  text-wrap: balance;
}
.stand {
  font: 400 clamp(20px, 2.4vw, 24px) / 1.4 var(--serif);
  color: var(--ink2);
  text-wrap: pretty;
}
.byline {
  display: flex;
  gap: 6px 14px;
  flex-wrap: wrap;
  align-items: center;
  font: 500 14px / 1.4 var(--sans);
  color: var(--ink3);
  margin: 22px 0;
  padding-block: 14px;
  border-block: 1px solid var(--rule);
}
.byline b {
  color: var(--ink);
  font-weight: 700;
}
.art .pic {
  aspect-ratio: 16 / 9;
  margin-bottom: 8px;
}
.cap {
  font: 400 13px / 1.4 var(--sans);
  color: var(--ink3);
  margin-bottom: 28px;
}
.body p {
  margin-bottom: 1.1em;
  text-wrap: pretty;
}
.body > .teaser > p:first-child::first-letter {
  font: 600 3.5em / 0.8 var(--serif);
  float: left;
  padding: 0.08em 0.1em 0 0;
  color: var(--red);
}
.marker {
  font: 600 12px / 1 var(--sans);
  letter-spacing: 0.04em;
  color: var(--ink3);
  background: var(--tint);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 3px 9px;
  margin-right: 6px;
  white-space: nowrap;
}
/* The 3 lines of CSS that fade the teaser above the wall. Guide part 3. */
.fade {
  -webkit-mask-image: linear-gradient(#000 calc(100% - 150px), transparent);
  mask-image: linear-gradient(#000 calc(100% - 150px), transparent);
  margin-bottom: -8px;
}
.meter-slot {
  margin: 0 0 24px;
}
.wall-slot {
  margin-top: 8px;
}

/* The elements of the embed. Each holds fallback content, which shows with script off. */
norspire-meter,
norspire-wall {
  display: block;
}
norspire-legal-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.meter-fallback {
  font: 500 14px / 1.4 var(--sans);
  color: var(--ink3);
  margin: 0;
}
.wall-fallback {
  border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  border-radius: 20px;
  padding: 32px;
  display: grid;
  gap: 12px;
  justify-items: start;
}
.wall-fallback h2 {
  font: 700 26px / 1.2 var(--serif);
  letter-spacing: -0.01em;
}
.wall-fallback p {
  margin: 0;
  color: var(--ink2);
  font-size: 17px;
}
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  background: #c8102e;
  color: #fff;
  font: 700 15px / 1 var(--sans);
  text-decoration: none;
  border-radius: 999px;
}
.btn:hover {
  background: #a50d26;
}

/* The 2 pages of the developer tools. Design, part "Demo site" and the rulings of the step 8 gaps. */
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.demo-tool {
  max-width: 62rem;
  margin-inline: auto;
  padding: 36px clamp(16px, 4vw, 32px) 72px;
  font-family: var(--sans);
}
.demo-tool .kick {
  font: 700 12px / 1 var(--sans);
  color: var(--red);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.demo-tool h1 {
  font: 600 clamp(28px, 5vw, 44px) / 1.1 var(--serif);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.demo-tool .lead {
  font: 400 17px / 1.55 var(--sans);
  color: var(--ink2);
  max-width: 60ch;
  margin-bottom: 28px;
}
.demo-tool h2 {
  font: 700 18px / 1.3 var(--sans);
  margin: 28px 0 10px;
}
.demo-tool .dt-card {
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 20px;
  background: var(--tint);
}
.demo-tool table {
  width: 100%;
  border-collapse: collapse;
  font: 400 14px / 1.5 var(--sans);
}
.demo-tool th {
  font: 700 12px var(--sans);
  color: var(--ink3);
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--ink);
}
.demo-tool td {
  padding: 10px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.demo-tool .nw {
  white-space: nowrap;
}
.demo-tool .tw {
  overflow-x: auto;
  /* An edge shows on the side that has more content, so a phone reader sees that the table scrolls.
     The 2 `local` layers cover the edge at the end of the scroll. DW4-04. */
  background:
    linear-gradient(to right, var(--paper) 30%, transparent) left center / 40px 100% no-repeat local,
    linear-gradient(to left, var(--paper) 30%, transparent) right center / 40px 100% no-repeat local,
    linear-gradient(to right, var(--ink3), transparent) left center / 10px 100% no-repeat scroll,
    linear-gradient(to left, var(--ink3), transparent) right center / 10px 100% no-repeat scroll;
}
/* A narrow screen scrolls the table inside its region and never crushes the column Event. */
.demo-tool .tw table {
  min-width: 46rem;
}
.demo-tool code,
.demo-tool .mono {
  font:
    500 13px / 1.5 ui-monospace,
    Menlo,
    Consolas,
    monospace;
  overflow-wrap: anywhere;
}
.demo-tool pre {
  font:
    500 13px / 1.6 ui-monospace,
    Menlo,
    Consolas,
    monospace;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 14px 16px;
  overflow-x: auto;
  margin: 10px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.demo-tool .sub {
  display: block;
  color: var(--ink3);
  font: 400 13px / 1.45 var(--sans);
  margin-top: 2px;
}
.demo-tool .sub code {
  color: var(--ink2);
  font-weight: 600;
}
.demo-tool .sub.mono {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}
.demo-tool .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 99px;
  font: 700 12px var(--sans);
  border: 1.5px solid var(--ink);
  color: var(--ink);
  white-space: nowrap;
}
.demo-tool .pill.ok {
  border-color: #1f7a45;
  color: #1f7a45;
}
/* The green is 3.5:1 on the paper of the dark scheme, and the text of 12 px needs 4.5:1. The border
   keeps the green, because a border needs 3:1. DW4-06. */
@media (prefers-color-scheme: dark) {
  .demo-tool .pill.ok {
    color: var(--ink);
  }
}
.demo-tool .pill.no {
  border-color: var(--ink3);
  color: var(--ink3);
  border-style: dashed;
}
.demo-tool .keys {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.demo-tool .keys .pill {
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
.demo-tool .dl {
  display: grid;
  grid-template-columns: minmax(8rem, 12rem) 1fr;
  gap: 10px 16px;
  margin: 0;
}
.demo-tool .dl dt {
  color: var(--ink3);
  font: 600 13px var(--sans);
}
.demo-tool .dl dd {
  margin: 0;
  min-width: 0;
  font: 400 16px / 1.5 var(--sans);
}
.demo-tool .empty {
  padding: 24px;
  border: 1px dashed var(--ink3);
  border-radius: 12px;
  color: var(--ink2);
  font: 400 15px / 1.55 var(--sans);
}
.demo-tool .empty b {
  display: block;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.demo-tool .empty .btn {
  display: flex;
  width: fit-content;
  margin-top: 16px;
}
.demo-tool .cap {
  font: 700 12px var(--sans);
  color: var(--ink3);
  margin: 24px 0 8px;
}

/* Footer */
.foot {
  border-top: 1px solid var(--ink);
  margin-top: 40px;
  padding-block: 32px 48px;
  font: 400 15px / 1.5 var(--sans);
  color: var(--ink2);
}
.foot .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}
.foot .logo {
  font-size: 26px;
  margin-bottom: 8px;
  color: var(--ink);
}
.foot h2 {
  font: 800 12px / 1 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 10px;
}
.foot ul {
  display: grid;
  gap: 2px;
}
.foot .copy {
  grid-column: 1 / -1;
  border-top: 1px solid var(--rule);
  padding-top: 16px;
  font-size: 13px;
  color: var(--ink3);
}
/* The group `Developer tools` is a second group in the column `About us`. Design, rule G6. */
.foot ul + h2 {
  margin-top: 24px;
}
.foot a[aria-current="page"] {
  font-weight: 700;
  color: var(--ink);
}
.not-found {
  padding-block: 80px;
}
.not-found h1 {
  font: 600 40px / 1.1 var(--serif);
  margin-bottom: 16px;
}

@media (max-width: 56rem) {
  .front {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .foot .wrap {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 48rem) {
  /* The date wraps, so the column Received is narrow and the column Event starts near the left edge. */
  .demo-tool .tw .nw {
    white-space: normal;
  }
  .demo-tool .dl {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .demo-tool .dl dd {
    margin-bottom: 10px;
  }
}
@media (max-width: 30rem) {
  body {
    font-size: 18px;
  }
  .cols {
    grid-template-columns: 1fr;
  }
  .topline .l span:nth-child(n + 2) {
    display: none;
  }
  .subscribe-btn {
    display: none;
  }
  .logo {
    font-size: 24px;
  }
  .mast {
    padding-block: 16px 12px;
  }
  .acct .t {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .acct {
    min-width: 44px;
    justify-content: center;
    padding-inline: 0;
  }
  .sections {
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  .wall-fallback {
    padding: 20px;
  }
}
