/* The claim-help page (kirunak katyafm/licence-certificate S-8). KatyaFM's dusk indigo and amber (design/KatyaBrand.kt),
   both themes, every text pair at WCAG AA or better (contrast figures in the S-8 report). Logical properties only, so the
   page holds in a right-to-left language; rem and ch only, so it reflows at 200% zoom and at phone width. The system
   font: the page loads nothing from anywhere else. */
:root {
  color-scheme: light dark;
  --page: #f4f3f8;
  --ink: #1e2040;
  --muted: #4a4d6e;
  --box: #ffffff;
  --line: #6e7194;
  --link: #34386b;
  --fill: #e5a23c;
  --on-fill: #1e2040;
  --fill-line: #1e2040;
  --bad: #9a2a1c;
  --focus: #34386b;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #16172a;
    --ink: #ecebf5;
    --muted: #b9bad4;
    --box: #20223a;
    --line: #8a8db5;
    --link: #f0b860;
    --fill: #e5a23c;
    --on-fill: #16172a;
    --fill-line: #e5a23c;
    --bad: #ff9a8a;
    --focus: #f0b860;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

main {
  max-inline-size: 40rem;
  margin-inline: auto;
  padding-block: 2rem 4rem;
  padding-inline: 1.25rem;
}

h1 { font-size: 1.6rem; line-height: 1.25; margin-block: 0 1.25rem; }

p { margin-block: 0 1rem; }

a { color: var(--link); text-decoration-thickness: 0.08em; text-underline-offset: 0.15em; overflow-wrap: anywhere; }

.field { margin-block: 1.5rem; }
label { display: block; font-weight: 600; margin-block-end: 0.25rem; }
.hint { color: var(--muted); margin-block: 0 0.5rem; }
.row { display: flex; flex-wrap: wrap; gap: 0.5rem; }

input {
  font: inherit;
  color: var(--ink);
  background: var(--box);
  border: 0.125rem solid var(--line);
  border-radius: 0.375rem;
  padding-block: 0.5rem;
  padding-inline: 0.75rem;
  min-block-size: 2.75rem;
  max-inline-size: 100%;
}
#code { flex: 1 1 16rem; min-inline-size: 0; }
#email { inline-size: 100%; }

button {
  font: inherit;
  font-weight: 600;
  color: var(--on-fill);
  background: var(--fill);
  border: 0.125rem solid var(--fill-line);
  border-radius: 0.375rem;
  padding-block: 0.5rem;
  padding-inline: 1rem;
  min-block-size: 2.75rem;
  cursor: pointer;
}

:focus-visible { outline: 0.1875rem solid var(--focus); outline-offset: 0.125rem; }

.answer {
  background: var(--box);
  border: 0.0625rem solid var(--line);
  border-inline-start-width: 0.375rem;
  border-radius: 0.375rem;
  padding-block: 1rem 0.25rem;
  padding-inline: 1rem;
  margin-block: 0 1.5rem;
}
p.answer { padding-block-end: 1rem; }
.answer.bad { border-color: var(--bad); }
.code { font-family: ui-monospace, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
#note-text { overflow-wrap: anywhere; }
.copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.done { font-weight: 600; }

/* The copy fallback's field: in the page for a moment, never seen. */
.scratch { position: fixed; inset-block-start: 0; inset-inline-start: 0; opacity: 0; pointer-events: none; }

@media (forced-colors: active) {
  button { border-color: ButtonText; }
  .answer { border-color: CanvasText; }
}
