:root {
  --ground: #eef0ec;
  --paper: #fbfcfa;
  --ink: #16212b;
  --ink-soft: #4d5a65;
  --line: #d3d9d2;
  --focus: #2457d6;
  --danger: #a3271b;
  --stratum: #6b7780;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --serif: "Literata", "Iowan Old Style", Georgia, serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #11181e;
    --paper: #18222a;
    --ink: #e9eeea;
    --ink-soft: #a3b0b5;
    --line: #2c3a44;
    --focus: #8fb0ff;
    --danger: #ff9a8c;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 500 1rem/1.5 var(--sans);
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 16px;
  top: 12px;
  background: var(--paper);
  padding: 8px 12px;
  z-index: 3;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 18px 20px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.mark {
  width: 22px;
  height: 22px;
}

.bar nav {
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  font-size: 0.95rem;
}

.bar nav a,
.bar nav .plain {
  padding: 10px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink-soft);
}

.bar nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}

.bar nav a:hover,
.bar nav .plain:hover {
  color: var(--ink);
}

.bar form {
  margin: 0;
}

.plain {
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}

main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px 20px 96px;
}

h1 {
  font-size: clamp(2.3rem, 7.5vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 800;
  margin: 0;
  text-wrap: balance;
}

.lede {
  font: 400 1.2rem/1.55 var(--serif);
  color: var(--ink-soft);
  max-width: 34em;
  margin: 18px 0 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  border: 0;
  background: var(--ink);
  color: var(--ground);
  font: 700 1rem var(--sans);
  text-decoration: none;
  cursor: pointer;
}

.button.quiet {
  background: none;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}

.seam {
  display: block;
  width: 14px;
  flex: none;
  align-self: stretch;
  background: var(--stratum);
}

.core {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 3px;
}

.core > li {
  display: flex;
  background: var(--paper);
}

.core > li:first-child,
.core > li:first-child .seam {
  border-top-left-radius: 10px;
}

.core > li:first-child {
  border-top-right-radius: 10px;
}

.core > li:last-child,
.core > li:last-child .seam {
  border-bottom-left-radius: 10px;
}

.core > li:last-child {
  border-bottom-right-radius: 10px;
}

.briefing {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.briefing .rail {
  display: contents;
}

.briefing .stories {
  order: 2;
}

.briefing .earlier {
  order: 3;
}

.topic {
  margin-top: 44px;
  scroll-margin-top: 16px;
}

.jump {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.jump a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  background: var(--paper);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.93rem;
}

.foot {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px 20px calc(32px + env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
  border-top: 1px solid var(--line);
}

.foot form {
  margin: 0;
}

.foot .plain {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  padding: 10px 0;
}

@media (min-width: 980px) {
  .briefing {
    max-width: none;
    display: grid;
    grid-template-columns: 300px minmax(0, 680px);
    column-gap: 60px;
    align-items: start;
  }
  .briefing .rail {
    display: block;
    position: sticky;
    top: 24px;
  }
  .briefing .earlier {
    margin-top: 40px;
  }
  .briefing h1 {
    font-size: 3.4rem;
  }
  .briefing .lede {
    font-size: 1.1rem;
  }
  .briefing .stories .topic:first-child {
    margin-top: 6px;
  }
  .jump,
  .earlier ul {
    flex-direction: column;
    align-items: flex-start;
  }
  .landing {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
    column-gap: 64px;
    align-items: start;
  }
  .landing .sample {
    margin-top: 4vh;
  }
  .landing .promises {
    grid-column: 1 / -1;
  }
}

.topic > h2,
.earlier h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 12px;
}

.core a {
  display: block;
  flex: 1;
  padding: 20px 22px 22px;
  text-decoration: none;
}

.core h3 {
  font-size: clamp(1.3rem, 4.4vw, 1.6rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0;
  text-wrap: balance;
}

.core a:hover h3 {
  text-decoration: underline;
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.14em;
}

.core p {
  font: 400 1.04rem/1.5 var(--serif);
  color: var(--ink-soft);
  margin: 8px 0 0;
}

.meta {
  display: block;
  margin-top: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.notice,
.error {
  margin: 22px 0 0;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 600;
  max-width: 40em;
}

.error {
  color: var(--danger);
  box-shadow: inset 0 0 0 2px var(--danger);
}

.earlier {
  margin-top: 56px;
}

.earlier ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.earlier a {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.landing h1 {
  max-width: 11em;
  margin-top: 4vh;
  font-size: clamp(2.3rem, 6.2vw, 4rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.sample {
  margin-top: 56px;
  max-width: 760px;
}

.sample .core > li > div {
  padding: 14px 18px;
  display: grid;
  gap: 2px;
}

.sample strong,
.choices strong {
  font-weight: 700;
  font-size: 1.08rem;
}

.sample span:not(.seam),
.choices .text span {
  font: 400 0.98rem/1.45 var(--serif);
  color: var(--ink-soft);
}

.promises {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px 36px;
  margin-top: 64px;
  max-width: 900px;
}

.promises h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}

.promises p {
  font: 400 1.02rem/1.55 var(--serif);
  color: var(--ink-soft);
  margin: 6px 0 0;
}

.narrow {
  max-width: 440px;
  margin-top: 3vh;
}

.narrow.wide {
  max-width: 760px;
}

.narrow h1 {
  font-size: clamp(2rem, 6.5vw, 3.1rem);
}

.stack {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  font-size: 0.95rem;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  min-height: 50px;
  padding: 0 14px;
  border-radius: 10px;
  border: 0;
  box-shadow: inset 0 0 0 1.5px var(--ink-soft);
  background: var(--paper);
  color: var(--ink);
  font: 500 1.05rem var(--sans);
}

small {
  font-weight: 500;
  color: var(--ink-soft);
}

.aside {
  margin-top: 22px;
  font-weight: 600;
}

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

.choices label {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--paper);
  cursor: pointer;
  position: relative;
  font-weight: 500;
}

.choices li:first-child label,
.choices li:first-child .seam {
  border-top-left-radius: 10px;
}

.choices li:first-child label {
  border-top-right-radius: 10px;
}

.choices li:last-child label,
.choices li:last-child .seam {
  border-bottom-left-radius: 10px;
}

.choices li:last-child label {
  border-bottom-right-radius: 10px;
}

.choices input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.choices .seam {
  width: 14px;
  opacity: 0.28;
  transition: width 0.15s ease, opacity 0.15s ease;
}

.choices .text {
  display: grid;
  gap: 2px;
  padding: 14px 56px 14px 18px;
  flex: 1;
}

.choices .text::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 26px;
  height: 26px;
  margin-top: -13px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--ink-soft);
}

.choices input:checked ~ .seam {
  width: 28px;
  opacity: 1;
}

.choices input:checked ~ .text::after {
  background: var(--ink)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpath d='M7.5 13.5l3.6 3.6 7.4-8' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
  box-shadow: none;
}

.choices input:focus-visible ~ .text {
  outline: 3px solid var(--focus);
  outline-offset: -3px;
  border-radius: 6px;
}

.savebar {
  position: sticky;
  bottom: 0;
  padding: 16px 0 calc(16px + env(safe-area-inset-bottom));
  margin-top: 8px;
  background: linear-gradient(to top, var(--ground) 70%, transparent);
}

.depth {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--stratum);
  transform-origin: top;
  transform: scaleY(0);
}

@supports (animation-timeline: scroll()) {
  .depth {
    animation: descend linear both;
    animation-timeline: scroll(root);
  }
}

@keyframes descend {
  to {
    transform: scaleY(1);
  }
}

.story {
  max-width: 680px;
  margin: 2vh auto 0;
}

.topicline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 18px;
}

.chip {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--stratum);
}

