/* ============================================================
   CJ Arnesen — cjarnesen.com
   Palette: Adventure Line F (olive/sage green)
   Layout: Sierra Modern G (clean white, stats hero, ↗ cards)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800&display=swap');

/* ---- Reset ------------------------------------------------ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* ---- Tokens ---------------------------------------------- */
:root {
  --font:         'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', system-ui, -apple-system, sans-serif;
  --ink:          #0a0a0a;
  --ink-mid:      #525252;
  --ink-soft:     #a3a3a3;
  --border:       #e5e5e5;
  --surface:      #f5f5f5;
  --white:        #ffffff;
  --green:        #5c7a3e;      /* Adventure Line olive/sage */
  --green-dark:   #4a6330;
  --green-faint:  #eef2ea;
  --radius-sm:    6px;
  --radius:       10px;
  --radius-lg:    16px;
  --shadow:       0 1px 4px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-md:    0 4px 24px rgba(0,0,0,0.1);
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --speed:        0.2s;
}

/* ---- Base ------------------------------------------------- */
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a {
  color: var(--green);
  text-decoration: none;
  transition: color var(--speed) var(--ease);
}
a:hover { color: var(--green-dark); text-decoration: underline; }

/* ---- Layout ----------------------------------------------- */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

.section       { padding: 88px 0; }
.section--soft { background: var(--surface); padding: 88px 0; }

/* ---- Navigation ------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.2px;
  text-decoration: none;
}
.nav__brand:hover { color: var(--ink); text-decoration: none; }
.nav__brand span { color: var(--green); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav__links a {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-mid);
  text-decoration: none;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  transition: color var(--speed) var(--ease);
}
.nav__links a:hover,
.nav__links a.is-active { color: var(--ink); }

.nav__cta {
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  padding: 8px 18px;
  background: var(--green) !important;
  color: var(--white) !important;
  border-radius: var(--radius-sm);
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  transition: background var(--speed) var(--ease), transform var(--speed) var(--ease) !important;
}
.nav__cta:hover {
  background: var(--green-dark) !important;
  color: var(--white) !important;
  text-decoration: none !important;
  transform: translateY(-1px);
}

/* Mobile toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all var(--speed) var(--ease);
}

/* ---- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: all var(--speed) var(--ease);
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.btn--primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(92,122,62,0.3);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn--ghost:hover {
  border-color: var(--ink-mid);
  color: var(--ink);
  text-decoration: none;
  transform: translateY(-1px);
}

/* ---- Hero (home) ------------------------------------------ */
.hero {
  padding: 96px 0 80px;
  border-bottom: 1px solid var(--border);
}

/* Two-column hero: content + stats sidebar */
.hero__layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 72px;
  align-items: center;
}

.hero__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  margin-bottom: 28px;
  border: 3px solid var(--green-faint);
  display: block;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ink-mid);
  margin-bottom: 20px;
}
.hero__eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--green);
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  color: var(--ink);
  max-width: 820px;
  margin-bottom: 24px;
}

.hero__sub {
  font-size: 1.15rem;
  color: var(--ink-mid);
  max-width: 540px;
  line-height: 1.65;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Stats sidebar in hero */
.hero__stats {
  border-left: 2px solid var(--border);
  padding-left: 40px;
}

.hero__stat {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.hero__stat:first-child { padding-top: 0; }
.hero__stat:last-child { border-bottom: none; padding-bottom: 0; }

.hero__stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 5px;
}

.hero__stat-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---- Section headers -------------------------------------- */
.sh {
  margin-bottom: 48px;
}
.sh__label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--green);
  margin-bottom: 10px;
}
.sh__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 12px;
}
.sh__body {
  font-size: 1.05rem;
  color: var(--ink-mid);
  max-width: 540px;
  line-height: 1.65;
}

/* ---- Cards grid ------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 2px solid transparent;
  border-radius: var(--radius);
  padding: 32px;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease),
              transform var(--speed) var(--ease);
  box-shadow: var(--shadow);
}
.card:hover {
  border-color: #c5d5b2;
  border-top-color: var(--green);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  text-decoration: none;
  color: inherit;
}

.card--static { cursor: default; }
.card--static:hover { transform: none; box-shadow: var(--shadow); border-color: var(--border); border-top-color: transparent; }

.card__icon {
  font-size: 1.8rem;
  margin-bottom: 16px;
  display: block;
  line-height: 1;
}
.card__kicker {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--green);
  margin-bottom: 8px;
}
.card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}
.card__body {
  font-size: 0.9rem;
  color: var(--ink-mid);
  line-height: 1.65;
}
.card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--green);
}
.card__link::after { content: ' ↗'; }

/* ---- About section ---------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: start;
}

.about__prose p {
  font-size: 1.05rem;
  color: var(--ink-mid);
  line-height: 1.8;
  margin-bottom: 20px;
}
.about__prose p:last-child { margin-bottom: 0; }
.about__prose a { font-weight: 500; }

.sidebar {
  border: 1px solid var(--border);
  border-top: 2px solid var(--green);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  background: var(--white);
}

.sidebar__section { margin-bottom: 28px; }
.sidebar__section:last-child { margin-bottom: 0; }

.sidebar__label {
  font-family: var(--font-display);
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.sidebar__value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
}

.sidebar__value a {
  font-weight: 600;
  color: var(--ink);
}
.sidebar__value a:hover { color: var(--green); text-decoration: none; }

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-mid);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 100px;
}

/* ---- Divider ---------------------------------------------- */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ---- Page hero (inner pages) ------------------------------ */
.page-hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--border);
}

