/* Don Gastón — holding-company overview.
   Deliberately its OWN identity, distinct from every subsidiary brand it
   sits above (NWM navy/orange, Fracmo black/#FFD400, ClimAlerta's navy/
   orange "Tormenta") — a holding page shouldn't look like a reskin of one
   of the businesses it owns. Dark charcoal ground, a muted antique-brass
   accent (a "plaque on the door" register, warmer and less saturated than
   any subsidiary's accent), serif display for institutional weight paired
   with a plain grotesk for body/data. Single dark theme by design — this
   is a quiet, factual page, not a marketing funnel. */
:root {
  --ink:        #0D0F12;   /* ground — cool near-black, not pure #000 */
  --surface:    #16191E;
  --surface-2:  #1C2027;
  --line:       rgba(236, 232, 224, 0.10);
  --line-soft:  rgba(236, 232, 224, 0.06);
  --text:       #ECE8E0;   /* warm-tinted near-white, ties to the brass */
  --text-2:     #A9A29A;
  --text-3:     #6E685F;
  --brass:      #B08D57;
  --brass-soft: #D9BE8F;
  --brass-dim:  rgba(176, 141, 87, 0.14);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Public Sans', system-ui, -apple-system, sans-serif;
  --font-label:   'IBM Plex Mono', ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brass-soft); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brass); color: var(--ink); padding: 10px 16px; border-radius: 0 0 6px 0;
  font-family: var(--font-label); font-size: 0.8rem; font-weight: 600;
}
.skip-link:focus { left: 0; }

.wrap { max-width: 900px; margin: 0 auto; padding: 0 22px; }

/* ── Header ─────────────────────────────────────────── */
.site-head {
  padding: 22px 0;
  border-bottom: 1px solid var(--line-soft);
}
.site-head .wrap { display: flex; justify-content: space-between; align-items: baseline; }
.brand {
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem;
  color: var(--text); letter-spacing: -0.01em;
}
.brand span { color: var(--brass-soft); }
.head-link {
  font-family: var(--font-label); font-size: 0.74rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-2);
}
.head-link:hover, .head-link[aria-current="page"] { color: var(--brass-soft); }

/* ── Hero ───────────────────────────────────────────── */
.hero { padding: 64px 0 40px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-label); font-size: 0.72rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--brass-soft);
  border: 1px solid rgba(176, 141, 87, 0.35); background: var(--brass-dim);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.1rem, 5.4vw, 3.4rem); line-height: 1.08; letter-spacing: -0.02em;
  text-wrap: balance; margin-bottom: 20px;
}
.hero .lede {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--text-2);
  max-width: 62ch; line-height: 1.65;
}
.hero .lede strong { color: var(--text); font-weight: 600; }

/* ── Section scaffolding ────────────────────────────── */
.section { padding: 46px 0; border-top: 1px solid var(--line-soft); }
.section-head { margin-bottom: 26px; }
.section-head .kicker {
  font-family: var(--font-label); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-3); display: block; margin-bottom: 8px;
}
.section-head h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: -0.015em;
}

