/* ==========================================================================
   fossilize.app — landing page styles
   Idea: a stratigraphic column. Each layer is a block; a file's fingerprint
   is pressed into one of them. Limestone paper, sediment bands, amber.
   ========================================================================== */

:root {
  color-scheme: light dark;

  --bg: #f5efe4;
  --bg-alt: #ece3d2;
  --surface: #fcf8f1;
  --surface-2: #f3ebdd;

  --text: #241a12;
  --muted: #574838;
  --faint: #6b5b4a;

  --line: #dccfb9;
  --line-strong: #c3ae8f;
  --rule: #2f241a;

  --amber: #e29a34;
  --amber-strong: #c06f0e;
  --amber-ink: #8a4605;
  --amber-soft: #f4ddb0;
  --on-amber: #24160a;

  --band-amber-top: #f1b65e;
  --band-amber-bottom: #df9637;
  --imprint-ink: #3b1c03;

  --focus: #7a3c00;
  --header-bg: rgba(245, 239, 228, 0.88);

  /* Strata, youngest (top) to oldest */
  --s1: #efe4d0;
  --s2: #e5d5b9;
  --s3: #d8c19e;
  --s4: #c9ad87;
  --s5: #b2936e;
  --s6: #957657;

  /* Lithology patterns (stratigraphic-log convention) */
  --lith-dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Ccircle cx='2.5' cy='2.5' r='.95' fill='%23462f19' fill-opacity='.38'/%3E%3Ccircle cx='7.5' cy='7.5' r='.95' fill='%23462f19' fill-opacity='.38'/%3E%3C/svg%3E");
  --lith-brick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='16'%3E%3Cpath d='M0 .5H28M0 8.5H28M.5 0V8M14.5 8V16' stroke='%23462f19' stroke-opacity='.3' fill='none'/%3E%3C/svg%3E");
  --lith-dash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='8'%3E%3Cpath d='M2 2.5H11M14 6.5H22' stroke='%23462f19' stroke-opacity='.34' fill='none'/%3E%3C/svg%3E");
  --lith-pebble: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='20'%3E%3Cellipse cx='7' cy='6' rx='3.5' ry='2.2' fill='none' stroke='%23462f19' stroke-opacity='.34'/%3E%3Cellipse cx='21' cy='14' rx='4' ry='2.5' fill='none' stroke='%23462f19' stroke-opacity='.34'/%3E%3Ccircle cx='25' cy='4' r='1' fill='%23462f19' fill-opacity='.34'/%3E%3C/svg%3E");

  --bedrock: #2a2019;
  --bedrock-text: #f1e6d4;
  --bedrock-muted: #c9b8a0;

  --code-bg: #2a211a;
  --code-text: #efe3cf;
  --code-muted: #b4a189;
  --code-key: #f3b357;
  --code-num: #c7d39f;

  --warn-bg: #f8e3c4;
  --warn-text: #6b3605;

  --shadow-soft: 0 1px 2px rgba(60, 40, 20, 0.06), 0 14px 30px -22px rgba(60, 40, 20, 0.4);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .22 0 0 0 0 .12 .2 0 0 0 -.06'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --radius-sm: 6px;
  --radius: 10px;
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
  --log-label: 118px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15110d;
    --bg-alt: #1c1712;
    --surface: #211b15;
    --surface-2: #29211a;

    --text: #f3e9da;
    --muted: #c7b7a1;
    --faint: #a99983;

    --line: #362c23;
    --line-strong: #514234;
    --rule: #e9dcc8;

    --amber: #f0a945;
    --amber-strong: #f3b052;
    --amber-ink: #f6bb62;
    --amber-soft: #3a2914;
    --on-amber: #1d1207;

    --band-amber-top: #e4a149;
    --band-amber-bottom: #c47c22;
    --imprint-ink: #2a1403;

    --focus: #ffd07e;
    --header-bg: rgba(21, 17, 13, 0.86);

    --s1: #2a221a;
    --s2: #33291f;
    --s3: #3e3226;
    --s4: #4b3c2d;
    --s5: #584735;
    --s6: #67533e;

    --lith-dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Ccircle cx='2.5' cy='2.5' r='.95' fill='%23ffe6be' fill-opacity='.2'/%3E%3Ccircle cx='7.5' cy='7.5' r='.95' fill='%23ffe6be' fill-opacity='.2'/%3E%3C/svg%3E");
    --lith-brick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='16'%3E%3Cpath d='M0 .5H28M0 8.5H28M.5 0V8M14.5 8V16' stroke='%23ffe6be' stroke-opacity='.15' fill='none'/%3E%3C/svg%3E");
    --lith-dash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='8'%3E%3Cpath d='M2 2.5H11M14 6.5H22' stroke='%23ffe6be' stroke-opacity='.18' fill='none'/%3E%3C/svg%3E");
    --lith-pebble: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='20'%3E%3Cellipse cx='7' cy='6' rx='3.5' ry='2.2' fill='none' stroke='%23ffe6be' stroke-opacity='.18'/%3E%3Cellipse cx='21' cy='14' rx='4' ry='2.5' fill='none' stroke='%23ffe6be' stroke-opacity='.18'/%3E%3Ccircle cx='25' cy='4' r='1' fill='%23ffe6be' fill-opacity='.18'/%3E%3C/svg%3E");

    --bedrock: #0e0b08;
    --bedrock-text: #efe4d2;
    --bedrock-muted: #b5a48d;

    --code-bg: #0f0c09;
    --code-text: #efe3cf;
    --code-muted: #a6957d;

    --warn-bg: #36240f;
    --warn-text: #f6cd8c;

    --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.35), 0 14px 30px -22px rgba(0, 0, 0, 0.9);

    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .9 0 0 0 0 .75 .12 0 0 0 -.04'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  }
}

