/* ==========================================================================
   luisangelgarcia.com — base stylesheet
   Static, dependency-free. No web fonts, no JavaScript, no third-party calls.
   ========================================================================== */

:root {
  --ink: #101418;
  --body: #2b3138;
  --muted: #5b6570;
  --rule: #e2e6ea;
  --rule-strong: #cdd4db;
  --paper: #ffffff;
  --paper-2: #f7f8fa;
  --accent: #0b4a8f;
  --accent-ink: #093a70;
  --accent-soft: #eef4fb;
  --ok: #0f6b46;
  --ok-soft: #eaf5ef;
  --warn: #8a4b00;
  --warn-soft: #fdf4e7;

  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino,
    Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  --wrap: 68rem;
  --measure: 68ch;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.012em;
  margin: 0 0 .6em;
}

h1 { font-size: clamp(2.15rem, 5.2vw, 3.35rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.2rem; line-height: 1.3; }

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--accent-ink); }

strong { color: var(--ink); font-weight: 600; }

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.5rem 0;
}

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: .75rem 1rem;
  z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 0; }

/* --------------------------------------------------------------- header -- */

.site-header {
  border-top: 3px solid var(--accent);
  border-bottom: 1px solid var(--rule);
  background: rgba(255, 255, 255, .96);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(8px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
  flex-wrap: wrap;
  padding-block: .65rem;
}

.brand {
  display: block;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.01em;
}
.brand span {
  display: block;
  font-family: var(--sans);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .2rem;
}
.brand:hover { color: var(--ink); }

.nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}
.nav a {
  font-size: .875rem;
  color: var(--body);
  text-decoration: none;
  padding-block: .35rem;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--rule-strong); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.nav .nav-cta {
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: .45rem .9rem;
  border-radius: 3px;
  font-weight: 500;
}
.nav .nav-cta:hover { background: var(--accent); color: #fff; }
.nav .nav-cta[aria-current="page"] { background: var(--accent); color: #fff; border-bottom-color: var(--accent); }

/* ----------------------------------------------------------------- hero -- */

.hero {
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--rule);
  background:
    linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 92%);
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.eyebrow {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.1rem;
}

.lede {
  font-size: clamp(1.05rem, 1.9vw, 1.22rem);
  line-height: 1.6;
  color: var(--body);
  max-width: 42ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.2;
  padding: .8rem 1.25rem;
  border-radius: 3px;
  text-decoration: none;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  transition: background .12s ease, border-color .12s ease;
}
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--rule-strong);
}
.btn-ghost:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }

/* evidence card */

.evidence {
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  background: var(--paper);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(16, 20, 24, .03), 0 12px 32px -24px rgba(16, 20, 24, .35);
}

.evidence header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .6rem .9rem;
  border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
  font-size: .6875rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.evidence pre {
  margin: 0;
  padding: 1.1rem 1rem;
  overflow-x: auto;
  font: 400 .8125rem/1.7 var(--mono);
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: none;
}
.evidence pre .prompt { color: var(--muted); }
.evidence pre .out { color: var(--accent-ink); font-weight: 600; }

.evidence footer {
  border-top: 1px solid var(--rule);
  padding: .7rem .9rem;
  font-size: .8125rem;
  color: var(--muted);
}

/* ------------------------------------------------------------- sections -- */

.section { padding: clamp(2.75rem, 5.5vw, 4.5rem) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-tint { background: var(--paper-2); }

.section-head { max-width: 44rem; margin-bottom: 2.25rem; }
.section-head p { color: var(--muted); margin: .6rem 0 0; }

/* trust strip */

.trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-bottom: 1px solid var(--rule);
}
.trust > div {
  padding: 1.5rem 1.6rem;
  border-left: 1px solid var(--rule);
}
.trust > div:first-child { border-left: 0; padding-left: 0; }
.trust .k {
  display: block;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .4rem;
}
.trust .v { display: block; color: var(--ink); font-size: .9375rem; line-height: 1.45; }

/* cards */

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1.5rem 1.5rem 1.4rem;
  background: var(--paper);
}
.card .num {
  display: block;
  font: 600 .75rem/1 var(--mono);
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: .9rem;
}
.card h3 { margin-bottom: .5rem; }
.card p { font-size: .9375rem; color: var(--body); margin: 0; }
.card p + p { margin-top: .7rem; }
.card .meta {
  display: block;
  margin-top: 1rem;
  padding-top: .85rem;
  border-top: 1px solid var(--rule);
  font-size: .8125rem;
  color: var(--muted);
}

