/* ============================================================
   lennymadethat.com — portfolio / résumé storefront
   Skeleton styles. Mobile-first, restrained, professional.
   Brand colors are CSS variables — swap the values for the
   real brand palette; layout does not depend on the hues.
   ============================================================ */

:root {
  /* --- Brand palette (PLACEHOLDER values — replace with real brand) --- */
  --brand-ink:    #14181f;  /* near-black text / dark surfaces */
  --brand-paper:  #ffffff;  /* page background */
  --brand-accent: #2f5bea;  /* primary action / link accent */
  --brand-accent-2: #0f9d8a;/* secondary accent */

  /* --- Derived / neutral scale --- */
  --c-text:        #14181f;
  --c-text-muted:  #56606e;
  --c-bg:          #ffffff;
  --c-bg-alt:      #f5f7fa;
  --c-border:      #e2e7ee;
  --c-on-accent:   #ffffff;

  /* --- Type --- */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fs-base: 1rem;
  --lh-base: 1.6;

  /* --- Layout --- */
  --maxw: 72rem;
  --gutter: 1.25rem;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20, 24, 31, .06), 0 8px 24px rgba(20, 24, 31, .06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --c-text:       #eef1f6;
    --c-text-muted: #9aa6b6;
    --c-bg:         #0d1117;
    --c-bg-alt:     #151b24;
    --c-border:     #232c38;
  }
}

/* --- Reset-ish --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-accent); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* --- Accessibility: skip link & focus --- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--brand-ink); color: #fff; padding: .6rem 1rem; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--brand-accent); outline-offset: 2px; border-radius: 4px; }

/* ───────────────────────── Header / nav ───────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--c-bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--c-border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; max-width: var(--maxw); margin-inline: auto;
  padding: .75rem var(--gutter);
}
.nav__brand { font-weight: 700; letter-spacing: -.01em; text-decoration: none; color: var(--c-text); font-size: 1.1rem; }
.nav__brand-accent { color: var(--brand-accent); }

.nav__menu {
  list-style: none; display: none; gap: 1.25rem; margin: 0; padding: 0;
}
.nav__menu a { color: var(--c-text-muted); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav__menu a:hover { color: var(--c-text); }

.nav__toggle {
  display: inline-flex; flex-direction: column; gap: 4px; justify-content: center;
  width: 42px; height: 38px; padding: 8px; background: transparent;
  border: 1px solid var(--c-border); border-radius: 8px; cursor: pointer;
}
.nav__toggle-bar { display: block; height: 2px; background: var(--c-text); border-radius: 2px; }

/* Mobile open state (toggled via JS) */
.nav__menu.is-open {
  display: flex; flex-direction: column; gap: .25rem;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--c-bg); border-bottom: 1px solid var(--c-border);
  padding: .5rem var(--gutter) 1rem;
}
.nav__menu.is-open a { display: block; padding: .6rem 0; border-bottom: 1px solid var(--c-border); }

@media (min-width: 48rem) {
  .nav__toggle { display: none; }
  .nav__menu { display: flex; }
}

/* ───────────────────────── Buttons ───────────────────────── */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: .8rem 1.2rem; border-radius: 10px; border: 1px solid transparent;
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn--sm { padding: .55rem .9rem; font-size: .9rem; }
.btn--primary   { background: var(--brand-accent); color: var(--c-on-accent); }
.btn--primary:hover { background: color-mix(in srgb, var(--brand-accent) 88%, #000); }
.btn--secondary { background: transparent; color: var(--c-text); border-color: var(--c-border); }
.btn--secondary:hover { border-color: var(--brand-accent); }
.btn--ghost     { background: transparent; color: var(--brand-accent); border-color: transparent; }
.btn--ghost:hover { text-decoration: underline; }

/* ───────────────────────── Hero ───────────────────────── */
.hero { padding: clamp(3rem, 8vw, 6rem) 0; background:
  radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--brand-accent) 8%, transparent), transparent 60%),
  var(--c-bg); }
.hero__inner { max-width: 48rem; }
.hero__eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--brand-accent); margin: 0 0 .75rem; }
.hero__headline { font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 1rem; }
.hero__sub { font-size: clamp(1.05rem, 2.5vw, 1.25rem); color: var(--c-text-muted); margin: 0 0 2rem; max-width: 40rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ───────────────────────── Sections ───────────────────────── */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section--alt { background: var(--c-bg-alt); }
.section__eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--brand-accent-2); margin: 0 0 .5rem; }
.section__title { font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .75rem; }
.section__lead { color: var(--c-text-muted); max-width: 44rem; font-size: 1.1rem; margin: 0 0 2rem; }

/* Stat row */
.stat-row { list-style: none; display: grid; gap: 1rem; padding: 0; margin: 0; grid-template-columns: 1fr; }
.stat { background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 1.25rem; }
.stat__num { display: block; font-size: 2rem; font-weight: 700; letter-spacing: -.02em; }
.stat__label { color: var(--c-text-muted); font-size: .9rem; }

/* Card grid */
.card-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.card {
  background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .75rem;
}
.card__title { margin: 0; font-size: 1.15rem; }
.card__body { margin: 0; color: var(--c-text-muted); flex: 1; }
.card__link { font-weight: 600; text-decoration: none; }
.card__link:hover { text-decoration: underline; }
.card--tool { border-top: 3px solid var(--brand-accent-2); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.step { display: flex; gap: 1rem; align-items: flex-start; background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 1.25rem; }
.step__num { flex: 0 0 auto; width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; background: var(--brand-accent); color: var(--c-on-accent); font-weight: 700; }
.step__title { margin: 0 0 .25rem; font-size: 1.05rem; }
.step p { margin: 0; color: var(--c-text-muted); }

/* Build log */
.log { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.log__item { display: flex; gap: 1rem; padding: .85rem 1rem; background: var(--c-bg); border: 1px solid var(--c-border); border-radius: 10px; }
.log__date { flex: 0 0 5rem; color: var(--c-text-muted); font-variant-numeric: tabular-nums; }
.log__entry { color: var(--c-text); }

/* ───────────────────────── Footer ───────────────────────── */
.site-footer { border-top: 1px solid var(--c-border); padding: 2.5rem 0; background: var(--c-bg); }
.site-footer__inner { display: flex; flex-direction: column; gap: .25rem; }
.site-footer p { margin: 0; color: var(--c-text-muted); font-size: .9rem; }

/* ───────────────────────── Responsive grids ───────────────────────── */
@media (min-width: 40rem) {
  .stat-row { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 48rem) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}
