/* ============================================
   AI with Jen — aiwithjen.com
   Visual direction: Brené Brown warmth + Fatima polish + Debbie Millman type confidence
   Palette: Warm teal accent, cream tints, confident serif headlines
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #FAFAF8;
  --color-bg-alt: #F0EFEB;
  --color-bg-accent: #E8F4F2;
  --color-text: #1A1A1A;
  --color-text-secondary: #555555;
  --color-accent: #1A8A7D;
  --color-accent-dark: #14706A;
  --color-accent-light: #D4F0EC;
  --color-border: #E0DFDB;
  --color-white: #FFFFFF;
  --color-blockquote-bg: #F5F0E8;
  --color-blockquote-bar: #C9956B;
  --font-heading: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 720px;
  --max-width-wide: 1080px;
}

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: 2.8rem; margin-bottom: 1rem; letter-spacing: -0.02em; }
h2 { font-size: 2rem; margin-top: 2.5rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.4rem; margin-top: 2rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.15rem; margin-top: 1.5rem; margin-bottom: 0.4rem; font-family: var(--font-body); font-weight: 600; }

p {
  margin-bottom: 1.2rem;
  color: var(--color-text-secondary);
}

strong { color: var(--color-text); }

a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-accent-dark);
}

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 3rem 0;
}

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
}

li {
  margin-bottom: 0.5rem;
  color: var(--color-text-secondary);
}

li strong {
  color: var(--color-text);
}

/* --- Blockquotes (warm, styled) --- */
blockquote {
  background: var(--color-blockquote-bg);
  border-left: 4px solid var(--color-blockquote-bar);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
}

blockquote p {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--color-text);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

blockquote p:last-child {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-style: normal;
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

/* --- Tables --- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

th {
  background: var(--color-bg-alt);
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 600;
  border-bottom: 2px solid var(--color-border);
}

td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-secondary);
}

td strong {
  color: var(--color-text);
}

/* --- Header / Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.95);
}

.header-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.site-logo:hover {
  color: var(--color-accent);
}

.site-nav {
  display: flex;
  gap: 1.75rem;
}

.site-nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--color-accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: 0.3s;
}

/* --- Hero (Home page) --- */
.hero {
  background: linear-gradient(135deg, var(--color-bg-accent) 0%, var(--color-bg) 100%);
  padding: 5rem 2rem 4rem;
  border-bottom: 1px solid var(--color-border);
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-split {
  max-width: var(--max-width-wide);
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: center;
}

.hero-photo {
  display: flex;
  justify-content: center;
}

.headshot {
  width: 280px;
  height: 340px;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(26, 138, 125, 0.15);
}

/* --- About page photo --- */
.about-photo {
  float: right;
  width: 220px;
  height: 270px;
  object-fit: cover;
  object-position: center top;
  border-radius: 12px;
  margin: 0 0 1.5rem 2rem;
  box-shadow: 0 8px 30px rgba(26, 138, 125, 0.12);
}

/* --- Full-width image (courses, articles) --- */
.full-width-img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 12px;
  margin: 1.5rem 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* --- Education two-column --- */
.edu-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin: 1rem 0;
}

.edu-col h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-accent-light);
}

.edu-col ul {
  list-style: none;
  padding: 0;
}

.edu-col li {
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
}

.edu-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}

.edu-item strong {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.3;
}

.edu-item span {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-top: 0.15rem;
}

@media (max-width: 768px) {
  .edu-two-col {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* --- Education grid --- */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}

.edu-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1.25rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.edu-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 4px 16px rgba(26, 138, 125, 0.08);
}

.edu-logo {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.02em;
}

.edu-info h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 0.2rem;
  line-height: 1.3;
}

.edu-degree {
  font-size: 0.8rem;
  color: var(--color-accent-dark);
  font-weight: 500;
  margin: 0 0 0.15rem;
}

.edu-detail {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  margin: 0 0 0.15rem;
  line-height: 1.4;
}

.edu-date {
  font-size: 0.7rem;
  color: rgba(0, 0, 0, 0.35);
  margin: 0;
}

@media (max-width: 768px) {
  .edu-grid {
    grid-template-columns: 1fr;
  }
}

.hero-headline {
  font-size: 3.2rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero-content h2 {
  font-size: 1.6rem;
  color: var(--color-text);
  margin-top: 0;
  margin-bottom: 1rem;
}

.hero-content h3 {
  font-size: 1.2rem;
  color: var(--color-accent-dark);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-body);
  font-weight: 600;
}

.hero-content p {
  font-size: 1.1rem;
  line-height: 1.75;
}

/* --- Featured cards (home page) --- */
.featured-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.featured-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.featured-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 4px 16px rgba(26, 138, 125, 0.08);
}

.featured-card .card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.featured-card h4 {
  padding: 1.25rem 1.5rem 0;
  margin: 0;
}

.featured-card p {
  padding: 0.5rem 1.5rem 1.5rem;
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.featured-cards h4 a {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
}

.featured-cards h4 a:hover {
  color: var(--color-accent);
}

/* --- Page (single pages) --- */
.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.page-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.page-title {
  font-size: 2.6rem;
  letter-spacing: -0.02em;
}

.page-description {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  margin-top: 0.75rem;
  line-height: 1.6;
}

/* --- Article list cards --- */
.article-list {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.article-card {
  display: block;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1.5rem;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.article-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 6px 20px rgba(26, 138, 125, 0.1);
  transform: translateY(-2px);
}

.article-card-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-text);
  margin: 0 0 0.5rem;
}

