:root {
  --ink: #2B1C16;
  --rust: #A85A38;
  --board: #E6D2C0;
  --button-ink: #F7F1EA;
}

* { box-sizing: border-box; }

section { margin: 0; }

body {
  margin: 0;
  background: var(--board);
  color: var(--ink);
  font-family: "Nunito Sans", "Segoe UI", sans-serif;
  font-size: 1.05rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

a { color: var(--rust); }

a:focus-visible,
button:focus-visible {
  background: var(--rust);
  color: var(--button-ink);
}

.skip {
  position: absolute;
  left: 0.6rem;
  top: -4rem;
  background: var(--rust);
  color: var(--button-ink);
  padding: 0.4rem 0.7rem;
  text-decoration: none;
  font-weight: 700;
}

.skip:focus { top: 0.6rem; }

.wrap {
  width: min(740px, calc(100% - 2rem));
  margin: 0 auto;
}

.mast p.wrap { margin: 0; }

.mast { padding: 1rem 0 0.2rem; }

.brand { display: inline-block; }

.brand img { display: block; width: 148px; height: 64px; }

.stitch-nav { padding: 0.4rem 0 0.85rem; }

.stitch-toggle {
  display: none;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  font-family: "Nunito Sans", "Segoe UI", sans-serif;
  font-weight: 700;
  padding: 0.45rem 0.75rem;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.92rem;
}

.nav-list a[aria-current="page"] {
  border-bottom: 3px solid var(--rust);
}

.stitch-hero,
.title-row,
.foot-mark {
  display: grid;
  grid-template-columns: 1.35rem 1fr;
  column-gap: 0.9rem;
  align-items: start;
}

.stitch-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 1.35rem;
}

.knot {
  width: 0.55rem;
  height: 0.55rem;
  background: var(--rust);
  margin-bottom: 0.15rem;
}

.thread-window {
  width: 1.35rem;
  height: 4.4rem;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.thread-window-small {
  height: 1.7rem;
}

.thread {
  width: 2px;
  height: 4.4rem;
  background: var(--rust);
  transform: scaleY(0.22);
  transform-origin: top center;
}

.thread-small {
  height: 1.7rem;
}

.stitch-hero .thread {
  animation: stitch-settle 700ms linear forwards;
}

@keyframes stitch-settle {
  from { transform: scaleY(1); }
  to { transform: scaleY(0.22); }
}

.mark-word {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 0.95rem;
}

.stitch-copy { text-align: left; }

.legal-name,
.reading h1 {
  margin: 0.35rem 0 0;
  font-family: "Spectral", Georgia, serif;
  font-size: 2.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.15;
  text-align: left;
}

.lede {
  margin: 0.9rem 0 0;
  text-align: left;
}

.actions { margin: 1rem 0 0.3rem; text-align: left; }

.rust-button {
  display: inline-block;
  background: var(--rust);
  color: var(--button-ink);
  border-radius: 47px;
  padding: 0.7rem 1.2rem;
  text-decoration: none;
  font-weight: 700;
}

.rust-button:focus-visible {
  background: var(--ink);
  color: var(--button-ink);
}

.record-link { margin: 0.4rem 0 0; text-align: left; }

.record-link a { font-weight: 700; }

.reading { padding: 0.4rem 0 2.2rem; }

.reading h2 {
  margin: 0;
  font-family: "Spectral", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
}

.reading h2.stitch-row {
  margin: 1.25rem 0 0;
}

.reading p { margin: 0.5rem 0; }

.stitch-row {
  margin: 1.25rem 0 0;
  padding: 0;
}

.stitch-row::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2px;
  background: var(--rust);
  margin: 0 0 0.55rem;
}

.step-list,
.plain-list,
.fact-list {
  margin: 0.4rem 0 0;
  padding-left: 1.15rem;
}

.step-list li,
.plain-list li,
.fact-list li { margin: 0.35rem 0; }

.fact-list { list-style: none; padding-left: 0; }

.fact-list dt { font-weight: 700; margin-top: 0.75rem; }

.fact-list dd { margin: 0.2rem 0 0; }

.page-band { margin-bottom: 0.2rem; }

.stitch-foot {
  padding: 1.3rem 0 2.1rem;
}

.foot-mark { margin-bottom: 0.7rem; align-items: center; }

.foot-file p {
  margin: 0.28rem 0;
  font-size: 0.95rem;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.95rem;
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
}

.foot-links a { font-weight: 600; font-size: 0.92rem; }

@media (max-width: 720px) {
  .stitch-toggle { display: inline-block; }
  .js .nav-list { display: none; }
  .js .stitch-nav.is-open .nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: 0.7rem;
  }
  .legal-name,
  .reading h1 { font-size: 1.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  .stitch-hero .thread { animation: none; }
}
