:root {
  color-scheme: light;
  --bg: #f4fbff;
  --bg-soft: #e8f7ff;
  --surface: #ffffff;
  --surface-blue: #f0f9ff;
  --line: #b7e3f7;
  --line-strong: #6ec6e9;
  --text: #153243;
  --muted: #536b7a;
  --brand: #0284c7;
  --brand-dark: #075985;
  --accent: #00a6d6;
  --ok: #0f766e;
  --shadow: 0 18px 45px rgba(14, 116, 144, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(180deg, #e8f7ff 0%, #f8fdff 42%, #ffffff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", "Segoe UI", sans-serif;
  line-height: 1.7;
}

a {
  color: var(--brand-dark);
  text-decoration-color: rgba(2, 132, 199, 0.35);
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--brand);
  text-decoration-color: currentColor;
}

.site-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  padding: 28px 0 16px;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: linear-gradient(145deg, #ffffff 0%, #d9f2ff 100%);
  color: var(--brand-dark);
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.15);
  font-weight: 900;
}

.nav-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--brand-dark);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover {
  background: rgba(186, 230, 253, 0.55);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 28px;
  align-items: end;
  padding: 48px 0 34px;
}

.hero > div:only-child {
  grid-column: 1 / -1;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand-dark);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.35rem, 7vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  padding: 22px;
}

.hero-panel h2 {
  margin: 0 0 12px;
  font-size: 1.08rem;
}

.status-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.status-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #d8eef8;
}

.status-list li:last-child {
  border-bottom: 0;
}

.badge {
  align-self: center;
  padding: 2px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--brand-dark);
  background: #e0f2fe;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

main {
  padding-bottom: 56px;
}

.section {
  padding: 34px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

h2 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.3;
  letter-spacing: 0;
}

.section-note {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.year-grid,
.material-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.year-card,
.material-card,
.notice {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(14, 116, 144, 0.08);
}

.year-card,
.material-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 184px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
}

.year-card:hover,
.material-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.card-kicker {
  color: var(--brand);
  font-size: 0.86rem;
  font-weight: 900;
}

.card-title {
  margin: 0;
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.3;
}

.card-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.pill {
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--surface-blue);
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.notice {
  padding: 18px 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
}

.notice h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.notice p {
  margin: 0;
  color: var(--muted);
}

.link-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-list a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.link-list a span {
  color: var(--muted);
  font-weight: 700;
}

.link-list a:hover {
  border-color: var(--line-strong);
  background: var(--surface-blue);
}

.resource-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.resource-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(14, 116, 144, 0.06);
}

.resource-title {
  color: var(--text);
  font-weight: 800;
}

.resource-meta {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.resource-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.resource-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.resource-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface-blue);
  color: var(--brand-dark);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.resource-actions a:hover {
  background: #e0f2fe;
  border-color: var(--brand);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 34px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.register-form {
  display: grid;
  gap: 16px;
  max-width: 760px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(14, 116, 144, 0.08);
}

.register-form label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-weight: 800;
}

.register-form input,
.register-form select,
.register-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
}

.register-form input,
.register-form select {
  min-height: 44px;
  padding: 8px 11px;
}

.register-form textarea {
  resize: vertical;
  padding: 10px 11px;
}

.register-form input:focus,
.register-form select:focus,
.register-form textarea:focus {
  border-color: var(--brand);
  outline: 3px solid rgba(2, 132, 199, 0.16);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.primary-button {
  justify-self: start;
  min-height: 44px;
  padding: 9px 18px;
  border: 1px solid var(--brand-dark);
  border-radius: 8px;
  background: var(--brand-dark);
  color: #ffffff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.primary-button:hover {
  background: var(--brand);
}

.form-message {
  min-height: 1.6em;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.form-message[data-tone="success"] {
  color: var(--ok);
}

.form-message[data-tone="error"] {
  color: #b91c1c;
}

@media (max-width: 760px) {
  .top-nav,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .year-grid,
  .material-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 30px;
  }

  .nav-links {
    width: 100%;
  }

  .nav-links a {
    padding-left: 0;
  }

  .resource-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .resource-actions {
    justify-content: flex-start;
  }

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