/* ═══════════════════════════════════════════════════════
   Adrian Clarke — QA Engineer
   style.css  (global + CV)
═══════════════════════════════════════════════════════ */

/* ── RESET ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── TOKENS ──────────────────────────────────────── */
:root {
  /* Brand */
  --orange:   #eb4910;
  --cream:    #f8f5f0;
  --dark:     #1a1714;
  --mid:      #3d3830;
  --muted:    #7a7065;
  --border:   #e0d8cf;

  /* Monospace */
  --mono: 'Geist Mono', monospace;

  /* CV syntax colours — warm tones drawn from brand palette */
  --j-key:    #8a8078;   /* keys — mid warm */
  --j-string: #e8e0d5;   /* values — light cream (brightest) */
  --j-number: #eb4910;   /* brand orange — numbers         */
  --j-bool:   #eb4910;   /* brand orange — booleans        */
  --j-null:   #b8a898;   /* soft warm — null               */
  --j-brace:  #b8a898;   /* soft warm — braces / brackets  */
  --j-punct:  #c8bdb2;   /* rule tone — colons / commas    */
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--dark);
  font-family: 'Geist', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ── CONTAINER ───────────────────────────────────── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
}

/* ── NAV ─────────────────────────────────────────── */
.nav {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--cream);
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  max-width: 1140px;
  margin: 0 auto;
}

.nav-brand {
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark);
}

.nav-brand em {
  font-style: italic;
  color: var(--orange);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-family: 'Geist', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--dark); }

.nav-cta {
  background: var(--dark) !important;
  color: var(--cream) !important;
  padding: 10px 20px !important;
  border-radius: 4px;
  font-size: 0.8rem !important;
  letter-spacing: 0.04em;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--orange) !important; }

/* ── HERO ────────────────────────────────────────── */
.hero {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 0;
  min-height: calc(100vh - 64px);
  max-height: 760px;
}

