@font-face {
  font-family: "Fraunces";
  src: url("fonts/Fraunces9pt-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/Fraunces9pt-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Plex Sans";
  src: url("fonts/IBMPlexSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Plex Sans";
  src: url("fonts/IBMPlexSans-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("fonts/IBMPlexMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --sky: #10141c;
  --topsoil: #3b2a1e;
  --clay: #6b4a2f;
  --slate: #4a5260;
  --bedrock: #2a2d33;
  --deep: #1d1f24;
  --core: #15171c;
  --shale: #2f2622;
  --mantle: #0c0d10;
  --lava: #ff5a1f;
  --lava-ink: #ff8a5c;
  --moss: #7fd38a;
  --cream: #f3ead9;
  --dim: #d9cdb8;
  --sand: #e6c79a;
  --paper: #eadfc8;
  --ink: #231a12;
  --ink-soft: #4d3d2c;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Plex Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "Plex Mono", ui-monospace, "DejaVu Sans Mono", Menlo, Consolas, monospace;
  --gutter: 1.25rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--deep);
}

body {
  margin: 0;
  background: var(--sky);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
}

img, svg { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0 0 1.1em; }
a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 0.16em; }
:focus-visible { outline: 3px solid var(--sand); outline-offset: 3px; }
code, .mono { font-family: var(--mono); font-size: 0.92em; overflow-wrap: anywhere; }
q { quotes: "\201C" "\201D"; }
sup { line-height: 0; font-size: 0.72em; }
sup a { font-family: var(--mono); text-decoration: none; padding: 0.3em 0.15em; color: var(--sand); }
sup a::before { content: "["; }
sup a::after { content: "]"; }

.skip {
  position: absolute; left: 0.5rem; top: 0.5rem; z-index: 5;
  background: var(--paper); color: var(--ink); padding: 0.5rem 0.8rem;
  transform: translateY(-300%);
}
.skip:focus { transform: none; }

/* strata */

.stratum {
  position: relative;
  padding: 4.25rem 0 3.25rem;
  background-image: url("grain.svg");
  background-size: 360px 360px;
}
.stratum::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 14px;
  background-image:
    repeating-linear-gradient(to bottom, currentColor 0 1px, transparent 1px 120px),
    repeating-linear-gradient(to bottom, currentColor 0 1px, transparent 1px 24px);
  background-size: 14px 100%, 7px 100%;
  background-repeat: no-repeat;
  opacity: 0.4;
  pointer-events: none;
}
.s-sky { background-color: var(--sky); background-image: none; }
.s-sky::before { display: none; }
.s-topsoil { background-color: var(--topsoil); }
.s-clay { background-color: var(--clay); }
.s-slate { background-color: var(--slate); }
.s-bedrock { background-color: var(--bedrock); }
.s-deep { background-color: var(--deep); }
.s-core { background-color: var(--core); }
.s-shale { background-color: var(--shale); }
.s-mantle { background-color: var(--mantle); }

.edge {
  position: absolute; left: 0; top: -1px; width: 100%; height: 34px;
  pointer-events: none;
}
.edge .seam { fill: none; stroke: var(--cream); stroke-opacity: 0.22; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.edge .grass { fill: none; stroke: var(--moss); stroke-opacity: 0.8; stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.f-sky { fill: var(--sky); }
.f-topsoil { fill: var(--topsoil); }
.f-clay { fill: var(--clay); }
.f-slate { fill: var(--slate); }
.f-bedrock { fill: var(--bedrock); }
.f-deep { fill: var(--deep); }
.f-core { fill: var(--core); }
.f-shale { fill: var(--shale); }

.wrap {
  position: relative;
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 var(--gutter) 0 calc(var(--gutter) + 12px);
}
.prose { max-width: 40rem; }

.depth {
  position: absolute; left: 20px; top: 2.4rem;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em;
  color: var(--dim);
}

/* core sample tag */

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.66rem;
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper);
  padding: 0.42rem 0.75rem 0.42rem 1.75rem;
  margin: 0 0 1.4rem;
  transform: rotate(-0.8deg);
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.35);
  background-image: radial-gradient(circle at 0.8rem 50%, var(--ink) 0 0.2rem, transparent 0.24rem);
  clip-path: polygon(0.55rem 0, 100% 0, 100% 100%, 0.55rem 100%, 0 72%, 0 28%);
}

h2 { font-size: clamp(1.9rem, 4.6vw + 0.6rem, 3.1rem); margin-bottom: 1.3rem; max-width: 22ch; }
h3 { font-size: clamp(1.35rem, 1.6vw + 1rem, 1.75rem); margin-bottom: 0.7rem; }
.lede { font-size: 1.22rem; line-height: 1.5; }

.hand {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 1.08rem; line-height: 1.4; color: var(--sand);
}

