@property --stone {
  syntax: "<color>";
  inherits: true;
  initial-value: #1E3A4C;
}

@property --keystone {
  syntax: "<color>";
  inherits: true;
  initial-value: #E07A5F;
}

@property --clerestory {
  syntax: "<color>";
  inherits: true;
  initial-value: #E6E9F0;
}

@property --radius {
  syntax: "<length>";
  inherits: true;
  initial-value: 11px;
}

:root {
  --stone: #1E3A4C;
  --keystone: #E07A5F;
  --clerestory: #E6E9F0;
  --radius: 11px;
  --line: rgba(30, 58, 76, 0.18);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--clerestory);
  color: var(--stone);
  font-family: "Hanken Grotesk", "Segoe UI", sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  font-weight: 420;
}

img, svg { max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: Besley, Georgia, serif;
  font-weight: 560;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.15rem, 4.4vw, 3.4rem); margin: 0 0 0.75rem; }
h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin: 0 0 1rem; }
h3 { font-size: 1.25rem; margin: 0 0 0.45rem; }

p { margin: 0 0 0.9rem; }

a { color: var(--stone); }

.wrap {
  width: min(1080px, calc(100% - 2.4rem));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 0.6rem;
  top: -4rem;
  background: var(--stone);
  color: var(--clerestory);
  padding: 0.45rem 0.7rem;
  z-index: 3;
  border-radius: var(--radius);
}

.skip:focus { top: 0.6rem; }

.top {
  position: static;
  background: transparent;
  padding: 1.15rem 0 0.4rem;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-family: Besley, Georgia, serif;
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.brand img { display: block; }

.arch-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0;
}

.arch-nav a {
  text-decoration: none;
  padding: 0.2rem 0;
}

.arch-nav a:not(.btn) {
  margin-right: 0.15rem;
}

.tick {
  display: inline-block;
  width: 1px;
  height: 0.72rem;
  margin: 0 0.75rem;
  background: var(--keystone);
  vertical-align: middle;
}

.btn {
  display: inline-block;
  background: var(--keystone);
  color: var(--stone);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1;
  padding: 0.78rem 1.05rem;
  border-radius: var(--radius);
  text-decoration: none;
}

.btn:hover { background: #d86d52; }

.arch-nav .btn { margin-left: 0.85rem; }

.text-link {
  text-underline-offset: 0.2em;
}

.hero { padding: 0.4rem 0 1.5rem; }

.crown {
  display: block;
  color: var(--stone);
  margin: 0.2rem 0 0.2rem;
}

.vault-arch { display: block; width: 100%; height: 6.4rem; }

.arch-stroke {
  stroke-dasharray: 1200;
  stroke-dashoffset: 0;
}

.draw .arch-stroke {
  animation: arch-draw 1.35s ease forwards;
}

@keyframes arch-draw {
  from { stroke-dashoffset: 1200; }
  to { stroke-dashoffset: 0; }
}

.crown-name {
  margin: -2.1rem 0 0.35rem;
  font-family: Besley, Georgia, serif;
  font-size: clamp(1rem, 2.4vw, 1.85rem);
  font-weight: 650;
  letter-spacing: 0.03em;
  text-align: center;
  white-space: nowrap;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(16rem, 0.75fr);
  gap: 2rem 3rem;
  align-items: start;
  padding-top: 0.4rem;
}

.lead { font-size: 1.08rem; max-width: 38rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.85rem 1.2rem;
  margin-top: 1.1rem;
}

.keys {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.key {
  display: grid;
  grid-template-columns: 0.85rem 1fr;
  gap: 0.7rem;
  align-items: start;
  margin: 0;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.key:last-child { border-bottom: 1px solid var(--line); }

.key::before {
  content: "";
  width: 0.72rem;
  height: 0.72rem;
  margin-top: 0.35rem;
  background: var(--keystone);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.key span {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 560;
}

.band {
  padding: 2.6rem 0;
  border-top: 1px solid var(--line);
}

.facts ul,
.ribs ul,
.reach ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.facts li,
.ribs li,
.reach li {
  display: grid;
  grid-template-columns: 0.85rem 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.facts li::before,
.ribs li::before,
.reach li::before {
  content: "";
  width: 0.72rem;
  height: 0.72rem;
  margin-top: 0.35rem;
  background: var(--keystone);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.ribs .groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2.4rem;
}

.steps ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  counter-reset: move;
}

.steps li {
  counter-increment: move;
  border-top: 2px solid var(--stone);
  padding-top: 0.75rem;
  margin: 0;
}

.steps li::before {
  content: counter(move);
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  margin-bottom: 0.55rem;
  background: var(--keystone);
  color: var(--stone);
  font-weight: 700;
  border-radius: 2px;
}

.limits p {
  max-width: 40rem;
  margin: 0;
  padding-left: 0.95rem;
  border-left: 4px solid var(--keystone);
}

.questions h3 { margin-top: 1.15rem; }
.questions h3 + p { margin-top: 0; }

.document { padding: 1.4rem 0 3rem; }

.document .reading { max-width: 40rem; }

.document .reading > h1::before {
  content: "";
  display: block;
  width: 6.5rem;
  height: 0.8rem;
  margin-bottom: 0.7rem;
  border: 2px solid var(--stone);
  border-bottom: 0;
  border-radius: 80px 80px 0 0;
}

.reading ul, .reading ol { padding-left: 1.15rem; }
.reading li { margin: 0.35rem 0; }
.reading li a { text-underline-offset: 0.16em; }

.register {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.2rem;
}

.register th,
.register td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem 0.4rem 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.register th {
  width: 14rem;
  font-weight: 560;
}

.register th::before {
  content: "";
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.5rem;
  background: var(--keystone);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  vertical-align: 0.05rem;
}

.keystone-foot {
  border-top: 1px solid var(--line);
  padding: 2.4rem 0 2.8rem;
  text-align: center;
}

.keystone-block img { display: inline-block; }

.keystone-block p {
  margin: 0.35rem 0 0.8rem;
  font-family: Besley, Georgia, serif;
  font-size: 1.35rem;
  font-weight: 650;
}

.rib {
  margin: 0 auto 1rem;
  max-width: 46rem;
  overflow-wrap: anywhere;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 0.95rem;
}

.foot-links a { text-underline-offset: 0.16em; }

:focus-visible {
  outline: 2px solid var(--stone);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .draw .arch-stroke { animation: none; }
}

@media (max-width: 840px) {
  .bar { flex-direction: column; align-items: flex-start; }
  .arch-nav .btn { margin-left: 0; }
  .hero-grid, .ribs .groups, .steps ol { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .register, .register tbody, .register tr, .register th, .register td {
    display: block;
    width: auto;
  }
  .register th { border-bottom: 0; padding-bottom: 0; }
}
