@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/assets/fonts/schibsted-grotesk-latin-wght-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2');
}

:root {
  --red: #a23b2c;
  --mustard: #d6a21e;
  --mustard-text: #80600c;
  --turq: #2e8c87;
  --turq-text: #1f6e69;
  --rawhide: #a66a36;
  --rawhide-text: #8c5629;
  --denim: #2b4c7e;
  --sage: #56664d;
  --linen: #faf8f4;
  --graphite: #1c1e1c;
  --stone: #62655f;
  --hairline: #e4dfd6;
  --tint: #f3f0ea;
  --t-mus: #f5ecd6;
  --t-turq: #dde9e5;
  --sans: 'Schibsted Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--linen);
  color: var(--graphite);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--denim);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  background: var(--graphite);
  color: var(--linen);
  padding: 8px 14px;
  border-radius: 6px;
  z-index: 10;
}

.skip:focus {
  left: 12px;
}

.bband {
  height: 10px;
  position: relative;
  background: linear-gradient(
    180deg,
    var(--red) 0 3px,
    var(--linen) 3px 4px,
    var(--mustard) 4px 6px,
    var(--graphite) 6px 7px,
    var(--turq) 7px 10px
  );
}

.bband::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 28px;
  height: 10px;
  margin-left: -14px;
  background: var(--linen);
}

.bband::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 20px;
  height: 10px;
  margin-left: -10px;
  background: var(--graphite);
  clip-path: polygon(
    8px 0,
    12px 0,
    12px 2.5px,
    16px 2.5px,
    16px 7.5px,
    12px 7.5px,
    12px 10px,
    8px 10px,
    8px 7.5px,
    4px 7.5px,
    4px 2.5px,
    8px 2.5px
  );
}

.wrap {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  padding-top: 48px;
  padding-bottom: 8px;
}

.brand {
  display: inline-block;
  line-height: 0;
}

.brand img {
  display: block;
  width: min(100%, 320px);
  height: auto;
}

@media (min-width: 640px) {
  .site-header {
    padding-top: 72px;
  }

  .brand img {
    width: 560px;
  }
}

.kicker {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rawhide-text);
  margin: 0 0 12px;
}

.kicker::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 10px;
  vertical-align: 0.12em;
  background: var(--rawhide);
  transform: rotate(45deg);
}

h1,
h2,
h3 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 7.5vw, 4rem);
  letter-spacing: -0.04em;
}

h2 {
  font-size: 1.625rem;
  margin-bottom: 14px;
}

h3 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.hero {
  padding: 56px 0 8px;
}

.lead {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--graphite);
  max-width: 36em;
  margin: 20px 0 0;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 8px 14px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: #fff;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--stone);
}

.status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mustard);
}

section {
  padding: 48px 0 0;
}

.rule {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 56px 0 0;
}

.digests {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}

@media (min-width: 640px) {
  .digests {
    grid-template-columns: 1fr 1fr;
  }
}

.digest {
  background: #fff;
  border: 1px solid var(--hairline);
  border-left: 4px solid var(--mustard);
  border-radius: 10px;
  padding: 20px 22px;
}

.digest.weekly {
  border-left-color: var(--turq);
}

.digest .when {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mustard-text);
  margin: 0 0 6px;
}

.digest.weekly .when {
  color: var(--turq-text);
}

.digest p {
  margin: 8px 0 0;
  color: var(--stone);
  font-size: 1rem;
}

.steps {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 14px 0 14px 52px;
  border-top: 1px solid var(--hairline);
}

.steps li:last-child {
  border-bottom: 1px solid var(--hairline);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 14px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--rawhide-text);
  line-height: 1.8;
}

.steps b {
  font-weight: 600;
}

.note {
  color: var(--stone);
  font-size: 1rem;
  margin: 16px 0 0;
}

.plain {
  margin: 8px 0 0;
  padding-left: 1.2em;
}

.plain li {
  margin: 6px 0;
}

.plain li::marker {
  color: var(--rawhide);
}

.prose p {
  max-width: 38em;
}

.prose h2 {
  margin-top: 40px;
}

.site-footer {
  margin-top: 72px;
  padding-top: 28px;
  padding-bottom: 48px;
  border-top: 1px solid var(--hairline);
  font-size: 0.9375rem;
  color: var(--stone);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 14px;
}

.site-footer p {
  margin: 6px 0;
}

.mono {
  font-family: var(--mono);
  font-size: 0.9em;
}