/* ---------- Base ---------- */

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

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image: var(--grain);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

svg {
  max-width: 100%;
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-optical-sizing: auto;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.7rem, 1.6rem + 4.8vw, 5.1rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.15rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

a {
  color: var(--amber-ink);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

code,
pre {
  font-family: var(--font-mono);
}

:not(pre) > code {
  font-size: 0.88em;
  padding: 0.08em 0.36em;
  border-radius: 4px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  overflow-wrap: anywhere;
}

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

main:focus {
  outline: none;
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

::selection {
  background: var(--amber-soft);
  color: var(--text);
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.nobr {
  white-space: nowrap;
}

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

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.2em;
  height: 1.2em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Buttons, small parts ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 48px;
  padding: 0.7rem 1.3rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-sm {
  min-height: 42px;
  padding: 0.5rem 1.05rem;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--amber);
  color: var(--on-amber);
}

.btn-primary:hover {
  background: var(--amber-strong);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  border-color: var(--text);
}

.tag {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.chip {
  display: inline-block;
  margin-left: 0.4em;
  padding: 0.05rem 0.45rem;
  border-radius: 4px;
  background: var(--amber-soft);
  color: var(--amber-ink);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  vertical-align: 0.1em;
  white-space: nowrap;
}

.eyebrow {
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-ink);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.soon-note {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin: 0.9rem 0 0;
  font-size: 0.92rem;
  color: var(--faint);
}

.soon-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  transform: translateY(-1px);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1;
  border-radius: 6px;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
  flex: none;
}

.brand-tld {
  color: var(--amber-ink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 0.5rem 0.7rem;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 2px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
}

.nav-toggle .icon-close {
  display: none;
}

.site-header[data-open="true"] .nav-toggle .icon-menu {
  display: none;
}

.site-header[data-open="true"] .nav-toggle .icon-close {
  display: block;
}

@media (max-width: 939.98px) {
  /* Without JS the nav wraps below the logo. */
  .header-inner {
    flex-wrap: wrap;
  }

  .site-nav {
    flex-basis: 100%;
    flex-wrap: wrap;
    margin-left: 0;
    padding-bottom: 0.75rem;
  }

  /* With JS it becomes a dropdown panel. */
  .js .header-inner {
    flex-wrap: nowrap;
  }

  .js .nav-toggle {
    display: inline-flex;
  }

  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 0.5rem var(--gutter) 1.5rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line-strong);
  }

  .js .site-header[data-open="true"] .site-nav {
    display: flex;
  }

  .js .nav-links {
    flex-direction: column;
    gap: 0;
  }

  .js .nav-links a {
    padding: 0.85rem 0;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
  }

  .js .nav-cta {
    align-self: flex-start;
  }
}

/* ---------- Section scaffolding ---------- */

.section {
  padding-block: clamp(4.5rem, 3rem + 5vw, 7.5rem);
}

.section--alt {
  background-color: var(--bg-alt);
  background-image: var(--grain);
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 1.75rem + 2.5vw, 3.75rem);
}

.section-intro {
  margin: 0;
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 36rem;
}

.split {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 920px) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 5rem;
  }

  .split-head--sticky {
    position: sticky;
    top: calc(var(--header-h) + 2.5rem);
    align-self: start;
  }
}

