:root {
  --jtr-paper: #f2eee5;
  --jtr-paper-deep: #e9e3d6;
  --jtr-cream: #f7f3ea;
  --jtr-ink: #24302a;
  --jtr-ink-soft: #4d5952;
  --jtr-rule: #cdc5b5;
  --jtr-pine: #2f4a3b;
  --jtr-pine-deep: #213529;
  --jtr-lichen: #8c9a73;
  --jtr-sun: #b8683a;
  --jtr-dusk: #232b27;
  --jtr-dusk-text: #ebe5d8;
  --jtr-dusk-soft: #bcb6a9;
  --jtr-dusk-rule: #48524c;

  --jtr-serif: "Spectral", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --jtr-sans: "Commissioner", "Segoe UI", system-ui, -apple-system, sans-serif;

  --jtr-step--1: 0.875rem;
  --jtr-step-0: 1.1875rem;
  --jtr-step-1: 1.4375rem;
  --jtr-step-2: clamp(1.75rem, 1.4rem + 1.4vw, 2.375rem);
  --jtr-step-3: clamp(2.375rem, 1.6rem + 3.4vw, 4.25rem);
  --jtr-step-4: clamp(2.75rem, 1.5rem + 5.6vw, 5.75rem);

  --jtr-gutter: 16px;
  --jtr-air-s: 1.5rem;
  --jtr-air-m: clamp(3rem, 2rem + 4vw, 5.5rem);
  --jtr-air-l: clamp(4.5rem, 3rem + 7vw, 9.5rem);
  --jtr-max: 76rem;
  --jtr-measure: 36rem;
  --jtr-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 48rem) {
  :root { --jtr-gutter: 40px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--jtr-rule) var(--jtr-paper);
  accent-color: var(--jtr-pine);
}

body {
  margin: 0;
  background: var(--jtr-paper);
  color: var(--jtr-ink);
  font-family: var(--jtr-serif);
  font-size: var(--jtr-step-0);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: clip;
  caret-color: var(--jtr-sun);
  font-kerning: normal;
  font-variant-numeric: oldstyle-nums proportional-nums;
}

::selection { background: #e6cdb8; color: var(--jtr-ink); }

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

h1, h2, h3 {
  margin: 0;
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: var(--jtr-step-4); letter-spacing: -0.03em; line-height: 1.02; }
h2 { font-size: var(--jtr-step-2); }
h3 { font-size: var(--jtr-step-1); font-weight: 400; letter-spacing: -0.005em; }

p { margin: 0 0 1.1em; text-wrap: pretty; }

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--jtr-lichen);
  text-underline-offset: 0.22em;
  transition: text-decoration-color 0.4s var(--jtr-ease), color 0.4s var(--jtr-ease);
}

a:hover { text-decoration-color: var(--jtr-sun); }

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

.jtr-skip {
  position: absolute;
  left: var(--jtr-gutter);
  top: -4rem;
  padding: 0.6rem 1rem;
  background: var(--jtr-ink);
  color: var(--jtr-paper);
  font-family: var(--jtr-sans);
  font-size: var(--jtr-step--1);
  z-index: 10;
}

.jtr-skip:focus { top: 0.75rem; }

.jtr-frame {
  width: 100%;
  max-width: var(--jtr-max);
  margin-inline: auto;
  padding-inline: var(--jtr-gutter);
}

.jtr-sans {
  font-family: var(--jtr-sans);
  font-size: var(--jtr-step--1);
  line-height: 1.5;
  letter-spacing: 0.005em;
}

.jtr-prose { max-width: var(--jtr-measure); }
.jtr-prose h2 { margin: 2.4em 0 0.7em; font-size: var(--jtr-step-1); font-weight: 500; letter-spacing: -0.01em; }
.jtr-prose h2:first-child { margin-top: 0; }
.jtr-prose ul, .jtr-prose ol { margin: 0 0 1.2em; padding-left: 1.1em; }
.jtr-prose li { margin-bottom: 0.45em; padding-left: 0.2em; }
.jtr-prose li::marker { color: var(--jtr-lichen); }
.jtr-prose strong { font-weight: 500; }

.jtr-horizon {
  position: relative;
  height: 1px;
  background: var(--jtr-ink);
}

.jtr-sun {
  position: absolute;
  bottom: 0;
  width: 22px;
  height: 11px;
  border-radius: 11px 11px 0 0;
  background: var(--jtr-sun);
}

.jtr-play {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  background: var(--jtr-pine);
  color: var(--jtr-cream);
  font-family: var(--jtr-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.4s var(--jtr-ease);
}

.jtr-play:hover { background: var(--jtr-pine-deep); color: var(--jtr-cream); }
.jtr-play svg { width: 14px; height: 14px; flex: none; }

.jtr-quiet-link {
  font-family: var(--jtr-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}

.jtr-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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