/* padlockspace.org — static stylesheet
   Dark charcoal + warm amber. System fonts only, no external requests. */

:root {
  --bg:        #16181a;
  --bg-raise:  #1d2023;
  --bg-sunken: #121415;
  --line:      #2c3135;
  --line-soft: #23272a;
  --text:      #e6e8ea;
  --text-dim:  #a8afb5;
  --text-mute: #858c92;
  --amber:     #f3a63a;
  --amber-dim: #c9821f;
  --amber-bg:  #2a2116;
  --ok:        #7fbf7f;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 66rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; }
/* Inline links inside prose stay distinguishable without relying on colour
   alone (WCAG 1.4.1); nav, buttons and footer lists keep the plain style. */
p a { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }

/* Visible, high-contrast focus for keyboard users. */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--amber); color: #1a1206; padding: .6rem 1rem; z-index: 50;
  font-weight: 600;
}
.skip-link:focus { left: .5rem; top: .5rem; }

/* ---------- header ---------- */
.site-header {
  border-bottom: 1px solid var(--line-soft);
  background: rgba(22,24,26,.92);
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(6px);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 1rem;
  min-height: 60px;
}
.brand {
  display: flex; align-items: center; gap: .55rem;
  font-weight: 650; color: var(--text); letter-spacing: .01em;
  font-size: 1.02rem;
}
.brand:hover { text-decoration: none; color: var(--text); }
.brand svg { display: block; }
.nav { margin-left: auto; display: flex; gap: 1.15rem; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--text-dim); font-size: .93rem; }
.nav a:hover { color: var(--text); }

/* ---------- hero ---------- */
.hero { padding: 4.5rem 0 3rem; }
.eyebrow {
  display: inline-block; font-size: .78rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--amber);
  border: 1px solid var(--amber-dim); border-radius: 999px;
  padding: .25rem .8rem; margin-bottom: 1.4rem;
  background: var(--amber-bg);
}
h1 {
  font-size: clamp(2rem, 5.2vw, 3.1rem);
  line-height: 1.12; letter-spacing: -.02em;
  margin: 0 0 1.1rem; font-weight: 700; max-width: 20ch;
}
.lede { font-size: clamp(1.05rem, 2.2vw, 1.22rem); color: var(--text-dim); max-width: 56ch; margin: 0 0 2rem; }
.lede strong { color: var(--text); font-weight: 600; }

.actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  border-radius: 8px; padding: .7rem 1.15rem;
  font-size: .97rem; font-weight: 600; border: 1px solid transparent;
  cursor: pointer; font-family: inherit;
}
.btn-primary { background: var(--amber); color: #1a1206; }
.btn-primary:hover { background: #ffb95a; text-decoration: none; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--amber-dim); color: var(--amber); text-decoration: none; }
.btn-pilot { background: transparent; color: var(--amber); border-color: var(--amber-dim); }
.btn-pilot:hover { background: var(--amber-bg); text-decoration: none; }

/* ---------- generic sections ---------- */
section { padding: 3rem 0; border-top: 1px solid var(--line-soft); }
h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); letter-spacing: -.01em; margin: 0 0 .6rem; font-weight: 650; }
h3 { font-size: 1.05rem; margin: 0 0 .35rem; font-weight: 620; }
.section-sub { color: var(--text-dim); max-width: 62ch; margin: 0 0 2rem; }
p { max-width: 68ch; }

.card-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); }
.card {
  background: var(--bg-raise); border: 1px solid var(--line-soft);
  border-radius: 10px; padding: 1.15rem 1.2rem;
}
.card p { color: var(--text-dim); font-size: .95rem; margin: .35rem 0 0; max-width: none; }

/* ---------- workflow ---------- */
.flow { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr)); }
.flow li {
  background: var(--bg-raise); border: 1px solid var(--line-soft);
  border-radius: 10px; padding: 1rem; position: relative;
}
.flow .step-no {
  font-family: var(--mono); font-size: .78rem; color: var(--amber);
  display: block; margin-bottom: .4rem; letter-spacing: .08em;
}
.flow h3 { font-size: 1rem; }
.flow p { margin: .3rem 0 0; font-size: .92rem; color: var(--text-dim); max-width: none; }

/* ---------- code + copy ---------- */
.code-block {
  position: relative; background: var(--bg-sunken);
  border: 1px solid var(--line); border-radius: 9px; margin: 0 0 1rem;
}
.code-block pre {
  margin: 0; padding: 1rem 6.2rem 1rem 1.05rem;
  overflow-x: auto; font-family: var(--mono); font-size: .88rem; line-height: 1.55;
}
.code-block pre code { color: #e8eaec; }
.code-label {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-mute);
  padding: .55rem 1.05rem 0; display: block;
}
.copy-btn {
  position: absolute; top: .55rem; right: .55rem;
  background: var(--bg-raise); color: var(--text-dim);
  border: 1px solid var(--line); border-radius: 6px;
  font-size: .76rem; padding: .34rem .62rem; cursor: pointer;
  font-family: var(--sans); font-weight: 600;
}
.copy-btn:hover { color: var(--amber); border-color: var(--amber-dim); }
.copy-btn[data-state="copied"] { color: var(--ok); border-color: var(--ok); }
/* Without JS the buttons are inert; hide them so no dead control is shown. */
.no-js .copy-btn { display: none; }

