@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --paper: #edeff2;
  --ink: #1e222a;
  --slate: #5c6370;
  --orange: #ff7a00;      /* Drill Orange: fills, lines, the button */
  --orange-text: #b04f00; /* orange for small text on paper (AA) */
  --stratum-1: #d6dae1;
  --stratum-2: #c4c9d2;
  --stratum-3: #adb3be;
  --stratum-4: #8e95a2;
  --stratum-5: #767d8a;
  --measure: 34rem;
  --gutter: clamp(1rem, 4vw, 3rem);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-stretch: 100%;
  font-size: 1.0625rem;
  line-height: 1.55;
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--orange-text); }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

code, .filename {
  font-family: inherit;
  font-stretch: 87.5%;
  font-weight: 600;
  white-space: nowrap;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.5rem var(--gutter);
  max-width: 72rem;
  margin: 0 auto;
}

.wordmark {
  font-stretch: 125%;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

/* Hero */
main { max-width: 72rem; margin: 0 auto; padding: 0 var(--gutter); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 24rem);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 6rem);
}

h1, h2, h3 { font-stretch: 125%; letter-spacing: -0.015em; margin: 0; }

h1 {
  font-weight: 800;
  font-size: clamp(2.4rem, 5.4vw, 4.1rem);
  line-height: 1.02;
  max-width: 15ch;
}

.lede {
  max-width: var(--measure);
  font-size: 1.1875rem;
  margin: 1.75rem 0 0;
}

/* Sign-up */
.notify { max-width: var(--measure); margin-top: 2.5rem; }

.notify-intro { margin: 0 0 0.875rem; color: var(--slate); }

.notify-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.notify input[type="email"] {
  flex: 1 1 14rem;
  min-width: 0;
  font: inherit;
  padding: 0.8rem 0.9rem;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
}

