:root {
  --navy-950: #071827;
  --navy-900: #0b2239;
  --navy-800: #123553;
  --blue-600: #087bea;
  --ink: #10243a;
  --muted: #5f7083;
  --line: #dce5ee;
  --surface: #ffffff;
  --page: #f2f6fa;
  --shadow: 0 12px 34px rgba(16, 36, 58, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 6px;
  background: #ffffff;
  color: var(--navy-950);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 24, 39, 0.96);
  color: #ffffff;
  backdrop-filter: blur(18px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1060px, calc(100% - 40px));
  min-height: 68px;
  margin: 0 auto;
}

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

.brand-mark {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  color: #ffffff;
  font-size: 24px;
}

.brand-title {
  font-family: "Manrope", sans-serif;
  font-size: 0.91rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 6px;
  color: #d6e2ec;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
}

.nav-link .material-symbols-outlined,
.nav-brand-logo,
.linkedin-logo {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.nav-link .material-symbols-outlined {
  font-size: 18px;
}

.nav-brand-logo {
  display: block;
  object-fit: contain;
}

.linkedin-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 1;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.site-header {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 10%, rgba(8, 185, 170, 0.13), transparent 30%),
    var(--navy-950);
  color: #ffffff;
}

.site-header::after {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 92%);
  mask-image: linear-gradient(to bottom, black, transparent 92%);
  pointer-events: none;
}

.hero {
  position: relative;
  z-index: 1;
  width: min(1060px, calc(100% - 40px));
  margin: 0 auto;
  padding: 68px 0 74px;
}

.hero h1 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.35rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.hero-description {
  max-width: none;
  margin: 18px 0 0;
  color: #bdcbd8;
  font-size: clamp(0.94rem, 1.5vw, 1rem);
  white-space: nowrap;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.hero-link .material-symbols-outlined {
  font-size: 17px;
}

.library {
  width: min(1060px, calc(100% - 40px));
  margin: 0 auto;
  padding: 62px 0 76px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 25px;
}

.section-kicker {
  margin: 0 0 6px;
  color: var(--blue-600);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  letter-spacing: -0.035em;
}

.section-count {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

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

.deck-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, auto);
  gap: 34px;
  overflow: hidden;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 3px 12px rgba(16, 36, 58, 0.03);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.deck-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--blue-600);
  content: "";
}

.deck-card:hover {
  border-color: #c5d5e4;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card-content {
  min-width: 0;
}

.card-labels {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 11px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef7ff;
  color: #235a89;
  font-size: 0.68rem;
  font-weight: 700;
}

.deck-card h3 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  letter-spacing: -0.022em;
  line-height: 1.35;
}

.deck-card h3 a {
  text-decoration: none;
}

.deck-card h3 a::after {
  position: absolute;
  inset: 0;
  content: "";
}

.deck-card h3 a:focus-visible::after {
  border: 3px solid var(--blue-600);
  border-radius: 8px;
}

.deck-description {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 15px 0 0;
  padding: 0;
}

.metadata div {
  display: flex;
  gap: 7px;
  font-size: 0.74rem;
}

.metadata dt {
  color: #7a8998;
  font-weight: 600;
}

.metadata dd {
  margin: 0;
  color: #354a5f;
  font-weight: 700;
}

.card-actions {
  position: relative;
  z-index: 1;
  align-self: stretch;
  justify-self: center;
  min-width: 170px;
}

.card-actions > .button.primary {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  transform: translate(-50%, -50%);
}

.external-links {
  position: absolute;
  top: calc(50% + 27px);
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  gap: 8px;
  transform: translateX(-50%);
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--navy-800);
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.icon-button:hover {
  border-color: #b8c9d9;
  background: #f7fafc;
}

.icon-button .material-symbols-outlined {
  font-size: 19px;
}

.icon-button.external {
  border-color: #c7def5;
  background: #f1f7fe;
  color: #086fcf;
}

.icon-button.external:hover {
  border-color: #086fcf;
  background: #086fcf;
  color: #ffffff;
}

.icon-button.youtube {
  border-color: #ffd1d1;
  background: #fff5f5;
  color: #ff0000;
}

.icon-button.youtube:hover {
  border-color: #ff0000;
  background: #ff0000;
  color: #ffffff;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.button .material-symbols-outlined {
  font-size: 16px;
}

.button.primary {
  background: var(--navy-900);
  color: #ffffff;
}

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

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1060px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

footer p {
  margin: 0;
}

footer a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  text-decoration: none;
}

footer .material-symbols-outlined {
  font-size: 16px;
}

a:focus-visible {
  outline: 3px solid #55c9ff;
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .hero-description {
    white-space: normal;
  }
}

@media (max-width: 720px) {
  .nav-inner,
  .hero,
  .library,
  footer {
    width: min(100% - 28px, 1060px);
  }

  .nav-inner {
    min-height: 62px;
  }

  .nav-label {
    display: none;
  }

  .brand-mark {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
    font-size: 22px;
  }

  .brand {
    gap: 8px;
  }

  .brand-title {
    font-size: 0.66rem;
  }

  .nav-links {
    gap: 2px;
  }

  .nav-link {
    padding: 7px;
  }

  .hero {
    padding: 52px 0 58px;
  }

  .library {
    padding: 46px 0 58px;
  }

  .section-heading {
    align-items: start;
  }

  .section-count {
    padding-top: 8px;
  }

  .deck-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 21px 20px;
  }

  .card-actions {
    display: flex;
    position: relative;
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    width: min(100%, 240px);
    min-width: 0;
  }

  .card-actions > .button.primary {
    position: static;
    width: auto;
    transform: none;
  }

  .external-links {
    position: static;
    width: auto;
    transform: none;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