.split-head .section-intro + * {
  margin-top: 1.5rem;
}

/* Thin band of sediment between major parts of the page */
.strata-rule {
  height: 22px;
  background:
    var(--lith-dash) 0 13px / 24px 8px repeat-x,
    linear-gradient(
      var(--s2) 0 6px,
      var(--s3) 6px 9px,
      var(--s4) 9px 13px,
      var(--s5) 13px 22px
    );
}

.strata-rule--deep {
  height: 30px;
  background:
    var(--lith-dots) 0 10px / 10px 10px repeat-x,
    linear-gradient(
      var(--s3) 0 5px,
      var(--s4) 5px 9px,
      var(--s5) 9px 20px,
      var(--s6) 20px 30px
    );
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(3rem, 2rem + 4vw, 6rem) clamp(4rem, 3rem + 4vw, 6.5rem);
}

.hero-grid {
  display: grid;
  gap: clamp(3rem, 2rem + 3vw, 4.5rem);
  align-items: center;
}

@media (min-width: 940px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
}

.hero-copy h1 em {
  display: block;
  font-style: italic;
  font-weight: 500;
  color: var(--amber-ink);
}

.lead {
  max-width: 33rem;
  margin: 1.75rem 0 0.75rem;
  font-size: clamp(1.15rem, 1.05rem + 0.45vw, 1.3rem);
  line-height: 1.55;
}

.lead-2 {
  max-width: 33rem;
  margin-bottom: 2rem;
  font-size: 1.08rem;
  color: var(--muted);
}

/* Stratigraphic column */

.log {
  width: 100%;
  max-width: 500px;
  margin: 0;
  justify-self: end;
}

@media (max-width: 939.98px) {
  .log {
    justify-self: start;
  }
}

.log-top {
  margin: 0 0 0.45rem;
  padding-left: var(--log-label);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--faint);
}

.log-col {
  margin: 0;
  padding: 0;
  list-style: none;
}

.log-row {
  display: grid;
  grid-template-columns: var(--log-label) minmax(0, 1fr);
}

.log-no {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1;
  color: var(--faint);
  white-space: nowrap;
}

.log-no::after {
  content: "";
  flex: none;
  width: 12px;
  border-top: 1px solid var(--line-strong);
}

.log-row.is-record .log-no {
  color: var(--amber-ink);
  font-weight: 600;
}

.log-row.is-record .log-no::after {
  border-top: 2px solid var(--amber-strong);
}

.log-band {
  position: relative;
  display: block;
  border-inline: 1px solid var(--line-strong);
  border-bottom: 1px solid rgba(60, 40, 20, 0.12);
}

.log-row:first-child .log-band {
  border-top: 1px solid var(--line-strong);
  border-radius: 4px 4px 0 0;
}

