/* ============================================
   ANGRY WEASEL — angryweasel.com
   Main stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500&display=swap');

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

:root {
  --ink:       #1a1814;
  --ink-mid:   #4a4740;
  --ink-light: #8a8780;
  --paper:     #f7f5f0;
  --paper-mid: #ede9e2;
  --brand:     #26215C;
  --brand-mid: #3C3489;
  --brand-light: #534AB7;
  --brand-pale:  #EEEDFE;
  --accent:    #c4560a;
  --white:     #ffffff;
  --radius:    8px;
  --radius-lg: 14px;
  --max:       1080px;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---- Utility ---- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 10px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
  line-height: 1;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary   { background: var(--white); color: var(--brand); }
.btn-ghost     { background: transparent; color: #AFA9EC; border: 1px solid var(--brand-light); }
.btn-dark      { background: var(--brand); color: var(--white); }
.btn-accent    { background: var(--accent); color: var(--white); }

/* ============================================
   NAV
   ============================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--brand);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--white);
  letter-spacing: -0.3px;
}
.nav-logo em { color: #AFA9EC; font-style: normal; }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--white); }

.nav-cta {
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  background: var(--brand-light);
  padding: 8px 18px;
  border-radius: var(--radius);
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--brand-mid); }

/* ============================================
   HERO
   ============================================ */
.hero {
  background: var(--brand);
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}

/* subtle geometric texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 40px,
      rgba(255,255,255,0.018) 40px,
      rgba(255,255,255,0.018) 41px
    );
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 48px;
  align-items: center;
  position: relative;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #AFA9EC;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 52px;
  line-height: 1.1;
  color: var(--white);
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 16px;
  color: #AFA9EC;
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 10px;
}

.hero-cred {
  font-size: 12px;
  color: rgba(175, 169, 236, 0.6);
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-cred span { color: #7F77DD; }

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

/* Photo circle */
.hero-photo {
  justify-self: center;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #AFA9EC;
  background: var(--brand-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-photo img {
  width: 140%;
  height: 140%;
  object-fit: cover;
  margin: -15%;
}

.hero-photo-placeholder {
  font-family: var(--font-display);
  font-size: 56px;
  color: #AFA9EC;
}

/* Pullquote bar */
.pullquote-bar {
  background: var(--brand-mid);
  border-left: 4px solid #AFA9EC;
  padding: 18px 40px;
}
.pullquote-bar blockquote {
  max-width: var(--max);
  margin: 0 auto;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: #EEEDFE;
  line-height: 1.5;
}

/* ============================================
   PAIN SECTION
   ============================================ */
.pain-section {
  background: var(--white);
  padding: 64px 0;
}

.section-header {
  margin-bottom: 36px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: 34px;
  color: var(--ink);
  font-weight: 400;
  margin-top: 8px;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.pain-card {
  background: var(--paper);
  border: 1px solid var(--paper-mid);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: border-color 0.2s;
}
.pain-card:hover { border-color: var(--brand-light); }

.pain-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--brand-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  color: var(--brand-mid);
}

.pain-card p {
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.6;
  padding-top: 6px;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-section {
  background: var(--paper);
  padding: 64px 0;
  border-top: 1px solid var(--paper-mid);
}

.how-text {
  max-width: 640px;
}
.how-text p {
  font-size: 16px;
  color: var(--ink-mid);
  margin-bottom: 16px;
}
.how-text p:last-child { margin-bottom: 0; }

.how-callout {
  background: var(--brand);
  color: #AFA9EC;
  font-size: 14px;
  font-style: italic;
  padding: 18px 22px;
  border-radius: var(--radius-lg);
  margin-top: 28px;
  max-width: 480px;
  border-left: 3px solid var(--brand-light);
}

/* ============================================
   WHERE I WORK
   ============================================ */
.work-section {
  background: var(--white);
  padding: 64px 0;
  border-top: 1px solid var(--paper-mid);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.work-card {
  border: 1px solid var(--paper-mid);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.work-card:hover {
  border-color: var(--brand-light);
  box-shadow: 0 4px 24px rgba(38,33,92,0.07);
}

.work-card-icon {
  width: 40px;
  height: 40px;
  background: var(--brand-pale);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--brand-mid);
  margin-bottom: 16px;
}

.work-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 10px;
}

.work-card p {
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.65;
}

/* ============================================
   HOW I THINK
   ============================================ */
.think-section {
  background: var(--paper);
  padding: 64px 0;
  border-top: 1px solid var(--paper-mid);
}

.think-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  border: 1px solid var(--paper-mid);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-mid);
}

.think-card {
  background: var(--white);
  padding: 28px;
}

.think-card h3 {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--brand-mid);
  margin-bottom: 10px;
}

.think-card p {
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.65;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testi-section {
  background: var(--white);
  padding: 64px 0;
  border-top: 1px solid var(--paper-mid);
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.testi-card {
  background: var(--paper);
  border: 1px solid var(--paper-mid);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.testi-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: var(--ink);
  line-height: 1.55;
  margin-bottom: 20px;
}
.testi-quote::before { content: '\201C'; }
.testi-quote::after  { content: '\201D'; }

.testi-attr {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testi-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--brand-mid);
  flex-shrink: 0;
}

.testi-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
}
.testi-title {
  font-size: 12px;
  color: var(--ink-light);
}

/* Placeholder state */
.testi-placeholder {
  border: 1.5px dashed var(--paper-mid);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
}
.testi-placeholder p {
  font-size: 13px;
  color: var(--ink-light);
  text-align: center;
  font-style: italic;
}

/* ============================================
   SUBSTACK STRIP
   ============================================ */
.substack-strip {
  background: var(--paper);
  border-top: 1px solid var(--paper-mid);
  border-bottom: 1px solid var(--paper-mid);
  padding: 40px 0;
}

.substack-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.substack-badge {
  display: inline-block;
  background: var(--brand-pale);
  color: var(--brand-mid);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.substack-left h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 6px;
}
.substack-left p {
  font-size: 14px;
  color: var(--ink-mid);
  max-width: 460px;
}

/* ============================================
   FINAL CTA
   ============================================ */
.cta-section {
  background: var(--brand);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 40px,
    rgba(255,255,255,0.018) 40px,
    rgba(255,255,255,0.018) 41px
  );
  pointer-events: none;
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 14px;
  position: relative;
}
.cta-section p {
  font-size: 15px;
  color: #AFA9EC;
  margin-bottom: 32px;
  position: relative;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--ink);
  padding: 32px 0;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--white);
}
.footer-logo em { color: #7F77DD; font-style: normal; }

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--white); }

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

.fade-up {
  opacity: 0;
  animation: fadeUp 0.55s ease forwards;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.35s; }
.delay-4 { animation-delay: 0.5s; }

/* Scroll-triggered reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { display: none; }
  .hero h1 { font-size: 38px; }
  .work-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .think-grid { grid-template-columns: 1fr; }
  .pain-grid { grid-template-columns: 1fr; }
  .substack-inner { flex-direction: column; align-items: flex-start; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .nav-links { display: none; }
  .container { padding: 0 24px; }
  .hero-inner { padding: 0 24px; }
  .pullquote-bar { padding: 18px 24px; }
  .nav-inner { padding: 0 24px; }
  .substack-inner { padding: 0 24px; }
  .footer-inner { padding: 0 24px; }
}
