:root {
  --paper: #f1eee5;
  --paper-deep: #e7e1d5;
  --sheet: #fbfaf6;
  --ink: #17211e;
  --ink-soft: #40504a;
  --muted: #5a6661;
  --line: #c9c3b7;
  --line-strong: #999287;
  --thread: #c94c37;
  --thread-dark: #8d3023;
  --blue: #375568;
  --blue-pale: #dbe5e7;
  --green: #244c3d;
  --yellow: #f1d88a;
  --warning: #7d2e22;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --content: 76rem;
  --shadow: 0 1.6rem 4rem rgba(30, 35, 31, 0.09);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 4%, rgba(255, 255, 255, 0.9), transparent 26rem),
    linear-gradient(180deg, var(--paper), #eee9de 62%, var(--paper));
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  content: "";
  opacity: 0.12;
  background-image:
    radial-gradient(circle at 18% 20%, rgba(23, 33, 30, 0.25) 0 0.45px, transparent 0.7px),
    radial-gradient(circle at 69% 73%, rgba(23, 33, 30, 0.18) 0 0.45px, transparent 0.7px);
  background-size: 5px 5px, 9px 9px;
  mix-blend-mode: multiply;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

button,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

p,
h1,
h2,
h3,
ul,
ol,
blockquote {
  margin-top: 0;
}

::selection {
  color: #fff;
  background: var(--thread-dark);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 300;
  padding: 0.8rem 1rem;
  color: #fff;
  background: var(--ink);
  font-weight: 700;
  transform: translateY(-180%);
}

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

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

.site-header {
  display: flex;
  width: min(calc(100% - 2.5rem), var(--content));
  min-height: 5.4rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: 0 auto;
  border-bottom: 1px solid rgba(23, 33, 30, 0.32);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.42rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.wordmark-mark {
  width: 2.75rem;
  height: 1.75rem;
  overflow: visible;
}

.wordmark-mark path {
  fill: none;
  stroke: var(--thread);
  stroke-width: 2.4;
  stroke-linecap: round;
}

.wordmark-mark circle {
  fill: var(--thread);
}

.site-header nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.5vw, 2rem);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.025em;
}

.site-header nav a,
.site-footer nav a,
.site-footer nav button {
  padding: 0.5rem 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
}

.site-header nav a:hover,
.site-footer nav a:hover,
.site-footer nav button:hover {
  color: var(--thread-dark);
  border-bottom-color: currentColor;
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  display: grid;
  width: min(calc(100% - 2.5rem), var(--content));
  min-height: min(43rem, 78vh);
  grid-template-columns: minmax(0, 1.1fr) minmax(21rem, 0.9fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 7rem);
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(4rem, 8vw, 7rem);
}

.suite-label,
.step-label {
  margin-bottom: 1rem;
  color: var(--thread-dark);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.085em;
  text-transform: uppercase;
}

.suite-label span {
  display: inline-grid;
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.35rem;
  color: var(--thread);
  border: 1px solid currentColor;
  border-radius: 50%;
  place-items: center;
}

.hero h1 {
  max-width: 11ch;
  margin-bottom: 1.65rem;
  font-family: var(--serif);
  font-size: clamp(3.75rem, 8.3vw, 7.8rem);
  font-weight: 500;
  line-height: 0.84;
  letter-spacing: -0.078em;
}

.hero h1 em {
  color: var(--thread-dark);
  font-weight: 500;
}

.hero-intro {
  max-width: 39rem;
  margin-bottom: 2.2rem;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(1.22rem, 2vw, 1.55rem);
  line-height: 1.45;
}

.promise-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.7rem;
  margin-bottom: 0;
  padding: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.67rem;
  letter-spacing: 0.045em;
  list-style: none;
  text-transform: uppercase;
}

.promise-line li {
  position: relative;
}

.promise-line li:not(:last-child)::after {
  position: absolute;
  right: -1.15rem;
  color: var(--thread);
  content: "→";
}

