:root {
  --skills-red: #d94338;
  --skills-red-soft: #fde9e7;
  --skills-ink: #101820;
  --skills-hero: #15191c;
  --skills-page: #fbfaf8;
  --skills-card: #ffffff;
  --skills-line: #dde3e5;
  --skills-copy: #536271;
}

* { box-sizing: border-box; }

body.skills-page {
  min-width: 320px;
  margin: 0;
  background: var(--skills-page);
  color: var(--skills-ink);
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

.skills-header {
  height: 64px;
  border-bottom: 1px solid #e7e8e8;
  background: #fff;
}

.skills-header .skills-shell {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.skills-logo {
  color: #17202a;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
}

.skills-logo span { color: var(--skills-red); }

.skills-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.skills-nav a {
  padding: 10px 12px;
  color: #485562;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.skills-nav a[aria-current='page'] {
  color: var(--skills-red);
  background: var(--skills-red-soft);
}

.skills-hero {
  min-height: 223px;
  padding: 71px 0 54px;
  background: var(--skills-hero);
  color: #fff;
}

.skills-hero .skills-shell { width: min(720px, calc(100% - 40px)); }

.skills-hero h1 {
  margin: 0;
  font-size: 43px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
}

.skills-hero p {
  margin: 13px 0 0;
  color: #cbd2d8;
  font-size: 16px;
  line-height: 1.7;
}

.skills-directory { min-height: 462px; padding: 58px 0 51px; }

.skills-directory h2 {
  margin: 0;
  color: #112033;
  font-size: 29px;
  line-height: 1.3;
}

.skills-directory > .skills-shell > p {
  margin: 14px 0 25px;
  color: #647181;
  font-size: 15px;
}

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

.skill-card {
  min-height: 249px;
  padding: 24px;
  border: 1px solid var(--skills-line);
  border-radius: 8px;
  background: var(--skills-card);
}

a.skill-card {
  color: inherit;
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

a.skill-card:hover {
  border-color: #e3aaa4;
  box-shadow: 0 8px 20px rgba(23, 31, 38, .08);
  transform: translateY(-1px);
}

.skill-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 7px;
  color: var(--skills-red);
  background: var(--skills-red-soft);
  font-size: 14px;
  font-weight: 800;
}

.skill-card h3 {
  margin: 27px 0 10px;
  color: #162334;
  font-size: 18px;
  line-height: 1.35;
}

.skill-card p {
  margin: 0;
  color: var(--skills-copy);
  font-size: 14px;
  line-height: 1.8;
}

.skill-link {
  display: inline-block;
  margin-top: 23px;
  color: #41556b;
  font-size: 14px;
  font-weight: 700;
}

.skill-card--placeholder {
  border-style: dashed;
  background: rgba(255, 255, 255, .56);
}

.brand-footer {
  padding: 28px 24px;
  border-top: 2px solid #e8e4df;
  background: #f5f3ee;
  color: #7a746e;
  font-size: 13px;
  text-align: center;
}

.brand-footer__identity { margin-bottom: 10px; }
.brand-footer__identity img { height: 24px; display: inline-block; margin-right: 6px; vertical-align: middle; }
.brand-footer__legal { margin-top: 8px; font-size: 11px; }

@media (max-width: 720px) {
  .skills-shell { width: min(100% - 40px, 1068px); }
  .skills-header { height: auto; min-height: 62px; }
  .skills-header .skills-shell { min-height: 62px; align-items: flex-start; flex-direction: column; gap: 5px; padding: 12px 0; }
  .skills-nav { width: 100%; gap: 4px; }
  .skills-nav a { padding: 8px 10px; }
  .skills-hero { min-height: 0; padding: 52px 0 48px; }
  .skills-hero h1 { font-size: 34px; }
  .skills-hero p { font-size: 15px; }
  .skills-directory { min-height: 0; padding: 43px 0 48px; }
  .skills-directory h2 { font-size: 26px; }
  .skills-grid { grid-template-columns: 1fr; }
  .skill-card { min-height: 0; }
}
