/* Integrity open-link fallback — readable confirmation, not a destination itself */
:root {
  color-scheme: light;
  --bg: #f7f5f0;
  --ink: #1c1b19;
  --muted: #5c5852;
  --line: #d9d4c8;
  --panel: #fffcf7;
  --button-bg: #1c1b19;
  --button-ink: #f7f5f0;
  --button-hover: #0e0d0c;
  --error: #8b1e1e;
  --error-bg: #f8ece8;
  --notice-bg: #eeeae2;
  --focus: #1a4f7a;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #161513;
    --ink: #f3efe7;
    --muted: #b0aaa0;
    --line: #3a3732;
    --panel: #1f1d1a;
    --button-bg: #f3efe7;
    --button-ink: #161513;
    --button-hover: #ffffff;
    --error: #f0a8a8;
    --error-bg: #3a2220;
    --notice-bg: #2a2824;
    --focus: #8cb4d4;
  }
}

* { box-sizing: border-box; }

/* Author display rules (e.g. .continue { display: flex }) would otherwise
   override the UA [hidden] { display: none } and leave a dead Continue button
   on error pages. */
[hidden] { display: none !important; }

.isolate {
  unicode-bidi: isolate;
}

html { font-size: 17px; }

body {
  margin: 0 auto;
  max-width: 40rem;
  padding: 2rem 1.25rem 3.5rem;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5;
}

.eyebrow {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0.25rem 0 0.75rem;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

#lead {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

#panel {
  padding: 1.15rem 1.1rem 1.25rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
}

.details {
  margin: 0 0 1rem;
}

.details div {
  margin: 0 0 0.85rem;
  padding: 0 0 0.85rem;
  border-bottom: 1px solid var(--line);
}

.details div:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

dt {
  margin: 0 0 0.2rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.url {
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

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

.continue {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 0.85rem 1rem;
  background: var(--button-bg);
  color: var(--button-ink);
  font: inherit;
  font-weight: 600;
  font-size: 1.05rem;
  text-align: center;
  text-decoration: none;
  border-radius: 0.5rem;
  overflow-wrap: anywhere;
}

.continue:hover {
  background: var(--button-hover);
}

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

.error {
  margin: 0;
  padding: 0.75rem 0.85rem;
  background: var(--error-bg);
  color: var(--error);
  border-radius: 0.4rem;
  overflow-wrap: anywhere;
}

.notice {
  margin: 0 0 1rem;
  padding: 0.75rem 0.85rem;
  background: var(--notice-bg);
  color: var(--ink);
  border-radius: 0.4rem;
}

footer {
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.85rem;
}

footer p { margin: 0; }
