/* ============================================================
   alexrrojas.com — design system
   Identity: oxblood (name, headings, accent marks) — never interactive.
   Action:   muted gold (links, hover, buttons) — never "stop"/"error".
   Base:     warm off-white / warm charcoal. Mobile-first. No build step.
   ============================================================ */

:root {
  --paper:      #f3efe7;   /* warm off-white, not stark white */
  --paper-2:    #ece6db;   /* raised / tinted band */
  --ink:        #26221e;   /* warm charcoal — body text, not black */
  --ink-soft:   #5b554d;   /* secondary text */
  --ink-faint:  #8a8377;   /* meta / captions */

  --accent:     #7a1d29;   /* OXBLOOD — identity only (name, headings) */
  --accent-deep:#611420;   /* oxblood, deeper for small marks */

  --action:     #8a5a17;   /* MUTED GOLD — links / interactive */
  --action-hi:  #6e4610;   /* gold hover (darker, still warm) */
  --action-bg:  rgba(138, 90, 23, 0.10); /* gold tint for button fills */

  --line:       rgba(38, 34, 30, 0.14);
  --line-soft:  rgba(38, 34, 30, 0.08);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --measure: 40rem;
  --gutter:  1.5rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:      #1a1714;   /* warm charcoal, not black */
    --paper-2:    #221e19;
    --ink:        #ece6da;
    --ink-soft:   #b3ac9f;
    --ink-faint:  #837c6f;

    --accent:     #d17b84;   /* oxblood lightened to read on charcoal */
    --accent-deep:#e0929a;

    --action:     #d4a94e;   /* gold, lightened for dark base */
    --action-hi:  #e6bd66;
    --action-bg:  rgba(212, 169, 78, 0.12);

    --line:       rgba(236, 230, 218, 0.16);
    --line-soft:  rgba(236, 230, 218, 0.09);
  }
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

a {
  color: var(--action);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--action) 42%, transparent);
  transition: text-decoration-color 0.15s ease, color 0.15s ease;
}
a:hover { color: var(--action-hi); text-decoration-color: var(--action-hi); }
a:focus-visible {
  outline: 2px solid var(--action);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(3rem, 9vw, 5.5rem);
  border-top: 1px solid var(--line-soft);
}
.section:first-of-type { border-top: 0; }

/* ---------- shared type ---------- */
.kicker {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 1.25rem;
}
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--accent);       /* identity red on headings */
  margin: 0;
}

.section-title {
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  margin-bottom: 1.75rem;
}

p { margin: 0 0 1.15rem; }
p:last-child { margin-bottom: 0; }

.lede { color: var(--ink); }
.muted { color: var(--ink-soft); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-block: clamp(4.5rem, 16vw, 8rem) clamp(3rem, 9vw, 5rem);
  border-top: 0;
}
.hero__name {
  font-size: clamp(2.7rem, 12vw, 4.75rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.6rem;
}
.hero__statement {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.25rem, 4.4vw, 1.75rem);
  line-height: 1.34;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 32ch;
  margin: 0;
}
.hero__statement em {
  font-style: normal;
  color: var(--accent);       /* identity emphasis, not a link */
  font-weight: 500;
}

/* ============================================================
   PROSE
   ============================================================ */
.prose p { max-width: var(--measure); }
.prose .lead { font-size: 1.15rem; color: var(--ink); }

/* ============================================================
   SELECTED WORK
   ============================================================ */
.work { display: grid; gap: 2.25rem; }
.work__item {
  display: grid;
  gap: 0.4rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.work__item:first-child { border-top: 0; padding-top: 0; }
.work__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--accent);
}
.work__org {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0.1rem 0 0.5rem;
}
.work__body { color: var(--ink-soft); margin: 0; max-width: var(--measure); }
.metric { color: var(--ink); font-variant-numeric: tabular-nums; }

/* ============================================================
   "I build the missing thing" — tinted band
   ============================================================ */
.band { background: var(--paper-2); }
.band .section { border-top: 0; }
.band .callout {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--ink);
  max-width: var(--measure);
}
strong { font-weight: 600; color: var(--ink); }
a strong { color: inherit; }   /* keep link color when a link wraps <strong> */

/* ============================================================
   CONTACT
   ============================================================ */
.contact__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.1rem;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}
.contact__sep { color: var(--line); user-select: none; }
.contact__note {
  font-size: 0.9rem;
  color: var(--ink-faint);
  max-width: var(--measure);
  margin: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding-block: 2.5rem;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

/* ---------- accessibility ---------- */
.skip-link {
  position: absolute;
  left: 0.5rem; top: -3rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.9rem;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  z-index: 10;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0.5rem; color: var(--paper); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:target { scroll-margin-top: 2rem; }
