/* ============================================================
   meetjohnalvarado.com — v3 DEEPGREEN
   John's directed format (LinkedIn_Attachments_2026-06-01 system,
   as published in John_Alvarado_{Sales,AI}_Story_DeepGreen_2026-05-29.pdf):
   cream paper, deep-green Georgia serif headlines that END WITH A PERIOD,
   sage kicker pills, hairline signal tables, mint callouts, dark-green panels.
   Georgia + system sans IS the format — no webfonts, nothing to block render.

   NOTE (Base44 hosting): the host re-serializes served HTML with every text
   node on its own line, which collapses to a SPACE. Every split-text container
   below is therefore display:flex — whitespace-only text nodes between flex
   items generate no boxes, so the reflow cannot open a gap. Inline adjacencies
   in the copy are separately lint-gated by build.sh.
   ============================================================ */

:root {
  --paper:        #fbf2e7;
  --paper-2:      #f9efe3;
  --strip:        #f3e8d8;   /* fit-card header strip */
  --card-bg:      #fdf7ee;

  --ink:          #3f3932;
  --ink-2:        #5c5348;
  --ink-3:        #857a6d;

  --green:        #345a30;   /* headlines, table labels */
  --green-2:      #365b31;   /* dark panels, triad dark cell, solid button */
  --green-3:      #6f8a5c;   /* numerals, list markers */

  --rule:         #dacbb7;   /* structural hairlines */
  --rule-2:       #e3d5c1;   /* table / row hairlines */

  --pill-bg:      #e6eee4;
  --pill-fg:      #53604e;

  --mint-bg:      #c9f6c9;
  --mint-fg:      #244924;

  --panel-fg:     #e2ecdf;
  --panel-kicker: #a9c0a3;
  --on-green:     #ffffff;

  --serif: Georgia, "Times New Roman", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --pad:  clamp(1.35rem, 5vw, 2.75rem);
  --maxw: 1060px;
}

/* A restrained dark variant. The DeepGreen format is a warm paper document —
   dark mode keeps its structure and green/sage relationships rather than
   inventing a second design language. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:        #14180f;
    --paper-2:      #181d12;
    --strip:        #232a1b;
    --card-bg:      #1a2013;

    --ink:          #e9e4d8;
    --ink-2:        #c4bdad;
    --ink-3:        #918a7c;

    --green:        #a8c79c;
    --green-2:      #2e4c2a;
    --green-3:      #8fae7f;

    --rule:         #2c3324;
    --rule-2:       #343c2b;

    --pill-bg:      #26301f;
    --pill-fg:      #b6c9ad;

    --mint-bg:      #1f3a1f;
    --mint-fg:      #cbe9c8;

    --panel-fg:     #dbe6d6;
    --panel-kicker: #9db894;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }

::selection { background: var(--pill-bg); color: var(--green); }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--green-2); color: var(--on-green);
  padding: .8rem 1.2rem; font: 600 .8rem var(--sans);
}
.skip:focus { left: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ─────────────────────────  MASTHEAD  ───────────────────────── */