.thread-map {
  position: relative;
  width: 100%;
  aspect-ratio: 1.24;
  background:
    linear-gradient(rgba(23, 33, 30, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 33, 30, 0.07) 1px, transparent 1px),
    rgba(251, 250, 246, 0.66);
  background-size: 24px 24px;
  border: 1px solid rgba(23, 33, 30, 0.22);
  border-radius: 48% 52% 51% 49% / 53% 45% 55% 47%;
  box-shadow: inset 0 0 5rem rgba(255, 255, 255, 0.5);
  transform: rotate(1.2deg);
}

.thread-map svg {
  position: absolute;
  inset: 10% 4% 8%;
  width: 92%;
  height: 82%;
  overflow: visible;
}

.map-tangle,
.map-thread {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map-tangle {
  stroke: rgba(55, 85, 104, 0.36);
  stroke-width: 2.3;
  stroke-dasharray: 4 7;
}

.map-thread {
  stroke: var(--thread);
  stroke-width: 4.5;
  filter: drop-shadow(0 5px 7px rgba(143, 46, 34, 0.16));
}

.map-note,
.map-start,
.map-end {
  position: absolute;
  z-index: 2;
  font-family: var(--mono);
  font-size: clamp(0.56rem, 1.1vw, 0.72rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.map-note {
  padding: 0.55rem 0.7rem;
  color: var(--blue);
  background: var(--sheet);
  border: 1px solid rgba(55, 85, 104, 0.28);
  box-shadow: 0 0.5rem 1rem rgba(23, 33, 30, 0.06);
}

.map-note-one {
  top: 18%;
  left: 27%;
  transform: rotate(-5deg);
}

.map-note-two {
  top: 47%;
  right: 11%;
  transform: rotate(3deg);
}

.map-note-three {
  right: 35%;
  bottom: 11%;
  transform: rotate(-2deg);
}

.map-start,
.map-end {
  padding: 0.25rem 0.4rem;
  color: #fff;
  background: var(--ink);
}

.map-start {
  top: 22%;
  left: 1%;
}

.map-end {
  right: -1%;
  bottom: 10%;
  background: var(--thread-dark);
}

.finder-wrap {
  display: grid;
  width: min(calc(100% - 2.5rem), var(--content));
  grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 0.55fr);
  align-items: start;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin: 0 auto clamp(6rem, 11vw, 10rem);
}

.finder-card {
  position: relative;
  padding: clamp(1.5rem, 4.4vw, 4rem);
  background: var(--sheet);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.finder-card::before {
  position: absolute;
  top: -1px;
  left: -1px;
  width: 7rem;
  height: 0.32rem;
  background: var(--thread);
  content: "";
}

.finder-heading {
  max-width: 42rem;
  margin-bottom: 2rem;
}

.finder-heading h2,
.result-header h2,
.how-it-works h2,
.boundary-band h2,
.made-note h2,
.policy-hero h1 {
  margin-bottom: 1rem;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.finder-heading > p:last-child,
.result-header > p:not(.step-label):not(.verified-badge) {
  max-width: 44rem;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1.14rem;
}

#mess-form label {
  display: block;
  margin-bottom: 0.55rem;
  font-weight: 750;
}

#mess-input {
  display: block;
  width: 100%;
  min-height: 11rem;
  padding: 1rem 1.1rem;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 0;
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.55;
  resize: vertical;
}

#mess-input::placeholder {
  color: #68736e;
  opacity: 1;
}

#mess-input[aria-invalid="true"] {
  border-color: #a3261e;
  box-shadow: 0 0 0 2px rgba(163, 38, 30, 0.16);
}

.input-meta {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.input-meta p {
  margin-bottom: 0;
}

.privacy-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.35rem;
  background: var(--green);
  border-radius: 50%;
}

.form-error {
  min-height: 1.55rem;
  margin: 0.35rem 0;
  color: #8b1f18;
  font-weight: 700;
}

