/* Portfolio additions on top of c.css (a copy of the QInteract main site stylesheet).
   Only new components and small overrides live here, so c.css can be refreshed from the main site. */

/* ---------- Header brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; letter-spacing: -0.01em; white-space: nowrap; }
.brand-mark { position: relative; width: 28px; height: 28px; display: inline-grid; place-items: center; flex: none; background: var(--ink); color: var(--on-ink); font-size: 10.5px; letter-spacing: 0.02em; border-radius: 2px; }
.brand-mark::after { content: ""; position: absolute; top: -3px; right: -3px; width: 7px; height: 7px; background: var(--sig); }
.brand:hover .brand-name { color: var(--sig); }

/* ---------- Hero ---------- */
.hero-title { max-width: 9ch; }
.hero-lead { margin-top: 22px; max-width: 27ch; font-size: clamp(21px, 2vw, 30px); line-height: 1.2; font-weight: 500; letter-spacing: -0.025em; }
.hero-sub { margin-top: 16px; }
.hero-text > :nth-child(5) { animation-delay: 0.4s; }

/* ---------- Skills ---------- */
.modules-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- Contact: links panel (console look, no form) ---------- */
.links-panel { display: block; padding-bottom: 22px; }
.links-panel .console-bar { margin-bottom: 0; }
.ext li { border-bottom: 1px solid var(--line); }
.ext li:last-child { border-bottom: 0; }
.ext a { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; align-items: baseline; gap: 14px; padding: 15px 0; transition: color 0.2s; }
.ext .mono { color: var(--muted); }
.ext b { font-size: clamp(16px, 1.4vw, 19px); font-weight: 500; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.ext i { font-style: normal; color: var(--muted); transition: transform 0.3s var(--ease), color 0.2s; }
.ext a:hover b, .ext a:hover i { color: var(--sig); }
.ext a:hover i { transform: translate(2px, -2px); }
.channels dd a { overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.ftr-name { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 17px; font-weight: 500; color: var(--ink) !important; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .theme-btn { margin-inline-start: auto; }
  .hero-title { max-width: 10ch; }
  .modules-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .modules-3 { grid-template-columns: 1fr; }
  .ext a { grid-template-columns: 92px minmax(0, 1fr) auto; gap: 10px; }
  .links-panel { padding-inline: 16px; }
  .links-panel .console-bar { margin-inline: -16px; padding-inline: 16px; }
}
@media (max-width: 420px) {
  .brand-name { font-size: 14px; }
}
