:root {
  --ink: hsl(155 19% 18%);
  --oxide: hsl(9 59% 45%);
  --sheet: hsl(212 24% 89%);
  --button-text: hsl(38 33% 95%);
  --display: "Gelasio", Georgia, serif;
  --body: "Onest", sans-serif;
  --measure: 40rem;
  --wrap: 62rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--sheet);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--oxide);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  background: var(--oxide);
  color: var(--button-text);
  padding: 0.4rem 0.7rem;
  transform: translateY(-160%);
}

.skip:focus {
  transform: none;
  z-index: 2;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2rem));
  margin-inline: auto;
}

.string-line {
  height: 2px;
  background: var(--ink);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.string-caption {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mast {
  padding: 1.1rem 0 0.4rem;
}

.mast-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.25rem;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  text-decoration: none;
}

.brand img {
  width: 9.25rem;
  height: auto;
}

.brand-domain {
  font-size: 0.78rem;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  text-decoration: none;
  font-weight: 600;
}

.nav-link[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.28rem;
}

.stake-tick {
  display: inline-block;
  width: 2px;
  height: 0.75rem;
  margin-right: 0.35rem;
  background: var(--ink);
  vertical-align: -0.05rem;
}

.hero {
  padding: 0.4rem 0 1.5rem;
}

.string-track {
  position: relative;
  min-height: 4.6rem;
  margin-bottom: 0.4rem;
}

.string-track .string-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 3.15rem;
}

.stakes {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding-top: 2.45rem;
}

.stake {
  width: 2px;
  height: 1.45rem;
  background: var(--ink);
}

.stake-mid {
  position: relative;
}

.stake-label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.45rem);
  width: max-content;
  max-width: 18rem;
  transform: translateX(-50%);
  text-align: center;
  font-family: var(--display);
  font-size: 1rem;
  line-height: 1.25;
  animation: stake-settle 0.7s ease 1 both;
}

.hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 9.5rem;
  gap: 2rem;
  align-items: end;
  padding-bottom: 0.5rem;
}

.hero-copy h1,
.page-head h1,
.reading h2 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.2;
}

.hero-copy h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.2rem;
}

.schema-button {
  display: inline-block;
  background: var(--oxide);
  color: var(--button-text);
  text-decoration: none;
  border-radius: 20px;
  padding: 0.72rem 1.15rem;
  font-weight: 600;
}

.text-link {
  text-underline-offset: 0.2rem;
}

.survey {
  margin: 0;
}

.survey-square {
  width: 9rem;
  height: 9rem;
  border-left: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}

.survey figcaption {
  margin-top: 0.4rem;
  font-size: 0.78rem;
}

.page-head {
  padding: 0.6rem 0 0.2rem;
}

.page-head h1 {
  margin: 0.7rem 0 0;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.reading {
  width: min(100%, var(--measure));
  padding: 1.2rem 0 3rem;
  counter-reset: stake;
}

.reading h2 {
  margin: 1.8rem 0 0.6rem;
  font-size: 1.55rem;
}

.reading h3 {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr);
  gap: 0.55rem;
  align-items: baseline;
  margin: 1.15rem 0 0.35rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--ink);
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
}

.reading h3::before {
  counter-increment: stake;
  content: counter(stake);
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 600;
}

.reading p,
.reading li {
  overflow-wrap: anywhere;
}

.reading ul,
.reading ol {
  padding-left: 1.2rem;
}

.reading table {
  width: 100%;
  border-collapse: collapse;
}

.reading th,
.reading td {
  padding: 0.45rem 0.7rem 0.45rem 0;
  border-bottom: 1px solid var(--ink);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.site-foot {
  padding: 0 0 2.2rem;
}

.site-foot .string-line {
  margin-bottom: 0.85rem;
}

.stake-caption {
  margin: 0 0 0.45rem;
  overflow-wrap: anywhere;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
}

.foot-links a {
  text-underline-offset: 0.18rem;
}

@keyframes stake-settle {
  from {
    transform: translateX(-50%) translateY(-0.7rem);
  }
  to {
    transform: translateX(-50%) translateY(0);
  }
}

@media (max-width: 720px) {
  .mast-row,
  .hero-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .stake-label {
    max-width: 14rem;
    font-size: 0.92rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stake-label {
    animation: none;
  }
}