/* hero */

.hero { padding: 2.2rem 0 3.4rem; }
.hero .wrap { padding-left: var(--gutter); }
.hero-grid { display: grid; gap: 1.5rem; }
.hero h1 { font-size: clamp(5.2rem, 22vw, 9.5rem); line-height: 0.9; letter-spacing: -0.02em; margin: 0 0 0.24em -0.04em; }
.promise { font-family: var(--serif); font-weight: 600; font-size: clamp(1.6rem, 3vw + 0.9rem, 2.35rem); line-height: 1.18; margin-bottom: 1.1rem; max-width: 17ch; text-wrap: balance; }
.hero .sub { max-width: 31rem; color: var(--dim); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.6rem; margin: 1.6rem 0 0; }
.primary {
  display: inline-block;
  font-family: var(--sans); font-weight: 600; font-size: 1.1rem;
  color: var(--ink); background: var(--paper);
  padding: 0.8rem 1.25rem; min-height: 48px;
  text-decoration: none;
  border-radius: 2px;
  box-shadow: 4px 4px 0 var(--clay);
}
.primary:hover { box-shadow: 6px 6px 0 var(--clay); transform: translate(-1px, -1px); }
.hero-fig { margin: 0; max-width: 31rem; justify-self: center; width: 100%; }
.hero-fig svg { width: 100%; height: auto; }
figcaption { font-family: var(--serif); font-style: italic; font-size: 1rem; line-height: 1.4; color: var(--dim); margin-top: 0.7rem; }

/* hero drawing */