/* steps */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.35rem;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font: 600 .8125rem/1.9 var(--mono);
  color: var(--accent);
  text-align: center;
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  height: 2rem;
}
.steps h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.steps p { font-size: .9375rem; color: var(--body); margin: 0; max-width: 62ch; }

/* table */

.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 4px; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9375rem;
  background: var(--paper);
}
caption {
  text-align: left;
  padding: .85rem 1rem;
  font-size: .8125rem;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
}
th, td {
  text-align: left;
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
thead th {
  font-size: .6875rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  background: var(--paper-2);
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* callouts */

.note {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  padding: 1.1rem 1.25rem;
  border-radius: 0 3px 3px 0;
  font-size: .9375rem;
}
.note p { margin: 0; }
.note strong { color: var(--accent-ink); }

.tag {
  display: inline-block;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: .22rem .5rem;
  border-radius: 2px;
  background: var(--ok-soft);
  color: var(--ok);
  border: 1px solid #cfe6d8;
}
.tag-neutral { background: var(--paper-2); color: var(--muted); border-color: var(--rule-strong); }

/* quote */

.quote {
  border-left: 3px solid var(--rule-strong);
  margin: 0;
  padding: .2rem 0 .2rem 1.4rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--ink);
  max-width: 58ch;
}
.quote cite {
  display: block;
  margin-top: .9rem;
  font: 400 .8125rem/1.4 var(--sans);
  font-style: normal;
  color: var(--muted);
}

/* definition list */

.facts { margin: 0; display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; }
.facts > div { background: var(--paper); padding: .9rem 1.1rem; display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 1rem; }
.facts dt { font-size: .8125rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding-top: .15rem; }
.facts dd { margin: 0; font-size: .9375rem; }

/* contact block */

.band {
  background: var(--ink);
  color: #dfe4ea;
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}
.band h2 { color: #fff; }
.band p { color: #b7c0ca; max-width: 48ch; }
.band a { color: #fff; }
.band .btn { background: #fff; border-color: #fff; color: var(--ink); }
.band .btn:hover { background: #e8ecf0; border-color: #e8ecf0; color: var(--ink); }
.band .btn-ghost { background: transparent; color: #fff; border-color: #46505c; }
.band .btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: #7b8794; color: #fff; }
.band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 2.5rem; flex-wrap: wrap; }

/* footer */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2.5rem 0 2rem;
  font-size: .875rem;
  color: var(--muted);
}
.site-footer .cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 1.75rem;
}
.site-footer h4 {
  font: 600 .6875rem/1 var(--sans);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 .8rem;
}
.site-footer a { color: var(--body); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-footer .legal {
  border-top: 1px solid var(--rule);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .8125rem;
  color: var(--muted);
}
.site-footer .legal p { margin: 0; }

/* --------------------------------------------------------------- helper -- */

.small { font-size: .875rem; color: var(--muted); }
.mono { font-family: var(--mono); font-size: .875em; }
.stack-sm > * + * { margin-top: .65rem; }
.mt-0 { margin-top: 0; }
.mt-md { margin-top: 1rem; }
.mt-lg { margin-top: 1.5rem; }
.center { text-align: center; margin-inline: auto; }

.list { padding-left: 1.15rem; margin: 0; }
.list li + li { margin-top: .6rem; }

.checks { list-style: none; padding: 0; margin: 0; }
.checks li { font-size: .9375rem; padding-left: .1rem; }

/* ----------------------------------------------------------- responsive -- */

@media (max-width: 60rem) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .evidence { max-width: 34rem; }
  .trust { grid-template-columns: minmax(0, 1fr); }
  .trust > div { border-left: 0; border-top: 1px solid var(--rule); padding-left: 0; }
  .trust > div:first-child { border-top: 0; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 44rem) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: .25rem; }
  .nav { gap: .9rem; }
  .nav a { font-size: .8125rem; }
  .site-footer .cols { grid-template-columns: minmax(0, 1fr); }
}

/* ----------------------------------------------------------------- print -- */

@media print {
  .site-header, .band, .cta-row, .skip { display: none; }
  body { font-size: 11pt; color: #000; }
  a { color: #000; text-decoration: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #444; }
  .section { padding: 1.2rem 0; break-inside: avoid; }
  .card, .facts, .table-wrap { break-inside: avoid; }
}
