/* The light palette is shared with Flitterbot's semantic theme. */
:root {
  color-scheme: light;
  --background: oklch(0.985 0.002 80);
  --background-muted: oklch(0.974 0.0025 73);
  --background-hover: oklch(0.956 0.0053 73);
  --text: oklch(0.18 0.006 255);
  --text-muted: oklch(0.48 0.008 255);
  --text-pop: oklch(0.4 0.18 240);
  --border: oklch(0.89 0.006 95);
  --border-muted: oklch(0.93 0.004 95);
  --page-gutter: clamp(1.25rem, 4vw, 4rem);
  --font-serif: Iowan Old Style, Palatino Linotype, Book Antiqua, Palatino, Georgia,
    Times New Roman, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono,
    Courier New, monospace;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  min-width: 20rem;
  min-height: 100svh;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}


.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.5rem 0.75rem;
  transform: translateY(-200%);
  background: var(--text);
  color: var(--background);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.skip-link:focus {
  transform: translateY(0);
}

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

a:hover {
  text-decoration-thickness: 0.12em;
}

a:focus-visible {
  border-radius: 1px;
  outline: none;
  box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--text-pop);
}

.masthead {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 50%;
  display: flex;
  width: 100%;
  max-width: 80rem;
  align-items: baseline;
  padding: calc(1.5rem + env(safe-area-inset-top)) var(--page-gutter) 0;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.4;
}

.wordmark {
  min-height: 2.75rem;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
}

.hero {
  display: grid;
  min-height: min(60svh, 48rem);
  overflow: hidden;
  border-bottom: 1px solid var(--border-muted);
  background: var(--background);
}

.convergence-frame {
  grid-area: 1 / 1;
  display: grid;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.convergence {
  position: relative;
  width: min(100%, 100rem);
  height: 100%;
  justify-self: center;
  min-height: 33.5rem;
  overflow: visible;
}

.convergence svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  shape-rendering: geometricPrecision;
}

.line {
  fill: none;
  stroke: var(--border);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.line--mobile-only {
  display: none;
}

.line--axis {
  stroke: var(--text-pop);
  stroke-width: 1;
  stroke-opacity: 0.3;
}

main {
  width: 100%;
}

.statement,
.beliefs,
.questions,
footer {
  width: min(100%, 80rem);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.statement {
  z-index: 1;
  grid-area: 1 / 1;
  align-self: start;
  align-items: center;
  padding-top: min(40svh, 34rem);
  padding-bottom: clamp(0.5rem, 4vw, 3rem);
}

.statement {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.9fr);
  gap: clamp(1.75rem, 5vw, 8rem);
}

.beliefs,
.questions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.9fr);
  gap: clamp(2rem, 7vw, 7rem);
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  text-wrap: balance;
}

h1 {
  max-width: 13ch;
  margin-bottom: 1rem;
  font-size: clamp(2.6rem, 5.6vw, 5.4rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.prose {
  width: 100%;
  max-width: 34rem;
  justify-self: start;
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.55;
  text-align: left;
}

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

.spelling-error {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 4'%3E%3Cpath d='M0 1L2 3L4 1L6 3L8 1' fill='none' stroke='%23d00000' stroke-width='.5' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E") left bottom / 0.58em 0.29em repeat-x;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.positive-underline {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 4'%3E%3Cpath d='M0 1L2 3L4 1L6 3L8 1' fill='none' stroke='%232fa03e' stroke-width='.7' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E") left bottom / 0.58em 0.29em repeat-x;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.prose-highlight {
  padding: 0.08em 0.18em;
  background: var(--background-hover);
  color: inherit;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.beliefs,
.questions {
  padding-block: clamp(2rem, 5vw, 5rem);
  border-top: 1px solid var(--border);
}

.beliefs {
  border-top: 0;
}

.statement h1,
.beliefs h2,
.questions h2 {
  width: 100%;
  justify-self: end;
  transform: translateX(clamp(-7rem, -7vw, -3rem));
  text-align: right;
}

.beliefs h2,
.questions h2 {
  margin-bottom: 0;
  font-size: clamp(1.3rem, 2.3vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.beliefs ul,
.questions ul {
  width: 100%;
  max-width: 41rem;
  margin: 0;
  justify-self: start;
  font-size: 1.02rem;
  text-align: left;
}

.beliefs ul,
.questions ul {
  padding-left: 0;
  list-style: none;
}

.beliefs li,
.questions li {
  display: grid;
  grid-template-columns: 2ch minmax(0, 1fr);
  align-items: baseline;
  column-gap: 0.75rem;
  padding-left: 0;
}

.list-index {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  line-height: inherit;
  text-align: right;
  transform: translateY(-0.15em);
}

.beliefs li + li,
.questions li + li {
  margin-top: 0.9rem;
}

footer {
  padding-top: 0.75rem;
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-align: center;
}

.copyright-symbol {
  display: inline-block;
  font-family: Arial, sans-serif;
  font-size: 1.25em;
  line-height: 1;
  vertical-align: -0.05em;
}

.error-page {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: var(--page-gutter);
}

.error-page main {
  width: min(100%, 38rem);
  padding: 0;
}

.error-page h1 {
  margin-bottom: 1.5rem;
}

.error-page p {
  max-width: 32rem;
}

@media (max-width: 56rem) {
  h1 {
    font-size: clamp(2.6rem, 3.6vw, 5.4rem);
  }

  .hero {
    min-height: 46.5rem;
  }

  .convergence-frame {
    height: 31rem;
    border-bottom: 1px solid var(--border-muted);
  }

  .convergence {
    width: 110%;
    min-height: 0;
    transform: translateX(min(18vw, 6rem));
  }

  .line--mobile-hidden {
    display: none;
  }

  .line--mobile-only {
    display: inline;
  }

  .statement,
  .beliefs,
  .questions {
    grid-template-columns: 1fr;
  }

  .statement h1,
  .beliefs h2,
  .questions h2 {
    justify-self: start;
    transform: none;
    text-align: left;
  }

  .statement {
    padding-top: 22rem;
  }

  .prose {
    max-width: 42rem;
  }

  .beliefs,
  .questions {
    gap: 1.5rem;
  }
}

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

@media (forced-colors: active) {
  .convergence {
    border-bottom-color: CanvasText;
  }

  .line {
    stroke: CanvasText;
  }
}
