/* phoebe-data-skills - Steel teal outfit (flat magazine, design.md constitution) */
:root {
  --accent: #0D9488;
  --accent-dark: #0B7C72;
  --ink: #0F172A;
  --tint: #F0FDFA;
  --highlight: #38BDF8;
  --paper: #FFFFFF;
  --hairline: #E2E8F0;
  --muted: #64748B;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 17px; line-height: 1.65;
  color: var(--ink); background: var(--paper);
}
h1, h2, h3, .display { font-family: 'Poppins', 'Inter', sans-serif; font-weight: 600; line-height: 1.15; }
.num { font-variant-numeric: tabular-nums; }
a { color: var(--accent); text-decoration: none; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 28px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.brand { font-family: 'Poppins'; font-weight: 600; font-size: 17px; color: var(--ink); }
.brand b { color: var(--accent); }
.topbar nav a { font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 22px; }
.topbar nav a:hover { color: var(--accent); }

/* reading progress */
.progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--accent); width: 0; z-index: 60; }

/* ---------- hero ---------- */
.hero { padding: 84px 0 56px; }
.hero .kicker {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(38px, 6vw, 62px); letter-spacing: -.02em; }
.hero h1 .tealline { color: var(--accent); }
.hero p.lede { font-size: 20px; color: var(--muted); max-width: 620px; margin-top: 18px; }
.stats { display: flex; gap: 48px; margin-top: 44px; flex-wrap: wrap; }
.stat .n { font-family: 'Poppins'; font-size: 44px; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.stat .l { font-size: 13px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- section headers ---------- */
.section { padding: 56px 0; }
.section.tinted { background: var(--tint); }
.sec-kicker { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.sec-title { font-size: clamp(26px, 3.4vw, 36px); margin-top: 8px; letter-spacing: -.01em; }
.sec-sub { color: var(--muted); margin-top: 10px; max-width: 640px; }

/* ---------- skill card grid (homepage) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; margin-top: 36px; }
a.skill-card, .skill-card {
  display: block; position: relative; border: 1px solid var(--hairline); border-radius: 14px;
  padding: 26px 24px 22px; background: var(--paper); color: var(--ink);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
a.skill-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(13,148,136,.14); border-color: var(--accent); }
.skill-card .emoji { font-size: 30px; }
.skill-card h3 { font-size: 20px; margin-top: 12px; }
.skill-card .obj { font-size: 15px; color: var(--muted); margin-top: 6px; min-height: 44px; }
.chiprow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px;
  background: var(--tint); color: var(--accent-dark); border: 1px solid rgba(13,148,136,.25);
}
.status { position: absolute; top: 18px; right: 18px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.status.live { background: var(--accent); color: #fff; }
.status.soon { background: var(--hairline); color: var(--muted); }
.skill-card.soon { opacity: .62; }
.skill-card .go { margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--accent); }

/* ---------- pipeline rail (skill page) ---------- */
.rail { display: flex; align-items: flex-start; gap: 0; margin: 40px 0 8px; overflow-x: auto; padding-bottom: 8px; }
.rail-step { display: flex; align-items: center; flex: 1; min-width: 118px; }
.rail-node { text-align: center; flex-shrink: 0; width: 118px; }
.rail-node a { display: block; color: var(--ink); }
.rail-circle {
  width: 46px; height: 46px; border-radius: 50%; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins'; font-weight: 600; font-size: 18px;
  background: var(--tint); color: var(--accent-dark); border: 2px solid var(--accent);
  transition: background .15s, color .15s;
}
.rail-node a:hover .rail-circle, .rail-node.active .rail-circle { background: var(--accent); color: #fff; }
.rail-label { font-size: 12.5px; font-weight: 500; color: var(--muted); margin-top: 8px; }
.rail-connector { flex: 1; height: 2px; background: var(--hairline); margin-top: 23px; min-width: 14px; }

/* ---------- step sections ---------- */
.step-section { position: relative; padding: 64px 0 56px; border-top: 1px solid var(--hairline); }
.step-ghost {
  position: absolute; top: 26px; right: 0; font-family: 'Poppins'; font-weight: 600;
  font-size: clamp(90px, 14vw, 170px); line-height: 1; color: var(--tint);
  -webkit-text-stroke: 1px rgba(13,148,136,.18); user-select: none; pointer-events: none;
}
.step-tag { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.step-title { font-size: clamp(24px, 3vw, 32px); margin-top: 6px; }
.step-body { margin-top: 16px; max-width: 680px; color: var(--ink); }

/* schema table cards */
.tbl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 28px; }
.tbl-card { border: 1px solid var(--hairline); border-radius: 12px; overflow: hidden; background: var(--paper); }
.tbl-card .tbl-name { background: var(--ink); color: #fff; font-family: 'Poppins'; font-size: 14px; font-weight: 500; padding: 10px 14px; }
.tbl-card .tbl-name .cnt { color: var(--highlight); font-variant-numeric: tabular-nums; float: right; font-family: 'Inter'; }
.tbl-card ul { list-style: none; padding: 10px 14px; font-size: 13.5px; color: var(--muted); }
.tbl-card li { padding: 3px 0; }
.tbl-card li b { color: var(--ink); font-weight: 500; }

/* code blocks */
.code-card { position: relative; background: var(--ink); border-radius: 12px; margin-top: 24px; overflow: hidden; }
.code-card .code-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; background: rgba(255,255,255,.06); color: #94A3B8; font-size: 12.5px; font-family: 'Inter'; }
.code-card .copy-btn { background: var(--accent); color: #fff; border: 0; border-radius: 6px; font-size: 12px; font-weight: 600; padding: 5px 12px; cursor: pointer; }
.code-card pre { padding: 18px 20px; overflow-x: auto; color: #E2E8F0; font-size: 13.5px; line-height: 1.6; font-family: 'SF Mono', Menlo, monospace; }
.code-card .c-comment { color: #64748B; } .code-card .c-str { color: #7DD3FC; } .code-card .c-kw { color: #5EEAD4; }

/* quirk / spotlight cards */
.quirk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 26px; }
.quirk { border-left: 4px solid var(--highlight); background: var(--tint); border-radius: 0 10px 10px 0; padding: 14px 16px; }
.quirk b { font-size: 14.5px; display: block; }
.quirk span { font-size: 13px; color: var(--muted); }

/* objective banner */
.objective-banner { background: var(--ink); color: #fff; border-radius: 14px; padding: 30px 32px; margin-top: 26px; }
.objective-banner .q { font-family: 'Poppins'; font-size: clamp(19px, 2.4vw, 24px); font-weight: 500; }
.objective-banner .q em { color: var(--highlight); font-style: normal; }
.subq { list-style: none; margin-top: 22px; }
.subq li { padding: 8px 0 8px 34px; position: relative; font-size: 15px; color: #CBD5E1; border-top: 1px solid rgba(255,255,255,.08); }
.subq li::before { content: '→'; position: absolute; left: 6px; color: var(--accent); font-weight: 600; }

/* toolbox cards */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-top: 28px; }
.tool-card { border: 1px solid var(--hairline); border-radius: 12px; padding: 18px 18px 16px; background: var(--paper); }
.tool-card .t-kind { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--highlight); }
.tool-card h4 { font-size: 16px; margin-top: 6px; }
.tool-card p { font-size: 13.5px; color: var(--muted); margin-top: 6px; }

/* code-link band - one-click to the real files on GitHub */
.codelinks { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; align-items: center; }
.codelinks .cl-label { font-size: 13px; font-weight: 600; color: var(--ink); margin-right: 4px; }
a.cl-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600; padding: 9px 16px; border-radius: 8px;
  background: var(--accent); color: #fff; border: 1px solid var(--accent);
  transition: background .15s, transform .15s;
}
a.cl-btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
a.cl-btn.ghost { background: var(--paper); color: var(--accent-dark); }
a.cl-btn.ghost:hover { background: var(--tint); }
a.cl-btn .gh { font-size: 15px; }
.code-card .code-head a { color: var(--highlight); font-weight: 600; }
.code-card .code-head a:hover { text-decoration: underline; }

/* chart gallery */
.chart-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; margin-top: 28px; }
.chart-card { border: 1px solid var(--hairline); border-radius: 12px; overflow: hidden; background: var(--paper); }
.chart-card .ph { aspect-ratio: 16/10; background: repeating-linear-gradient(45deg, var(--tint), var(--tint) 12px, #fff 12px, #fff 24px); display: flex; align-items: center; justify-content: center; color: var(--accent-dark); font-size: 13px; font-weight: 500; }
.chart-card img { width: 100%; display: block; cursor: zoom-in; }
.chart-card .cap { padding: 12px 16px; font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--hairline); }
.chart-card .cap b { color: var(--ink); }

/* caught scoreboard */
.caught { margin-top: 34px; border: 1px solid var(--hairline); border-radius: 12px; overflow: hidden; }
.caught table { width: 100%; border-collapse: collapse; font-size: 14px; }
.caught th { background: var(--tint); text-align: left; padding: 10px 16px; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--accent-dark); }
.caught td { padding: 10px 16px; border-top: 1px solid var(--hairline); }
.caught .ok { color: var(--accent); font-weight: 600; }

/* mentor panel */
.mentor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 28px; }
.mentor-card { border: 1px solid var(--hairline); border-radius: 12px; padding: 20px; background: var(--paper); }
.mentor-card .m-name { font-family: 'Poppins'; font-weight: 600; font-size: 15px; }
.mentor-card .m-lens { font-size: 12px; color: var(--highlight); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.mentor-card p { font-size: 13.5px; color: var(--muted); margin-top: 10px; }
.mentor-card .m-fix { margin-top: 12px; font-size: 13px; background: var(--tint); border-radius: 8px; padding: 8px 12px; color: var(--accent-dark); }

/* install strip */
.install { background: var(--ink); color: #fff; border-radius: 16px; padding: 36px; margin: 64px 0; }
.install h3 { font-size: 22px; } .install p { color: #94A3B8; font-size: 15px; margin-top: 6px; }
.install .code-card { margin-top: 18px; background: rgba(255,255,255,.07); }

/* footer */
footer { border-top: 1px solid var(--hairline); padding: 30px 0 44px; margin-top: 40px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 14px; color: var(--muted); }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 640px) {
  .stats { gap: 28px; }
  .step-ghost { font-size: 84px; }
  .rail { justify-content: flex-start; }
}