.mast {
  position: sticky; top: 0; z-index: 40;
  padding: .65rem var(--pad);
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.mast__in {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; gap: 1.2rem;
}

/* flex column → the two wordmark lines can never be joined by host reflow */
.mast__brand { display: flex; flex-direction: column; flex: 0 0 auto; line-height: 1.2; }
.mast__brand b { font: 400 1.02rem/1.2 var(--serif); color: var(--green); font-weight: 400; }
.mast__brand i {
  font: 700 .58rem/1.5 var(--sans); font-style: normal;
  text-transform: uppercase; letter-spacing: .16em; color: var(--ink-3);
}

.mast__nav { display: flex; gap: 1.25rem; margin-left: auto; }
.mast__nav a {
  font: 700 .625rem var(--sans);
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--pill-fg);
  padding: .3rem 0; border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.mast__nav a:hover { color: var(--green); border-bottom-color: var(--green); }

.mast__cta {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .38rem .72rem; border-radius: 3px;
  background: var(--pill-bg); color: var(--pill-fg);
  font: 800 .625rem var(--sans);
  text-transform: uppercase; letter-spacing: .14em;
  transition: background .2s, color .2s;
}
.mast__cta:hover { background: var(--green-2); color: var(--on-green); }

@media (max-width: 900px) {
  .mast__nav { display: none; }
  .mast__cta { margin-left: auto; }
}

/* ─────────────────────────  SECTION SHELL  ───────────────────────── */

.sec {
  padding: clamp(2.5rem, 5.5vw, 4rem) var(--pad);
  scroll-margin-top: 68px;
}
.sec--alt { background: var(--paper-2); }
/* "The Modern Edge" and "What I Build" are one block in the source document but
   two <section>s here (each needs its own kicker + heading). Dropping the first
   one's bottom padding stops them reading as two unrelated chapters. */
.sec--tight { padding-bottom: 0; }
.sec__in { max-width: var(--maxw); margin: 0 auto; }

/* 1 · kicker pill — sits above every section headline */
.kicker {
  display: inline-block; margin: 0 0 .8rem;
  padding: .34rem .62rem; border-radius: 3px;
  background: var(--pill-bg); color: var(--pill-fg);
  font: 800 .655rem/1 var(--sans);
  letter-spacing: .17em; text-transform: uppercase;
}

/* Headlines are Georgia, green, regular weight — and they end with a period. */
.sec h2 {
  margin: 0 0 .85rem;
  font: 400 clamp(1.6rem, 3.3vw, 2.14rem)/1.2 var(--serif);
  color: var(--green);
  overflow-wrap: break-word;
}

.lead { margin: 0 0 1rem; max-width: 68ch; }
.lead:last-child { margin-bottom: 0; }
.lead--after { margin-top: 1.35rem; }
.sec p a, .lead a { color: var(--green); border-bottom: 1px solid var(--rule); transition: border-color .2s; }
.sec p a:hover, .lead a:hover { border-bottom-color: var(--green); }

/* ─────────────────────────  2 · HERO  ───────────────────────── */

.hero { padding-top: clamp(2.6rem, 6vw, 4.4rem); }

.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 232px;
  gap: clamp(1.6rem, 4vw, 3rem); align-items: start;
}
@media (max-width: 820px) { .hero__grid { grid-template-columns: 1fr; } }

.hero__name {
  margin: 0;
  font: 400 clamp(1.48rem, 3vw, 1.92rem)/1.25 var(--serif);
  color: var(--green);
}
.hero__line {
  margin: .15rem 0 1.1rem;
  font: 400 clamp(2rem, 5.2vw, 3.05rem)/1.16 var(--serif);
  color: var(--green);
  letter-spacing: -.004em;
  overflow-wrap: break-word;
}

.portrait {
  margin: 0; aspect-ratio: 4 / 5;
  border: 1px solid var(--rule-2); border-radius: 5px;
  overflow: hidden; background: var(--strip);
}
.portrait img {
  width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: 50% 20%;
}
@media (max-width: 820px) { .portrait { max-width: 208px; } }

/* 3 · triad — three cells, the centre one dark green */
.triad {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .7rem;
  margin: 1.6rem 0 0; padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.triad > div { padding: .95rem 1rem; text-align: center; border-radius: 5px; }
.triad strong { display: block; color: var(--green-2); font: 700 .95rem/1.3 var(--sans); }
.triad span { display: block; margin-top: .3rem; color: var(--ink-3); font-size: .855rem; line-height: 1.5; }
.triad__dark { background: var(--green-2); }
.triad__dark strong, .triad__dark span { color: var(--on-green); }
@media (max-width: 640px) {
  .triad { grid-template-columns: 1fr; gap: .5rem; }
  .triad > div { text-align: left; padding: .8rem .95rem; }
  .triad > div:not(.triad__dark) { padding-left: 0; padding-right: 0; }
}

/* buttons */
.cta { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.3rem 0 0; }
.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .64rem 1.1rem; border-radius: 4px;
  border: 1px solid var(--green); background: transparent; color: var(--green);
  font: 600 .78rem var(--sans); letter-spacing: .015em;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--pill-bg); }
.btn--solid { background: var(--green-2); border-color: var(--green-2); color: var(--on-green); }
.btn--solid:hover { background: var(--green); border-color: var(--green); color: var(--on-green); }

