/* Work Friends 2.0 - Main Stylesheet */
/* Earthy Editorial Design System */

/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;600;700&family=Lato:wght@400;600;700&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  /* Colors - Primary */
  --slate-blue: #475569;
  --charcoal: #2c2c2c;
  --olive-green: #6b7f5e;
  --terracotta: #be7c68;
  --pale-pink: #e5b5a8;
  
  /* Colors - Neutrals */
  --warm-cream: #faf8f3;
  --white: #ffffff;
  --light-beige: #f5f3ed;
  --warm-taupe: #e5ddd0;
  --case-study-bg: #faf6f3;
  
  /* Fonts */
  --font-serif: 'Lora', serif;
  --font-sans: 'Lato', sans-serif;
  
  /* Spacing */
  --spacing-xs: 8px;
  --spacing-s: 16px;
  --spacing-m: 24px;
  --spacing-l: 32px;
  --spacing-xl: 48px;
  --spacing-xxl: 64px;
}

/* ===== GLOBAL RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== BODY ===== */
body {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--charcoal);
  line-height: 1.7;
  background: var(--warm-cream);
  padding-top: 70px;
}

/* ===== TYPOGRAPHY ===== */
h1 {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--warm-taupe);
  margin-top: 5rem;
}

h1:first-child {
  margin-top: 0;
}

h2 {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--slate-blue);
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 4rem 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--warm-taupe);
}

h3 {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.4;
  margin: 1.5rem 0 0.75rem;
}

p {
  margin-bottom: 1rem;
}

strong {
  font-weight: 700;
  color: var(--charcoal);
}

em {
  font-style: italic;
}

/* ===== LAYOUT ===== */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem 2rem 2rem;
}

main {
  background: var(--white);
  padding: var(--spacing-xl);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  margin-bottom: 2rem;
}

/* ===== NAVIGATION ===== */
nav {
  background: var(--white);
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

nav a {
  color: var(--slate-blue);
  text-decoration: none;
  font-weight: 600;
  font-family: var(--font-sans);
  transition: color 0.2s;
}

nav a:hover {
  color: #334155;
}

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--white);
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  border-radius: 8px;
  border: 1px solid var(--warm-taupe);
  z-index: 1;
  top: 100%;
  left: 0;
  margin-top: 0;
  padding: 0.75rem 0;
}

.dropdown-content a {
  color: var(--charcoal);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-weight: 400;
}

.dropdown-content a:hover {
  background-color: var(--light-beige);
  color: var(--slate-blue);
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* ===== HEADER ===== */
header {
  text-align: center;
  padding: 3rem 0 1.5rem;
}

.logo {
  max-width: 400px;
  width: 100%;
  height: auto;
  margin-bottom: 1.5rem;
}

.logo-small {
  max-width: 150px;
  width: 100%;
  height: auto;
  margin-bottom: 2rem;
}

/* ===== CONTENT BOXES ===== */
.playbook {
  background: var(--light-beige);
  padding: var(--spacing-m);
  border-radius: 8px;
  margin: var(--spacing-xl) 0;
  border-left: 4px solid var(--olive-green);
}

.playbook h3 {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--charcoal);
  margin-top: 0;
  margin-bottom: 1rem;
}

.tip {
  background: var(--light-beige);
  padding: var(--spacing-m);
  border-radius: 8px;
  margin: var(--spacing-xl) 0;
  border-left: 4px solid var(--terracotta);
}

.tip h3 {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--charcoal);
  margin-top: 0;
  margin-bottom: 1rem;
}

/* Legacy support for hot-tip class */
.hot-tip {
  background: var(--light-beige);
  padding: var(--spacing-m);
  border-radius: 8px;
  margin: var(--spacing-xl) 0;
  border-left: 4px solid var(--terracotta);
}

.hot-tip h3 {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--charcoal);
  margin-top: 0;
  margin-bottom: 1rem;
}

.work-story {
  background: var(--light-beige);
  padding: var(--spacing-m);
  border-radius: 8px;
  margin: var(--spacing-xl) 0;
  border-left: 4px solid var(--slate-blue);
}

.work-story h3 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  font-style: italic;
  color: var(--slate-blue);
  text-align: center;
  margin: 0 0 1rem 0;
  text-transform: none;
  letter-spacing: normal;
}

.case-study {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  margin: var(--spacing-xl) 0;
  border: 1px solid var(--pale-pink);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.case-study h3 {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--charcoal);
  margin-top: 0;
  margin-bottom: 1rem;
}

.manifesto {
  background: var(--case-study-bg);
  padding: var(--spacing-m);
  border-radius: 8px;
  margin: var(--spacing-xl) 0;
  border-left: 4px solid var(--terracotta);
}

.manifesto p {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.manifesto p:last-child {
  margin-bottom: 0;
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--terracotta);
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #a06652;
}

.btn-secondary {
  background: var(--olive-green);
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: #58674d;
}

/* ===== LISTS ===== */
ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.5rem;
}

/* ===== LINKS ===== */
a {
  color: var(--slate-blue);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--terracotta);
}

main a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* ===== SPECIAL TEXT STYLES ===== */
.tagline {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 400;
  font-style: italic;
  color: #666;
  margin-bottom: 2rem;
}

.part-number {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--slate-blue);
  margin-bottom: 0.5rem;
}

.part-number .bracket {
  color: var(--terracotta);
}

/* ===== FRAMEWORK LIST ===== */
.framework-list {
  background: var(--light-beige);
  padding: var(--spacing-m);
  border-radius: 8px;
  margin: var(--spacing-xl) 0;
  border-left: 4px solid var(--olive-green);
}

.framework-list ol {
  margin-left: 1.5rem;
}

.framework-list li {
  margin-bottom: 1rem;
}

.framework-list strong {
  color: var(--slate-blue);
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 2rem;
  color: #666;
  font-size: 0.875rem;
}

footer a {
  color: var(--slate-blue);
  text-decoration: none;
}

footer a:hover {
  color: var(--terracotta);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .container {
    padding: 1rem;
  }
  
  main {
    padding: var(--spacing-m);
  }
  
  nav ul {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  .logo {
    max-width: 300px;
  }
  
  .playbook,
  .hot-tip,
  .work-story,
  .case-study,
  .manifesto,
  .framework-list {
    padding: var(--spacing-s);
  }
}
