/* ==========================================================================
   Prime Observer - site.css
   Hand-written, mobile-first. Palette lives in custom properties.
   Layout language: a centred white article card on a clean page, bold sans
   headline, light editorial body copy, mint category tag, pale tinted boxes.
   ========================================================================== */

:root {
  --ink: #1b1b1b;
  --ink-2: #3b3b3b;
  --muted: #5f5f5f;
  --line: #e3e3df;
  --paper: #ffffff;
  --wash: #f4f5f2;
  --mint: #a3ff9f;
  --mint-soft: #effcec;
  --mint-line: #c4e8be;
  --green: #12803c;
  --green-hover: #0f6f34;
  --green-dark: #0b5c2a;

  --font-head: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Open Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --pad: 16px;
  --radius: 6px;
  --radius-btn: 8px;
  --shadow-card: 0 0 26px rgba(0, 0, 0, 0.13);
  --shadow-soft: 0 1px 0 rgba(0, 0, 0, 0.04), 0 8px 26px rgba(0, 0, 0, 0.09);
}

@media (min-width: 480px) {
  :root { --pad: 24px; }
}

@media (min-width: 768px) {
  :root { --pad: 44px; }
}

/* ---------- Reset ---------- */

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }

img, video, svg { max-width: 100%; }
img { display: block; height: auto; }

a { color: inherit; }

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

@media (min-width: 768px) {
  body { font-size: 1.125rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Utilities ---------- */

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 60;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip:focus { top: 12px; }

.link {
  color: var(--green-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-thickness 0.15s ease;
}

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

/* ---------- Reading progress ---------- */

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 4px;
  pointer-events: none;
}

.progress__bar {
  height: 100%;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ---------- Page card ---------- */

.page {
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
  padding: 12px var(--pad) 40px;
  background: var(--paper);
}

.page--article { padding-bottom: 0; }

@media (min-width: 768px) {
  .page {
    margin-top: 32px;
    padding-top: 28px;
    padding-bottom: 56px;
    box-shadow: var(--shadow-card);
  }

  .page--article { padding-bottom: 0; }
}

@media (min-width: 1024px) {
  .page { margin-top: 40px; }
}

/* ---------- Masthead ---------- */

.mast {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "brand label"
    "tag tag";
  align-items: center;
  gap: 8px 16px;
  padding-bottom: 8px;
}

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

.mast__mark {
  width: 36px;
  height: 36px;
  flex: none;
}

.mast__name {
  font-family: var(--font-head);
  font-size: 1.3125rem;
  line-height: 1;
  letter-spacing: -0.02em;
}

.mast__prime { font-weight: 800; }

.mast__observer {
  font-weight: 300;
  margin-left: 0.2em;
}

.mast__label {
  grid-area: label;
  align-self: start;
  justify-self: end;
  padding-top: 12px;
  font-family: var(--font-head);
  font-size: 0.8125rem;
  line-height: 1.2;
  color: var(--muted);
}

.mast__tag {
  grid-area: tag;
  justify-self: start;
  padding: 6px 12px;
  border-radius: var(--radius);
  background: var(--mint);
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
}

.mast__back {
  grid-area: label;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 4px;
  white-space: nowrap;
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--green-dark);
  text-decoration: none;
  transition: color 0.15s ease;
}

.mast__back:hover { color: var(--ink); text-decoration: underline; }

.mast.mast--simple {
  grid-template-areas: "brand label";
  padding-bottom: 12px;
}

@media (min-width: 768px) {
  .mast {
    grid-template-areas:
      "brand label"
      "brand tag";
    align-items: start;
    row-gap: 6px;
  }

  .mast__tag {
    justify-self: end;
    font-size: 1.0625rem;
  }

  .mast__label { padding-top: 4px; }
  .mast__brand { align-self: center; }
  .mast__name { font-size: 1.5rem; }
  .mast__mark { width: 42px; height: 42px; }
}

/* ---------- Hero ---------- */

.hero {
  margin: 14px 0 24px;
  text-align: center;
}

.hero__title {
  max-width: 21em;
  margin: 0 auto 14px;
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 1.2rem + 2.6vw, 2.5rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero__dek {
  max-width: 36em;
  margin: 0 auto;
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.5;
  color: var(--ink-2);
}

@media (min-width: 768px) {
  .hero { margin: 32px 0 32px; }
  .hero__title { margin-bottom: 18px; }
}

/* ---------- Media ---------- */

.media { margin: 0 0 28px; }

.media__frame {
  position: relative;
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  border-radius: 3px;
  background: #d9dcd6;
}

.media__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media__img {
  width: 100%;
  height: auto;
  border-radius: 3px;
}

.media__caption {
  margin-top: 8px;
  font-family: var(--font-head);
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--muted);
  text-align: center;
}

.media--hero { margin-bottom: 32px; }

.media--inset {
  max-width: 600px;
  margin: 2.25rem auto 28px;
}

/* ---------- Story typography ---------- */

.story { display: block; }

.story__lead {
  margin-bottom: 0.5em;
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
  line-height: 1.35;
}

.story__bold {
  margin-bottom: 1.1em;
  font-weight: 700;
}

.story__text { margin-bottom: 1.15em; }

.story__text--fix { font-weight: 400; }

.story__fix-label {
  display: inline;
  margin-right: 0.05em;
  padding: 1px 8px;
  border-radius: 4px;
  background: var(--mint);
  font-family: var(--font-head);
  font-size: 0.9em;
  font-weight: 800;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.story__section { margin-top: 2.5rem; }

.story__title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0.65em;
  font-family: var(--font-head);
  font-size: clamp(1.375rem, 1.15rem + 1vw, 1.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.story__title--center { align-items: center; }

.story__num {
  padding: 3px 9px;
  border-radius: 4px;
  background: var(--mint);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .story__section { margin-top: 3.25rem; }
}

/* ---------- Steps box ---------- */

.steps {
  margin: 1.4em 0;
  padding: 22px 18px;
  border: 1px solid var(--mint-line);
  border-radius: var(--radius);
  background: var(--mint-soft);
}

.steps__list {
  display: grid;
  gap: 16px;
  list-style: none;
  counter-reset: step;
}

.steps__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  counter-increment: step;
}

.steps__item::before {
  content: counter(step);
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 800;
  line-height: 1;
}

.steps__text {
  padding-top: 3px;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .steps {
    width: 92%;
    margin-inline: auto;
    padding: 30px 34px;
  }

  .steps__list { gap: 20px; }
}

/* ---------- CTA block and button (button row) ---------- */

.cta {
  margin: 2.75rem 0;
  text-align: center;
}

.cta__lead {
  margin-bottom: 16px;
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.cta__row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  max-width: 440px;
  margin-inline: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 14px 26px;
  border: 0;
  border-radius: var(--radius-btn);
  background: var(--green);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--green-dark), 0 10px 22px rgba(11, 92, 42, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn:hover {
  background: var(--green-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--green-dark), 0 14px 26px rgba(11, 92, 42, 0.28);
}

.btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--green-dark);
}

.btn__arrow {
  font-size: 1.25em;
  line-height: 1;
  transition: transform 0.15s ease;
}

.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--ghost {
  background: #fff;
  color: var(--green-dark);
  box-shadow: inset 0 0 0 2px var(--green), 0 4px 0 var(--mint-line);
}

.btn--ghost:hover {
  background: var(--mint-soft);
  box-shadow: inset 0 0 0 2px var(--green), 0 6px 0 var(--mint-line);
}

.btn--ghost:active { box-shadow: inset 0 0 0 2px var(--green), 0 1px 0 var(--mint-line); }

@media (min-width: 768px) {
  .cta { margin: 3.25rem 0; }

  .cta__row {
    flex-direction: row;
    justify-content: center;
    max-width: none;
  }

  .btn { padding-inline: 32px; }
}

/* ---------- Split: image + checklist ---------- */

.split {
  display: grid;
  gap: 18px;
  margin: 1.4em 0;
}

.split__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--wash);
}

