:root {
  --paper: #F6F4EF;
  --ink: #1C1C1C;
  --quiet: #6B6964;
  --hairline: #D8D4CB;
  --accent: #1A5CFF;
  --on-accent: #FFFFFF;
  --measure: 38rem;
  --page: 42rem;
}

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

html {
  background: var(--paper);
  color: var(--ink);
  font-family: "Elms Sans", system-ui, sans-serif;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.55;
}

body { margin: 0; min-height: 100vh; }

a {
  color: var(--ink);
  text-underline-offset: 0.18em;
}
a:hover { color: var(--quiet); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -40px;
  background: var(--ink);
  color: var(--paper);
  padding: 0.4rem 0.7rem;
}
.skip:focus { top: 0.75rem; }

.shell {
  width: min(100% - 2.5rem, var(--page));
  margin-inline: auto;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.5rem;
  padding: 1.25rem 0 1.1rem;
  border-bottom: 1px solid var(--hairline);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}
.wordmark:hover { color: var(--ink); }

.nest {
  width: 1.1em;
  height: 1.1em;
  flex: 0 0 auto;
  stroke: currentColor;
  fill: none;
  stroke-width: 1;
  stroke-linecap: round;
}
.nest path { vector-effect: non-scaling-stroke; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
  margin-left: auto;
}
.site-nav a {
  color: var(--quiet);
  text-decoration: none;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--ink); }

.hero { padding: 3.25rem 0 2.75rem; }

h1, h2, h3 {
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
h1 {
  font-size: clamp(2.15rem, 6.5vw, 3.15rem);
  margin: 0 0 1.1rem;
  max-width: 16ch;
}
h2 {
  font-size: clamp(1.35rem, 3.2vw, 1.7rem);
  margin: 0 0 0.85rem;
  max-width: 22ch;
}
h3 {
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
}

.lede, .section-copy, .honesty, .faq p {
  color: var(--quiet);
  max-width: var(--measure);
}
.lede {
  font-size: 1.12rem;
  margin: 0 0 1.75rem;
}
.section-copy { margin: 0 0 1rem; }
.section-copy:last-child { margin-bottom: 0; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.1rem;
  margin: 0.85rem 0 0;
}

.text-link {
  color: var(--ink);
  font-size: 0.98rem;
}

.honesty {
  font-size: 0.98rem;
  margin: 1rem 0 0;
}

.prompt-box {
  display: grid;
  gap: 0.9rem;
  width: min(100%, var(--measure));
}

.hero-still {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--hairline);
  background: var(--paper);
}

.prompt-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.15rem;
}

.prompt-view {
  min-width: 0;
}

.prompt-view[open] {
  flex: 1 1 100%;
}

.prompt-view summary {
  cursor: pointer;
  list-style: none;
}

.prompt-view summary::-webkit-details-marker,
.prompt-view summary::marker {
  content: none;
}

.prompt-view .prompt {
  margin-top: 0.9rem;
}

.prompt {
  margin: 0;
  padding: 1rem 1.05rem;
  border: 1px solid var(--hairline);
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.5;
  white-space: pre-wrap;
  color: var(--ink);
}

.setup-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 22rem);
  background: var(--accent);
  color: var(--on-accent);
  border: 0;
  padding: 0.8rem 1.1rem;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
}
.setup-copy:hover { filter: brightness(0.92); }
.setup-copy:active { filter: brightness(0.86); }

.section {
  padding: 2.75rem 0;
  border-top: 1px solid var(--hairline);
}

.sheet {
  width: 100%;
  border-collapse: collapse;
  margin: 1.35rem 0 1.25rem;
}
.sheet th,
.sheet td {
  text-align: left;
  padding: 0.7rem 0.4rem 0.7rem 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.98rem;
}
.sheet th {
  color: var(--quiet);
  font-weight: 500;
}
.sheet td:last-child,
.sheet th:last-child { text-align: right; }

.steps {
  list-style: none;
  padding: 0;
  margin: 1.15rem 0 0;
  max-width: var(--measure);
  display: grid;
  gap: 0.85rem;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 0 0 0.85rem 2.1rem;
  border-bottom: 1px solid var(--hairline);
  color: var(--quiet);
}
.steps li:last-child { border-bottom: 0; padding-bottom: 0; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ink);
  font-weight: 500;
}

.close-line {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 1.75rem 0 1rem;
  max-width: 22ch;
}

.faq-list {
  display: grid;
  gap: 0;
  margin-top: 1.35rem;
  max-width: var(--measure);
}
.faq {
  padding: 1.1rem 0;
  border-top: 1px solid var(--hairline);
}
.faq:last-child { padding-bottom: 0; }
.faq p { margin: 0; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.15rem;
  color: var(--quiet);
  font-size: 0.9rem;
  border-top: 1px solid var(--hairline);
  padding: 1.35rem 0 2.75rem;
}
.site-footer a {
  color: var(--quiet);
  text-decoration: none;
}
.site-footer a:hover { color: var(--ink); }
.site-footer .wordmark {
  color: var(--ink);
  margin-right: auto;
}
.legal { margin: 0; }

.stack {
  display: grid;
  gap: 0.85rem;
  max-width: var(--measure);
  margin: 1.75rem 0 0;
}
.stack label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.95rem;
  font-weight: 500;
}
.stack input,
.stack textarea {
  font: inherit;
  font-weight: 400;
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--hairline);
  background: var(--paper);
  color: var(--ink);
}
.stack textarea { min-height: 8rem; resize: vertical; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.flash { color: #8A1F12; margin: 1rem 0 0; }
.ok { color: var(--quiet); margin: 1rem 0 0; }

@media (max-width: 720px) {
  .shell { width: min(100% - 1.5rem, var(--page)); }
  .site-header { padding: 0.95rem 0 0.85rem; }
  .site-nav { margin-left: 0; width: 100%; }
  .hero { padding: 2rem 0 2.1rem; }
  .section { padding: 2.1rem 0; }
  .sheet td:last-child,
  .sheet th:last-child { text-align: left; }
}
