/* venegas.app — single stylesheet. No external resources. */
:root {
  color-scheme: light dark;
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1d1f23;
  --muted: #5c6370;
  --line: #e2dfd8;
  --accent: #0b6b58;
  --accent-soft: #e3f1ed;
  --radius: 10px;
  --measure: 44rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161a;
    --surface: #1c1f25;
    --text: #e8e6e1;
    --muted: #a2a8b3;
    --line: #2e333c;
    --accent: #6fd0b8;
    --accent-soft: #1d302c;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Skip link */
.skip {
  position: absolute;
  left: -999rem;
  top: 0;
  background: var(--surface);
  color: var(--text);
  padding: .6rem 1rem;
  border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; z-index: 10; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .25rem 1rem;
}
.brand {
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text);
  text-decoration: none;
}
.brand span { color: var(--accent); }
.lang { font-size: .9375rem; }

.crumbs {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .5rem;
  font-size: .9375rem;
  color: var(--muted);
}
.crumbs li + li::before {
  content: "›";
  margin-right: .5rem;
  color: var(--muted);
}

/* Content */
main { padding: 1.5rem 0 3.5rem; }

h1, h2, h3 {
  line-height: 1.25;
  letter-spacing: -.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.375rem); margin: 1rem 0 .5rem; }
h2 { font-size: 1.3125rem; margin: 2.5rem 0 .5rem; padding-top: .25rem; }
h3 { font-size: 1.0625rem; margin: 1.75rem 0 .25rem; }

p, ul, ol, dl { margin: .75rem 0; }
ul, ol { padding-left: 1.35rem; }
li { margin: .35rem 0; }
li > ul { margin: .35rem 0; }

a { color: var(--accent); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

strong { font-weight: 650; }

.lede { font-size: 1.125rem; color: var(--muted); }
.updated { font-size: .9375rem; color: var(--muted); margin-top: 0; }

.note {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: .85rem 1rem;
  margin: 1.25rem 0;
}
.note > :first-child { margin-top: 0; }
.note > :last-child { margin-bottom: 0; }

/* Cards (hub and app pages) */
.cards {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
  display: grid;
  gap: 1rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin: 0;
}
.card h3 { margin: 0 0 .25rem; font-size: 1.1875rem; }
.card p { margin: .35rem 0; }
.links {
  list-style: none;
  padding: 0;
  margin: .75rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.1rem;
}
.links li { margin: 0; }

/* Table of contents */
.toc {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: .85rem 1.25rem;
  margin: 1.5rem 0;
  font-size: .9688rem;
}
.toc p { margin: 0 0 .25rem; font-weight: 650; }
.toc ol { margin: 0; columns: 2; column-gap: 2rem; }
.toc li { break-inside: avoid; }

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 34rem;
  font-size: .9375rem;
  line-height: 1.5;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: .65rem .85rem;
  border-bottom: 1px solid var(--line);
}
thead th {
  font-size: .8125rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  white-space: nowrap;
}
tbody tr:last-child th,
tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 650; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2.5rem;
  font-size: .9375rem;
  color: var(--muted);
}
.site-footer .links { margin-top: 0; }
.site-footer p { margin: .75rem 0 0; }

@media (max-width: 34rem) {
  body { font-size: 1rem; }
  .wrap { padding: 0 1rem; }
  .toc ol { columns: 1; }
}

@media print {
  .site-header, .site-footer, .skip, .toc { display: none; }
  body { background: #fff; color: #000; }
  a { color: inherit; }
}