/* ─────────────────────────  ANSWER CAPSULE  ───────────────────────── */

/* The extractable "Who is John Alvarado" definition — the one paragraph an
   answer engine is most likely to lift, so it reads as the definition. */
.answer {
  margin: 0 0 1.1rem;
  padding-left: clamp(.85rem, 2vw, 1.2rem);
  border-left: 2px solid var(--green-3);
  font-size: 1.06rem; line-height: 1.7;
  color: var(--ink); max-width: 62ch;
}
.answer i, .answer em { font-style: italic; }

.tagrow { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.15rem 0 1.35rem; }
.tagrow .kicker { margin: 0; }

/* ─────────────────────────  4 · SIGNAL TABLE  ───────────────────────── */

.sigtable {
  width: 100%; border-collapse: collapse;
  margin: 1.45rem 0 0;
}
.sigtable th {
  text-align: left; vertical-align: bottom;
  padding: 0 1.2rem .55rem 0;
  border-bottom: 1px solid var(--rule-2);
  font: 700 .765rem var(--sans); color: var(--ink);
}
.sigtable td {
  padding: .9rem 1.2rem .9rem 0;
  border-bottom: 1px solid var(--rule-2);
  vertical-align: top;
  font-size: .875rem; line-height: 1.58; color: var(--ink-2);
}
.sigtable th:last-child, .sigtable td:last-child { padding-right: 0; }
.sigtable td:first-child { width: 22%; color: var(--green); font-weight: 700; padding-right: 1.35rem; }
.sigtable th:first-child { width: 22%; }

@media (max-width: 760px) {
  .sigtable, .sigtable tbody, .sigtable tr, .sigtable td { display: block; width: 100%; }
  .sigtable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sigtable tr { padding: .95rem 0; border-bottom: 1px solid var(--rule-2); }
  .sigtable td { border: 0; padding: 0; }
  .sigtable td:first-child { width: auto; padding-right: 0; margin-bottom: .45rem; font-size: .92rem; }
  .sigtable td + td { margin-top: .6rem; }
  .sigtable td[data-label]::before {
    content: attr(data-label); display: block;
    font: 700 .6rem var(--sans); text-transform: uppercase; letter-spacing: .13em;
    color: var(--ink-3); margin-bottom: .18rem;
  }
}

/* ─────────────────────────  5 · MINT CALLOUT  ───────────────────────── */

.callout {
  display: flex; gap: .65rem;
  margin: 1.5rem 0 0; padding: 1rem 1.15rem; border-radius: 5px;
  background: var(--mint-bg); color: var(--mint-fg);
  font-size: .95rem; line-height: 1.62;
}
.callout__tick { flex: 0 0 auto; font-weight: 700; }
.callout b { font-weight: 700; }

/* ─────────────────────────  6 · FIT CARDS  ───────────────────────── */

.fitcards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1rem; margin: 1.6rem 0 0;
}
.fitcard {
  display: flex; flex-direction: column;
  border: 1px solid var(--rule-2); border-radius: 5px;
  background: var(--card-bg); overflow: hidden;
}
.fitcard__strip { height: 34px; background: var(--strip); border-bottom: 1px solid var(--rule-2); }
.fitcard__in { padding: 1.1rem 1.15rem 1.35rem; display: flex; flex-direction: column; gap: .7rem; }
.fitcard h3 { margin: 0; font: 400 1.2rem/1.28 var(--serif); color: var(--green); }
.fitcard p { margin: 0; font-size: .875rem; line-height: 1.62; color: var(--ink-2); }
.fitcard ul { margin: .1rem 0 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: .42rem; }
.fitcard li { font-size: .845rem; line-height: 1.5; color: var(--ink-2); }
.fitcard li::marker { color: var(--green-3); }

/* ─────────────────────────  7 · DARK GREEN PANEL  ───────────────────────── */

.panel {
  margin: 1.5rem 0 0;
  padding: clamp(1.25rem, 3vw, 1.9rem);
  border-radius: 6px;
  background: var(--green-2); color: var(--on-green);
}
.panel__kicker {
  margin: 0 0 .5rem;
  font: 700 .655rem/1 var(--sans);
  letter-spacing: .17em; text-transform: uppercase;
  color: var(--panel-kicker);
}
/* The panel headline is a real <h2> (it is the section's heading), so this MUST
   come after `.sec h2` — both are (0,1,1) and source order decides the winner. */
