@font-face {
  font-family: "Mona Sans SemiExpanded";
  src: url("assets/fonts/MonaSans-SemiExpanded.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 112.5%;
  font-style: normal;
  font-display: swap;
}

:root {
  --pch-paper: #f4f1e8;
  --pch-surface: #fffdf7;
  --pch-forest: #173d35;
  --pch-forest-dark: #0d2924;
  --pch-coral: #e75c3f;
  --pch-glacier: #79b9c5;
  --pch-ink: #172023;
  --pch-muted: #66716f;
  --pch-line: #c9cdc5;

  --pch-coral-soft: #fbe6df;
  --pch-glacier-soft: #e2f0f2;
  --pch-forest-soft: #dde7e0;

  --pch-font: "Mona Sans SemiExpanded", Arial, Helvetica, sans-serif;

  --pch-shell: clamp(1rem, 4vw, 3.25rem);
  --pch-measure: 1260px;
  --pch-radius: 4px;
  --pch-notch: 14px;

  --pch-step-hero: clamp(2.6rem, 1.4rem + 5.4vw, 5rem);
  --pch-step-section: clamp(1.9rem, 1.2rem + 2.6vw, 3rem);
  --pch-step-lead: clamp(1.15rem, 1rem + 0.7vw, 1.4rem);
  --pch-step-body: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --pch-step-small: 0.85rem;

  --pch-rhythm: clamp(3.5rem, 2rem + 6vw, 6.5rem);

  --pch-shadow-paper: 0 1px 0 var(--pch-line), 0 22px 40px -34px rgba(13, 41, 36, 0.55);
  --pch-shadow-lift: 0 30px 60px -40px rgba(13, 41, 36, 0.7);
}

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background-color: var(--pch-paper);
}

body {
  min-block-size: 100vh;
  font-family: var(--pch-font);
  font-size: var(--pch-step-body);
  line-height: 1.62;
  color: var(--pch-ink);
  background-color: var(--pch-paper);
  background-image: repeating-linear-gradient(
    180deg,
    transparent 0,
    transparent 118px,
    rgba(121, 185, 197, 0.09) 118px,
    rgba(121, 185, 197, 0.09) 119px
  );
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--pch-forest-dark);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--pch-forest);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--pch-coral);
}

img,
picture {
  display: block;
  max-inline-size: 100%;
  height: auto;
}

ul,
ol {
  padding-inline-start: 1.2em;
}

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

.pch-visually-hidden {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pch-skip-link {
  position: fixed;
  inset-block-start: -120%;
  inset-inline-start: 1rem;
  z-index: 200;
  padding: 0.85rem 1.4rem;
  background-color: var(--pch-forest-dark);
  color: var(--pch-surface);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--pch-radius);
}

.pch-skip-link:focus {
  inset-block-start: calc(env(safe-area-inset-top, 0px) + 1rem);
  color: var(--pch-surface);
}

.pch-shell {
  inline-size: min(100% - (var(--pch-shell) * 2), var(--pch-measure));
  margin-inline: auto;
}

.pch-chapter {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--pch-step-small);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pch-coral);
}

.pch-chapter::before {
  content: "";
  inline-size: 2.4rem;
  block-size: 2px;
  background-color: var(--pch-coral);
}

.pch-section-title {
  font-size: var(--pch-step-section);
  margin-block: 0.6rem 0.4rem;
}

.pch-lead {
  font-size: var(--pch-step-lead);
  color: var(--pch-muted);
  max-inline-size: 62ch;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Dark Mode Theme Variables override */
html.pch-dark-theme {
  --pch-paper: #0c1412;
  --pch-surface: #121e1a;
  --pch-forest: #81beab;
  --pch-forest-dark: #eef5f2;
  --pch-coral: #fa7b60;
  --pch-glacier: #8ad2e0;
  --pch-ink: #eef3f1;
  --pch-muted: #8d9c99;
  --pch-line: #243531;

  --pch-coral-soft: #381b16;
  --pch-glacier-soft: #172a2e;
  --pch-forest-soft: #142421;
  --pch-shadow-paper: 0 1px 0 var(--pch-line), 0 22px 40px -34px rgba(0, 0, 0, 0.7);
  --pch-shadow-lift: 0 30px 60px -40px rgba(0, 0, 0, 0.8);
}