.primary-button,
.result-action-link {
  display: inline-flex;
  min-height: 3.3rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.3rem;
  padding: 0.88rem 1.1rem;
  color: #fff;
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 0;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.primary-button:hover,
.result-action-link:hover {
  color: #fff;
  background: var(--thread-dark);
  border-color: var(--thread-dark);
  transform: translateY(-2px);
}

.primary-button--small {
  min-height: 3rem;
}

.examples {
  margin-top: 2.3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.examples > p {
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.example-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.example-list button {
  min-height: 2.75rem;
  padding: 0.58rem 0.8rem;
  color: var(--blue);
  background: transparent;
  border: 1px solid rgba(55, 85, 104, 0.42);
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
}

.example-list button:hover {
  color: #fff;
  background: var(--blue);
}

.coverage-note {
  position: sticky;
  top: 1.5rem;
  padding: 1.6rem 0 1.6rem 1.6rem;
  border-left: 2px solid var(--thread);
}

.coverage-note h2 {
  margin-bottom: 1rem;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3vw, 2.75rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.coverage-note > p:not(.step-label) {
  margin-bottom: 1.25rem;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1.03rem;
}

.coverage-note a,
.made-note a,
.text-link,
.quiet-link {
  color: var(--thread-dark);
  font-weight: 750;
  text-decoration: underline;
}

.result-region {
  width: min(calc(100% - 2.5rem), var(--content));
  margin: 0 auto;
  scroll-margin-top: 1rem;
}

.result-region:not(.has-result) {
  display: none;
}

.thread-result,
.choice-result,
.no-match-result,
.boundary-result {
  margin: 0 0 clamp(6rem, 11vw, 10rem);
  background: var(--sheet);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}

.result-header {
  position: relative;
  padding: clamp(2rem, 5vw, 5rem);
  color: #f9f6ee;
  background:
    linear-gradient(130deg, rgba(201, 76, 55, 0.11), transparent 38%),
    var(--green);
}

.result-header::after {
  position: absolute;
  right: clamp(1.5rem, 5vw, 4rem);
  bottom: -0.36rem;
  left: clamp(1.5rem, 5vw, 4rem);
  height: 0.72rem;
  background: var(--thread);
  content: "";
}

.result-header .step-label {
  color: #f2a696;
}

.result-header h2 {
  max-width: 15ch;
}

.result-header > p:not(.step-label):not(.verified-badge) {
  color: rgba(249, 246, 238, 0.82);
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 1.8rem 0 0;
  padding: 0.45rem 0.6rem;
  color: #f8f3e8;
  background: rgba(3, 23, 16, 0.34);
  border: 1px solid rgba(248, 243, 232, 0.24);
  font-family: var(--mono);
  font-size: 0.67rem;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.verified-badge span {
  color: #9ee0b6;
}

.you-are-here {
  display: grid;
  grid-template-columns: minmax(12rem, 0.55fr) minmax(0, 1fr);
  gap: 1.5rem 3rem;
  padding: clamp(2rem, 5vw, 4.5rem);
  background: var(--blue-pale);
  border-bottom: 1px solid var(--line);
}

.you-are-here .step-label {
  grid-column: 1 / -1;
  margin-bottom: -0.45rem;
  color: var(--blue);
}

.you-are-here h3 {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.you-are-here ul {
  margin: 0;
  padding-left: 1.25rem;
}

.you-are-here li + li {
  margin-top: 0.7rem;
}

.path {
  padding: clamp(2rem, 5vw, 4.5rem);
}

.path-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: path;
}

.path-step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(7rem, 0.32fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: 2rem 0 2.4rem;
  border-top: 1px solid var(--line);
}

.path-step::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 2.25rem;
  width: 1px;
  background: rgba(201, 76, 55, 0.38);
  content: "";
}

.path-step:first-child {
  border-top-color: var(--thread);
}

.path-step:last-child::before {
  bottom: 50%;
}

.step-number {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.step-number > span {
  display: grid;
  width: 4.5rem;
  height: 4.5rem;
  flex: 0 0 auto;
  color: var(--thread-dark);
  background: var(--sheet);
  border: 1px solid var(--thread);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 1.45rem;
  place-items: center;
}

.path-step--first .step-number > span {
  color: #fff;
  background: var(--thread-dark);
}

.step-number small {
  color: var(--thread-dark);
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.step-copy h3,
.contact-grid h3,
.fallback-grid h3 {
  margin-bottom: 0.65rem;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.8vw, 2.4rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.step-copy p {
  max-width: 46rem;
  margin-bottom: 1rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.official-link,
.contact-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: var(--blue);
  font-size: 0.87rem;
  font-weight: 750;
  text-decoration: underline;
}

.official-link::before {
  margin-right: 0.45rem;
  color: var(--green);
  content: "●";
  font-size: 0.68rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-card,
.script-card {
  padding: clamp(2rem, 5vw, 4.5rem);
}

.contact-card {
  background: var(--paper-deep);
  border-right: 1px solid var(--line);
}

.contact-card > p:not(.step-label),
.script-card > p:not(.step-label) {
  color: var(--ink-soft);
}

.script-card blockquote {
  position: relative;
  margin: 1.35rem 0;
  padding: 1.25rem 1.25rem 1.25rem 1.6rem;
  color: var(--ink);
  background: #fff;
  border-left: 4px solid var(--thread);
  font-family: var(--serif);
  font-size: 1.06rem;
  line-height: 1.55;
}

.copy-button,
.quiet-button {
  min-height: 2.85rem;
  padding: 0.7rem 0.9rem;
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 0;
  font-size: 0.8rem;
  font-weight: 750;
  cursor: pointer;
}

.copy-button:hover,
.quiet-button:hover {
  color: #fff;
  background: var(--ink);
}

.watch-card {
  display: grid;
  grid-template-columns: minmax(10rem, 0.35fr) minmax(0, 1fr);
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(2rem, 5vw, 4.5rem);
  color: #f7f2e8;
  background: var(--blue);
}

.watch-card--urgent {
  background: var(--warning);
}

.watch-card .step-label {
  margin-bottom: 0;
  color: #f4c9b8;
}

.watch-card > p:last-child {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: 1.08rem;
}

.source-drawer {
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.source-drawer summary {
  padding: 1.3rem clamp(2rem, 5vw, 4.5rem);
  color: var(--blue);
  font-size: 0.83rem;
  font-weight: 750;
  cursor: pointer;
}

.source-drawer > div {
  padding: 0 clamp(2rem, 5vw, 4.5rem) 2rem;
}

.source-drawer ul {
  padding-left: 1.2rem;
}

.source-drawer li + li {
  margin-top: 0.8rem;
}

.source-drawer li span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
}

.source-drawer p {
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(2rem, 5vw, 4.5rem);
}

.result-actions--final {
  background: var(--paper-deep);
}

.result-disclaimer {
  margin: 0;
  padding: 0 clamp(2rem, 5vw, 4.5rem) 2rem;
  color: var(--muted);
  background: var(--paper-deep);
  font-size: 0.75rem;
}

.choice-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: clamp(2rem, 5vw, 4.5rem);
}

.choice-card {
  display: grid;
  min-height: 12rem;
  align-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  text-align: left;
  background: var(--sheet);
  border: 1px solid var(--line-strong);
  cursor: pointer;
}

.choice-card:hover {
  color: #fff;
  background: var(--blue);
}

.choice-card span,
.choice-card small {
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.choice-card span {
  color: var(--thread-dark);
}

.choice-card:hover span {
  color: #f5b3a5;
}

.choice-card strong {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.05;
}

.fallback-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fallback-grid section {
  padding: clamp(2rem, 5vw, 4.5rem);
}

.fallback-grid section + section {
  background: var(--paper-deep);
  border-left: 1px solid var(--line);
}

.boundary-result--urgent .result-header,
.boundary-result--caution .result-header {
  background: var(--warning);
}

.how-it-works {
  width: min(calc(100% - 2.5rem), var(--content));
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-top: 1px solid var(--line-strong);
}

.how-it-works header {
  display: grid;
  grid-template-columns: minmax(10rem, 0.35fr) minmax(0, 1fr);
  align-items: end;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}

.how-it-works header .step-label {
  margin-bottom: 0.5rem;
}

.how-it-works h2 {
  margin-bottom: 0;
}

.how-it-works ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.how-it-works li {
  min-height: 20rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.how-it-works li > span {
  display: block;
  margin-bottom: 4.5rem;
  color: var(--thread-dark);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.how-it-works h3 {
  margin-bottom: 0.8rem;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.8vw, 2.35rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.how-it-works li p {
  color: var(--ink-soft);
}

.boundary-band {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 7vw, 7rem);
  padding: clamp(4rem, 9vw, 8rem) max(1.25rem, calc((100vw - var(--content)) / 2));
  color: #f6f1e7;
  background: var(--ink);
}

.boundary-band .step-label {
  color: #e49b8b;
}

.boundary-band h2 {
  margin-bottom: 0;
}

.boundary-band > div:last-child {
  align-self: end;
  max-width: 42rem;
}

.boundary-band > div:last-child p {
  color: rgba(246, 241, 231, 0.78);
  font-family: var(--serif);
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
}

.boundary-band > div:last-child p:last-child {
  margin-bottom: 0;
  color: #f0b6aa;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 750;
}

.made-note {
  width: min(calc(100% - 2.5rem), 52rem);
  margin: 0 auto;
  padding: clamp(6rem, 12vw, 11rem) 0;
  text-align: center;
}

.made-note h2 {
  margin-right: auto;
  margin-left: auto;
}

.made-note > p:not(.step-label) {
  max-width: 42rem;
  margin: 0 auto 1.8rem;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(1.12rem, 2vw, 1.35rem);
}

.site-footer {
  display: grid;
  width: min(calc(100% - 2.5rem), var(--content));
  grid-template-columns: 1fr auto;
  gap: 2rem 4rem;
  margin: 0 auto;
  padding: 3rem 0;
  border-top: 1px solid rgba(23, 33, 30, 0.34);
}

.footer-wordmark {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 700;
  text-decoration: none;
}

.site-footer p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.site-footer .footer-suite {
  margin-top: 0.7rem;
}

.site-footer .footer-suite a {
  color: var(--thread-dark);
  font-weight: 700;
}

.site-footer nav {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.64rem !important;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

/* Policy and editorial pages */
.policy-main {
  overflow: visible;
}

.policy-hero {
  width: min(calc(100% - 2.5rem), 64rem);
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(2.5rem, 5vw, 4.5rem);
  border-bottom: 1px solid var(--line-strong);
}

.policy-hero h1 {
  max-width: 12ch;
  font-size: clamp(3.4rem, 7vw, 6.7rem);
}

.policy-hero > p:last-child {
  max-width: 45rem;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(1.16rem, 2vw, 1.45rem);
}

.policy-content {
  width: min(calc(100% - 2.5rem), 64rem);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(6rem, 10vw, 9rem);
}

.policy-content > section {
  display: grid;
  grid-template-columns: minmax(10rem, 0.34fr) minmax(0, 0.66fr);
  gap: 2rem 4rem;
  padding: 2.6rem 0;
  border-top: 1px solid var(--line);
}

.policy-content > section:first-child {
  border-top: 0;
}

.policy-content h2 {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.policy-copy {
  max-width: 44rem;
}

.policy-copy h3 {
  margin: 1.8rem 0 0.55rem;
  font-size: 1rem;
}

.policy-copy p,
.policy-copy li {
  color: var(--ink-soft);
}

.policy-copy li + li {
  margin-top: 0.55rem;
}

.policy-copy a {
  color: var(--thread-dark);
  font-weight: 700;
}

.policy-copy .primary-button {
  color: #fff;
}

.policy-copy code {
  padding: 0.15rem 0.3rem;
  background: var(--paper-deep);
  font-family: var(--mono);
  font-size: 0.82em;
  overflow-wrap: anywhere;
}

.inline-button {
  display: inline;
  padding: 0;
  color: var(--thread-dark);
  background: transparent;
  border: 0;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

.policy-date {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.source-index {
  display: grid;
  gap: 1rem;
}

.source-index article {
  padding: 1.4rem;
  background: var(--sheet);
  border: 1px solid var(--line);
}

.source-index h3 {
  margin: 0 0 0.45rem;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
}

.source-index p {
  margin-bottom: 0.65rem;
}

.source-index ul {
  margin-bottom: 0;
  padding-left: 1.2rem;
}

.source-index li + li {
  margin-top: 0.45rem;
}

.source-path-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--thread-dark);
  font-size: 0.8rem;
  font-weight: 750;
}

.not-found {
  display: grid;
  width: min(calc(100% - 2.5rem), 48rem);
  min-height: 100vh;
  align-content: center;
  justify-items: start;
  margin: 0 auto;
  padding: 4rem 0;
}

.not-found h1 {
  max-width: 10ch;
  margin-bottom: 1.25rem;
  font-family: var(--serif);
  font-size: clamp(3.4rem, 8vw, 7rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.065em;
}

.not-found > p:not(.step-label) {
  max-width: 34rem;
  margin-bottom: 2rem;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1.2rem;
}

.analytics-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 250;
  display: grid;
  width: min(calc(100% - 2rem), 45rem);
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem 1.5rem;
  margin: 0 auto;
  padding: 1rem 1.15rem;
  color: #f8f4eb;
  background: #17211e;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 1.2rem 3rem rgba(0, 0, 0, 0.25);
}

.analytics-banner[hidden] {
  display: none;
}

.analytics-banner p {
  margin: 0;
  color: rgba(248, 244, 235, 0.82);
  font-size: 0.82rem;
}

.analytics-banner p strong {
  display: block;
  margin-bottom: 0.15rem;
  color: #fff;
}

.analytics-banner p a {
  color: #f3b2a4;
}

.analytics-actions {
  display: flex;
  gap: 0.5rem;
}

.analytics-actions button {
  min-height: 2.75rem;
  padding: 0.55rem 0.8rem;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.56);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.analytics-actions button[data-choice="allow"] {
  color: #17211e;
  background: #f7f1e5;
}

.analytics-actions button:hover {
  border-color: #f3b2a4;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .thread-map {
    width: min(100%, 38rem);
    justify-self: center;
  }

  .finder-wrap {
    grid-template-columns: 1fr;
  }

  .coverage-note {
    position: static;
    padding: 1.5rem;
    background: rgba(251, 250, 246, 0.58);
    border: 1px solid var(--line);
    border-left: 4px solid var(--thread);
  }

  .choice-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    width: min(calc(100% - 1.5rem), var(--content));
    min-height: auto;
    align-items: flex-start;
    padding: 1rem 0;
  }

  .site-header nav {
    gap: 0.75rem;
  }

  .site-header nav a:first-child,
  .site-header nav a:last-child {
    display: none;
  }

  .hero,
  .finder-wrap,
  .result-region,
  .how-it-works,
  .site-footer,
  .policy-hero,
  .policy-content,
  .made-note {
    width: min(calc(100% - 1.5rem), var(--content));
  }

  .hero {
    gap: 2.5rem;
    padding: 3.5rem 0 3.25rem;
  }

  .hero h1 {
    font-size: clamp(3.5rem, 17vw, 5.5rem);
  }

  .hero-intro {
    font-size: 1.18rem;
  }

  .promise-line {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .promise-line li {
    padding: 0.45rem;
    background: rgba(251, 250, 246, 0.66);
    border-left: 2px solid var(--thread);
  }

  .promise-line li::after {
    display: none;
  }

  .thread-map {
    aspect-ratio: 1.18;
  }

  .finder-wrap {
    margin-bottom: 6rem;
  }

  .finder-card {
    padding: 1.25rem;
  }

  #mess-input {
    min-height: 10rem;
  }

  .input-meta {
    align-items: flex-start;
  }

  .primary-button {
    width: 100%;
  }

  .example-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .example-list button {
    width: 100%;
  }

  .result-header {
    padding: 2rem 1.25rem 2.4rem;
  }

  .you-are-here,
  .path-step,
  .watch-card,
  .contact-grid,
  .fallback-grid,
  .how-it-works header,
  .boundary-band,
  .policy-content > section {
    grid-template-columns: 1fr;
  }

  .you-are-here,
  .path,
  .contact-card,
  .script-card,
  .result-actions,
  .source-drawer > div {
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }

  .path-step {
    gap: 1rem;
    padding: 1.5rem 0 2rem;
  }

  .path-step::before {
    top: 3.4rem;
    bottom: auto;
    left: 2.25rem;
    width: 1px;
    height: calc(100% - 2rem);
  }

  .path-step:last-child::before {
    display: none;
  }

  .step-number {
    align-items: center;
  }

  .contact-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .watch-card {
    gap: 0.5rem;
  }

  .source-drawer summary {
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }

  .result-actions {
    align-items: stretch;
  }

  .result-actions > * {
    width: 100%;
    justify-content: center;
  }

  .fallback-grid section + section {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .how-it-works {
    padding: 5rem 0;
  }

  .how-it-works ol {
    grid-template-columns: 1fr;
  }

  .how-it-works li {
    min-height: 14rem;
  }

  .how-it-works li > span {
    margin-bottom: 2.5rem;
  }

  .boundary-band {
    gap: 2rem;
    padding: 4.5rem 1.25rem;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  .copyright {
    grid-column: 1;
  }

  .policy-content > section {
    gap: 1.25rem;
  }

  .analytics-banner {
    grid-template-columns: 1fr;
  }

  .analytics-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .wordmark-mark {
    width: 2.2rem;
  }

  .hero h1 {
    font-size: 3.55rem;
  }

  .map-note-two {
    right: 5%;
  }

  .example-list {
    grid-template-columns: 1fr;
  }

  .analytics-actions {
    grid-template-columns: 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (forced-colors: active) {
  .privacy-dot,
  .finder-card::before,
  .result-header::after {
    forced-color-adjust: none;
  }

  .thread-map {
    border: 2px solid CanvasText;
  }
}

@media print {
  @page {
    margin: 0.65in;
  }

  body {
    color: #000;
    background: #fff;
    font-size: 11pt;
  }

  body::before,
  .site-header,
  .hero,
  .finder-wrap,
  .how-it-works,
  .boundary-band,
  .made-note,
  .site-footer,
  .result-actions,
  .analytics-banner {
    display: none !important;
  }

  .result-region,
  .thread-result {
    display: block !important;
    width: 100%;
    margin: 0;
    border: 0;
    box-shadow: none;
  }

  .result-header {
    padding: 0 0 1rem;
    color: #000;
    background: #fff;
    border-bottom: 3px solid #000;
  }

  .result-header::after {
    display: none;
  }

  .result-header .step-label,
  .result-header > p:not(.step-label):not(.verified-badge),
  .verified-badge,
  .watch-card,
  .watch-card .step-label {
    color: #000;
  }

  .verified-badge {
    padding: 0;
    background: transparent;
    border: 0;
  }

  .you-are-here,
  .path,
  .contact-card,
  .script-card,
  .watch-card,
  .source-drawer > div,
  .result-disclaimer {
    padding: 1rem 0;
    background: #fff;
  }

  .you-are-here,
  .path-step,
  .contact-grid,
  .watch-card {
    display: block;
  }

  .path-step {
    break-inside: avoid;
  }

  .path-step::before {
    display: none;
  }

  .step-number {
    margin-bottom: 0.4rem;
  }

  .step-number > span {
    width: 2.2rem;
    height: 2.2rem;
    color: #000;
    background: #fff;
    border-color: #000;
    font-size: 1rem;
  }

  .contact-card {
    border-right: 0;
  }

  .source-drawer {
    display: block;
  }

  .source-drawer summary {
    padding: 1rem 0 0;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    overflow-wrap: anywhere;
    font-size: 8pt;
  }
}
