/* Claude Code Mastery — resources site
   Direction: clean SaaS / workflows.io. Quiet, typographic, pure white.
   Color rule: PURE #FFFFFF background, cool grays only. Never cream/tan. */

:root {
  --bg: #FFFFFF;
  --ink: #0B0B0C;
  --ink-soft: #2A2A2E;
  --muted: #61656E;
  --faint: #9AA0AA;
  --line: #E8E8EB;
  --line-soft: #F0F0F2;
  --surface: #FAFAFA;
  --code-bg: #F6F7F8;
  --chip: #EEF1F4;
  --chip-ink: #475569;
  --radius: 12px;
  --radius-sm: 7px;
  --maxw: 1040px;
  --pad: 24px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
  font-weight: 600;
}

p { margin: 0 0 1.1em; }
a { color: inherit; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}
.brand {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand .dot { color: var(--faint); font-weight: 400; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.cta {
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 7px 15px;
  border-radius: var(--radius-sm);
}
.nav-links a.cta:hover { border-color: var(--ink); }

/* ---------- shared bits ---------- */
.eyebrow {
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--faint);
  margin: 0 0 18px;
}
.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 46ch; }
.muted { color: var(--muted); }

.btn {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.97rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(11,11,12,.16); }
.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  padding: 13px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.97rem;
  transition: border-color .15s ease;
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.pill {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

/* placeholder marker — obvious to the editor, still tidy on the page */
.fill {
  background: var(--chip);
  color: var(--chip-ink);
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 0.92em;
  font-weight: 500;
  white-space: nowrap;
}

hr.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- hero ---------- */
.hero { padding: 88px 0 64px; }
.hero h1 { font-size: clamp(2.5rem, 6.2vw, 4.1rem); font-weight: 600; max-width: 16ch; }
.hero .lead { margin-top: 22px; }
.hero .btn-row { margin-top: 34px; }
.hero .pill { margin-top: 30px; }

/* ---------- section ---------- */
.section { padding: 72px 0; }
.section-head { max-width: 52ch; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.3rem); }
.section-head p { margin-top: 14px; color: var(--muted); }

/* ---------- arc cards ---------- */
.arc { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 28px 26px;
  background: var(--bg);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--ink); transform: translateY(-2px); }
.card .num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--faint);
}
.card h3 { font-size: 1.22rem; margin: 14px 0 10px; }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.card .who { display: inline-block; margin-top: 16px; font-size: 0.82rem; color: var(--faint); font-weight: 500; }

/* ---------- two-up ---------- */
.twoup { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  background: var(--surface);
}
.panel h3 { font-size: 1.15rem; margin-bottom: 10px; }
.panel p { color: var(--muted); font-size: 0.97rem; margin-bottom: 16px; }
.panel a.inline { color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- bring list ---------- */
.bring { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.bring li {
  display: flex;
  gap: 16px;
  padding: 18px 2px;
  border-top: 1px solid var(--line-soft);
  align-items: baseline;
}
.bring li:first-child { border-top: 0; }
.bring .k { font-weight: 600; min-width: 168px; }
.bring .v { color: var(--muted); font-size: 0.97rem; }

/* ---------- setup steps ---------- */
.steps { counter-reset: step; display: grid; gap: 4px; margin: 0; padding: 0; }
.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 20px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.step:first-of-type { border-top: 0; }
.step .badge {
  counter-increment: step;
  width: 36px; height: 36px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
}
.step .badge::before { content: counter(step); }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--ink-soft); margin-bottom: 12px; }
.step .opt { color: var(--faint); font-weight: 500; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; }

/* code + callouts */
code, pre, kbd {
  font-family: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
}
code.in { background: var(--code-bg); border: 1px solid var(--line); border-radius: 5px; padding: 2px 7px; }
pre {
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 16px 18px;
  overflow-x: auto;
  line-height: 1.5;
  margin: 0 0 14px;
}
pre code { background: none; border: 0; padding: 0; }

.note {
  border-left: 3px solid var(--ink);
  background: var(--surface);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 0 0 14px;
  font-size: 0.96rem;
  color: var(--ink-soft);
}
.note strong { font-weight: 600; }

.gate {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  background: var(--surface);
  margin-bottom: 40px;
}
.gate .eyebrow { margin-bottom: 12px; color: var(--ink); }

/* table */
table.tbl { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
table.tbl th, table.tbl td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.tbl th { font-weight: 600; color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
table.tbl td:first-child { color: var(--ink); width: 42%; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 48px 0 64px; margin-top: 40px; }
.footer .help { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.footer h3 { font-size: 1.1rem; margin-bottom: 8px; }
.footer p { color: var(--muted); font-size: 0.95rem; max-width: 52ch; margin: 0; }
.footer .meta { color: var(--faint); font-size: 0.85rem; margin-top: 40px; }

.backlink { display: inline-block; margin: 40px 0 0; color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.92rem; }
.backlink:hover { color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .arc, .twoup { grid-template-columns: 1fr; }
  .nav-links { gap: 16px; }
  .nav-links a:not(.cta) { display: none; }
  .footer .help { flex-direction: column; }
  .bring .k { min-width: 0; }
  .bring li { flex-direction: column; gap: 4px; }
  .step { grid-template-columns: 1fr; gap: 12px; }
  .step .badge { display: none; }
}