.log-row:last-child .log-band {
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0 0 4px 4px;
}

.band-1 { height: 38px; background: var(--lith-dots), var(--s1); }
.band-2 { height: 22px; background: var(--lith-dash), var(--s2); }
.band-3 { height: 54px; background: var(--lith-brick), var(--s3); }
.band-4 { height: 30px; background: var(--lith-pebble), var(--s4); }
.band-5 { height: 44px; background: var(--lith-dash), var(--s5); }
.band-6 { height: 52px; background: var(--lith-dots), var(--s6); }

.log-fossil {
  position: absolute;
  right: 18%;
  top: 50%;
  width: 34px;
  height: 34px;
  transform: translateY(-50%) rotate(-12deg);
  fill: none;
  stroke: rgba(40, 24, 10, 0.45);
  stroke-width: 3.5;
  stroke-linecap: round;
}

@media (prefers-color-scheme: dark) {
  .log-band {
    border-bottom-color: rgba(0, 0, 0, 0.35);
  }

  .log-fossil {
    stroke: rgba(255, 228, 186, 0.35);
  }
}

.band-amber {
  padding: 14px;
  background:
    var(--grain),
    linear-gradient(var(--band-amber-top), var(--band-amber-bottom));
}

/* The fossil imprint: a debossed slab carrying the hash */
.imprint {
  position: relative;
  display: block;
  margin: 0;
  padding: 0.7rem 1rem 0.75rem 0.9rem;
  border-radius: 6px;
  background: rgba(110, 52, 4, 0.14);
  box-shadow:
    inset 2px 2px 5px rgba(80, 35, 0, 0.42),
    inset -1px -1px 0 rgba(255, 236, 200, 0.55);
  color: var(--imprint-ink);
}

.imprint::after {
  /* folded corner of the "page" */
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 18px;
  height: 18px;
  border-top-right-radius: 6px;
  background: linear-gradient(225deg, var(--band-amber-top) 50%, rgba(90, 40, 0, 0.32) 50%);
}

.imprint-label {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.8;
}

.imprint-hash {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0.02em;
  word-spacing: 0.15em;
  text-shadow: 0 1px 0 rgba(255, 236, 200, 0.45);
  overflow-wrap: anywhere;
}

.log-cap {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0.9rem;
  padding-left: var(--log-label);
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--faint);
}

.log-cap-data {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text);
}

@media (max-width: 559.98px) {
  :root {
    --log-label: 96px;
  }

  .log-no {
    font-size: 0.64rem;
    gap: 0.3rem;
  }

  .log-no::after {
    width: 8px;
  }

  .log-cap {
    padding-left: 0;
  }

  .imprint-hash {
    font-size: 0.8rem;
  }
}

/* ---------- How it works ---------- */

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--rule);
}

.step {
  display: grid;
  gap: 0.75rem 2.5rem;
  padding: 2rem 0 2.25rem;
  border-bottom: 1px solid var(--line-strong);
}

@media (min-width: 900px) {
  .step {
    grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 22rem);
    align-items: start;
    padding: 2.5rem 0 2.75rem;
  }
}

.step-no {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-style: italic;
  font-weight: 500;
  line-height: 0.85;
  color: var(--amber-strong);
}

@media (min-width: 900px) {
  .step-no {
    font-size: 4.4rem;
  }
}

.step-body h3 {
  font-size: 1.55rem;
  margin-bottom: 0.45rem;
}

.step-body p {
  max-width: 32rem;
  margin: 0;
  color: var(--muted);
}

.artifact {
  min-width: 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.5;
}

.artifact-label {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.artifact-mono {
  margin: 0;
  overflow-wrap: anywhere;
}

.artifact-kv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 1rem;
  margin: 0;
}

.artifact-kv dt {
  color: var(--faint);
}

.artifact-kv dd {
  margin: 0;
}

.artifact-file {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.artifact-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 8px;
  background: var(--amber-soft);
  color: var(--amber-ink);
  font-size: 1.05rem;
}