.hx-line { fill: none; stroke: var(--cream); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hx-thin { fill: none; stroke: var(--cream); stroke-width: 1; stroke-linecap: round; stroke-opacity: 0.6; }
.hx-house { fill: var(--sky); stroke: var(--cream); stroke-width: 1.6; stroke-linejoin: round; }
.hx-lit { fill: var(--sand); }
.hx-wifi { fill: none; stroke: var(--sand); stroke-width: 1.6; stroke-linecap: round; }
.hx-grass { fill: none; stroke: var(--moss); stroke-width: 1.4; stroke-linecap: round; }
.hx-seam { fill: none; stroke: var(--cream); stroke-opacity: 0.3; stroke-width: 1; }
.hx-root { fill: none; stroke: #241910; stroke-width: 1.2; stroke-linecap: round; }
.hx-peb-d { fill: #54391f; }
.hx-peb-l { fill: #86603f; }
.hx-hatch { fill: none; stroke: #343b47; stroke-width: 1.2; stroke-linecap: round; }
.hx-fault { fill: none; stroke: #1b1d22; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.hx-casing { stroke: var(--sky); stroke-width: 9; stroke-linecap: butt; }
.hx-shaft { stroke: var(--cream); stroke-width: 3; }
.hx-bit { fill: var(--cream); stroke: var(--sky); stroke-width: 1; }
.hx-glow { fill: none; stroke: var(--lava); stroke-opacity: 0.4; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.hx-lava { fill: none; stroke: var(--lava); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hx-dirt { fill: var(--sand); fill-opacity: 0.75; }
.hx-leader { fill: none; stroke: var(--cream); stroke-opacity: 0.55; stroke-width: 1; }
.hx-dot { fill: var(--cream); }
.hx-dot-bad { fill: var(--lava); }
.hx-tick { stroke: var(--cream); stroke-opacity: 0.45; stroke-width: 1; }
.hx-k { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; fill: var(--dim); }
.hx-n { font-family: var(--serif); font-weight: 600; font-size: 20px; fill: var(--cream); }
.hx-s { font-family: var(--serif); font-style: italic; font-size: 13px; fill: var(--dim); }
.hx-s-ok { fill: var(--moss); }
.hx-s-bad { fill: var(--lava-ink); }
.hx-note { font-family: var(--serif); font-style: italic; font-size: 13px; fill: var(--cream); }

/* problem */

.story { display: grid; gap: 2.2rem; }
.tally { margin: 0; padding: 1.2rem 0 0; border-top: 1px dashed rgba(243, 234, 217, 0.4); }
.tally > div { padding: 0 0 1.15rem; }
.tally dt { font-family: var(--serif); font-weight: 600; font-size: 2rem; line-height: 1.1; color: var(--cream); }
.tally dd { margin: 0.25rem 0 0; font-size: 1rem; line-height: 1.45; color: var(--dim); }

.sources { margin: 2.2rem 0 0; padding: 1.1rem 0 0; border-top: 1px dashed rgba(243, 234, 217, 0.4); max-width: 46rem; }
.sources h3 { font-family: var(--mono); font-weight: 400; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); margin-bottom: 0.6rem; }
.sources ol { margin: 0; padding-left: 2rem; font-size: 0.98rem; line-height: 1.45; }
.sources li { padding: 0.28rem 0; }
.sources li::marker { font-family: var(--mono); font-size: 0.85em; color: var(--sand); }

/* the proof core */

.core {
  margin: 2.2rem 0 0;
  max-width: 54rem;
}
.core-steps {
  list-style: none; margin: 0; padding: 0;
  background: var(--core);
  border-left: 6px solid var(--sky);
  box-shadow: 0 0 0 1px rgba(243, 234, 217, 0.18);
}
.core-step {
  position: relative;
  padding: 2.4rem 1.1rem 1.6rem 2.6rem;
}
.core-step + .core-step { border-top: 1px dashed rgba(243, 234, 217, 0.3); }
.core-step::before {
  content: "";
  position: absolute; left: 1.05rem; top: 0; bottom: 0; width: 3px;
  background: var(--cream); opacity: 0.85;
}
.core-step:last-child::before { bottom: auto; height: 3.2rem; }
.core-step::after {
  content: "";
  position: absolute; left: calc(1.05rem - 6px); top: 2.55rem;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--cream); box-shadow: 0 0 0 4px var(--core);
}
.core-step.is-bad::after { background: var(--lava); }
.core-step.is-ok::after { background: var(--moss); }
.core-k { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); margin: 0 0 0.35rem; }
.core-step > p { max-width: 36rem; }

.answers { display: grid; gap: 0.7rem; margin: 1.1rem 0; }
.answers > :only-child { grid-column: 1 / -1; }
.ans { margin: 0; padding: 0.7rem 0.9rem; background: var(--sky); border-left: 4px solid var(--dim); }
.ans.bad { border-left-color: var(--lava); }
.ans.good { border-left-color: var(--moss); }
.ans dt { font-size: 0.95rem; color: var(--dim); }
.ans dd { margin: 0.15rem 0 0; font-family: var(--mono); font-size: 1rem; line-height: 1.45; overflow-wrap: anywhere; }
.ans.bad b { color: var(--lava-ink); font-weight: 400; }
.ans.good b { color: var(--moss); font-weight: 400; }
.ans .plain { font-family: var(--sans); }

.stamp {
  display: inline-block;
  font-family: var(--mono); font-size: 0.86rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.3rem 0.6rem; margin: 0.2rem 0 0.9rem;
  border: 2px solid currentColor; border-radius: 2px;
  transform: rotate(-1.5deg);
}
.stamp.bad { color: var(--lava-ink); }
.stamp.ok { color: var(--moss); }

.leader { position: relative; margin: 0.4rem 0 0; padding-left: 2.1rem; max-width: 30rem; }
.leader::before {
  content: ""; position: absolute; left: 0.2rem; top: 0; width: 1.4rem; height: 0.8em;
  border-left: 1px solid var(--sand); border-bottom: 1px solid var(--sand);
}

.credit { margin-top: 2.2rem; max-width: 40rem; padding-left: 1rem; border-left: 3px solid var(--cream); }

/* what it does */

.find { display: grid; gap: 1.2rem; padding: 2rem 0; border-top: 1px dashed rgba(243, 234, 217, 0.4); }
.find:first-of-type { border-top: 0; padding-top: 0.6rem; }
.find-k { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cream); margin: 0 0 0.4rem; }
.find-fig { margin: 0; }
.find-fig svg { width: 100%; height: auto; max-width: 26rem; }
.margin-note { font-size: 1rem; line-height: 1.45; color: var(--cream); padding-left: 0.9rem; border-left: 1px solid rgba(243, 234, 217, 0.6); max-width: 34rem; }

.sx-k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; fill: var(--cream); }
.sx-n { font-family: var(--serif); font-style: italic; font-size: 14px; fill: var(--cream); }
.sx-ip { font-family: var(--mono); font-size: 13px; fill: var(--cream); }
.sx-frame { fill: var(--core); }
.sx-ok { fill: none; stroke: var(--moss); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sx-node { fill: var(--lava); }
.sx-wire { fill: none; stroke: var(--cream); stroke-width: 1.4; stroke-dasharray: 3 4; }

.ticket {
  background: var(--paper); color: var(--ink);
  padding: 1.1rem 1.1rem 1rem; max-width: 26rem;
  transform: rotate(0.6deg);
  box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.35);
  border-top: 6px solid var(--lava);
}
.ticket .ticket-k { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 0.5rem; }
.ticket .ticket-v { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; line-height: 1.2; margin: 0 0 0.6rem; }
.ticket p { font-size: 0.98rem; line-height: 1.45; margin: 0 0 0.5rem; }
.ticket .mono { font-size: 0.86rem; color: var(--ink-soft); border-top: 1px dashed var(--ink-soft); padding-top: 0.5rem; margin: 0.7rem 0 0; }

/* screenshots */

.phones {
  display: flex; gap: 1.1rem;
  list-style: none; margin: 1.6rem 0 0; padding: 0 0 1rem;
  overflow-x: auto; scroll-snap-type: x proximity;
  scrollbar-color: var(--dim) transparent;
}
.phones li { flex: 0 0 min(64vw, 15rem); scroll-snap-align: start; }
.phones figure, .desk-shot { margin: 0; }
.phones img { width: 100%; height: auto; border: 1px solid rgba(243, 234, 217, 0.35); border-radius: 6px; background: var(--core); }
.phones figcaption, .desk-shot figcaption { font-size: 0.98rem; }
.desk-shot { margin-top: 2rem; max-width: 60rem; }
.desk-shot img { width: 100%; height: auto; border: 1px solid rgba(243, 234, 217, 0.35); }
.shot-k { display: block; font-family: var(--mono); font-style: normal; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sand); margin-bottom: 0.15rem; }

/* measured */

.log { margin: 1.6rem 0 0; max-width: 46rem; }
.log h3 { font-family: var(--mono); font-weight: 400; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sand); margin: 2rem 0 0.2rem; }
.log dl { margin: 0; }
.log dl > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 1rem; justify-content: space-between; padding: 0.7rem 0; border-bottom: 1px dashed rgba(243, 234, 217, 0.3); }
.log dt { flex: 1 1 14rem; }
.log dd { margin: 0; font-family: var(--mono); font-size: 1rem; color: var(--cream); }
.log + .hand { margin-top: 1.6rem; max-width: 40rem; }
.todo { display: inline-block; color: var(--dim); border: 1px dashed var(--dim); padding: 0.05rem 0.5rem; }

