/* Base: tokens, tipo musical Major Third, leading Apple, layout */

:root {
  --mint: #7ecfc0;
  --mint-soft: #a8e0d4;
  --mint-deep: #2f8f82;
  --forest: #145348;
  --ink: #14332c;
  --lime: #d4e85a;
  --cream: #e7f7f2;
  --paper: #f2faf7;
  --white: #f7fffc;
  --line: rgb(20 83 72 / 0.14);

  --type-ratio: 1.25;
  --text-md: 1rem;
  --text-sm: calc(var(--text-md) / var(--type-ratio));
  --text-xs: calc(var(--text-sm) / var(--type-ratio));
  --text-lg: calc(var(--text-md) * var(--type-ratio));
  --text-xl: calc(var(--text-lg) * var(--type-ratio));
  --text-2xl: calc(var(--text-xl) * var(--type-ratio));
  --text-3xl: calc(var(--text-2xl) * var(--type-ratio));
  --text-4xl: calc(var(--text-3xl) * var(--type-ratio));
  --text-5xl: calc(var(--text-4xl) * var(--type-ratio));
  --text-6xl: calc(var(--text-5xl) * var(--type-ratio));
  --text-7xl: calc(var(--text-6xl) * var(--type-ratio));

  --leading-display: 0.8;
  --leading-heading: 0.92;
  --leading-tight: 1.02;
  --leading-body: 1.18;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --font-display: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", "Segoe UI", system-ui, sans-serif;

  --space: 1rem;
  --space-lg: 2.25rem;
  --space-xl: 4.5rem;
  --wrap: 72rem;
  --radius: 1.75rem;
  --radius-lg: 2.5rem;
  --radius-pill: 999px;
  --header: 5.25rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --z-header: 40;
  --z-nav: 50;
  --z-walker: 5;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: var(--text-md);
  font-optical-sizing: auto;
  line-height: var(--leading-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

a {
  color: var(--forest);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--mint-deep);
}

:focus-visible {
  outline: 0.16rem solid var(--mint-deep);
  outline-offset: 0.2rem;
}

h1,
h2,
h3 {
  margin: 0 0 0.4em;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: var(--leading-heading);
  letter-spacing: -0.03em;
  font-optical-sizing: auto;
}

h1 {
  font-size: clamp(var(--text-4xl), 8.5vw, var(--text-7xl));
  line-height: var(--leading-display);
  letter-spacing: -0.04em;
  max-width: 18ch;
}

h2 {
  font-size: clamp(var(--text-3xl), 6vw, var(--text-5xl));
  line-height: var(--leading-heading);
  letter-spacing: -0.035em;
  max-width: 18ch;
}

h3 {
  font-size: var(--text-xl);
}

p {
  margin: 0 0 0.85em;
  max-width: 38rem;
}

p:last-child {
  margin-bottom: 0;
}

ul {
  margin: 0;
  padding: 0;
}

.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}

.lede {
  font-size: var(--text-lg);
  line-height: var(--leading-body);
  max-width: 34rem;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: var(--space);
  top: var(--space);
  z-index: 60;
  padding: 0.4rem 0.8rem;
  background: var(--white);
  border-radius: 0.5rem;
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