.artifact-name {
  display: block;
  font-size: 0.92rem;
  font-weight: 500;
}

.artifact-link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ---------- Demo ---------- */

.demo-grid {
  display: grid;
  gap: clamp(2.25rem, 1.5rem + 3vw, 4.5rem);
  align-items: start;
}

@media (min-width: 900px) {
  .demo-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
  }
}

.demo-copy > p:not(.eyebrow) {
  max-width: 32rem;
  color: var(--muted);
}

.cmd-list {
  display: grid;
  gap: 0.45rem;
  margin: 1.25rem 0 0;
}

.cmd-list > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
}

.cmd-list dt {
  min-width: 5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.cmd-list dd {
  margin: 0;
}

.demo-panel {
  min-width: 0;
  padding: clamp(1rem, 0.6rem + 1.5vw, 1.5rem);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
}

.demo-badge {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 210px;
  padding: 2rem 1.25rem;
  text-align: center;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--lith-dots), var(--s1);
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.dropzone:hover,
.dropzone.is-dragover {
  border-color: var(--amber-strong);
  border-style: solid;
}

.dropzone.is-dragover {
  background: var(--lith-dots), var(--amber-soft);
}

.dropzone:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.dz-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 0.35rem;
  border-radius: 50%;
  background: var(--amber);
  color: var(--on-amber);
  font-size: 1.2rem;
}

.dz-icon .icon {
  stroke-width: 2.1;
}

.dz-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}

.dz-sub {
  color: var(--muted);
}

.dz-link {
  color: var(--amber-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.demo-status {
  margin: 0.85rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.demo-status:empty {
  display: none;
}

.demo-status.is-error {
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--warn-bg);
  color: var(--warn-text);
}

.demo-result {
  margin-top: 1rem;
}

.demo-result[hidden] {
  display: none;
}

.demo-name {
  margin: 0 0 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.demo-band {
  border-radius: 8px;
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1rem;
}

.demo-note {
  flex: 1 1 14rem;
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.demo-noscript {
  margin: 0.9rem 0 0;
  color: var(--muted);
}

/* ---------- Why ---------- */

.props {
  display: grid;
  margin: 0;
  counter-reset: prop;
}

@media (min-width: 640px) {
  .props {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2.5rem;
  }
}

.prop {
  padding: 1.35rem 0 1.75rem;
  border-top: 1px solid var(--line-strong);
  counter-increment: prop;
}

@media (min-width: 640px) {
  .prop:nth-child(-n + 2) {
    border-top: 2px solid var(--rule);
  }
}

@media (max-width: 639.98px) {
  .prop:first-child {
    border-top: 2px solid var(--rule);
  }
}

.prop dt {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.2;
}

.prop dt::before {
  content: counter(prop, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--amber-ink);
}

.prop dd {
  margin: 0;
  color: var(--muted);
}

.prop dd a {
  display: inline-block;
  margin-top: 0.35rem;
  font-weight: 600;
}

/* ---------- On-chain record ---------- */

.record-grid {
  display: grid;
  gap: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
  align-items: center;
}

@media (min-width: 920px) {
  .record-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    grid-template-areas: "figure copy";
  }

  .record-copy {
    grid-area: copy;
  }

  .record-figure {
    grid-area: figure;
  }
}

.record-copy > p:not(.eyebrow) {
  color: var(--muted);
}

.stored-list {
  display: grid;
  gap: 0.7rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}

.stored-list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--muted);
}

.stored-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--amber);
  transform: rotate(45deg);
}

.stored-list strong {
  color: var(--text);
}

.not-stored {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-strong);
  color: var(--muted);
}

.not-stored .icon {
  margin-top: 0.2em;
  color: var(--amber-ink);
}

.not-stored strong {
  color: var(--text);
}

.record-figure {
  min-width: 0;
  margin: 0;
}