.panel h2, .panel h3 {
  margin: 0 0 .85rem;
  font: 400 clamp(1.28rem, 2.5vw, 1.66rem)/1.3 var(--serif);
  color: var(--on-green);
}
.panel p { margin: 0 0 .85rem; font-size: .95rem; line-height: 1.68; color: var(--panel-fg); }
.panel p:last-child { margin-bottom: 0; }

/* ─────────────────────────  8 · NUMBERED ROWS  ───────────────────────── */

.numrows {
  list-style: none; margin: 1.45rem 0 0; padding: 0;
  border-top: 1px solid var(--rule-2);
}
.numrows li {
  display: grid;
  grid-template-columns: 2.9rem minmax(0, 11rem) minmax(0, 1fr);
  gap: .35rem 1.15rem;
  padding: 1rem 0; border-bottom: 1px solid var(--rule-2);
  align-items: start;
}
.numrows__n { margin: 0; font: 400 1rem/1.5 var(--serif); color: var(--green-3); letter-spacing: .05em; }
.numrows__label { margin: 0; font: 700 .875rem/1.5 var(--sans); color: var(--green); }
.numrows__desc { margin: 0; font-size: .875rem; line-height: 1.6; color: var(--ink-2); }
@media (max-width: 720px) {
  .numrows li { grid-template-columns: 2.4rem minmax(0, 1fr); }
  /* Without an explicit column the description auto-places into the narrow
     numeral column and renders one word per line. */
  .numrows__desc { grid-column: 2; }
}

/* ─────────────────────────  9 · TWO-COLUMN LABEL ROWS  ───────────────────────── */

.rows { margin: 1.45rem 0 0; border-top: 1px solid var(--rule-2); }
.rows > div {
  display: grid; grid-template-columns: minmax(0, 10.5rem) minmax(0, 1fr);
  gap: .3rem 1.4rem;
  padding: 1.05rem 0; border-bottom: 1px solid var(--rule-2);
  align-items: start;
}
.rows dt { margin: 0; font: 700 .875rem/1.5 var(--sans); color: var(--green); }
.rows dd { margin: 0; font-size: .875rem; line-height: 1.6; color: var(--ink-2); }
.rows__role { margin: 0 0 .08rem; font: 400 1.06rem/1.35 var(--serif); color: var(--ink); }
.rows__org {
  margin: 0 0 .35rem;
  font: 700 .695rem var(--sans); text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-3);
}
.rows__note { margin: 0; }
.rows dd i, .rows dd em { font-style: italic; }
@media (max-width: 640px) {
  .rows > div { grid-template-columns: 1fr; gap: .35rem; }
}

/* ─────────────────────────  10 · CLOSING  ───────────────────────── */

.contact { margin: 1.25rem 0 0; font-size: .95rem; line-height: 1.9; color: var(--ink-2); }
.contact a { color: var(--green); border-bottom: 1px solid var(--rule); transition: border-color .2s; }
.contact a:hover { border-bottom-color: var(--green); }

.foot { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad) 2.8rem; }
.foot__rule { height: 1px; background: var(--rule); margin: 0 0 .9rem; }
.foot p { margin: 0 0 .35rem; font-size: .78rem; line-height: 1.62; color: var(--ink-3); }
.foot p:last-child { margin-bottom: 0; }
.foot a { color: var(--ink-3); border-bottom: 1px solid var(--rule-2); }
.foot a:hover { color: var(--green); }

/* ─────────────────────────  MOTION  ───────────────────────── */

@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(12px); transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1); }
  .rise.in { opacity: 1; transform: none; }
}

/* ─────────────────────────  PRINT  ───────────────────────── */

@media print {
  .mast, .cta, .skip { display: none !important; }
  body { background: #fff; color: #000; font-size: 10.5pt; }
  .sec { padding: .8rem 0; }
  .sec--alt { background: none; }
  .rise { opacity: 1 !important; transform: none !important; }
  .panel { background: none; color: #000; border: 1px solid #999; }
  .panel h3, .panel p, .panel__kicker { color: #000; }
}