code.inline {
  font-family: var(--mono); font-size: .87em; background: var(--bg-raise);
  overflow-wrap: anywhere;
  border: 1px solid var(--line-soft); border-radius: 5px; padding: .1rem .38rem;
  color: #e8eaec;
}

/* ---------- illustrative figure ---------- */
.figure {
  background: var(--bg-raise); border: 1px solid var(--line);
  border-radius: 10px; padding: 1.1rem; margin: 1.5rem 0 0;
}
.figure figcaption {
  font-size: .82rem; color: var(--text-mute); margin-bottom: .9rem;
}
.figure .illus-tag {
  display: inline-block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--amber); border: 1px dashed var(--amber-dim); border-radius: 4px;
  padding: .1rem .45rem; margin-right: .5rem;
}
.chain { display: grid; gap: .6rem; }
.chain-row {
  display: grid; grid-template-columns: 6.2rem 1fr; gap: .8rem; align-items: start;
  background: var(--bg-sunken); border: 1px solid var(--line-soft);
  border-radius: 8px; padding: .7rem .85rem;
}
.chain-row .blk { font-family: var(--mono); font-size: .8rem; color: var(--amber); }
.chain-row .hash { font-family: var(--mono); font-size: .78rem; color: var(--text-mute); word-break: break-all; display: block; margin-top: .3rem; }
.chain-row .h-label { color: var(--text-dim); font-size: .86rem; }

/* ---------- guarantees / limits ---------- */
.two-col { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr)); }
.verdict { border-radius: 10px; padding: 1.15rem 1.25rem; border: 1px solid var(--line); }
.verdict.yes { background: #17201a; border-color: #2b4030; }
.verdict.no  { background: #241b18; border-color: #4a2f28; }
.verdict h3 { display: flex; align-items: center; gap: .5rem; }
.verdict ul { margin: .6rem 0 0; padding-left: 1.1rem; }
.verdict li { color: var(--text-dim); margin-bottom: .5rem; font-size: .94rem; }
.verdict li strong { color: var(--text); }
.pill { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; border-radius: 4px; padding: .1rem .45rem; font-weight: 700; }
.pill.yes { background: #2b4030; color: #b6e0b6; }
.pill.no  { background: #4a2f28; color: #f0b3a4; }

/* ---------- contact / pilot ---------- */
.contact {
  background: var(--bg-raise); border: 1px solid var(--amber-dim);
  border-radius: 10px; padding: 1.15rem 1.25rem; margin: 1.5rem 0 0;
}
.contact h3 { color: var(--amber); }
.contact p:last-child { margin-bottom: 0; }
.tick { margin: .55rem 0 0; padding-left: 1.1rem; }
.tick li { color: var(--text-dim); margin-bottom: .5rem; font-size: .94rem; }
.tick li:last-child { margin-bottom: 0; }
.addr { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .6rem; }
.addr-label { color: var(--text-mute); font-size: .88rem; }
.selectable {
  font-family: var(--mono); font-size: .9em; color: var(--text);
  background: var(--bg-sunken); border: 1px solid var(--line);
  border-radius: 5px; padding: .12rem .45rem;
  user-select: text; -webkit-user-select: text;
}
.copy-inline { position: static; margin-left: 0; float: none; }

/* ---------- status note ---------- */
.note {
  border-left: 3px solid var(--amber-dim); background: var(--amber-bg);
  padding: .85rem 1.05rem; border-radius: 0 8px 8px 0; margin: 1.3rem 0;
  font-size: .92rem; color: var(--text-dim); max-width: 72ch;
}
.note strong { color: var(--text); }

.demo-out {
  font-family: var(--mono); font-size: .82rem; white-space: pre-wrap;
  word-break: break-word; color: var(--text-dim);
}

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); padding: 2.5rem 0 3rem; color: var(--text-mute); font-size: .9rem; }
.foot-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr)); }
.foot-grid h4 { color: var(--text-dim); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 .6rem; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: .4rem; }
.foot-grid a { color: var(--text-dim); }
.foot-grid a:hover { color: var(--amber); }
.legal { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line-soft); max-width: 74ch; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 3rem 0 2rem; }
  .site-header .wrap { flex-wrap: wrap; gap: .1rem 1rem; padding-top: .55rem; }
  .nav { margin-left: 0; width: 100%; gap: .1rem .95rem; padding-bottom: .7rem; }
  .nav a { font-size: .88rem; }
  .chain-row { grid-template-columns: 1fr; }
  .code-block pre { padding-right: 1.05rem; }
  .copy-btn { position: static; margin: .55rem .55rem 0 0; float: right; }
  .flow { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