.article-card-summary {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin: 0 0 0.5rem;
  line-height: 1.5;
}

.article-card-date {
  font-size: 0.8rem;
  color: var(--color-accent);
  font-weight: 500;
}

/* --- Category tags --- */
.tag-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 2rem;
}

.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
}

.tag-ai { background: #E8E0F5; color: #5B3D8F; }
.tag-data { background: #D4F0EC; color: #14706A; }
.tag-content { background: #FDE8D0; color: #9A5B2E; }
.tag-career { background: #FCE4EC; color: #AD1457; }
.tag-tools { background: #E0ECF8; color: #2A5B8C; }

/* --- Article tile grid --- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 1.5rem 0 2.5rem;
}

.article-tile {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
}

.article-tile::before {
  content: "";
  display: block;
  height: 6px;
  width: 100%;
}

/* Category color bands at top of tile */
.article-tile:has(.tag-ai)::before { background: linear-gradient(90deg, #7E57C2, #B39DDB); }
.article-tile:has(.tag-data)::before { background: linear-gradient(90deg, #1A8A7D, #80CBC4); }
.article-tile:has(.tag-content)::before { background: linear-gradient(90deg, #E8903E, #FFCC80); }
.article-tile:has(.tag-career)::before { background: linear-gradient(90deg, #C2185B, #F48FB1); }
.article-tile:has(.tag-tools)::before { background: linear-gradient(90deg, #2A5B8C, #90CAF9); }

.article-tile .tag {
  margin: 1.25rem 1.25rem 0;
  align-self: flex-start;
}

.article-tile h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0.75rem 1.25rem 0.5rem;
  line-height: 1.35;
}

.article-tile p {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin: 0 1.25rem;
  line-height: 1.5;
  flex-grow: 1;
}

.tile-meta {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-accent);
  margin: 0.75rem 1.25rem 1.25rem;
}

.article-tile:hover {
  border-color: var(--color-accent);
  box-shadow: 0 8px 24px rgba(26, 138, 125, 0.12);
  transform: translateY(-3px);
}

.article-tile:hover h3 {
  color: var(--color-accent-dark);
}

/* Upcoming tiles */
.tile-upcoming {
  background: var(--color-bg-alt);
  border-style: dashed;
}

.tile-upcoming .tile-meta {
  color: var(--color-text-secondary);
  font-style: italic;
}

@media (max-width: 768px) {
  .article-grid {
    grid-template-columns: 1fr;
  }
}

/* --- CTA buttons --- */
.page-content a[href="/contact/"],
.page-content a[href="/work-with-me/"],
.page-content a[href="/speaking/"],
.page-content a[href="/courses/"] {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s ease, transform 0.15s ease;
}

.page-content a[href="/contact/"]:hover,
.page-content a[href="/work-with-me/"]:hover,
.page-content a[href="/speaking/"]:hover,
.page-content a[href="/courses/"]:hover {
  background: var(--color-accent-dark);
  transform: translateY(-1px);
}

/* --- Alternating sections (within page content) --- */
.page-content > h2 {
  padding-top: 1rem;
}

.page-content > h2 + p,
.page-content > h2 + ul,
.page-content > h2 + table {
  margin-top: 0.5rem;
}

/* --- Footer --- */
.site-footer {
  background: var(--color-text);
  color: var(--color-bg);
  padding: 3.5rem 2rem 2rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-bg);
  text-decoration: none;
}

.footer-logo:hover {
  color: var(--color-accent-light);
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(250, 250, 248, 0.5);
  margin-top: 0.25rem;
}

.footer-links {
  display: flex;
  gap: 3rem;
  justify-content: flex-end;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(250, 250, 248, 0.4);
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: rgba(250, 250, 248, 0.7);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--color-accent-light);
}

.footer-copy {
  max-width: var(--max-width-wide);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(250, 250, 248, 0.1);
  font-size: 0.75rem;
  color: rgba(250, 250, 248, 0.3);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  html { font-size: 16px; }
  
  h1 { font-size: 2.2rem; }
  .hero-headline { font-size: 2.4rem; }
  .page-title { font-size: 2rem; }
  
  .header-inner { padding: 0.75rem 1.25rem; }
  
  .nav-toggle { display: block; }
  
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0.75rem;
  }
  
  .site-nav.open {
    display: flex;
  }
  
  .site-nav a {
    font-size: 1rem;
    padding: 0.5rem 0;
  }
  
  .hero { padding: 3rem 1.25rem 2.5rem; }
  .page { padding: 2rem 1.25rem 3rem; }
  
  .featured-cards {
    grid-template-columns: 1fr;
  }
  
  .hero-split {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-photo {
    order: -1;
  }
  
  .headshot {
    width: 200px;
    height: 240px;
  }
  
  .about-photo {
    float: none;
    display: block;
    margin: 0 auto 1.5rem;
    width: 180px;
    height: 220px;
  }
  
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-links {
    justify-content: flex-start;
    gap: 2rem;
  }
  
  .footer-right {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.8rem; }
  .hero-headline { font-size: 2rem; }
  .page-title { font-size: 1.7rem; }
}

/* --- Floating CTA --- */
.floating-cta {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 100;
}

.floating-cta.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.floating-cta-link {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.floating-cta-link:hover {
  background: var(--color-accent-dark);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}

.floating-cta-secondary {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  text-align: center;
  padding: 0.25rem 0;
}

.floating-cta-secondary:hover {
  color: var(--color-accent);
}

@media (max-width: 768px) {
  .floating-cta {
    right: 1rem;
    bottom: 1rem;
  }
}
