:root {
  --ink: #202a44;
  --muted: #63708d;
  --accent: #5258d6;
  --accent-dark: #3d43b5;
  --line: #dde2f3;
  --soft: #f3f4fc;
  --warm: #f8f7f4;
  --green: #17766c;
  --green-soft: #eaf7f4;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 9% 0%, rgba(82, 88, 214, .09), transparent 30rem),
    var(--warm);
  font-family: 'Noto Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

a { color: inherit; }

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 2rem;
  border-bottom: 1px solid rgba(221, 226, 243, .9);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px);
}

.brand,
.back-link {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-weight: 700;
  text-decoration: none;
}

.back-link {
  color: var(--accent);
  font-size: .9rem;
  font-weight: 600;
}

.back-link:hover { color: var(--accent-dark); }

main {
  width: min(100% - 2rem, 1000px);
  margin: 0 auto;
  padding: 4.5rem 0 3rem;
}

.hero {
  max-width: 820px;
  margin: 0 auto 2rem;
  text-align: center;
}

.eyebrow,
.document-kicker,
.purpose > span {
  color: var(--accent);
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hero h1 {
  margin: .35rem 0 .7rem;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: clamp(2.1rem, 5vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -.035em;
}

.hero > p {
  max-width: 700px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.05rem;
}

.access-note {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin-top: 1.35rem;
  padding: .7rem 1rem;
  border: 1px solid #cce9e4;
  border-radius: 12px;
  color: #245e58;
  background: var(--green-soft);
  text-align: left;
  font-size: .86rem;
  line-height: 1.5;
}

.access-note svg {
  flex: none;
  width: 25px;
  height: 25px;
  fill: none;
  stroke: var(--green);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skill-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
  max-width: 700px;
  margin: 2.3rem auto 1.2rem;
  padding: .4rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 18px 38px -34px rgba(30, 41, 78, .65);
}

.skill-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  min-height: 68px;
  padding: .65rem 1rem;
  border-radius: 13px;
  color: var(--muted);
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  text-decoration: none;
  transition: color .16s ease, background .16s ease, box-shadow .16s ease;
}

.skill-tab:hover { color: var(--accent); }

.skill-tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, #575ddd, #454bc2);
  box-shadow: 0 12px 25px -16px rgba(42, 48, 167, .95);
}

.skill-tab > span:last-child { display: grid; text-align: left; line-height: 1.3; }
.skill-tab b { font-size: .98rem; }
.skill-tab small { margin-top: .1rem; opacity: .76; font-size: .76rem; }

.tab-icon {
  display: grid;
  flex: none;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: var(--soft);
}

.is-active .tab-icon { background: rgba(255, 255, 255, .15); }

.tab-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skill-panel[hidden] { display: none; }

.skill-document {
  padding: clamp(1.5rem, 5vw, 3.6rem);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 25px 60px -44px rgba(30, 41, 78, .7);
}

.document-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--line);
}

.document-head h2 {
  margin: .15rem 0 0;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -.025em;
}

.skill-name {
  margin-top: .2rem;
  padding: .42rem .7rem;
  border: 1px solid #d8dcf6;
  border-radius: 999px;
  color: var(--accent-dark);
  background: var(--soft);
  font-size: .82rem;
  white-space: nowrap;
}

.purpose {
  margin: 1.65rem 0;
  padding: 1.15rem 1.3rem;
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: var(--soft);
}

.purpose p { margin: .2rem 0 0; color: #3d4865; }
.skill-document p { margin: 1.15rem 0; }

.skill-document h3 {
  margin: 2rem 0 .65rem;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: 1.22rem;
  line-height: 1.3;
}

.skill-document ul { margin: .6rem 0 1.25rem; padding-left: 1.4rem; }
.skill-document li { margin: .45rem 0; padding-left: .25rem; }
.skill-document li::marker { color: var(--accent); font-weight: 700; }

code {
  padding: .12rem .35rem;
  border-radius: 5px;
  color: #343b78;
  background: #f0f1f8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em;
  overflow-wrap: anywhere;
}

pre {
  overflow-x: auto;
  margin: .8rem 0 1.45rem;
  padding: 1.15rem 1.3rem;
  border: 1px solid #202b40;
  border-radius: 13px;
  color: #e9eef9;
  background: #0d1728;
  line-height: 1.7;
  box-shadow: 0 16px 28px -24px rgba(9, 17, 32, .8);
}

pre code { padding: 0; color: inherit; background: none; overflow-wrap: normal; }

.guardrail {
  margin: 1.8rem 0;
  padding: 1rem 1.3rem 1.1rem;
  border: 1px solid #d8dcf6;
  border-radius: 14px;
  background: linear-gradient(135deg, #f8f8fe, #f1f3fc);
}

.guardrail h3 { margin-top: 0; color: var(--accent-dark); }
.guardrail p:last-child,
.guardrail ul:last-child { margin-bottom: 0; }

.workflow-list {
  display: grid;
  gap: .75rem;
  margin: 1rem 0 1.6rem;
  padding: 0;
  list-style: none;
  counter-reset: workflow;
}

.workflow-list li {
  position: relative;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1rem;
  margin: 0;
  padding: 1rem 1rem 1rem 3.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfbfe;
  counter-increment: workflow;
}

.workflow-list li::before {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: grid;
  width: 1.65rem;
  height: 1.65rem;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  content: counter(workflow);
  font: 700 .78rem/1 'Google Sans', sans-serif;
}

.workflow-list b { font-family: 'Google Sans', 'Noto Sans', sans-serif; }
.workflow-list span { color: #4c5874; }

.page-footnote {
  max-width: 760px;
  margin: 1.4rem auto 0;
  color: var(--muted);
  text-align: center;
  font-size: .83rem;
}

@media (max-width: 680px) {
  .site-header { padding: 0 1rem; }
  main { padding-top: 2.8rem; }
  .hero { text-align: left; }
  .access-note { align-items: flex-start; }
  .skill-tabs { grid-template-columns: 1fr; }
  .skill-tab { justify-content: flex-start; }
  .document-head { display: block; }
  .skill-name { display: inline-block; margin-top: .75rem; }
  .workflow-list li { grid-template-columns: 1fr; gap: .2rem; }
}