.hero-content {
  padding: 72px 56px 72px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-eyebrow {
  font-family: 'Geist', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

.hero-title {
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: clamp(3rem, 5vw, 5.5rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.hero-title em {
  font-style: italic;
  color: var(--orange);
}

.hero-bio {
  font-size: 1.05rem;
  color: var(--mid);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 44px;
}

.hero-bio strong {
  color: var(--dark);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: #fff;
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border-radius: 4px;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover { background: #d03e0c; transform: translateY(-1px); }

.btn-ghost {
  font-family: 'Geist', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted);
  transition: color 0.2s;
}

.btn-ghost:hover { color: var(--dark); }

.hero-photo {
  position: relative;
  overflow: hidden;
  background: var(--dark);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  opacity: 0.9;
  mix-blend-mode: luminosity;
}

.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--orange) 0%, transparent 60%);
  opacity: 0.15;
  pointer-events: none;
}

/* ── PILLARS ─────────────────────────────────────── */
.pillars {
  background: #eeebe5;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pillars-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.pillar {
  padding: 52px 48px;
  border-right: 1px solid var(--border);
}

.pillar:last-child { border-right: none; }

.pillar-icon {
  font-size: 1.4rem;
  margin-bottom: 20px;
  opacity: 0.6;
}

.pillar-title {
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.pillar-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── SKILLS ──────────────────────────────────────── */
.skills-section {
  padding: 96px 48px;
  max-width: 1140px;
  margin: 0 auto;
}

.skills-header {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 48px;
}

.skills-header h2 {
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -0.01em;
}

.skills-rule {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.skill {
  background: var(--cream);
  padding: 28px 32px;
  transition: background 0.2s;
}

.skill:hover { background: #f0ece6; }

.skill-name {
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--dark);
}

.skill-detail {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 300;
}

/* ── QUOTE BAND ──────────────────────────────────── */
.quote-band {
  background: #f0e8e3;
  padding: 96px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.quote-band::before {
  content: '\201C';
  position: absolute;
  top: -40px;
  right: 5%;
  font-family: 'Barlow', sans-serif;
  font-size: 28rem;
  font-weight: 700;
  color: var(--orange);
  opacity: 0.07;
  line-height: 1;
  pointer-events: none;
}

.quote-text {
  font-family: 'Barlow', sans-serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.35;
  color: var(--dark);
  max-width: 820px;
  margin: 0 auto 24px;
}

.quote-attr {
  font-family: 'Geist', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── FOOTER ──────────────────────────────────────── */
footer {
  background: var(--dark);
  color: #6a6055;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a09080;
}

.footer-brand em {
  font-style: italic;
  color: var(--orange);
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6a6055;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--orange); }

.footer-note {
  width: 100%;
  text-align: center;
  font-size: 0.75rem;
  color: #3d3530;
  border-top: 1px solid #2a2520;
  padding-top: 24px;
  margin-top: 8px;
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 900px) {
  .nav-inner { padding: 0 24px; }

  .hero {
    grid-template-columns: 1fr;
    max-height: none;
  }

  .hero-photo {
    height: 360px;
    order: -1;
  }

  .hero-photo img {
    object-position: center 20%;
  }

  .nav-cta {
    padding: 8px 14px !important;
    font-size: 0.75rem !important;
  }

  .hero-content { padding: 48px 24px; }

  .pillars-inner { grid-template-columns: 1fr; border-left: none; border-right: none; }
  .pillar { border-right: none; border-bottom: 1px solid var(--border); }
  .pillar:last-child { border-bottom: none; }

  .skills-section { padding: 64px 24px; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }

  .quote-band { padding: 72px 24px; }
  footer .footer-inner { padding: 32px 24px; }

  /* CV responsive */
  .cv-hero-content {
    padding: 40px 24px;
    max-height: none;
  }

  .json-container {
    max-height: 420px;
  }
}

/* ── ANIMATIONS ──────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow { animation: fadeUp 0.5s ease both; }
.hero-title   { animation: fadeUp 0.5s 0.1s ease both; }
.hero-bio     { animation: fadeUp 0.5s 0.2s ease both; }
.hero-actions { animation: fadeUp 0.5s 0.3s ease both; }


/* ═══════════════════════════════════════════════════════
   CV PAGE
═══════════════════════════════════════════════════════ */

/* ── CV hero — JSON replaces the text content panel ── */
.cv-hero-content {
  padding: 48px 48px 48px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.cv-eyebrow {
  font-family: 'Geist', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  animation: fadeUp 0.5s ease both;
}

/* ── JSON container ── */
.json-container {
  background: var(--dark);
  border: 1px solid var(--mid);
  border-radius: 4px;
  padding: 1.75rem 2rem;
  overflow: auto;
  flex: 1;
  max-height: 560px;
  animation: fadeUp 0.5s 0.1s ease both;
  scrollbar-width: thin;
  scrollbar-color: var(--mid) transparent;
}

.json-container::-webkit-scrollbar { width: 6px; height: 6px; }
.json-container::-webkit-scrollbar-track { background: transparent; }
.json-container::-webkit-scrollbar-thumb { background: var(--mid); border-radius: 3px; }

/* ── JSON pre ── */
.json-pre {
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.85;
  white-space: pre-wrap;
  color: var(--j-string);
}

/* ── Syntax token colours ── */
.j-key     { color: var(--j-key); }
.j-string  { color: var(--j-string); }
.j-number  { color: var(--j-number); }
.j-bool    { color: var(--j-bool); }
.j-null    { color: var(--j-null); font-style: italic; }
.j-brace   { color: var(--j-brace); }
.j-bracket { color: var(--j-brace); }
.j-colon   { color: var(--j-punct); }
.j-comma   { color: var(--j-punct); }
.j-error   { color: var(--muted); font-style: italic; }

/* ── CV download row ── */
.cv-download {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 20px;
  animation: fadeUp 0.5s 0.25s ease both;
}

.cv-download .btn-primary {
  font-size: 0.8rem;
  padding: 12px 22px;
}