/*
  Defabuse — the bands below the notice sheet, in reading order: verify it
  yourself, what we want, what we detect, method, contact.
*/

/* ── Sections ──────────────────────────────────────────────────────────── */
.band {
  padding-block: var(--gap-section);
  border-top: 1px solid var(--rule-2);
}

.band-tight {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.band h2 {
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  max-width: 22ch;
  margin-bottom: 0.9rem;
}

/* ── Steps: a genuine sequence, so it is genuinely numbered ────────────── */
.steps {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 1px;
  background: var(--rule);
  border-block: 1px solid var(--rule);
}

.steps li {
  counter-increment: step;
  background: var(--paper);
  padding: 1.5rem clamp(1rem, 2.5vw, 1.75rem);
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0 1rem;
  align-items: start;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--seal);
  padding-top: 0.2rem;
}

.steps h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 0.3rem;
}

.steps p {
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.steps code {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  background: var(--sheet);
  border: 1px solid var(--rule-2);
  border-radius: 2px;
  padding: 0.1rem 0.4rem;
  white-space: nowrap;
}

/* ── The refusal block: what we do not want ────────────────────────────── */
.refusal {
  position: relative;
  isolation: isolate;
  background: var(--ink);
  color: #e7ebef;
}

/* Security tint. This block answers the question the visitor is actually
   afraid of — what do you want from me — so it is dressed as the panel of a
   printed instrument. The artwork is dark ink on white; inverted and screened
   it becomes the pale line work you get on dark stock. */
.refusal::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #fff;
  -webkit-mask: url('../img/security-tint.png') center / 380px repeat;
  mask: url('../img/security-tint.png') center / 380px repeat;
  -webkit-mask-mode: luminance;
  mask-mode: luminance;
  opacity: 0.09;
  pointer-events: none;
}

.refusal h2 {
  color: #fff;
}

.refusal .band-lede {
  color: #9dabb8;
}

.refusal-answer {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.25rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin: 0.5rem 0 2rem;
}

.nots {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.nots li {
  background: var(--ink);
  padding: 1.1rem 1.25rem;
  font-size: 0.9375rem;
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
}

.nots li::before {
  content: '\00d7';
  font-family: var(--font-mono);
  color: #d98b96;
  font-size: 1.05rem;
  line-height: 1;
}

.refusal-close {
  color: #9dabb8;
  font-size: 0.9375rem;
  border-left: 2px solid var(--seal);
  padding-left: 0.95rem;
  max-width: 58ch;
}

/* ── Evidence pair: the two views of one page ──────────────────────────── */
.pair {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.25rem;
}

.view {
  background: var(--sheet);
  border: 1px solid var(--rule-2);
  display: flex;
  flex-direction: column;
}

.view-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 0.688rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.view-bar strong {
  color: var(--ink);
  font-weight: 500;
}

.view-body {
  padding: 1.25rem 1.1rem 1.5rem;
  flex: 1;
}

.view-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.view-snip {
  font-size: 0.875rem;
  color: var(--ink-2);
  margin-bottom: 1rem;
}

.view-lines {
  display: grid;
  gap: 0.45rem;
}

.view-lines span {
  height: 7px;
  background: var(--paper-2);
  border-radius: 1px;
}

.view-lines span:nth-child(2) {
  width: 88%;
}

.view-lines span:nth-child(3) {
  width: 64%;
}

.view.is-crawler .view-bar {
  background: var(--seal-tint);
}

.view.is-crawler .view-title {
  color: var(--seal);
}

.view-foot {
  border-top: 1px solid var(--rule);
  padding: 0.7rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.688rem;
  color: var(--ink-3);
}

/* ── Method: plain record, for abuse desks ─────────────────────────────── */
.facts {
  margin: 2.25rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 2rem 2.5rem;
}

.facts h3 {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 0.4rem;
  padding-top: 0.75rem;
  border-top: 2px solid var(--ink);
}

.facts p {
  color: var(--ink-2);
  font-size: 0.9375rem;
}

/* ── Contact ───────────────────────────────────────────────────────────── */
.addresses {
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.addresses > div {
  background: var(--paper);
  padding: 1.25rem;
}

.addresses dt {
  font-family: var(--font-mono);
  font-size: 0.688rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.35rem;
}

.addresses dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.addresses p {
  margin-top: 0.4rem;
  font-size: 0.8125rem;
  color: var(--ink-2);
  font-family: var(--font-sans);
}

/* ── Footer ────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--rule-2);
  padding-block: 2.5rem 3.5rem;
  font-size: 0.8125rem;
  color: var(--ink-2);
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: baseline;
}

.foot-inner p {
  margin: 0;
}

.foot-links {
  margin-left: auto;
  display: flex;
  gap: 1.5rem;
}

/* ── Load sequence: the sheet settles, the seal stamps once ────────────── */
@media (prefers-reduced-motion: no-preference) {
  .sheet {
    animation: settle 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .seal {
    animation: stamp 0.42s cubic-bezier(0.34, 1.4, 0.64, 1) 0.42s both;
  }

  @keyframes settle {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
  }

  @keyframes stamp {
    from {
      opacity: 0;
      transform: rotate(-8deg) scale(1.5);
    }
    to {
      opacity: 0.9;
      transform: rotate(-8deg) scale(1);
    }
  }
}

@media (max-width: 640px) {
  .masthead-inner {
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
  }

  .masthead nav {
    margin-left: 0;
    width: 100%;
    gap: 1.25rem;
  }

  .sheet-head {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .seal {
    width: 60px;
    height: 60px;
    margin-left: 0;
  }

  .steps li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .steps li::before {
    padding-top: 0;
  }
}