.split__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 50%;
}

.split__body { align-self: center; }

.checks {
  padding: 22px 18px;
  border-radius: var(--radius);
  background: var(--wash);
}

.checks__title {
  margin-bottom: 14px;
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.25;
}

.checks__list {
  display: grid;
  gap: 14px;
  list-style: none;
}

.checks__item {
  position: relative;
  padding-left: 36px;
  line-height: 1.5;
}

.checks__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green);
}

.checks__item::after {
  content: "";
  position: absolute;
  left: 8.5px;
  top: 5px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

@media (min-width: 768px) {
  .split {
    grid-template-columns: 5fr 7fr;
    gap: 28px;
    align-items: stretch;
  }

  .split__media {
    aspect-ratio: auto;
    min-height: 100%;
  }

  .checks { padding: 28px 28px; }
}

/* ---------- Tinted bands (full width of the card) ---------- */

.band {
  margin: 3rem calc(var(--pad) * -1) 0;
  padding: 40px var(--pad);
  background: var(--wash);
}

.band--mint {
  margin-bottom: 0;
  background: var(--mint-soft);
}

.band + .band { margin-top: 0; }

.band > :first-child { margin-top: 0; }

.band .cta { margin: 0; }

@media (min-width: 768px) {
  .band {
    margin-top: 4rem;
    padding-block: 56px;
  }

  .band + .band { margin-top: 0; }
  .band--mint { margin-bottom: 0; }
}

/* ---------- Facts box ---------- */

.facts {
  margin-top: 22px;
  padding: 22px 18px 8px;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.facts__title {
  margin-bottom: 6px;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-dark);
}

.facts__list { display: grid; }

.facts__row {
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.facts__term {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts__desc {
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
}

@media (min-width: 480px) {
  .facts__row {
    display: grid;
    grid-template-columns: 9rem 1fr;
    gap: 16px;
    align-items: baseline;
  }
}

@media (min-width: 768px) {
  .facts { padding: 28px 32px 14px; }
  .facts__desc { font-size: 1.125rem; }
}

/* ---------- Footer (publisher imprint) ---------- */

.foot {
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
  padding: 36px var(--pad) 56px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #55554f;
}

.contact-info { margin: 0; }

.contact-info__name {
  margin-bottom: 2px;
  font-weight: 700;
  color: var(--ink-2);
}

.contact-info__line { margin: 0; }

.meta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin: 16px 0 6px;
}

.meta-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.meta-links a:hover { color: var(--green-dark); }

.about-line {
  max-width: 46em;
  margin: 8px 0 0;
}

@media (min-width: 768px) {
  .foot { padding-top: 44px; }
}

/* ---------- Legal and about pages ---------- */

.legal { padding-bottom: 8px; }

.legal__title {
  margin: 12px 0 8px;
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.375rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.legal__meta {
  margin-bottom: 28px;
  font-family: var(--font-head);
  font-size: 0.875rem;
  color: var(--muted);
}

.legal__h2 {
  margin: 2rem 0 0.5em;
  font-family: var(--font-head);
  font-size: clamp(1.1875rem, 1.05rem + 0.6vw, 1.4375rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.legal__p { margin-bottom: 1em; }

.legal__list {
  margin: 0 0 1em;
  padding-left: 1.3em;
}

.legal__list li { margin-bottom: 0.45em; }

.legal__details {
  margin: 0 0 1em;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--wash);
  font-style: normal;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .legal__h2 { margin-top: 2.5rem; }
}
