:root {
  --navy: #0b1f45;
  --navy-soft: #183866;
  --red: #c8102e;
  --paper: #f7f5f1;
  --white: #fff;
  --ink: #101b31;
  --muted: #5d6879;
  --line: #d9dde5;
  --blue-wash: #e9eef7;
  --code: #081933;
  --shadow: 0 28px 70px rgba(11, 31, 69, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
}

.announcement {
  min-height: 34px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-align: center;
}

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--navy);
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--navy);
  box-shadow: 4px 4px 0 var(--red);
  color: #fff;
  font-family: Geist, sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.brand b,
.brand small { display: block; }
.brand b { font-family: Geist, sans-serif; font-size: 16px; letter-spacing: -0.04em; }
.brand small {
  margin-top: 2px;
  color: var(--red);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.back-link {
  min-height: 44px;
  padding: 10px 15px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.skill-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(34px, 6vw, 76px);
  padding: clamp(48px, 7vw, 84px);
  border-radius: 32px;
  background: radial-gradient(circle at 86% 15%, rgba(200, 16, 46, 0.2), transparent 26%), linear-gradient(135deg, #081933, #0b1f45 55%, #15366d);
  box-shadow: var(--shadow);
  color: #fff;
}

.eyebrow {
  margin: 0 0 15px;
  color: #ff9baa;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

h1,
h2,
h3,
h4 { font-family: Geist, sans-serif; letter-spacing: -0.045em; }
h1 { margin: 0; font-size: clamp(46px, 7vw, 82px); line-height: 0.96; }
.lede { max-width: 720px; margin: 25px 0 0; color: #dce6f6; font-size: 17px; line-height: 1.7; }

.actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 29px; }
.button {
  min-height: 49px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 13px;
  font: 800 13px Inter, sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.button.primary { background: var(--red); color: #fff; }
.button.secondary { border-color: rgba(255, 255, 255, 0.38); background: rgba(255, 255, 255, 0.08); color: #fff; }

.skill-card {
  align-self: stretch;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(10px);
}
.skill-card > span,
.reference-list > span { display: block; color: #ff9baa; font-size: 9px; font-weight: 900; letter-spacing: 0.15em; }
.skill-card > b { display: block; margin-top: 9px; font: 700 22px/1.3 Geist, sans-serif; letter-spacing: -0.04em; }
.skill-card hr { margin: 25px 0; border: 0; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.skill-card ul { margin: 10px 0 0; padding-left: 20px; color: #e4ebf7; line-height: 1.9; }
.reference-list { margin-top: 24px; }
.reference-list a {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.reference-list i { color: #ff9baa; font-style: normal; }

.skill-document {
  width: min(860px, 100%);
  margin: 72px auto 96px;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(11, 31, 69, 0.08);
}
.skill-document h1 { font-size: clamp(38px, 6vw, 57px); color: var(--navy); }
.skill-document h2 { margin: 2.4em 0 0.65em; padding-top: 0.7em; border-top: 1px solid var(--line); color: var(--navy); font-size: clamp(29px, 4vw, 39px); }
.skill-document h3 { margin: 1.8em 0 0.55em; color: var(--navy-soft); font-size: 24px; }
.skill-document h4 { margin: 1.5em 0 0.5em; font-size: 18px; }
.skill-document p,
.skill-document li { color: #344056; font-size: 16px; line-height: 1.78; }
.skill-document li + li { margin-top: 6px; }
.skill-document a { color: var(--red); font-weight: 700; text-underline-offset: 3px; }
.skill-document blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--red); }
.skill-document pre {
  max-width: 100%;
  padding: 20px;
  overflow-x: auto;
  border-radius: 14px;
  background: var(--code);
  color: #ecf3ff;
  font: 13px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.skill-document code:not(pre code) { padding: 0.15em 0.38em; border-radius: 5px; background: var(--blue-wash); font-size: 0.88em; }
.skill-document table { width: 100%; margin: 24px 0; border-collapse: collapse; font-size: 14px; }
.skill-document th,
.skill-document td { padding: 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.skill-document th { background: var(--blue-wash); color: var(--navy); }

footer {
  min-height: 120px;
  padding: 30px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
footer a { color: var(--navy); font-weight: 800; text-decoration: none; }

button:focus-visible,
a:focus-visible { outline: 3px solid #ff3f5f; outline-offset: 3px; }

@media (max-width: 820px) {
  .skill-hero { grid-template-columns: 1fr; padding: 42px 24px; border-radius: 24px; }
  .skill-card { padding: 23px; }
}

@media (max-width: 560px) {
  .site-header, main, footer { width: min(100% - 28px, 1180px); }
  .site-header { min-height: 74px; }
  .back-link { width: 44px; padding: 0; justify-content: center; font-size: 0; }
  .back-link span { font-size: 17px; }
  h1 { font-size: clamp(42px, 15vw, 60px); }
  .actions { flex-direction: column; }
  .button { width: 100%; }
  .skill-document { margin-top: 38px; padding: 25px 20px; border-radius: 18px; }
  .skill-document pre { margin-inline: -8px; padding: 15px; font-size: 11px; }
  .skill-document table { display: block; overflow-x: auto; }
  footer { align-items: flex-start; flex-direction: column; }
}

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