@font-face {
  font-family: 'Switzer';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/switzer-400.woff') format('woff');
}

@font-face {
  font-family: 'Switzer';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/switzer-500.woff') format('woff');
}

@font-face {
  font-family: 'Switzer';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/switzer-600.woff') format('woff');
}

@font-face {
  font-family: 'Portrait Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/Portrait-Regular-Desktop.otf') format('opentype');
}

/* Shared by the React app and every static page. Keep brand decisions here. */
:root {
  color-scheme: light;
  --font-body: 'Switzer', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Portrait Text', Georgia, 'Times New Roman', serif;
  --green: #087a34;
  --green-hover: #065d28;
  --button-text: #fff;
  --page-background: #fff;
  --text-color: #050608;
  --text-rgb: 5, 6, 8;
  --text-muted: #505452;
  --input-background: #f0f0f0;
  --input-focus-shadow: inset 0 0 14px rgba(0, 0, 0, 0.08);
  --selected-background: #e8f3ec;
  --border-color: #dce2de;
  --button-radius: 999px;
  --panel-radius: 24px;
  --button-hover-shadow: inset 0 0 14px rgba(0, 0, 0, 0.18);
  --options-background: var(--page-background);
  --options-shadow-opacity: 0.12;
  --error-background: #fff1f0;
  --error-text: #a12222;
  --error-border: #efb4b0;
  --sage: #3d5942;
  --mobile-page-edge: 32px;
  --content-width: 1120px;
  --reading-width: 980px;
  --display-size: 3.625rem;
  --scene-tile-size: 480px;
  --stipple-color: var(--cursor-dark);
  --stipple-opacity: 0.24;
  --cursor-core: var(--green);
  --cursor-highlight-opacity: 0.75;
  --cursor-dark: #246624;
  --cursor-light: #97ce9b;
  background: var(--page-background);
  color: var(--text-color);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
}

.stipple-connections {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--cursor-dark);
  pointer-events: none;
}

.stipple-connection-cycle {
  transform-box: fill-box;
  transform-origin: center;
}

.stipple-connection-trail,
.stipple-connection-tip {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stipple-connection-trail {
  stroke-width: 0.9;
  opacity: 0.35;
}

.stipple-connection-tip {
  stroke-width: 1.4;
  filter: drop-shadow(0 0 2px var(--cursor-light));
}

.stipple-connection-node {
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 0.5;
  opacity: 0.42;
  filter: drop-shadow(0 0 1.5px var(--cursor-light));
}

.stipple-connections[data-phase='dissolving'] .stipple-connection-trail {
  stroke-width: 1.6;
  opacity: 0.75;
  filter: drop-shadow(0 0 3px var(--cursor-light));
}

.stipple-connections[data-phase='dissolving'] .stipple-connection-node {
  stroke-width: 1.2;
  opacity: 0.7;
}

h1 {
  margin: 0;
  color: var(--green);
  font-family: var(--font-display);
  font-variant-caps: small-caps;
  font-size: var(--display-size);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0.04em;
  text-wrap: balance;
}

a {
  color: var(--green);
  text-underline-offset: 4px;
}

a:hover {
  color: var(--green-hover);
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

:where(input, textarea):focus {
  outline: none;
  box-shadow: var(--input-focus-shadow);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 26px;
  border: 0;
  border-radius: var(--button-radius);
  background: var(--green);
  color: var(--button-text);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow 120ms ease, opacity 120ms ease;
}

.button:hover:not(:disabled) {
  color: var(--button-text);
  box-shadow: var(--button-hover-shadow);
}

.button:disabled {
  opacity: 0.6;
  cursor: default;
}

.button--secondary,
.button--secondary:hover:not(:disabled) {
  background: var(--input-background);
  color: var(--text-color);
}

.button--secondary[aria-pressed='true'],
.button--secondary[aria-pressed='true']:hover {
  background: var(--selected-background);
  color: var(--green);
}

.button svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  :root {
    --display-size: 2.125rem;
  }
}

@media (max-width: 560px) {
  :root {
    --display-size: clamp(1.75rem, 10vw, 2.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .stipple-connections {
    display: none;
  }

  .button {
    transition: none;
  }
}
