/* Hallmark · scope: app · genre: modern-minimal · brand: ICWT (2026-12-03) · signature: TLS result on a navy panel · v2.0.0 */
/* Critique: Keep the outcome legible without color, including a failed measurement. */
@font-face {
  font-family: "Inter";
  src: url("/assets/inter-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/inter-semibold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f3f0ec;
  --field: #fffdfa;
  --navy: #172036;
  --ink: #1d2a39;
  --muted: #536171;
  --rule: #cec9c3;
  --field-border: #8a8b91;
  --accent: #f3b07b;
  --hover: #263450;
  --disabled-fill: #ded9d3;
  --light-ink: #fffdfa;
  --light-muted: #c9d1df;
  --report-rule: #485268;
  --error: #9a302d;
  --positive: #b6e0c6;
  --negative: #ff9b9b;
  --font: Inter, system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  --radius: 0.4rem;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { overflow-x: clip; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.6 var(--font);
}

a { color: inherit; text-underline-offset: 0.24em; }
a:hover { color: var(--hover); }
button, input { font: inherit; }

:where(a, button, input):focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 4px;
}

.wrap {
  width: min(100% - 3rem, 72rem);
  margin-inline: auto;
}

.masthead {
  min-height: 7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  border-bottom: 1px solid var(--rule);
}

.brand { flex: 0 0 auto; }
.brand img { display: block; width: 7.3rem; height: auto; }

.contact {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5.75rem);
  align-items: center;
  padding-block: clamp(3.75rem, 7.7vw, 7rem);
}

h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 600; }

h1 {
  min-width: 0;
  color: var(--navy);
  font-size: clamp(2.12rem, 4.7vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: -0.049em;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.lead {
  max-width: 39ch;
  margin-block: 1.35rem 2rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.55vw, 1.22rem);
  line-height: 1.55;
  text-wrap: pretty;
}

label {
  display: inline-block;
  margin-block-end: 0.375rem;
  color: var(--navy);
  font-weight: 600;
}

.form-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.625rem;
}

input, button {
  min-height: 3.25rem;
  border: 1px solid;
  border-radius: var(--radius);
  padding-inline: 0.875rem;
}

input {
  width: 100%;
  min-width: 0;
  border-color: var(--field-border);
  background: var(--field);
  color: var(--navy);
}

input::placeholder { color: var(--muted); opacity: 1; }
input[aria-invalid="true"], input:user-invalid { border-color: var(--error); }

button {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--light-ink);
  font-weight: 600;
  cursor: pointer;
}

button:hover:enabled { background: var(--hover); }
button:active:enabled { transform: translateY(1px); }
button:disabled {
  border-color: var(--disabled-fill);
  background: var(--disabled-fill);
  color: var(--muted);
  cursor: wait;
}
.field-error { color: var(--error); font-size: 0.875rem; }
.field-error:not(:empty), .hint { margin-block-start: 0.625rem; }
.hint { max-width: 51ch; color: var(--muted); font-size: 0.875rem; }

.report {
  position: relative;
  overflow: clip;
  min-height: 22rem;
  padding: clamp(1.375rem, 3.2vw, 2.4rem);
  border-radius: 0.8rem;
  background: var(--navy);
  color: var(--light-ink);
  isolation: isolate;
}

.report::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-radial-gradient(circle at 97% 105%,
    transparent 0 28px, var(--report-rule) 29px, transparent 30px 52px);
  opacity: 0.32;
  content: "";
}

.report-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block-end: 0.75rem;
  border-bottom: 1px solid var(--report-rule);
}

.report-header h2 { font-size: 1rem; }
.report-header span { color: var(--light-muted); font: 0.8rem/1.5 var(--mono); white-space: nowrap; }
.report-body { margin-block-start: 2rem; }
.report-host { margin-block-end: 0.5rem; color: var(--light-muted); font: 0.875rem/1.5 var(--mono); }

.verdict {
  max-width: 22ch;
  color: var(--accent);
  font-size: clamp(1.6rem, 2.9vw, 2.4rem);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.report[data-state="post-quantum"] .verdict { color: var(--positive); }
.report[data-state="classical"] .verdict { color: var(--negative); }
.report[data-state="loading"] .verdict { color: var(--light-ink); }
.report-host, .verdict, dd, code { overflow-wrap: anywhere; }
.explanation { max-width: 39ch; margin-block-start: 0.7rem; color: var(--light-muted); }
.measurement { margin-block-start: 1.15rem; }
.measurement dt { color: var(--light-muted); font-size: 0.875rem; }
.measurement dd { font: 1rem/1.5 var(--mono); }

.report-action {
  margin-block-start: 1.25rem;
  padding-block-start: 1rem;
  border-block-start: 1px solid var(--report-rule);
}

.report-action p {
  max-width: 39ch;
  margin-block-end: 0.75rem;
  color: var(--light-muted);
  text-wrap: pretty;
}

.report-action a {
  display: inline-flex;
  align-items: center;
  min-block-size: 3rem;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius);
  background: var(--light-ink);
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}

.report-action a:hover { background: var(--accent); }
.report-action a:focus-visible { outline-color: var(--light-ink); }

.method {
  display: grid;
  grid-template-columns: 0.7fr repeat(2, minmax(0, 1fr));
  gap: 2rem;
  border-block: 1px solid var(--rule);
  padding-block: 1.9rem 2.15rem;
}

.method h2 { color: var(--navy); font-size: 1.25rem; }
.method + .method { border-block-start: 0; }
.method h3 { margin-block: 0.16rem 0.3rem; color: var(--navy); font-size: 1rem; }
.method p { max-width: 45ch; color: var(--muted); font-size: 0.9375rem; text-wrap: pretty; }
.method-context { grid-column: 2 / -1; }
.method-context p { max-width: 72ch; }
.method-context a {
  display: inline-block;
  margin-block-start: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
}
code { font: 0.88em var(--mono); color: var(--ink); }

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.2rem 1rem;
  padding-block: 0.5rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.footer a { display: inline-flex; min-height: 3rem; align-items: center; }

@media (max-width: 52rem) {
  .workspace { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .intro { max-width: 34rem; }
  .report { min-height: 0; }
  .report-body { min-height: 8rem; }
  .method { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem 1.75rem; }
  .method h2, .method-context { grid-column: 1 / -1; }
}

@media (max-width: 32rem) {
  .wrap { width: calc(100% - 2rem); }
  .masthead { min-height: 5.5rem; }
  .brand img { width: 6rem; }
  .contact { text-align: end; }
  .workspace { padding-block: 2.65rem 2.5rem; }
  .form-controls, .method { grid-template-columns: minmax(0, 1fr); }
  .method { gap: 1rem; }
  .report-body { margin-block-start: 1.35rem; }
}
