:root {
  --bg: oklch(0.965 0.012 250);
  --ink: oklch(0.18 0.035 255);
  --muted: oklch(0.39 0.035 255);
  --line: oklch(0.83 0.025 250);
  --panel: oklch(0.995 0.004 250);
  --pink: oklch(0.72 0.18 350);
  --lime: oklch(0.82 0.18 132);
  --blue: oklch(0.67 0.16 240);
  --yellow: oklch(0.88 0.16 90);
  --purple: oklch(0.58 0.19 300);
  --shadow: 0 8px 0 oklch(0.2 0.035 255);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Trebuchet MS", "Aptos", sans-serif;
  background:
    radial-gradient(circle at 12% 18%, oklch(0.91 0.12 90 / 0.75), transparent 24rem),
    radial-gradient(circle at 84% 10%, oklch(0.82 0.14 350 / 0.58), transparent 28rem),
    linear-gradient(135deg, oklch(0.98 0.012 240), oklch(0.94 0.03 170));
}

a {
  color: inherit;
}

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--ink);
  background: var(--lime);
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: 3px 3px 0 var(--ink);
}

.nav-link {
  font-weight: 800;
  text-decoration: none;
  text-underline-offset: 5px;
}

.nav-link:hover {
  text-decoration: underline;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
  min-height: 420px;
  padding: clamp(16px, 3vw, 36px) 0 clamp(28px, 5vw, 58px);
}

.hero h1,
.detail-hero h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 5.9rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero p,
.detail-hero p {
  max-width: 66ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  line-height: 1.65;
  text-wrap: pretty;
}

.hero-note {
  position: relative;
  padding: 22px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 16px;
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

.hero-note strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.hero-note span {
  color: oklch(0.29 0.04 255);
  line-height: 1.55;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 3rem);
  letter-spacing: -0.02em;
}

.section-head p {
  max-width: 36ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.scholarship-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding-bottom: 64px;
}

.scholarship-card {
  display: flex;
  min-height: 355px;
  flex-direction: column;
  padding: 22px;
  background: var(--panel);
  border: 2px solid var(--ink);
  border-radius: 16px;
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.scholarship-card:nth-child(2n) {
  background: oklch(0.96 0.05 132);
}

.scholarship-card:nth-child(3n) {
  background: oklch(0.96 0.045 350);
}

.scholarship-card:hover {
  transform: translate(-2px, -3px);
  box-shadow: 10px 10px 0 var(--ink);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  font-size: 0.85rem;
  font-weight: 900;
  background: white;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
}

.scholarship-card h3 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.card-copy {
  margin: 14px 0 18px;
  color: var(--muted);
  line-height: 1.55;
}

.facts {
  display: grid;
  gap: 8px;
  margin: auto 0 18px;
}

.fact {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid oklch(0.3 0.03 255 / 0.22);
}

.fact span:first-child {
  color: var(--muted);
}

.fact span:last-child {
  font-weight: 900;
  text-align: right;
}

.read-more,
.apply-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
  background: var(--lime);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--ink);
}

.read-more:hover,
.apply-link:hover {
  transform: translate(-1px, -1px);
}

.detail-hero {
  padding: clamp(28px, 6vw, 72px) 0 28px;
}

.detail-hero h1 {
  max-width: 980px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
  padding-bottom: 64px;
}

.detail-panel,
.summary-panel {
  background: var(--panel);
  border: 2px solid var(--ink);
  border-radius: 16px;
}

.detail-panel {
  overflow: hidden;
}

.detail-section {
  padding: clamp(22px, 4vw, 34px);
  border-bottom: 2px solid var(--ink);
}

.detail-section:last-child {
  border-bottom: 0;
}

.detail-section h2,
.summary-panel h2 {
  margin: 0 0 14px;
  font-size: clamp(1.3rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}

.detail-section p,
.detail-section li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.detail-section ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: clamp(22px, 4vw, 34px);
  background: oklch(0.96 0.05 132);
}

.detail-actions p {
  flex: 1 1 260px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.summary-panel {
  position: sticky;
  top: 18px;
  padding: 22px;
  background: var(--yellow);
  box-shadow: var(--shadow);
}

.summary-list {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.summary-item {
  padding-bottom: 12px;
  border-bottom: 1.5px solid oklch(0.24 0.035 255 / 0.32);
}

.summary-item span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.summary-item strong {
  display: block;
  margin-top: 4px;
}

.footer {
  padding: 28px 0 40px;
  color: var(--muted);
  border-top: 2px solid oklch(0.3 0.03 255 / 0.18);
}

.footer-disclaimer {
  font-size: 0.85rem;
  line-height: 1.5;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid oklch(0.3 0.03 255 / 0.12);
  color: oklch(0.45 0.03 255);
}

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

  .hero-note {
    transform: none;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .summary-panel {
    position: static;
    order: -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
