/*
Theme Name: JackCanCode Learn
Theme URI: https://jackcancode.com/
Description: OceanWP child — coding education; free-pool dual-crop heroes; Keith readability floors.
Author: Keith BBF
Template: oceanwp
Version: 1.3.5
Text Domain: jackcancode-learn
*/

:root {
  --jcc-ink: #0f172a;
  --jcc-muted: #475569;
  --jcc-accent: #0ea5e9;
  --jcc-accent-deep: #0369a1;
  --jcc-cream: #f8fafc;
  --jcc-line: rgba(15, 23, 42, 0.1);
  --jcc-header-h: 64px;
}

body.jcc-front {
  margin: 0;
  background: var(--jcc-cream);
  color: var(--jcc-ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
}

.jcc-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--jcc-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 clamp(16px, 4vw, 32px);
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--jcc-line);
}

.jcc-lockup {
  display: flex;
  align-items: center;
  gap: 10.4px;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 16px;
}

.jcc-lockup-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--jcc-accent), var(--jcc-accent-deep));
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35);
}

.jcc-nav {
  display: none;
  gap: 20px;
  font-size: 16px;
}
.jcc-nav a {
  color: var(--jcc-muted);
  text-decoration: none;
}
.jcc-nav a:hover { color: var(--jcc-ink); }
@media (min-width: 720px) {
  .jcc-nav { display: flex; }
}

.jcc-hdr-cta {
  font-size: 18px;
  text-decoration: none;
  color: #fff;
  background: var(--jcc-ink);
  padding: 8.8px 16px;
  border-radius: 999px;
  white-space: nowrap;
}

.jcc-hero {
  position: relative;
  min-height: min(70vh, 540px);
  display: grid;
  align-items: end;
  padding: clamp(32px, 6vw, 64px) clamp(16px, 4vw, 32px) clamp(40px, 5vw, 56px);
  color: #fff;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.35) 0%, rgba(15, 23, 42, 0.82) 100%),
    var(--jcc-hero-img) center / cover no-repeat;
}

.jcc-hero-inner { width: min(720px, 100%); }
.jcc-eyebrow {
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.9;
  margin: 0 0 12px;
}
.jcc-hero h1 {
  font-weight: 700;
  font-size: clamp(32px, 6vw, 49.6px);
  line-height: 1.1;
  margin: 0 0 13.6px;
  letter-spacing: -0.03em;
}
.jcc-lede {
  font-size: 17.6px;
  margin: 0 0 24px;
  max-width: 576px;
  opacity: 0.95;
}
.jcc-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14.4px 21.6px;
  border-radius: 999px;
  background: #fff;
  color: var(--jcc-ink);
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
}

.jcc-section {
  width: min(1040px, 92vw);
  margin: 0 auto;
  padding: clamp(40px, 5vw, 60px) 0;
}
.jcc-section h2 {
  font-size: clamp(22px, 3vw, 30px);
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}
.jcc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 17.6px;
}
.jcc-card {
  border: 1px solid var(--jcc-line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.jcc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}
.jcc-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #e2e8f0;
}
.jcc-card .body { padding: 16px 17.6px 20px; }
.jcc-card h3 {
  margin: 0 0 6.4px;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.jcc-card p {
  margin: 0;
  font-size: 16px;
  color: var(--jcc-muted);
}

.jcc-footer {
  border-top: 1px solid var(--jcc-line);
  padding: 24px clamp(16px, 4vw, 32px) 32px;
  font-size: 16px;
  color: var(--jcc-muted);
  text-align: center;
}

/* Hide default OceanWP chrome on this front page */
body.jcc-front #site-header,
body.jcc-front #site-header-sticky-wrapper,
body.jcc-front #footer,
body.jcc-front .site-footer,
body.jcc-front #scroll-top {
  display: none !important;
}
body.jcc-front #main {
  padding: 0 !important;
}

/* ---- Keith readability floors (Soft five 2026-09-24) ---- */
body.jcc-front {
  color: var(--jcc-ink);
}
.jcc-nav { font-size: 16px !important; }
.jcc-nav a { color: var(--jcc-ink) !important; opacity: 0.85; }
.jcc-nav a:hover { opacity: 1; }
.jcc-lockup { font-size: 16px !important; }
.jcc-hdr-cta,
.jcc-cta {
  font-size: 18px !important;
  line-height: 1.25 !important;
}
.jcc-eyebrow { font-size: 16px !important; letter-spacing: 0.1em; }
.jcc-lede { font-size: 18px !important; }
.jcc-section h2 { font-size: clamp(22px, 3vw, 30px) !important; }
.jcc-card h3 { font-size: 20px !important; }
.jcc-card p {
  font-size: 16px !important;
  color: var(--jcc-ink) !important;
  opacity: 0.82;
}
.jcc-footer { font-size: 16px !important; color: var(--jcc-ink) !important; opacity: 0.75; }
.jcc-attr { font-size: 16px !important; opacity: 0.8; }
/* Dual-crop hero: mobile 4:5, desk 16:9 */
.jcc-hero {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.28) 0%, rgba(15, 23, 42, 0.78) 100%),
    var(--jcc-hero-mob, var(--jcc-hero-desk, var(--jcc-hero-img))) center / cover no-repeat !important;
  color: #fff !important;
}
@media (min-width: 768px) {
  .jcc-hero {
    background:
      linear-gradient(180deg, rgba(15, 23, 42, 0.28) 0%, rgba(15, 23, 42, 0.78) 100%),
      var(--jcc-hero-desk, var(--jcc-hero-img)) center / cover no-repeat !important;
  }
}

