/* 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;
}

::selection {
  background: var(--background-hover);
  color: var(--text);
}

.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(80svh, 48rem);
  overflow: hidden;
  border-bottom: 1px solid var(--border-muted);
  background: var(--background);
}

.convergence {
  grid-area: 1 / 1;
  width: min(100%, 100rem);
  height: 100%;
  justify-self: center;
  min-height: 38.5rem;
  overflow: hidden;
}

.convergence svg {
  display: block;
  width: 100%;
  height: 100%;
  shape-rendering: geometricPrecision;
}

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

.line--axis {
  stroke: var(--text-pop);
  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: end;
  align-items: end;
  padding-bottom: clamp(3rem, 7vw, 7rem);
}

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

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

h1,
h2 {
  text-wrap: balance;
}

h1 {
  max-width: 13ch;
  margin-bottom: 0;
  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;
  padding-top: 0.45rem;
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.55;
  text-align: left;
}

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

.beliefs,
.questions {
  padding-block: clamp(3rem, 7vw, 6rem);
  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 {
  padding-left: 0;
}

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

footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 2rem;
  padding-bottom: calc(2rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

footer p {
  margin-bottom: 0;
}

.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) {
  .hero,
  .convergence {
    min-height: 46.5rem;
  }

  .line--outer {
    display: none;
  }

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

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

  .statement {
    gap: 2rem;
    padding-bottom: 3.5rem;
  }

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

  footer {
    flex-direction: column;
    gap: 0.4rem;
  }
}

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

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

  .line {
    stroke: CanvasText;
  }
}
