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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background-color: var(--c-cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .3 0 0 0 0 .22 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--c-ink);
  font-family: var(--f-body);
  font-size: var(--t-base);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

ul,
ol {
  padding: 0;
  list-style: none;
}

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

img {
  height: auto;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

a {
  color: var(--c-clay);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

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

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

.section--forest :focus-visible,
.section--night :focus-visible {
  outline-color: var(--c-cream);
}

h1,
h2,
h3 {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: var(--lh-head);
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 96;
  text-wrap: balance;
}

h1,
.display {
  font-size: var(--t-h1);
  font-weight: 300;
  letter-spacing: -0.025em;
}

h2,
.h2 {
  font-size: var(--t-h2);
  font-weight: 350;
}

h3 {
  font-size: var(--t-h3);
  font-weight: 400;
  line-height: 1.2;
}

h1 em,
h2 em,
h3 em,
.display em,
.h2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--c-clay);
}

.section--forest h1 em,
.section--forest h2 em,
.section--forest h3 em,
.section--night h2 em {
  color: var(--c-blush);
}

p {
  text-wrap: pretty;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--c-ink);
  color: var(--c-cream);
  padding: 0.75rem 1.25rem;
  border-radius: var(--r-pill);
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
  color: var(--c-cream);
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--read {
  max-width: calc(var(--wrap-read) + var(--gutter) * 2);
}

.section {
  position: relative;
  padding-block: var(--section-y);
  isolation: isolate;
}

.section--cream {
  background: var(--c-cream);
}

.section--paper {
  background: var(--c-paper);
}

.section--sand {
  background: var(--c-sand);
}

.section--forest {
  background: var(--c-forest);
  color: var(--c-cream);
}

.section--night {
  background: var(--c-night);
  color: var(--c-cream);
}

.section--forest a:not(.btn),
.section--night a:not(.btn) {
  color: var(--c-blush);
}

.stack > * + * {
  margin-top: var(--s-5);
}

.grid-2 {
  display: grid;
  gap: var(--s-7);
  grid-template-columns: 1fr;
}

.grid-3 {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-8);
    align-items: center;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-6);
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: var(--t-sm);
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--c-clay);
  line-height: 1.3;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: currentColor;
  opacity: 0.7;
}

.section--forest .eyebrow,
.section--night .eyebrow {
  color: var(--c-blush);
}

.lead {
  font-size: var(--t-lg);
  line-height: 1.55;
  color: var(--c-ink-soft);
  max-width: 56ch;
}

.section--forest .lead,
.section--night .lead {
  color: rgba(251, 246, 239, 0.88);
}

.prose {
  max-width: var(--measure);
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose h3 {
  margin-top: 2em;
  margin-bottom: 0.4em;
}

.prose ul {
  padding-left: 0;
}

.prose ul li {
  position: relative;
  padding-left: 1.6rem;
}

.prose ul li + li {
  margin-top: 12px;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-glow);
  box-shadow: 0 0 0 3px rgba(242, 184, 128, 0.28);
}

.prose ol {
  padding-left: 1.4rem;
  list-style: decimal;
}

.prose ol li + li {
  margin-top: 12px;
}

.pullquote {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.625rem, 1.2rem + 2vw, 2.75rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  text-wrap: balance;
  font-variation-settings: "opsz" 96;
}

.sun-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  color: var(--c-clay);
  opacity: 0.8;
}

.sun-rule::before,
.sun-rule::after {
  content: "";
  width: 56px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.sun-rule > span {
  width: 7px;
  height: 7px;
  margin-inline: 10px;
  border-radius: 50%;
  background: var(--c-glow);
}

.icon {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.glow,
.glow-follow {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(242, 184, 128, 0.55), rgba(242, 184, 128, 0));
  filter: blur(20px);
}


@media (max-width: 820px) {
  body {
    padding-bottom: calc(var(--bookbar-h) + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }
}