/* ---- Soft5 deepen 2026-09-24: prose / notes / checklist ---- */
.jcc-section-lede { margin-top: -0.80px; margin-bottom: 20px; color: inherit; opacity: .85; max-width: 672px; }
.jcc-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.jcc-note {
  border: 1px solid var(--jcc-line); border-radius: 14px;
  padding: 17.6px 19.2px 20px; background: rgba(255,255,255,.55);
}
.jcc-note h3 { margin: 0 0 7.2px; font-size: 18px; font-weight: 600; color: var(--jcc-ink); }
.jcc-note p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--jcc-ink); opacity: .88; }
.jcc-checklist {
  margin: 0; padding: 0 0 0 20px; max-width: 672px;
  font-size: 16px; line-height: 1.6; color: var(--jcc-ink);
}
.jcc-checklist li { margin: 0 0 10.4px; }

/* ---- Soft5 UI handoff 2026-09-24: Keith type floors + Ocean neutralize ---- */
body.jcc-front {
  line-height: 1.55;
  color: inherit;
}
/* Soft5 2026-09-27: Ocean body/chrome/button !important floors removed — parent now emits body 18 / chrome 16 / buttons 18 via theme_mods (functions.php soft5_ocean_typo_source_apply). */
.jcc-nav { font-size: 16px !important; }
.jcc-nav a { color: inherit; opacity: 0.85; }
.jcc-nav a:hover { opacity: 1; }
.jcc-lockup { font-size: 16px !important; }
.jcc-hdr-cta,
.jcc-cta {
  font-size: 18px !important;
  line-height: 1.25 !important;
}
.jcc-eyebrow { font-size: 16px !important; letter-spacing: 0.1em; }
.jcc-lede { font-size: 18px !important; }
.jcc-section h2 { font-size: clamp(22px, 3vw, 30px) !important; }
.jcc-card h3 { font-size: 20px !important; }
.jcc-card p {
  font-size: 16px !important;
  opacity: 0.85;
}
.jcc-footer { font-size: 16px !important; opacity: 0.8; }
.jcc-attr { font-size: 16px !important; opacity: 0.85; }
.jcc-note h3 { font-size: 18px !important; }
.jcc-note p,
.jcc-check li {
  font-size: 16px !important;
  line-height: 1.55 !important;
}

/* ---- Soft5 2026-10-03 (v1.3.4): card title 20px (WebDsnR); text-only cards have no media box ---- */
.jcc-card h3 { font-size: 20px !important; }
.jcc-card img { background: transparent; }

/* ---- Soft5 2026-10-03 (v1.3.5): pack photos (dual-crop hero), dark text band, 16px credits ---- */
.jcc-herofig { margin: 0; }
.jcc-hero {
  background:
    linear-gradient(180deg, rgba(15,23,42,.10) 0%, rgba(15,23,42,.28) 100%),
    url("assets/hero-4x5-1080.webp") center / cover no-repeat !important;
  background:
    linear-gradient(180deg, rgba(15,23,42,.10) 0%, rgba(15,23,42,.28) 100%),
    image-set(url("assets/hero-4x5-640.webp") 1x, url("assets/hero-4x5-1080.webp") 2x) center / cover no-repeat !important;
  color: #fff !important;
}
@media (min-width: 768px) {
  .jcc-hero {
    background:
      linear-gradient(180deg, rgba(15,23,42,.10) 0%, rgba(15,23,42,.28) 100%),
      url("assets/hero-16x9-1200.webp") center / cover no-repeat !important;
    background:
      linear-gradient(180deg, rgba(15,23,42,.10) 0%, rgba(15,23,42,.28) 100%),
      image-set(url("assets/hero-16x9-1200.webp") 1x, url("assets/hero-16x9-1920.webp") 2x) center / cover no-repeat !important;
  }
}
@media (min-width: 1300px) {
  .jcc-hero {
    background:
      linear-gradient(180deg, rgba(15,23,42,.10) 0%, rgba(15,23,42,.28) 100%),
      url("assets/hero-16x9-1920.webp") center / cover no-repeat !important;
  }
}
/* dark text band: hero copy never sits on the photo itself */
.jcc-hero-inner {
  background: rgba(15,23,42,.92); border-radius: 14px;
  padding: 20px 22px 24px; width: min(720px, 100%);
}
.jcc-hero h1 { color: #fff !important; }
.jcc-hero .jcc-eyebrow, .jcc-hero .jcc-lede { color: #fff !important; opacity: 1 !important; }
.jcc-hero .jcc-lede { margin-bottom: 20px; }
.soft5-credit, .jcc-credit {
  font-size: 16px !important; line-height: 1.4 !important; margin: 0 !important;
  color: var(--jcc-ink) !important; opacity: 1 !important; text-align: left; font-style: normal;
  font-family: system-ui, -apple-system, sans-serif;
}
.jcc-herofig > .jcc-credit { padding: 10px clamp(16px, 4vw, 32px); background: var(--jcc-cream); }
.soft5-fig { margin: 0; background: rgba(255,255,255,.55); }
.jcc-card .soft5-fig img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; background: transparent; }
.soft5-fig .soft5-credit { padding: 8px 17.6px 0; }