.record-card {
  position: relative;
  padding: clamp(1.25rem, 0.9rem + 1.5vw, 2rem);
  padding-top: calc(clamp(1.25rem, 0.9rem + 1.5vw, 2rem) + 14px);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.record-card::before {
  /* strata stripe along the top edge */
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 14px;
  background:
    linear-gradient(
      var(--s3) 0 4px,
      var(--band-amber-top) 4px 9px,
      var(--s5) 9px 14px
    );
}

.record-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1.35rem;
}

.record-title,
.vm-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-style: italic;
  font-weight: 500;
}

.record-fields {
  display: grid;
  gap: 1.1rem 2rem;
  margin: 0;
}

@media (min-width: 520px) {
  .record-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rf-wide {
    grid-column: 1 / -1;
  }
}

.record-fields > div {
  padding-top: 0.7rem;
  border-top: 1px dashed var(--line-strong);
}

.record-fields dt {
  margin-bottom: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.record-fields dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.hash {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.record-figure figcaption,
.verify-mock figcaption {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  color: var(--faint);
}

/* ---------- Verify ---------- */

.verify-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 920px) {
  .verify-grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
    gap: 4.5rem;
  }
}

.way {
  max-width: 30rem;
}

.way h3 {
  font-size: 1.5rem;
}

.way p {
  color: var(--muted);
}

.way + .way {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-strong);
}

.verify-code {
  min-width: 0;
}

.code-cap {
  margin: 0 0 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.code-cap span {
  text-transform: none;
  letter-spacing: 0;
}

.code {
  margin: 0 0 1.75rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  background: var(--code-bg);
  color: var(--code-text);
  font-size: 0.84rem;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.code:last-child {
  margin-bottom: 0;
}

.code--json {
  white-space: pre;
  overflow-x: auto;
  overflow-wrap: normal;
  font-size: 0.8rem;
}

.c-file {
  white-space: nowrap;
}

.c-prompt,
.c-p {
  color: var(--code-muted);
}

.c-prompt {
  user-select: none;
}

.c-hash,
.c-k {
  color: var(--code-key);
}

.c-s {
  color: var(--code-text);
}

.c-n {
  color: var(--code-num);
}

.parties {
  display: grid;
  gap: 2rem;
  align-items: center;
  margin-top: clamp(3.5rem, 2.5rem + 3vw, 5.5rem);
  padding-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  border-top: 2px solid var(--rule);
}

@media (min-width: 860px) {
  .parties {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4.5rem;
  }
}

.parties-copy h3 {
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem);
}

.parties-copy p {
  max-width: 30rem;
  margin: 0;
  color: var(--muted);
}

.verify-mock {
  min-width: 0;
  margin: 0;
  padding: clamp(1.1rem, 0.8rem + 1.5vw, 1.6rem);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.vm-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.vm-title {
  font-size: 1.25rem;
}

.vm-kicker {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.vm-date {
  margin: 0.15rem 0 1.1rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.75rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--amber-ink);
}

.vm-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.vm-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.9rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.vm-addr {
  font-family: var(--font-mono);
  font-weight: 500;
}

.vm-time {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
}

.vm-flag {
  margin-left: auto;
  padding: 0.05rem 0.45rem;
  border-radius: 4px;
  background: var(--amber);
  color: var(--on-amber);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Use cases ---------- */

.catalogue {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--rule);
}

.catalogue li {
  display: grid;
  gap: 0.4rem 2.5rem;
  padding: 1.5rem 0 1.6rem;
  border-bottom: 1px solid var(--line-strong);
}

@media (min-width: 880px) {
  .catalogue li {
    grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) minmax(0, 15rem);
    align-items: baseline;
  }
}

.catalogue h3 {
  margin: 0;
  font-size: 1.3rem;
}

.catalogue p {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
}

.cat-file {
  justify-self: start;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--amber-ink);
  overflow-wrap: anywhere;
}

@media (min-width: 880px) {
  .cat-file {
    justify-self: end;
    text-align: right;
  }
}

/* ---------- Sandbox ---------- */

