:root {
  color-scheme: dark;
  --field: #050405;
  --panel: #0c0c0e;
  --panel-raised: #101013;
  --text: #f2f2f4;
  --soft: #c6c8ce;
  --muted: #9a9da6;
  --line: #2b2c31;
  --red: #cd1518;
  --red-light: #e4555a;
  --focus: #ffffff;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--field);
  font-family: "Poppins", "Avenir Next", Avenir, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 82% 10%, rgba(205, 21, 24, 0.11), transparent 29rem),
    var(--field);
  color: var(--text);
}

button,
input {
  font: inherit;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: 6px;
  background: var(--text);
  color: var(--field);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.brand span {
  color: var(--text);
}

.brand strong {
  margin-left: 0.16em;
  color: var(--red-light);
}

.control-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(40px, 7vw, 96px);
  padding-block: clamp(64px, 9vw, 118px);
}

.intro {
  align-self: start;
  position: sticky;
  top: 36px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--red-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  line-height: 1.12;
}

h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(2.55rem, 6vw, 5.2rem);
  letter-spacing: -0.052em;
}

h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  letter-spacing: -0.025em;
}

h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.lede {
  max-width: 52ch;
  margin: 28px 0 0;
  color: var(--soft);
  font-size: 1.03rem;
}

.boundary {
  max-width: 52ch;
  margin-top: 34px;
  padding: 20px 22px;
  border-left: 3px solid var(--red);
  background: rgba(255, 255, 255, 0.035);
  color: var(--soft);
}

.boundary strong {
  color: var(--text);
}

.boundary p {
  margin: 6px 0 0;
}

.review-card,
.result {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--panel-raised), var(--panel));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
}

.review-card {
  padding: clamp(24px, 5vw, 44px);
}

.supporting {
  margin: 12px 0 30px;
  color: var(--muted);
}

.field + .field {
  margin-top: 22px;
}

label {
  display: block;
  margin-bottom: 9px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #3a3b42;
  border-radius: 8px;
  outline: 0;
  background: #08080a;
  color: var(--text);
}

input:hover {
  border-color: #595b64;
}

input:focus-visible {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.16);
}

.helper {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.status {
  min-height: 1.5em;
  margin: 18px 0 12px;
  color: var(--soft);
  font-size: 0.88rem;
}

.status[data-state="error"] {
  color: #ff9a9d;
}

.status[data-state="success"] {
  color: #b9e6ca;
}

.button {
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 750;
}

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

.button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.primary {
  width: 100%;
  background: var(--red);
  color: #fff;
}

.primary:not(:disabled):hover {
  background: #ad1114;
}

.secondary {
  flex: 0 0 auto;
  border-color: #3a3b42;
  background: transparent;
  color: var(--text);
}

.secondary:hover {
  border-color: var(--soft);
}

.result {
  grid-column: 1 / -1;
  padding: clamp(24px, 5vw, 48px);
}

.result:focus {
  outline: 0;
}

.result-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
}

.detail-grid dt,
.detail-grid dd {
  margin: 0;
  padding-right: 22px;
}

.detail-grid dt {
  padding-top: 22px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-grid dd {
  padding-top: 5px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  color: var(--soft);
}

.decision-panel {
  margin-top: 34px;
  padding: 24px;
  border-left: 3px solid var(--red);
  background: #08080a;
}

.decision-panel p {
  margin: 0;
  white-space: pre-wrap;
}

.evidence-note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

.site-footer .wrap {
  padding-block: 28px;
}

.site-footer p {
  margin: 0;
}

[hidden] {
  display: none !important;
}

@media (max-width: 800px) {
  .main-grid {
    grid-template-columns: 1fr;
  }

  .intro {
    position: static;
  }

  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .wrap {
    width: min(100% - 28px, 1120px);
  }

  .header-inner,
  .result-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-inner {
    justify-content: center;
    gap: 2px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .secondary {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
