:root {
  color-scheme: light;
  --bg: #f7f9fc;
  --bg-accent: #ffffff;
  --panel: rgba(255, 255, 255, 0.96);
  --text: #1d232e;
  --muted: #5d6675;
  --line: rgba(0, 83, 155, 0.14);
  --accent: #e2001a;
  --accent-dark: #b60016;
  --accent-blue: #00539b;
  --success: #1d6a4f;
  --error: #b00020;
  --shadow: 0 18px 45px rgba(226, 0, 26, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(0, 83, 155, 0.26), transparent 30%),
    radial-gradient(circle at top right, rgba(226, 0, 26, 0.12), transparent 24%),
    linear-gradient(135deg, #edf5fd 0%, #d9e8f7 52%, #c7ddf1 100%);
}

.page {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

h1,
h2,
p,
dl {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.75rem;
  font-size: clamp(2.2rem, 5vw, 4.1rem);
  line-height: 0.96;
}

.lede {
  max-width: 42rem;
  font-size: 1.08rem;
  color: var(--muted);
}

.panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.2rem 1.25rem;
  background: var(--panel);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.summary dl,
.case-card dl {
  margin: 0;
}

.summary dl div,
.case-card dl div {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
}

.summary dl div:last-child,
.case-card dl div:last-child {
  border-bottom: 0;
}

dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

dd {
  margin: 0.18rem 0 0;
  font-size: 0.98rem;
  word-break: break-word;
}

.link-button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  min-height: 2.9rem;
  padding: 0.8rem 1.05rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
  box-shadow: 0 10px 24px rgba(226, 0, 26, 0.22);
}

button:hover,
.link-button:hover {
  transform: translateY(-1px);
}

button:focus-visible,
.link-button:focus-visible {
  outline: 3px solid rgba(0, 83, 155, 0.28);
  outline-offset: 3px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
}

.messages {
  margin-top: 1.4rem;
  display: grid;
  gap: 0.7rem;
}

.message {
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
}

.message.success {
  border-color: rgba(29, 106, 79, 0.28);
  color: var(--success);
}

.message.error {
  border-color: rgba(156, 47, 36, 0.28);
  color: var(--error);
}

.guidance {
  margin-top: 1.4rem;
}

.cards {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.case-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 19rem;
}

.case-key {
  margin-bottom: 0.5rem;
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.summary h2,
.guidance h2,
.case-card h2 {
  color: var(--accent-blue);
}

.case-text p:last-child {
  color: var(--muted);
}

code {
  font-family: "SFMono-Regular", Menlo, monospace;
  font-size: 0.92em;
}

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

  .page {
    width: min(100% - 1rem, 1120px);
    padding-top: 1rem;
  }
}
