/* skill.css - the skill-page archetype
 *
 * Loaded after site.css by docs/skills/*.html: the wide shell, the denser type
 * scale, and the skill-page components (terminal block, plain-ask, card grid,
 * link rows, tables).
 *
 * Before extraction the skill pages carried two drifted copies of this CSS: 43
 * pages had table styles, 27 had hero-grid, link-row and star-button styles.
 * This file is their union. That is safe because each of those rule sets is
 * only reachable from markup that already shipped with its own copy, so no
 * page gains a style it did not already have.
 */

html { -webkit-text-size-adjust: 100%; }
.shell { width: min(1100px, 100%); margin: 0 auto; padding: 0 40px; }
.nav-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 18px; min-height: 64px; padding-top: 8px; padding-bottom: 8px; }
h1 {
  font-size: clamp(42px, 6vw, 76px); font-weight: 800;
  letter-spacing: -0.04em; line-height: 1.0; max-width: 920px;
  margin-bottom: 22px;
}
h2 {
  font-size: clamp(24px, 3vw, 34px); font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 14px;
}
h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
p, li { color: var(--muted); }
p { margin-bottom: 12px; }
.lead { max-width: 780px; font-size: 18px; line-height: 1.7; margin-bottom: 24px; }
main a:not(.button):not(.link-row) { color: var(--gold); border-bottom: 1px solid rgba(200, 169, 110, 0.3); transition: border-color 0.15s; }
main a:not(.button):not(.link-row):hover { border-bottom-color: var(--gold); }
code { font-family: var(--mono); font-size: 0.9em; color: var(--gold); }
ul { list-style: none; margin-bottom: 12px; }
li { padding-left: 18px; position: relative; margin-bottom: 8px; font-size: 14.5px; line-height: 1.6; }
li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 1px; background: var(--gold); }
table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 13.5px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
th { color: var(--cream); font-weight: 700; }
td { color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 6px; margin-top: 20px; }
.table-wrap table { margin: 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.6fr); gap: 40px; align-items: center; }
.hero-grid img { width: 100%; border: 1px solid var(--border); border-radius: 6px; background: var(--card); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; margin-top: 28px; }
.grid .card { border: none; border-radius: 0; margin: 0; border-top: 1px solid var(--hairline); }
.grid .card:first-child { border-top: none; }
.card, .panel {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card);
  padding: 28px;
}
.button.star { border-color: var(--gold) !important; background: rgba(200, 169, 110, 0.08); }
.button.star:hover { background: rgba(200, 169, 110, 0.18); }
.links { display: grid; gap: 0; border-top: 1px solid var(--border); margin-top: 20px; }
.link-row {
  display: grid;
  grid-template-columns: minmax(200px, 0.4fr) minmax(0, 1fr);
  gap: 20px;
  border-bottom: 1px solid var(--hairline);
  padding: 14px 0;
  transition: background 0.15s;
}
a.link-row:hover { background: var(--surface); }
.link-row b { font-family: var(--mono); font-size: 14px; font-weight: 500; color: var(--gold); word-break: break-word; }
.link-row span { font-size: 14.5px; color: var(--muted); overflow-wrap: anywhere; }
section { margin-top: 56px; }
.ship-strip { background: var(--gold); color: #171310; padding: 64px 0; }
.ship-strip-row code {
  font-family: var(--mono); font-size: 16px; font-weight: 600;
  color: #f0ece4; background: #171310;
  border-radius: 4px; padding: 13px 20px;
}
.ship-strip-row code .prompt { color: var(--gold); user-select: none; }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .shell { padding: 0 24px; }
  main { padding: 56px 0 72px; }
  .link-row { grid-template-columns: 1fr; row-gap: 4px; }
  .ship-strip { padding: 48px 0; }
  .ship-strip-row code { font-size: 14px; width: 100%; overflow-x: auto; }
}
.plain-ask {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px;
  margin: 4px 0 34px; padding: 14px 18px;
  border: 1px solid var(--hairline);
  border-radius: 4px; background: var(--surface);
}
.plain-ask-quote { font-style: italic; color: #b5b0a6; font-size: 15px; }
.plain-ask-arrow { font-family: var(--mono); color: var(--muted); font-size: 13px; }
.plain-ask-cmd { font-size: 14px; font-weight: 600; }
.plain-ask-note { flex-basis: 100%; font-size: 12.5px; color: var(--muted); }
.skill-term {
  max-width: 760px;
  margin: 4px 0 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0d0d0c;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(200, 169, 110, 0.14),
    0 22px 70px rgba(0, 0, 0, 0.6),
    0 0 90px rgba(200, 169, 110, 0.07);
}
.skill-term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--hairline); }
.skill-term-bar .tdot2 { width: 10px; height: 10px; border-radius: 50%; background: #2a2a28; }
.skill-term-bar .tdot2:first-child { background: #4a2a28; }
.skill-term-bar .tdot2:nth-child(3) { background: #2c3a2a; }
.skill-term-title { margin-left: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }
.skill-term-body { padding: 18px 22px 20px; font-family: var(--mono); font-size: 13px; line-height: 1.9; color: var(--muted); }
.skill-term .t-line { display: block; white-space: pre-wrap; }
.skill-term .t-cmd { color: var(--cream); font-weight: 600; }
.skill-term .t-warn { color: var(--red-text); }
.skill-term .term-grade {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 6px; padding: 3px 10px;
  border: 1px solid rgba(200, 169, 110, 0.45); border-radius: 3px;
  color: var(--gold); font-weight: 700; letter-spacing: 0.08em;
}
.skill-term .term-grade--hold { color: var(--red-text); border-color: rgba(192, 82, 74, 0.5); }
.skill-term .term-cursor {
  display: inline-block; width: 7px; height: 13px; margin-left: 6px;
  background: var(--gold); vertical-align: -2px;
  animation: st-blink 1.1s steps(1) infinite;
}
@keyframes st-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .skill-term .term-cursor { animation: none; } }
/* Display-role retune: editorial serif for page headlines only.
   Grouped last so it wins the cascade over the rules above. */
h1, h2 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-optical-sizing: auto;
  font-weight: 620;
  letter-spacing: -0.015em;
}
h1 { line-height: 1.06; }
@media (max-width: 768px) {
  .nav-inner { flex-wrap: nowrap; }
  .nav-disclosure { display: block; }
  .nav-disclosure > summary.nav-hamburger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 9px;
    border: 1px solid var(--border); border-radius: 4px;
    background: transparent; cursor: pointer; list-style: none;
  }
  .nav-disclosure > summary.nav-hamburger::-webkit-details-marker { display: none; }
  .nav-disclosure > summary.nav-hamburger::marker { content: ""; }
  .nav-disclosure > summary.nav-hamburger span {
    display: block; width: 100%; height: 1px; background: var(--cream);
    transition: transform 0.15s ease, opacity 0.15s ease;
  }
  .nav-disclosure > summary.nav-hamburger:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
  .nav-disclosure[open] > summary.nav-hamburger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-disclosure[open] > summary.nav-hamburger span:nth-child(2) { opacity: 0; }
  .nav-disclosure[open] > summary.nav-hamburger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .nav-disclosure[open] > .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 6px 20px 14px;
    background: #0a0a0a;
    border-bottom: 1px solid var(--border);
  }
  .nav-disclosure[open] > .nav-links > * {
    display: flex; align-items: center; min-height: 44px;
  }
  .nav-disclosure[open] > .nav-links > * + * { border-top: 1px solid var(--hairline); }
}
html { scrollbar-color: #2e2c28 #0a0a0a; }


/* Uniform install block. Tokens are page-local and two bespoke pages
   (suede-full-send, suede-instagram-growth) never declare --card/--border,
   so every token here carries the estate literal as a fallback. */
.install-block { margin: 56px 0 0; }
.install-block > h2 { margin-bottom: 8px; }
.install-lede { font-size: 14.5px; line-height: 1.65; color: var(--muted, #888880); max-width: 660px; margin-bottom: 20px; }
.install-term {
  max-width: 780px; background: var(--card, #161616);
  border: 1px solid var(--border, #222222); border-radius: 6px; overflow: hidden;
}
.install-term-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px; border-bottom: 1px solid var(--border, #222222);
}
.install-term-dots { display: flex; gap: 6px; }
.install-term-dots span { width: 10px; height: 10px; border-radius: 50%; background: #2a2a28; }
.install-term-dots span:first-child { background: #4a2a28; }
.install-term-dots span:last-child { background: #2c3a2a; }
.install-term-bar b {
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 12.5px; font-weight: 400; letter-spacing: 0.04em; color: var(--muted, #888880);
}
.install-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 18px 22px; }
.install-row + .install-row { border-top: 1px solid var(--border, #222222); }
/* min-width:0 is what lets the <pre> scroll inside the row instead of
   stretching it; without it a long command blows out the page on mobile. */
.install-cmd { flex: 1; min-width: 0; }
.install-label {
  display: block; margin-bottom: 8px;
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted, #888880);
}
.install-code {
  margin: 0; overflow-x: auto; white-space: pre;
  /* Pinned, not inherited: every page carries its own generic `pre` rule
     and they disagree on background, padding, and radius, so an unpinned
     block is uniform in the markup and three different things on screen. */
  padding: 16px 18px; background: #080808;
  border: 1px solid #1a1a18; border-radius: 4px;
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 14.5px; line-height: 1.95; color: var(--gold, #c8a96e);
}
.install-code .install-prompt { color: var(--red-text, #c6625a); user-select: none; }
.install-copy {
  flex-shrink: 0; min-height: 44px; min-width: 92px; padding: 10px 16px; cursor: pointer;
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 12.5px; white-space: nowrap; color: var(--muted, #888880);
  background: transparent; border: 1px solid var(--border, #222222); border-radius: 4px;
  transition: color 0.15s, border-color 0.15s;
}
.install-copy:hover, .install-copy.copied { color: var(--gold, #c8a96e); border-color: var(--gold, #c8a96e); }
/* These pages only ever styled a:focus-visible; this is their first button. */
.install-copy:focus-visible { outline: 2px solid var(--gold, #c8a96e); outline-offset: 3px; }
.install-note { font-size: 13.5px; line-height: 1.65; color: var(--muted, #888880); max-width: 720px; margin-top: 14px; }
.install-note a { color: var(--gold, #c8a96e); }
.install-status {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
@media (max-width: 640px) {
  /* align-items above is flex-start, which content-sizes children in the
     cross axis. In column mode that axis is the width, so the command box
     must be stretched back or a long command escapes the viewport instead
     of scrolling inside its own box. */
  .install-row { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px 16px 18px; }
  .install-cmd { width: 100%; }
  .install-copy { width: 100%; }
  .install-code { font-size: 13px; }
}