.page-hero__kicker {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--green);
  margin-bottom: 12px;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--ink);
  margin-bottom: 14px;
  line-height: 1.1;
}

.page-hero__sub {
  font-size: 1.1rem;
  color: var(--ink-mid);
  max-width: 560px;
  line-height: 1.65;
}

/* ---- Prose (content pages) -------------------------------- */
.prose {
  max-width: 760px;
}
.prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin: 48px 0 14px;
}
.prose h2:first-child { margin-top: 0; }
.prose p {
  font-size: 1.05rem;
  color: var(--ink-mid);
  line-height: 1.8;
  margin-bottom: 18px;
}
.prose ul {
  padding-left: 1.4rem;
  margin-bottom: 18px;
}
.prose li {
  font-size: 1rem;
  color: var(--ink-mid);
  line-height: 1.7;
  margin-bottom: 8px;
}
.prose strong { color: var(--ink); font-weight: 600; }

/* ---- Connect / Social cards ------------------------------- */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 2px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: all var(--speed) var(--ease);
}
.social-card:hover {
  border-color: #c5d5b2;
  border-top-color: var(--green);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}
.social-card__icon { font-size: 1.5rem; flex-shrink: 0; line-height: 1; }
.social-card__name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
}
.social-card__handle {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 2px;
}

/* ---- Instructor bio card ---------------------------------- */
.instructor-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 2px solid var(--green);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  align-items: start;
}
.instructor-card + .instructor-card { margin-top: 16px; }

.instructor-card__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--green-faint);
  border: 1px solid #c5d5b2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}
.instructor-card__name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.instructor-card__role {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--green);
  margin-bottom: 12px;
}
.instructor-card__bio {
  font-size: 0.92rem;
  color: var(--ink-mid);
  line-height: 1.7;
}

/* ---- Stats strip ------------------------------------------ */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 48px;
}
.stat {
  background: var(--white);
  padding: 28px 24px;
  text-align: center;
}
.stat__number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 6px;
}
.stat__label {
  font-size: 0.8rem;
  color: var(--ink-mid);
  font-weight: 500;
}

/* ---- CTA band --------------------------------------------- */
.cta-band {
  text-align: center;
  padding: 80px 0;
}
.cta-band__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--ink);
  margin-bottom: 12px;
}
.cta-band__body {
  font-size: 1rem;
  color: var(--ink-mid);
  max-width: 440px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

/* ---- Footer ----------------------------------------------- */
.footer {
  background: var(--ink);
  padding: 48px 0 32px;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.footer__brand {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
}
.footer__brand:hover { color: #d4d4d4; text-decoration: none; }

.footer__col-label {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #666;
  margin-bottom: 12px;
}
.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer__links a {
  font-size: 0.875rem;
  color: #a3a3a3;
  text-decoration: none;
  transition: color var(--speed) var(--ease);
}
.footer__links a:hover { color: var(--white); text-decoration: none; }

.footer__copy {
  border-top: 1px solid #1f1f1f;
  padding-top: 24px;
  font-size: 0.82rem;
  color: #555;
  text-align: center;
}

/* ---- Responsive ------------------------------------------- */
@media (max-width: 900px) {
  .hero__layout { grid-template-columns: 1fr; gap: 48px; }
  .hero__stats {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }
  .hero__stat {
    padding: 0 24px;
    border-bottom: none;
    border-right: 1px solid var(--border);
  }
  .hero__stat:first-child { padding-left: 0; }
  .hero__stat:last-child { border-right: none; padding-right: 0; }
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 8px 0 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    gap: 0;
  }
  .nav__links.is-open li { width: 100%; }
  .nav__links.is-open a {
    display: block;
    padding: 12px 28px;
    font-size: 0.9rem;
  }
  .nav__links.is-open .nav__cta {
    margin: 8px 28px 0;
    border-radius: var(--radius-sm);
    text-align: center;
  }
  .nav__toggle { display: flex; }

  .hero { padding: 64px 0 52px; }
  .hero h1 { letter-spacing: -1.5px; }
  .section, .section--soft { padding: 64px 0; }
  .footer__inner { gap: 24px; }
}

@media (max-width: 500px) {
  .container { padding: 0 18px; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .hero__stats { grid-template-columns: 1fr; }
  .hero__stat {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
  }
  .hero__stat:last-child { border-bottom: none; }
  .instructor-card { grid-template-columns: 1fr; }
  .instructor-card__avatar { width: 64px; height: 64px; font-size: 1.6rem; }
  .stats { grid-template-columns: 1fr 1fr; }
}
