:root {
  --paper: #f4f4ef;
  --paper-deep: #e8e9e2;
  --card: rgba(255, 255, 252, 0.9);
  --ink: #172126;
  --muted: #657077;
  --line: rgba(23, 33, 38, 0.12);
  --blue: #446de0;
  --blue-soft: #e8edff;
  --teal: #168d83;
  --teal-soft: #dff3ef;
  --orange: #e08a43;
  --shadow: 0 22px 60px rgba(32, 46, 54, 0.1);
  color-scheme: light;
  font-family: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--paper); scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(68, 109, 224, 0.11), transparent 28rem),
    radial-gradient(circle at 88% 92%, rgba(22, 141, 131, 0.1), transparent 30rem),
    var(--paper);
}

a { color: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  color: white;
  background: var(--ink);
  font-weight: 760;
  font-size: 11px;
  letter-spacing: -0.04em;
  box-shadow: 0 9px 24px rgba(23, 33, 38, 0.16);
}

.brand__copy { display: grid; gap: 1px; }
.brand__copy strong { font-size: 0.95rem; letter-spacing: -0.02em; }
.brand__copy span { color: var(--muted); font-size: 0.75rem; }

.header-link, .back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 160ms ease, transform 160ms ease;
}

.header-link:hover, .back-link:hover { color: var(--ink); transform: translateX(-2px); }

.page-main { padding: clamp(56px, 9vw, 112px) 0 72px; }

.intro {
  display: grid;
  max-width: 790px;
  gap: 22px;
  margin-bottom: clamp(40px, 6vw, 68px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before { width: 28px; height: 2px; content: ""; border-radius: 99px; background: currentColor; }

h1 {
  max-width: 890px;
  margin: 0;
  font-size: clamp(2.65rem, 7vw, 5.9rem);
  font-weight: 680;
  letter-spacing: -0.07em;
  line-height: 0.96;
}

.intro__lead {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 2vw, 1.24rem);
  line-height: 1.65;
}

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

.intro__action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--blue);
  border-radius: 13px;
  color: #fff;
  background: var(--blue);
  font-size: 0.9rem;
  font-weight: 720;
  text-decoration: none;
  transition: filter 160ms ease, transform 160ms ease;
}

.intro__action:hover { filter: brightness(0.95); transform: translateY(-2px); }

.intro__action--secondary {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
}

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

.card {
  position: relative;
  display: flex;
  min-height: 340px;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.card::before {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 5px;
  content: "";
  background: var(--accent, var(--blue));
}

.card::after {
  position: absolute;
  z-index: -1;
  right: -74px;
  bottom: -100px;
  width: 270px;
  height: 270px;
  border: 1px solid color-mix(in srgb, var(--accent, var(--blue)) 24%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 0 34px color-mix(in srgb, var(--accent, var(--blue)) 5%, transparent), 0 0 0 72px color-mix(in srgb, var(--accent, var(--blue)) 4%, transparent);
}

.card--teal { --accent: var(--teal); }
.card--orange { --accent: var(--orange); }

.card__icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 30px;
  place-items: center;
  border-radius: 16px;
  color: var(--accent, var(--blue));
  background: color-mix(in srgb, var(--accent, var(--blue)) 11%, white);
}

.card__icon svg { width: 27px; height: 27px; }

.card h2 { margin: 0; font-size: clamp(1.75rem, 4vw, 2.5rem); letter-spacing: -0.045em; line-height: 1.05; }
.card p { max-width: 520px; margin: 14px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.58; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 30px; }
.tag { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.64); color: #526067; font-size: 0.76rem; font-weight: 650; }

.card__action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  gap: 16px;
  margin-top: auto;
  padding: 0 18px;
  border-radius: 14px;
  color: white;
  background: var(--accent, var(--blue));
  font-size: 0.93rem;
  font-weight: 720;
  text-decoration: none;
  transition: filter 160ms ease, transform 160ms ease;
}

.card__action:hover { filter: brightness(0.95); transform: translateY(-2px); }
.card__action svg { width: 18px; height: 18px; }

.subject-card { min-height: 390px; }
.subject-card h2 { font-size: clamp(2.3rem, 6vw, 4.3rem); }

.note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  max-width: 760px;
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.48);
  font-size: 0.84rem;
  line-height: 1.5;
}

.note svg { width: 18px; min-width: 18px; margin-top: 1px; color: var(--teal); }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
}

:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 45%, transparent); outline-offset: 3px; }

@media (max-width: 720px) {
  .site-shell { width: min(100% - 24px, 1180px); }
  .site-header { min-height: 66px; }
  .brand__copy span { display: none; }
  .page-main { padding-top: 44px; }
  .grid { grid-template-columns: 1fr; }
  .card, .subject-card { min-height: 320px; padding: 26px; border-radius: 20px; }
  .card__icon { margin-bottom: 24px; }
  .site-footer { flex-direction: column; gap: 8px; }
}

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