.story h1 {
  font-size: clamp(2.1rem, 7vw, 3.4rem);
  line-height: 1.04;
}

.standfirst {
  font: 400 1.3rem/1.5 var(--serif);
  color: var(--ink-soft);
  margin: 20px 0 0;
}

.story header .meta {
  margin: 20px 0 0;
  padding-bottom: 28px;
  border-bottom: 3px solid var(--stratum);
}

.prose {
  font: 400 1.19rem/1.72 var(--serif);
}

.prose p {
  margin: 1.15em 0 0;
  hanging-punctuation: first;
}

.prose h2 {
  font: 700 1.4rem/1.2 var(--sans);
  letter-spacing: -0.015em;
  margin: 2em 0 0;
}

.prose h2 + p {
  margin-top: 0.6em;
}

.story footer {
  margin-top: 56px;
  padding: 24px;
  border-radius: 10px;
  background: var(--paper);
}

.story footer h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
}

.story footer p {
  font: 400 1rem/1.5 var(--serif);
  color: var(--ink-soft);
  margin: 6px 0 0;
}

.story footer ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 14px;
}

.story footer li a {
  font-weight: 600;
  display: block;
}

.story footer li span {
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.onward {
  max-width: 680px;
  margin: 28px auto 0;
  display: grid;
  gap: 18px;
  font-weight: 600;
}

.next {
  display: flex;
  background: var(--paper);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
}

.next > span:last-child {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
}

.next small {
  font-weight: 600;
  font-size: 0.88rem;
}

.next strong {
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

@media (prefers-reduced-motion: reduce) {
  .depth {
    display: none;
  }
  .choices .seam {
    transition: none;
  }
}

@media (max-width: 520px) {
  .bar {
    padding: 14px 16px;
  }
  main {
    padding: 16px 16px 80px;
  }
  .bar nav a,
  .bar nav .plain {
    padding: 10px 9px;
  }
  .core a {
    padding: 16px 16px 18px;
  }
  .prose {
    font-size: 1.12rem;
  }
}