.warn-note {
  max-width: 34rem;
  padding: 0.75rem 0.95rem;
  border-left: 3px solid var(--amber-strong);
  background: var(--warn-bg);
  color: var(--warn-text);
  font-size: 0.98rem;
}

.split-head .cta-row {
  margin-top: 1.5rem;
}

.compare-wrap {
  min-width: 0;
}

.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  line-height: 1.5;
}

.compare th,
.compare td {
  padding: 0.95rem 0.9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-strong);
}

.compare thead th {
  padding-top: 0;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--rule);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}

.compare thead td {
  border-bottom: 2px solid var(--rule);
}

.compare tbody th {
  width: 24%;
  padding-left: 0;
  padding-top: 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.compare td {
  color: var(--muted);
}

.compare td:last-child {
  color: var(--text);
}

.compare td.is-warn {
  color: var(--warn-text);
  font-weight: 500;
}

@media (max-width: 559.98px) {
  .compare {
    font-size: 0.9rem;
  }

  .compare th,
  .compare td {
    padding: 0.8rem 0.5rem;
  }

  .compare thead th {
    font-size: 1.1rem;
  }

  .compare tbody th {
    width: 25%;
    padding-top: 1rem;
    font-size: 0.62rem;
  }

  .compare td:last-child {
    padding-right: 0;
  }
}

/* ---------- FAQ ---------- */

.faq {
  border-top: 2px solid var(--rule);
}

.faq details {
  border-bottom: 1px solid var(--line-strong);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 1.04rem + 0.35vw, 1.28rem);
  font-weight: 600;
  line-height: 1.35;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background:
    linear-gradient(var(--amber-ink), var(--amber-ink)) center / 11px 2px no-repeat,
    linear-gradient(var(--amber-ink), var(--amber-ink)) center / 2px 11px no-repeat;
}

.faq details[open] > summary::after {
  background:
    linear-gradient(var(--amber-ink), var(--amber-ink)) center / 11px 2px no-repeat;
}

.faq summary:hover {
  color: var(--amber-ink);
}

.faq-body {
  max-width: 40rem;
  padding: 0 0 1.35rem;
  color: var(--muted);
}

.faq-body p:last-child {
  margin-bottom: 0;
}

/* ---------- Closing ---------- */

.closing {
  padding-block: clamp(4.5rem, 3rem + 5vw, 7.5rem);
}

.closing-grid {
  display: grid;
  gap: 1.75rem 4rem;
  align-items: end;
}

@media (min-width: 920px) {
  .closing-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}

.closing h2 {
  margin: 0;
  font-size: clamp(2.6rem, 1.6rem + 4.2vw, 5rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.closing-side > p {
  max-width: 28rem;
  color: var(--muted);
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 2.25rem 2.5rem;
  background: var(--bedrock);
  color: var(--bedrock-muted);
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2.5rem;
}

.site-footer .brand {
  color: var(--bedrock-text);
}

.site-footer .brand-tld {
  color: #f6bb62;
}

.footer-nav {
  margin-left: auto;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  display: inline-block;
  padding: 0.35rem 0;
  color: var(--bedrock-text);
  font-weight: 500;
  text-decoration: none;
}

.footer-nav a:hover {
  color: #f6bb62;
  text-decoration: underline;
}

.footer-copy {
  width: 100%;
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(241, 230, 212, 0.14);
  font-size: 0.88rem;
}

.site-footer :focus-visible {
  outline-color: #ffd07e;
}

@media (max-width: 599.98px) {
  .footer-nav {
    width: 100%;
    margin-left: 0;
  }
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 80;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 0.8rem 1.15rem;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.95rem;
  font-weight: 500;
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast:empty {
  padding: 0;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Print ---------- */

@media print {
  .site-header,
  .strata-rule,
  .demo-panel,
  .toast {
    display: none !important;
  }

  body,
  .section--alt {
    background: #fff !important;
    color: #000 !important;
  }
}