.notify button {
  font: inherit;
  font-stretch: 112.5%;
  font-weight: 700;
  padding: 0.8rem 1.4rem;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--orange);
  color: var(--ink);
  cursor: pointer;
}
.notify button:hover { background: #ff8f26; }
.notify button:disabled { cursor: progress; opacity: 0.7; }

.consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-top: 0.9rem;
  font-size: 0.9375rem;
  color: var(--slate);
}
.consent input { margin-top: 0.3rem; width: 1.05rem; height: 1.05rem; accent-color: var(--orange-text); flex: none; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.notify-status { min-height: 1.5em; margin: 0.9rem 0 0; font-weight: 600; }
.notify-status.is-error { color: #a1260d; }
.notify.is-done .notify-row,
.notify.is-done .consent,
.notify.is-done .notify-intro { display: none; }
.notify.is-done .notify-status { font-size: 1.1875rem; }

/* The core sample: backups stacked by year, drilled down to one recording */
.core { margin: 0; position: relative; }

.core-sample {
  position: relative;
  display: grid;
  border: 2px solid var(--ink);
  border-radius: 999px 999px 18px 18px / 40px 40px 18px 18px;
  overflow: hidden;
}

.layer {
  position: relative;
  padding: 0.65rem 1rem;
  min-height: 3.25rem;
  display: flex;
  align-items: flex-end;
  border-top: 1px solid rgba(30, 34, 42, 0.35);
  background-image: repeating-linear-gradient(-8deg, transparent 0 7px, rgba(30, 34, 42, 0.06) 7px 8px);
}
.layer-1 { background-color: var(--stratum-1); border-top: 0; min-height: 4.5rem; }
.layer-2 { background-color: var(--stratum-2); min-height: 3.5rem; }
.layer-3 { background-color: var(--stratum-3); min-height: 4rem; }
.layer-4 { background-color: var(--stratum-4); min-height: 4.75rem; }
.layer-5 { background-color: var(--stratum-5); min-height: 3rem; }

.layer-label {
  position: relative;
  z-index: 1;
  font-size: 0.8125rem;
  font-weight: 600;
  font-stretch: 87.5%;
  color: var(--ink);
  background: rgba(237, 239, 242, 0.82);
  padding: 0.05rem 0.4rem;
  border-radius: 3px;
}
.layer-5 .layer-label { background: rgba(237, 239, 242, 0.9); }

.found { box-shadow: inset 0 0 0 3px var(--orange); }

.drill {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 22%;
  width: 4px;
  height: var(--drill-depth, 72%);
  background: var(--orange);
  transform-origin: top;
}
.drill::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 10px solid var(--orange);
}

.find {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.75rem;
  align-items: center;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 6px;
}
.wave {
  grid-row: span 2;
  width: 6.5rem;
  height: 2.5rem;
  stroke: var(--orange);
  stroke-width: 3;
  stroke-linecap: round;
  fill: none;
}
.find-title { font-weight: 700; font-stretch: 112.5%; }
.find-meta { color: var(--slate); font-size: 0.9375rem; }

/* One page-load moment: the drill goes down, then the recording appears. */
@media (prefers-reduced-motion: no-preference) {
  .drill { animation: drill-down 1.1s cubic-bezier(.6, .05, .3, 1) 0.25s both; }
  .found { animation: found 0.5s ease-out 1.25s both; }
  .find { animation: surface 0.6s ease-out 1.45s both; }
}
@keyframes drill-down { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes found { from { box-shadow: inset 0 0 0 0 var(--orange); } to { box-shadow: inset 0 0 0 3px var(--orange); } }
@keyframes surface { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Sections below the hero */
.steps, .private, .roadmap {
  border-top: 2px solid var(--ink);
  padding: clamp(2rem, 5vw, 3.5rem) 0;
}

h2 { font-weight: 800; font-size: clamp(1.6rem, 3.2vw, 2.25rem); line-height: 1.1; }

.steps ol {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  margin: 2rem 0 0;
  padding: 0;
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: block;
  font-stretch: 125%;
  font-weight: 800;
  font-size: 2.75rem;
  line-height: 1;
  color: var(--orange-text);
  margin-bottom: 0.75rem;
}
h3 { font-weight: 700; font-size: 1.1875rem; line-height: 1.25; }
.steps p { margin: 0.5rem 0 0; }

.private, .roadmap {
  display: grid;
  grid-template-columns: minmax(0, 20rem) minmax(0, var(--measure));
  gap: clamp(1rem, 4vw, 3rem);
}
.private p, .roadmap p { margin: 0; font-size: 1.125rem; }

/* Footer */
.site-footer {
  max-width: calc(72rem - 2 * var(--gutter));
  width: calc(100% - 2 * var(--gutter));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  border-top: 2px solid var(--ink);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  font-size: 0.9375rem;
  color: var(--slate);
}
.site-footer p { margin: 0; }
.site-footer .legal { flex-basis: 100%; font-size: 0.8125rem; }

/* Plain text pages (privacy, thanks) */
.page { max-width: 40rem; padding: clamp(2rem, 5vw, 3.5rem) 0 4rem; }
.page h1 { font-size: clamp(2rem, 5vw, 3rem); max-width: none; }
.page h2 { font-size: 1.375rem; margin-top: 2.25rem; }
.page p, .page li { max-width: var(--measure); }
.page .updated { color: var(--slate); }

@media (min-width: 52.01rem) {
  .layer-1 { min-height: 6rem; }
  .layer-2 { min-height: 4.5rem; }
  .layer-3 { min-height: 5.25rem; }
  .layer-4 { min-height: 6rem; }
  .layer-5 { min-height: 3.75rem; }
}

@media (max-width: 52rem) {
  .hero { grid-template-columns: 1fr; }
  .core { max-width: 24rem; }
  .steps ol { grid-template-columns: 1fr; }
  .private, .roadmap { grid-template-columns: 1fr; }
}