/* ── Portfolio register ─────────────────────────────── */
.register { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.biz {
  background: var(--surface);
  padding: 20px 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 20px;
  align-items: start;
  transition: background 0.15s;
}
.biz:hover { background: var(--surface-2); }
.biz-name {
  font-family: var(--font-display); font-weight: 600; font-size: 1.08rem;
  color: var(--text); display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.biz-name a { color: inherit; }
.biz-name a:hover { color: var(--brass-soft); }
.biz-desc { font-size: 0.92rem; color: var(--text-2); grid-column: 1 / -1; max-width: 58ch; }
.biz-tag {
  font-family: var(--font-label); font-size: 0.66rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-3); white-space: nowrap;
  align-self: center; justify-self: end;
}
.biz-tag.dev { color: var(--brass-soft); }
.biz-url {
  font-family: var(--font-label); font-size: 0.78rem; color: var(--text-3);
  grid-column: 1 / -1;
}
.biz-url a { color: var(--text-3); }
.biz-url a:hover { color: var(--brass-soft); }

/* ── About ──────────────────────────────────────────── */
.about p { color: var(--text-2); max-width: 62ch; margin-bottom: 14px; font-size: 0.98rem; }
.about p:last-child { margin-bottom: 0; }
.about strong { color: var(--text); font-weight: 600; }

/* ── Blog index ─────────────────────────────────────── */
.post-list {
  display: flex; flex-direction: column; gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: 8px; overflow: hidden;
}
.post-item { background: var(--surface); padding: 20px 22px; transition: background 0.15s; }
.post-item:hover { background: var(--surface-2); }
.post-item-meta {
  font-family: var(--font-label); font-size: 0.7rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 6px;
}
.post-item-title {
  font-family: var(--font-display); font-weight: 600; font-size: 1.12rem;
  letter-spacing: -0.01em; margin-bottom: 6px;
}
.post-item-title a { color: var(--text); }
.post-item-title a:hover { color: var(--brass-soft); }
.post-item-desc { font-size: 0.92rem; color: var(--text-2); max-width: 64ch; }

/* ── Article (blog posts) ───────────────────────────── */
.post { padding: 54px 0 34px; }
.post h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.9rem, 4.6vw, 2.8rem); line-height: 1.12; letter-spacing: -0.02em;
  text-wrap: balance; margin: 18px 0 10px; max-width: 26ch;
}
.post-meta {
  font-family: var(--font-label); font-size: 0.74rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 26px;
}
.post .lede {
  font-size: clamp(1.02rem, 1.5vw, 1.14rem); color: var(--text-2);
  line-height: 1.65; max-width: 62ch; margin-bottom: 10px;
}
.post h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem); letter-spacing: -0.015em;
  margin: 34px 0 12px; max-width: 40ch;
}
.post h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem;
  margin: 24px 0 10px;
}
.post p { color: var(--text-2); max-width: 66ch; margin-bottom: 14px; font-size: 0.98rem; }
.post ul { margin: 0 0 14px 1.2rem; color: var(--text-2); max-width: 62ch; }
.post li { margin-bottom: 8px; font-size: 0.98rem; }
.post .faq {
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin: 8px 0;
}
.post details { background: var(--surface); border-bottom: 1px solid var(--line-soft); padding: 14px 18px; }
.post details:last-child { border-bottom: 0; }
.post summary { cursor: pointer; font-weight: 600; color: var(--text); font-size: 0.96rem; }
.post details p { margin: 10px 0 2px; }
.post-related {
  border: 1px solid rgba(176, 141, 87, 0.35); background: var(--brass-dim);
  border-radius: 8px; padding: 16px 18px; margin-top: 30px;
}
.post-related-kicker {
  font-family: var(--font-label); font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brass-soft); margin-bottom: 8px;
}
.post-related p { margin-bottom: 6px; max-width: none; }
.post-related p:last-child { margin-bottom: 0; }
.post-cta { border-top: 1px solid var(--line-soft); margin-top: 34px; padding-top: 26px; }
.post-cta p { color: var(--text-2); margin-bottom: 14px; }
.btn-cta {
  display: inline-block; font-family: var(--font-label); font-size: 0.78rem;
  letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600;
  color: var(--ink); background: var(--brass); padding: 11px 18px; border-radius: 6px;
}
.btn-cta:hover { background: var(--brass-soft); text-decoration: none; }

/* ── Footer ─────────────────────────────────────────── */
.site-foot {
  padding: 30px 0 46px; border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 10px;
  font-family: var(--font-label); font-size: 0.76rem; color: var(--text-3);
}

@media (max-width: 560px) {
  .biz { grid-template-columns: 1fr; }
  .biz-tag { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Article cover photograph and its credit.
   The caption is a licence condition for the CC BY images in
   assets/photos/credits.json, not decoration — see that directory's
   ATTRIBUTION.md and _ci/validate-blog-photo-attribution.mjs. */
.article-photo { margin: 0 0 26px; }
.article-photo img {
  width: 100%; height: auto; display: block;
  aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px;
}
.article-photo figcaption {
  margin-top: 8px; font-size: 12.5px; line-height: 1.5;
  color: var(--muted, #8b8f96);
}
.article-photo figcaption a { color: inherit; text-decoration: underline; }
.post-card-thumb { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; margin-bottom: 12px; }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
