:root {
  --color-bg: #f5f5f5;
  --color-card: #ffffff;
  --color-text: #1f2933;
  --color-muted: #617481;
  --color-accent: #1f5f8b;
  --max-width: 1280px;
  font-size: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #101720;
    --color-card: #162130;
    --color-text: #f0f4f8;
    --color-muted: #8fa6b4;
    --color-accent: #53a6ff;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

.site-header {
  background: var(--color-card);
  border-bottom: 1px solid rgba(97, 116, 129, 0.25);
  padding: 1.5rem 1rem;
}

.site-header .branding h1 {
  margin: 0;
  font-size: 1.75rem;
}

.site-header .branding p {
  margin: 0.35rem 0 0;
  color: var(--color-muted);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 0.75rem;
  margin: 1rem 0 0;
  padding: 0;
}

.site-nav a {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  border-radius: 0.5rem;
  background: rgba(31, 95, 139, 0.12);
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a[aria-current="page"] {
  background: var(--color-accent);
  color: #fff;
}

.site-nav a:hover,
.site-nav a:focus {
  background: rgba(31, 95, 139, 0.2);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1rem 4rem;
}

.hero {
  background: linear-gradient(135deg, rgba(31, 95, 139, 0.85), rgba(49, 130, 206, 0.75));
  border-radius: 1.2rem;
  color: #fff;
  padding: 3rem;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.15), transparent 55%);
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
}

.hero p {
  max-width: 640px;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: #fff;
  color: var(--color-accent);
  font-weight: 600;
  margin-top: 1.5rem;
}

.overview,
.tasks-summary,
.submission-info {
  background: var(--color-card);
  border-radius: 1rem;
  padding: 2.25rem;
  margin-bottom: 2rem;
  box-shadow: 0 20px 40px -35px rgba(15, 23, 42, 0.45);
}

.reference-list {
  margin: 0;
  padding-left: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.reference-link {
  display: inline-block;
  color: var(--color-text);
  text-decoration: none;
  line-height: 1.65;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.reference-link:hover,
.reference-link:focus {
  color: var(--color-accent);
  text-decoration: underline;
}

.tasks-summary article + article {
  margin-top: 1.25rem;
  border-top: 1px solid rgba(97, 116, 129, 0.2);
  padding-top: 1.25rem;
}

.tasks-summary h4 {
  margin: 0 0 0.5rem;
}

.submission-info ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.ki-table-wrapper {
  margin-top: 1.25rem;
  overflow-x: auto;
}

.ki-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid rgba(97, 116, 129, 0.25);
}

.ki-table th,
.ki-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(97, 116, 129, 0.2);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.ki-table th {
  background: rgba(31, 95, 139, 0.08);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--color-muted);
}

.ki-table td strong {
  display: block;
}

.ki-table tbody tr:last-child td {
  border-bottom: none;
}

.meta {
  font-weight: 600;
}

.site-footer {
  background: var(--color-card);
  border-top: 1px solid rgba(97, 116, 129, 0.25);
  text-align: center;
  padding: 2rem 1rem;
}

@media (max-width: 640px) {
  .hero {
    padding: 2.25rem 1.5rem;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
  }
}
