/* itmarkie.com / Daily Observer
   One stylesheet, written mobile first (base = 360px).
   Layers added at 480px, 768px and 1024px. */

:root {
  --ink: #0e0c2e;
  --text: #23232f;
  --muted: #575b6b;
  --link: #0b3fa8;
  --link-dark: #072b78;
  --line: #dfe3ec;
  --tint: #f1f5fc;
  --focus: #f2a900;
  --font: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Liberation Sans", sans-serif;
  --section-gap: clamp(2.25rem, 1.6rem + 2.8vw, 3.5rem);
}

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

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

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--font);
  font-size: clamp(1.0625rem, 1.01rem + 0.25vw, 1.1875rem);
  line-height: 1.7;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

img,
video,
svg {
  max-width: 100%;
}

img,
video {
  height: auto;
  display: block;
}

p {
  margin: 0 0 1.15em;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  font-weight: 800;
  letter-spacing: -0.02em;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

a:hover {
  color: var(--link-dark);
  text-decoration-thickness: 2px;
}

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

/* ---------- utilities ---------- */

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 40;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: #fff;
  font-size: 1rem;
  border-radius: 4px;
}

.skip:focus {
  top: 12px;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  width: 0;
  height: 3px;
  background: var(--link);
  pointer-events: none;
}

