/* Styling for long-form content pages (e.g. /run-local), layered on top of style.css. */

.article-wrap {
  max-width: 780px;
}

.article-header {
  margin-bottom: 1.5rem;
}
.article-header .brand-link {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.article-header .brand-link:hover {
  color: var(--accent);
}

.breadcrumbs {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
}
.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.breadcrumbs .crumb-sep {
  margin: 0 0.15rem;
  color: var(--border);
}
.breadcrumbs [aria-current="page"] {
  color: var(--text);
}

.article-hero {
  text-align: center;
  margin: 0 0 1rem;
}
.hero-illustration {
  /* Raster page illustrations (static/art/page-*.webp) sit directly on
     the page background -- the soft radial mask melts their edges into
     the page so they never read as a framed rectangle. (Any remaining
     <img>-embedded SVGs are self-theming via an internal <style> block
     -- see DESIGN_SYSTEM.md.) */
  max-width: 100%;
  height: auto;
  -webkit-mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, #000 55%, transparent 96%);
  mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, #000 55%, transparent 96%);
}

.article {
  line-height: 1.65;
}

.kicker {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--accent);
  font-size: 1rem;
  margin: 0 0 0.25rem;
}

.article h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 1.3rem + 1.5vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: 0.005em;
  margin: 0.2rem 0 0.1rem;
}
.article h1 + h3 {
  margin-top: 0;
  color: var(--muted);
  font-weight: 500;
  font-size: 1.05rem;
}
.article h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  margin: 2.2rem 0 0.8rem;
  padding-top: 0.6rem;
  border-top: 3px solid var(--brass);
}
.article h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.5rem;
}

.article p, .article li {
  color: var(--text);
}

.article a {
  color: var(--accent);
}

.article code {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  font-size: 0.9em;
  font-family: var(--font-mono);
}

.article pre {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  overflow-x: auto;
  font-family: var(--font-mono);
}

/* Copy-to-clipboard affordance on fenced commands (added by
   copy-buttons.js on pages that include it, e.g. /skill). Salmon =
   the brand's action color. */
.copy-wrap { position: relative; }
.copy-wrap pre { padding-right: 5.2rem; }
.copy-btn {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  color: #12213d;
  background: var(--brand-salmon);
  border: 2px solid var(--text);
  border-radius: 8px;
  padding: 0.25rem 0.65rem;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--text);
}
.copy-btn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--text); }
.copy-btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--text); }
.copy-btn.copied { background: var(--notfound); color: #ffffff; }
.copy-btn:focus-visible { outline: 2px solid var(--spectral); outline-offset: 2px; }
.article pre code {
  background: none;
  border: none;
  padding: 0;
}

.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  display: block;
  overflow-x: auto;
}
.article th, .article td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.7rem;
  text-align: left;
  font-size: 0.92rem;
}
.article th {
  background: var(--surface);
  font-weight: 600;
  border-bottom: 2px solid var(--brass);
}
.article tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--surface) 55%, transparent);
}

.article hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.article blockquote {
  margin: 1rem 0;
  padding: 0.5rem 1rem;
  border-left: 3px solid var(--brass);
  color: var(--muted);
}

/* A "ship's log" callout -- sparing, decorative-only use of the parchment
   surface. See DESIGN_SYSTEM.md: text on parchment is always
   --parchment-ink, never --brass (fails contrast). */
.log-entry {
  background: var(--parchment);
  color: var(--parchment-ink);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brass);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
.log-entry p, .log-entry li { color: var(--parchment-ink); }
.log-entry a { color: #5a4210; }
.log-entry .log-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
  color: #5a4210;
}

/* Section-break motif -- a low-key fog/wave divider between major
   sections. Purely decorative (aria-hidden in markup). */
.wave-divider {
  display: block;
  width: 100%;
  height: auto;
  margin: 2rem 0;
  color: var(--border);
  opacity: 0.6;
}
