/* ============================================================================
   nickreitnour.com
   Single-page personal site. Self-contained (no shared brand CSS).
   Token names mirror the Invisionary design system for familiarity.
   ========================================================================== */

:root {
  /* Brand navy scale */
  --navy-900: #0A1B33;
  --navy-800: #0E2442; /* canonical brand / header bg */
  --navy-700: #16335B;
  --navy-600: #214B82;
  --navy-500: #3F6FB0;

  /* Ink (neutral) scale */
  --ink-800: #1F2A37;
  --ink-700: #364152;
  --ink-600: #4B5868;
  --ink-500: #6B7686; /* eyebrow */
  --ink-300: #C7CDD6;
  --ink-200: #E3E7ED;
  --ink-100: #F1F3F6;
  --ink-050: #F8F9FB; /* body bg */
  --white:   #FFFFFF;

  /* Type */
  --font-sans:  'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  /* Reserved for a possible future blog; not currently loaded or applied. */
  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;

  /* Layout */
  --container-max: 1160px;
  --header-h: 96px;
  --radius-sm: 6px;
  --radius-md: 10px;

  /* Motion */
  --t-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-base: 240ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 480ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--navy-800);
  background: var(--ink-050);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--navy-800); color: #fff; }

/* ---- Header ---- */
.site-header { background: var(--navy-800); color: #fff; }
.site-header .bar {
  max-width: var(--container-max);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 22px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  line-height: 1.04;
  letter-spacing: 0.01em;
  color: #fff;
}
.wordmark .first { display: block; font-weight: 400; }
.wordmark .last  { display: block; font-weight: 700; }

.connect {
  display: inline-flex;
  align-items: center;
  opacity: 0.95;
  transition: opacity var(--t-base), transform var(--t-base);
}
.connect:hover { opacity: 1; transform: translateY(-2px); }
.connect:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: var(--radius-sm); }
.connect svg { display: block; width: 34px; height: 34px; }

/* ---- Layout shell ---- */
main { max-width: var(--container-max); margin: 0 auto; padding: 0 32px; }

/* ---- Hero ---- */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  padding: 64px 0 48px;
}
.hero-copy { align-self: center; max-width: 640px; }
.hero-heading {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 4vw, 2.625rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--navy-800);
  margin-bottom: 16px;
}
.hero-heading strong { font-weight: 800; }
.hero-copy p { font-size: 1.0625rem; line-height: 1.7; margin: 0 0 1.15em; }
.hero-copy p:last-child { margin-bottom: 0; }
.hero-copy strong { font-weight: 700; }
.hero-photo { align-self: center; justify-self: end; }
.hero-photo img { width: 100%; max-width: 420px; height: auto; margin-left: auto; }

/* ---- Sections ---- */
.section {
  border-top: 1px solid var(--ink-200);
  padding: 40px 0;
}
.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-500);
  margin-bottom: 24px;
}

/* ---- Clickable logos ---- */
.logo-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
.logo-item {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  padding: 14px;
  height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.95;
  transition: opacity var(--t-base), transform var(--t-base),
              background var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}
/* Sized by height so square marks (e.g. Invisionary Consulting) render full
   size; capped in width so wide wordmarks (IBM, Cencora, Amgen) stay restrained. */
.logo-item img { max-height: 99px; max-width: min(150px, 100%); width: auto; object-fit: contain; }
.logo-item:hover { opacity: 1; transform: translateY(-2px); }
.logo-item:focus-visible { outline: 2px solid var(--navy-500); outline-offset: 2px; }
.logo-item.is-active {
  opacity: 1;
  transform: translateY(-2px);
  background: var(--white);
  border-color: var(--ink-200);
  box-shadow: 0 6px 20px rgba(14, 36, 66, 0.07);
}

/* ---- Inline-expand blurb panel ---- */
.panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-base);
}
.panel.is-open { grid-template-rows: 1fr; }
.panel-inner { overflow: hidden; min-height: 0; }
.blurb-wrap { padding-top: 20px; }
.blurb {
  max-width: 1000px;
  font-size: 1.075rem;
  line-height: 1.62;
  color: var(--navy-800);
  opacity: 0;
  transition: opacity var(--t-base);
}
.panel.is-open .blurb { opacity: 1; }
.blurb[hidden] { display: none; }
.blurb strong { font-weight: 700; }

/* ---- Footer ---- */
.site-footer {
  background: var(--navy-800);
}
.site-footer .bar {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 26px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
}
.site-footer a { color: #fff; opacity: 0.9; transition: opacity var(--t-base); }
.site-footer a:hover { opacity: 1; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .site-header .bar { padding: 18px 20px; }
  main { padding: 0 20px; }
  .hero {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 36px 0 16px;
  }
  /* Flatten .hero-copy so the photo can sit between the heading and the body. */
  .hero-copy { display: contents; }
  .hero-heading { order: 1; margin-bottom: 0; }
  .hero-photo { order: 2; align-self: center; }
  .hero-body { order: 3; }
  .hero-photo img { max-width: 320px; margin: 0 auto; }
  .site-footer .bar { padding: 18px 20px; }
}

@media (max-width: 700px) {
  .logo-row { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .logo-item { height: 116px; }
}

@media (max-width: 520px) {
  .wordmark { font-size: 1.3rem; }
  .logo-item img { max-height: 84px; }
}

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