.wrap {
  width: 100%;
  max-width: 892px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ---------- masthead ---------- */

.masthead {
  position: relative;
  z-index: 5;
  background: #fff;
  box-shadow: 0 6px 16px rgba(14, 12, 46, 0.09);
}

.masthead-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 14px;
  width: 100%;
  max-width: 1100px;
  min-height: 64px;
  margin: 0 auto;
  padding: 8px 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  flex: none;
  width: 30px;
  height: 30px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-name b {
  color: var(--link);
  font-weight: 900;
}

.brand-site {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.label {
  display: inline-block;
  padding: 0.3em 0.7em;
  border: 1px solid #8f98b4;
  border-radius: 3px;
  color: #363b50;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

/* ---------- article head ---------- */

.kicker {
  margin: 1.25rem 0 0.4rem;
  color: var(--text);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.kicker span + span::before {
  content: "\00b7";
  margin: 0 0.5em;
  color: var(--muted);
}

h1 {
  margin: 0 0 0.45em;
  font-size: clamp(1.75rem, 1.2rem + 2.6vw, 3rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.nowrap {
  white-space: nowrap;
}

.dek {
  margin: 0 0 1.4rem;
  color: #3a3e52;
  font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.3125rem);
  line-height: 1.55;
}

.hero {
  margin: 0;
}

.hero img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: 50% 42%;
  background: #e9edf5;
}

figcaption {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.25rem;
  margin: 1rem 0 0;
  padding-bottom: 1.5rem;
  color: var(--text);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.byline-by {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.avatar {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.byline-by strong {
  color: var(--ink);
}

.byline-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.1rem;
}

.checked {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.checked svg {
  flex: none;
  width: 16px;
  height: 16px;
}

/* ---------- article body ---------- */

.article {
  padding-top: 1.25rem;
}

.lead {
  color: var(--ink);
  font-size: clamp(1.1875rem, 1.07rem + 0.55vw, 1.375rem);
  line-height: 1.6;
}

.article section {
  margin-top: var(--section-gap);
}

.article h2,
.closing h2 {
  margin: 0 0 0.6em;
  font-size: clamp(1.4rem, 1.1rem + 1.3vw, 2rem);
  line-height: 1.2;
}

.num {
  margin-right: 0.15em;
}

.keypoints {
  margin: 2rem 0 0;
  padding: 1.1rem 1.25rem 1.15rem;
  background: var(--tint);
  border-left: 4px solid var(--link);
  border-radius: 0 6px 6px 0;
}

.keypoints-title {
  margin: 0 0 0.35rem;
  color: var(--link);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.keypoints .bullets {
  margin: 0;
  font-size: 1rem;
}

.bullets {
  margin: 1rem 0 1.4rem;
  padding: 0;
  list-style: none;
}

.bullets li {
  position: relative;
  margin: 0.55rem 0;
  padding-left: 1.6rem;
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.72em;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--link);
  border-radius: 1px;
}

.steps {
  margin: 1rem 0 1.4rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  counter-increment: step;
  margin: 0.85rem 0;
  min-height: 2rem;
  padding: 0.1rem 0 0.1rem 2.7rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.95rem;
  height: 1.95rem;
  border-radius: 50%;
  background: var(--link);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
}

.fig {
  margin: var(--section-gap) 0 0;
}

.media {
  position: relative;
  width: 100%;
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  background: #15151c;
}

.media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fig-still img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: 42% 82%;
  background: #e9edf5;
}

.split {
  display: block;
}

.split-text {
  min-width: 0;
}

.split-fig {
  margin: 1.5rem 0 0;
}

/* ---------- calls to action ---------- */

.cta-lead {
  margin: 1.6rem 0 0;
  color: var(--ink);
  font-weight: 600;
}

.cta-row {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 1rem 0 0;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 54px;
  padding: 0.75rem 1.75rem;
  border: 1px solid var(--link-dark);
  border-radius: 4px;
  background: linear-gradient(#2a68e0, #0b3fa8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 2px 0 var(--link-dark), 0 8px 16px rgba(11, 63, 168, 0.2);
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
}

.cta::after {
  content: "\203A";
  font-size: 1.45em;
  line-height: 1;
}

.cta:hover {
  background: linear-gradient(#3573ee, #0d49c4);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 3px 0 var(--link-dark), 0 10px 20px rgba(11, 63, 168, 0.26);
}

.cta:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

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

.cta-secondary {
  border: 2px solid var(--link);
  background: #fff;
  box-shadow: none;
  color: var(--link);
  text-shadow: none;
}

.cta-secondary::after {
  content: "\2193";
  font-size: 1.1em;
}

.cta-secondary:hover {
  background: var(--tint);
  color: var(--link-dark);
  box-shadow: none;
}

.cta-lg {
  min-height: 60px;
  padding: 0.9rem 2rem;
  font-size: 1.1875rem;
}

.cta-line {
  margin: 1.5rem 0 0;
}

.cta-text {
  display: inline-block;
  padding: 0.55rem 0;
  color: var(--link);
  font-size: 1.0625rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.cta-text::after {
  content: " \203A";
}

/* ---------- closing band ---------- */

.closing {
  margin-top: calc(var(--section-gap) + 0.5rem);
  padding: clamp(2.25rem, 1.6rem + 3vw, 3.75rem) 0 clamp(2.5rem, 1.8rem + 3vw, 4rem);
  background: var(--tint);
}

.closing .wrap > *:last-child {
  margin-bottom: 0;
}

/* ---------- footer ---------- */

.page-end {
  padding: 2.5rem 0 3rem;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.publisher {
  margin: 0 0 1rem;
}

.publisher p {
  margin: 0;
}

.publisher strong {
  color: var(--ink);
}

.foot_links {
  margin: 0 0 0.75rem;
}

.foot_links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot_links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--link);
}

.byline_note {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- about and legal pages ---------- */

.legal {
  padding-bottom: 1rem;
}

.back {
  margin: 1.25rem 0 0;
  font-size: 0.9375rem;
}

.back a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.legal h1 {
  margin: 0.25rem 0 0.35em;
}

.page-meta {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.legal h2 {
  margin: 2.25rem 0 0.5em;
  font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.55rem);
  line-height: 1.25;
}

.legal ul:not(.bullets) {
  padding-left: 1.25rem;
}

.legal address {
  margin: 0 0 1.15em;
  font-style: normal;
}

/* ---------- 480px ---------- */

@media (min-width: 480px) {
  .wrap {
    padding-left: 24px;
    padding-right: 24px;
  }

  .cta-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem 1rem;
  }

  .byline {
    font-size: 0.875rem;
  }
}

/* ---------- 768px ---------- */

@media (min-width: 768px) {
  .masthead-inner {
    min-height: 76px;
  }

  .hero img {
    aspect-ratio: 852 / 400;
  }

  .byline {
    margin-top: 1.1rem;
  }

  .split {
    display: flex;
    align-items: flex-start;
    gap: 2.25rem;
  }

  .split-text {
    flex: 1 1 0;
  }

  .split-fig {
    flex: 0 0 36%;
    max-width: 330px;
    margin: 0.4rem 0 0;
  }

  .split-fig img {
    aspect-ratio: 1 / 1;
    object-position: 45% 100%;
  }

  .keypoints {
    padding: 1.3rem 1.75rem 1.35rem;
  }

  .foot_links ul {
    gap: 0 1.6rem;
  }
}

/* ---------- 1024px ---------- */

@media (min-width: 1024px) {
  .masthead-inner {
    min-height: 84px;
    gap: 6px 18px;
  }

  .brand-name {
    font-size: 1.65rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .kicker {
    margin-top: 1.5rem;
  }

  .article {
    padding-top: 1.5rem;
  }

  .page-end {
    padding: 3.25rem 0 3.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  a,
  .cta {
    transition: none;
  }
}
