@font-face {
  font-family: "Public Sans";
  src: url("/assets/public-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "B612 Mono";
  src: url("/assets/b612-mono.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #EEF1EC;
  --card: #FAFBF7;
  --ink: #15233A;
  --guilloche: #2E6B62;
  --muted: #56606D;
  --stamp: #A8322B;
  --line: #C8D0CA;
  --wrap: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Public Sans", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  font-feature-settings: "tnum" 1;
}
a { color: inherit; }
a:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--guilloche);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }

/* Top bar */
.top {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 1.5rem; padding-bottom: 1.5rem;
}
.mark { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font-weight: 700; letter-spacing: -.01em; }
.mark svg { width: 1.6rem; height: 1.6rem; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }
.mark small { font-weight: 400; color: var(--muted); font-size: .9em; }
.toplink { font-size: .95rem; font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 4rem; align-items: center;
  padding-top: 3.5rem; padding-bottom: 5rem;
}
h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 800;
  margin: 0 0 1.5rem;
  max-width: 13ch;
}
.lede { font-size: 1.2rem; color: var(--muted); max-width: 34rem; margin: 0 0 2rem; }
.actions { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; }
.btn {
  display: inline-block; background: var(--ink); color: var(--card);
  padding: .9rem 1.4rem; border-radius: 6px; font-weight: 650; text-decoration: none;
}
.btn:hover { background: var(--guilloche); }
.quiet { font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* The license document */
.doc { margin: 0; }
.license {
  position: relative; overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.6rem 1.6rem 1.2rem;
  box-shadow: 0 1px 0 #fff inset, 0 18px 40px -24px rgba(21, 35, 58, .35);
}
.rosette {
  position: absolute; right: -70px; top: -70px; width: 260px; height: 260px;
  opacity: .55; pointer-events: none;
}
.doc-title {
  position: relative; margin: 0 0 1.1rem; font-weight: 750; font-size: 1.15rem; letter-spacing: -.01em;
}
.doc-title span {
  margin-left: .5rem; font-weight: 500; font-size: .8rem; color: var(--guilloche);
  border: 1px solid currentColor; border-radius: 999px; padding: .1rem .55rem; vertical-align: .15em;
}
dl { position: relative; margin: 0; display: grid; gap: .55rem; }
dl div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding-bottom: .55rem; border-bottom: 1px dashed var(--line); }
dt { color: var(--muted); font-size: .9rem; }
dd { margin: 0; font-weight: 600; font-size: .98rem; }
.mrz {
  font-family: "B612 Mono", ui-monospace, monospace;
  font-size: .78rem; line-height: 1.6; letter-spacing: .12em;
  color: var(--muted); margin: 1.1rem 0 0; white-space: nowrap; overflow: hidden;
}

/* Receipt slip */
.receipt {
  list-style: none; margin: -6px 1.25rem 0; padding: 1.2rem 1.25rem .6rem;
  background: #fff; border: 1px solid var(--line); border-top: 0;
  border-radius: 0 0 10px 10px;
  font-size: .93rem;
}
.receipt li { display: grid; grid-template-columns: 4.6rem 1fr; gap: .75rem; padding: .45rem 0; }
.receipt li + li { border-top: 1px solid var(--paper); }
.receipt b { font-weight: 700; }
.receipt .blocked b { color: var(--stamp); }
.receipt .done b { color: var(--guilloche); }

@media (prefers-reduced-motion: no-preference) {
  .receipt li { opacity: 0; transform: translateY(4px); animation: print .45s ease-out forwards; }
  .receipt li:nth-child(1) { animation-delay: .6s; }
  .receipt li:nth-child(2) { animation-delay: 1.5s; }
  .receipt li:nth-child(3) { animation-delay: 2.5s; }
}
@keyframes print { to { opacity: 1; transform: none; } }

/* Guilloche band */
.band {
  height: 64px; background: url("/assets/band.svg") center / 100% 100% no-repeat;
  opacity: .5;
}

/* How it works */
.how { padding-top: 4.5rem; padding-bottom: 4rem; }
h2 { font-size: 1.75rem; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 1.75rem; font-weight: 750; }
.steps {
  list-style: none; counter-reset: step; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem;
}
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 1rem; }
.steps li::before {
  content: counter(step); display: block; font-weight: 800; font-size: 1.05rem;
  color: var(--guilloche); margin-bottom: .4rem;
}
.steps h3 { font-size: 1.05rem; margin: 0 0 .4rem; letter-spacing: -.01em; }
.steps p { margin: 0; color: var(--muted); font-size: .97rem; }
.kill { margin: 2.25rem 0 0; font-weight: 600; max-width: 40rem; }

/* Builders and people */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  padding-top: 3.5rem; padding-bottom: 3.5rem;
  border-top: 1px solid var(--line);
}
.split p { color: var(--muted); max-width: 32rem; margin: 0 0 1.1rem; }
.split h2 { font-size: 1.4rem; margin-bottom: .8rem; }

.status { padding-bottom: 4rem; }
.status p {
  margin: 0; padding: 1.1rem 1.25rem; max-width: 46rem;
  background: var(--card); border-left: 3px solid var(--guilloche); border-radius: 0 8px 8px 0;
}

/* Footer */
.foot { padding-top: 2rem; padding-bottom: 3rem; border-top: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
.foot ul { list-style: none; padding: 0; margin: 0 0 1.25rem; display: flex; flex-wrap: wrap; gap: .75rem 2.5rem; }
.foot li span { display: block; font-size: .85rem; }
.foot a { color: var(--ink); font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.foot a.sub { font-weight: 400; color: var(--muted); margin-left: .5rem; }
.foot p { margin: 0; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 3rem; padding-top: 2rem; padding-bottom: 3.5rem; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .toplink { display: none; }
  .lede { font-size: 1.08rem; }
  .steps { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  dl div { grid-template-columns: 5.5rem 1fr; gap: .75rem; }
  .receipt { margin-left: .6rem; margin-right: .6rem; }
  .receipt li { grid-template-columns: 4.2rem 1fr; }
}
.nf { padding-top: 6rem; padding-bottom: 6rem; }