/* privacy */

.two { display: grid; gap: 2.2rem; margin-top: 1.8rem; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { position: relative; padding: 0.55rem 0 0.55rem 1.7rem; border-bottom: 1px dashed rgba(243, 234, 217, 0.25); }
.plain-list li::before { content: ""; position: absolute; left: 0.1rem; top: 1.25rem; width: 0.9rem; height: 2px; background: var(--sand); }
.plain-list.cannot li::before { width: 0.7rem; height: 0.7rem; top: 1rem; background: none; border: 2px solid var(--sand); transform: rotate(45deg); }
.plain-list strong { font-weight: 600; }

/* download */

.get { display: grid; gap: 1.8rem; }
.get .primary { box-shadow: 4px 4px 0 var(--slate); }
.get .primary:hover { box-shadow: 6px 6px 0 var(--slate); }
.facts { margin: 0; }
.facts > div { padding: 0.7rem 0; border-bottom: 1px dashed rgba(243, 234, 217, 0.3); }
.facts dt { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.facts dd { margin: 0.15rem 0 0; }
.hash { font-family: var(--mono); font-size: 0.95rem; overflow-wrap: anywhere; }

footer.stratum { padding: 3.6rem 0 2.6rem; }
footer p { margin: 0 0 0.4rem; }
.foot-mark { width: 44px; height: 44px; margin-bottom: 1rem; }
.foot-big { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; }
.fine { font-size: 0.95rem; color: var(--dim); margin-top: 1.2rem; }

@media (min-width: 46rem) {
  :root { --gutter: 2.5rem; }
  body { font-size: 1.19rem; }
  .stratum { padding: 6rem 0 4.5rem; }
  .stratum::before { width: 22px; background-size: 22px 100%, 11px 100%; }
  .wrap { padding-left: calc(var(--gutter) + 3.5rem); }
  .edge { height: 44px; }
  .tag { font-size: 0.74rem; letter-spacing: 0.09em; }
  .depth { left: 30px; top: 3.6rem; }
  .hero { padding: 3rem 0 4rem; }
  .hero .wrap { padding-left: calc(var(--gutter) + 3.5rem); }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: 2.5rem; }
  .hero-fig { justify-self: end; }
  .story { grid-template-columns: minmax(0, 1fr) 17rem; gap: 3.5rem; align-items: start; }
  .tally { border-top: 0; border-left: 1px dashed rgba(243, 234, 217, 0.4); padding: 0.2rem 0 0 1.6rem; margin-top: 0.4rem; }
  .core-step { padding: 2.6rem 2rem 1.8rem 4rem; }
  .core-step::before { left: 1.7rem; }
  .core-step::after { left: calc(1.7rem - 6px); top: 2.8rem; }
  .answers { grid-template-columns: 1fr 1fr; }
  .find { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 3rem; align-items: center; padding: 2.8rem 0; }
  .find.flip .find-fig { order: -1; }
  .phones li { flex-basis: 15.5rem; }
  .two { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  .get { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 3.5rem; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .primary:hover { transform: none; }
}
.nb { white-space: nowrap; }
