/* Skills & Tools page: the night homepage's look (night.css), with the homepage's nav at the top,
   a big title, the agent skills and the tool cards that used to sit on the homepage. Skill
   cards are tool cards (night.css .tcard) with a little terminal where the picture goes. */
.skills-page { min-height: 100vh; background: var(--bg); }
.skills-page main { padding-bottom: 140px; }

/* Nav: the homepage's hero nav, stuck to the top on a dark glass bar. */
.sk-nav { position: sticky; top: 0; z-index: 40; padding: 18px 30px; background: rgba(15, 11, 20, .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--card-line); }
.sk-nav .hero__nav { max-width: 1280px; margin: 0 auto; }
.sk-nav .logo-tile { width: 48px; }   /* square, as on the homepage */
.sk-nav .hero__links a.is-current, .sk-nav .hero__links a.is-current:hover { color: var(--accent); }   /* the page you're on */

/* Title: the same type as the homepage's section titles. */
.sk-hero.sec { max-width: 1280px; margin: 0 auto; padding: 90px 32px 0; }
.sk-hero h1 {
  margin: 0 0 18px; max-width: 900px; color: var(--ink);
  font: 800 clamp(42px, 6.4vw, 104px)/.9 "Archivo", "Arial Narrow", sans-serif; font-stretch: 62%;
  text-transform: uppercase; letter-spacing: -.02em;
}
.sk-hero .sec__sub { max-width: 620px; }

.sk-sec.sec { padding-top: 72px; padding-bottom: 0; }
/* "Skills" and "for your coding agent": matching cap heights, condensed sans + serif like the homepage titles. */
.sk-label { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin: 0 0 24px !important; font: 800 clamp(25px, 2.25vw, 34px)/1 "Archivo", "Arial Narrow", sans-serif !important; font-stretch: 62% !important; text-transform: uppercase; letter-spacing: -.01em !important; color: var(--ink); }
.sk-label span { font: 400 clamp(22px, 2vw, 30px)/1 "Instrument Serif", Georgia, serif; text-transform: uppercase; color: var(--ink-2); }

/* Skill card: same size and layout as a tool card; a terminal in place of the picture. */
.skcard { cursor: default; }
.theme-night .skcard:hover { transform: none; }
.skcard .wcard__media.skcard__term {
  display: flex; flex-direction: column; justify-content: center; gap: 9px;
  padding: 16px; background: #0b0810; border: 1.5px solid var(--card-line);
}
.skcard__dots { display: flex; gap: 6px; margin-bottom: 4px; }
.skcard__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--pink); }
.skcard__dots i:nth-child(2) { background: var(--butter); }
.skcard__dots i:nth-child(3) { background: var(--lime); }
.skcard__term code { display: block; font: 500 12px/1.45 ui-monospace, Menlo, monospace; color: var(--ink); }
.skcard__term code b { color: var(--accent); font-weight: 700; margin-right: 5px; }
.skcard__term .skcard__ok { color: var(--lime); }
.skcard .tcard__desc { margin: 0; }
.skcard .tcard__desc a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.skcard__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: auto; }
.skcard__actions .tcard__cta { margin: 0; border: 0; cursor: pointer; }
.skcard__actions .tcard__cta:hover, .skcard__actions .tcard__cta:focus-visible { transform: translateX(3px); }
.skcard__link { font: 800 14px var(--font-body); color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Back to home, bottom right (as on the case studies). */
.back-home { position: fixed; right: 20px; bottom: 20px; z-index: 40; }

/* Tablets and phones: site.css hides the nav words under 900px; here they stay, smaller. */
@media (max-width: 900px) {
  .sk-nav .hero__links { gap: 4px; }
  .sk-nav .hero__links a:not(.btn) { display: inline-flex; font-size: 14px; padding: 8px; }
}
@media (max-width: 700px) {
  .sk-nav { padding: 12px 16px; }
  .sk-nav .logo-tile { width: 44px; }
  .sk-nav .hero__links a.is-current { display: none; }   /* you're on it; leaves room on small screens */
  .sk-nav .hero__links a:not(.btn) { font-size: 13px; padding: 6px; }
  .sk-nav .btn { min-width: 0; height: 38px; padding: 0 14px; font-size: 13px; }
  .sk-hero.sec { padding: 56px 20px 0; }
  .sk-sec.sec { padding: 56px 20px 0; }
  .skcard .wcard__media.skcard__term { padding: 12px 10px; gap: 7px; }
  .skcard__term code { font-size: 10px; overflow-wrap: anywhere; }
  .back-home { right: 14px; bottom: 14px; min-width: 0; width: 52px; height: 52px; padding: 0; border-radius: 50%; font-size: 0; gap: 0; }
  .back-home::before { content: "\2190"; font-size: 22px; line-height: 1; }
}
