/* ============================================
   Christine is Writing — christineiswriting.com
   Design: Warm earthy palette, generous whitespace,
   inspired by Deb Liu + Writers Grotto aesthetic
   ============================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

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

:root {
  --forest: #3D4F3D;
  --forest-deep: #2A3A2A;
  --sage: #7A8B6F;
  --sage-light: #A8B89E;
  --cream: #F5F1EB;
  --cream-warm: #EDE7DD;
  --taupe: #93886D;
  --rust: #B05A3A;
  --rust-soft: #C4755A;
  --bark: #5C4A3A;
  --charcoal: #2D2D2D;
  --white: #FDFCFA;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1100px;
  --section-pad: clamp(4rem, 8vw, 7rem);
}

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

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--forest);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

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

.section-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1.5rem;
}

.section-pad {
  padding: var(--section-pad) 0;
}

/* --- Header / Nav --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(253, 252, 250, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--forest-deep);
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--charcoal);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--rust);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--forest);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

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

/* --- Hero --- */
.hero {
  padding-top: 10rem;
  padding-bottom: var(--section-pad);
  background: var(--white);
}

.hero-inner {
  max-width: 800px;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--forest-deep);
  margin-bottom: 2rem;
}

.hero-tagline em {
  font-style: italic;
  color: var(--rust);
}

.hero-sub {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--taupe);
  max-width: 560px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: inline-flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.95rem 2.2rem;
  border: 1px solid;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--forest);
  color: var(--cream);
  border-color: var(--forest);
}

.btn-primary:hover {
  background: var(--forest-deep);
  color: var(--cream);
  border-color: var(--forest-deep);
}

.btn-outline {
  background: transparent;
  color: var(--forest);
  border-color: var(--sage-light);
}

.btn-outline:hover {
  border-color: var(--forest);
  color: var(--forest);
}

/* --- Divider line --- */
.divider {
  width: 50px;
  height: 1px;
  background: var(--sage-light);
  margin: 0 auto;
}

/* --- About Section (Home preview) --- */
.about-preview {
  background: var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: center;
}

.about-photo {
  aspect-ratio: 3/4;
  background: var(--cream-warm);
  border: 1px solid rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--taupe);
  font-size: 0.85rem;
  font-style: italic;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
  color: var(--forest-deep);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.about-text p {
  color: var(--charcoal);
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}

.about-text .read-more {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rust);
  border-bottom: 1px solid var(--rust-soft);
  padding-bottom: 2px;
}

.about-text .read-more:hover {
  color: var(--forest);
  border-color: var(--forest);
}

/* --- Featured Work / Writing Coach --- */
.featured {
  background: var(--forest-deep);
  color: var(--cream);
}

.featured .section-label {
  color: var(--sage-light);
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.featured-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 2.5rem;
  transition: border-color 0.3s ease;
}

.featured-card:hover {
  border-color: rgba(255,255,255,0.2);
}

.featured-card .card-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--rust-soft);
  margin-bottom: 1rem;
}

.featured-card h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--cream);
}

.featured-card p {
  font-size: 0.9rem;
  color: var(--sage-light);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.featured-card .card-link {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cream);
  border-bottom: 1px solid var(--sage);
  padding-bottom: 2px;
}

.featured-card .card-link:hover {
  color: var(--rust-soft);
  border-color: var(--rust-soft);
}

/* --- Patterns / Substack Section --- */
.patterns {
  background: var(--white);
}

.patterns-intro {
  max-width: 600px;
  margin-bottom: 3rem;
}

.patterns-intro h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
  color: var(--forest-deep);
  margin-bottom: 1rem;
}

.patterns-intro p {
  font-size: 0.95rem;
  color: var(--taupe);
}

.patterns-list {
  display: grid;
  gap: 2rem;
  max-width: 700px;
}

.pattern-item {
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.pattern-item:last-child {
  border-bottom: none;
}

.pattern-date {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.5rem;
}

.pattern-item h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--forest-deep);
  margin-bottom: 0.5rem;
}

.pattern-item h3 a:hover {
  color: var(--rust);
}

.pattern-item p {
  font-size: 0.9rem;
  color: var(--taupe);
}

.patterns-cta {
  margin-top: 3rem;
}

/* --- Subscribe Banner --- */
.subscribe-banner {
  background: var(--cream);
  text-align: center;
}

.subscribe-banner h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--forest-deep);
  margin-bottom: 0.75rem;
}

.subscribe-banner p {
  font-size: 0.95rem;
  color: var(--taupe);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Footer --- */
footer {
  background: var(--forest-deep);
  color: var(--sage-light);
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--cream);
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.78rem;
  letter-spacing: 1px;
  color: var(--sage-light);
}

.footer-links a:hover {
  color: var(--cream);
}

.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 0.72rem;
  color: var(--sage);
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* --- About Page --- */
.page-header {
  padding-top: 9rem;
  padding-bottom: 3rem;
}

.page-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--forest-deep);
}

.about-full {
  background: var(--white);
}

.about-full-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}

.about-sidebar {
  position: sticky;
  top: 6rem;
}

.about-body h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--forest-deep);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.about-body h2:first-child {
  margin-top: 0;
}

.about-body p {
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
  color: var(--charcoal);
}

/* --- Writing Coach Page --- */
.coach-hero {
  padding-top: 9rem;
  padding-bottom: var(--section-pad);
  background: var(--cream);
}

.coach-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 400;
  color: var(--forest-deep);
  max-width: 700px;
  margin-bottom: 1.5rem;
  line-height: 1.25;
}

.coach-hero .hero-sub {
  max-width: 600px;
}

.tiers {
  background: var(--white);
}

.tiers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  max-width: 900px;
}

.tier-card {
  border: 1px solid rgba(0,0,0,0.08);
  padding: 2.5rem;
}

.tier-card.highlighted {
  border-color: var(--forest);
  position: relative;
}

.tier-card.highlighted::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -0.6rem;
  left: 2rem;
  background: var(--forest);
  color: var(--cream);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 2px;
  padding: 0.25rem 0.75rem;
}

.tier-card h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--forest-deep);
  margin-bottom: 0.5rem;
}

.tier-price {
  font-size: 0.85rem;
  color: var(--sage);
  margin-bottom: 1.5rem;
}

.tier-card ul {
  list-style: none;
  margin-bottom: 2rem;
}

.tier-card li {
  font-size: 0.88rem;
  color: var(--charcoal);
  padding: 0.4rem 0;
  padding-left: 1.2rem;
  position: relative;
}

.tier-card li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--sage);
}

/* --- Contact Page --- */
.contact-content {
  max-width: 600px;
}

.contact-content p {
  font-size: 0.95rem;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
}

.contact-links {
  list-style: none;
  margin-top: 2rem;
}

.contact-links li {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.contact-links a {
  font-size: 0.95rem;
  font-weight: 400;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-links .link-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sage);
}

/* --- Contact Form --- */
.contact-form {
  margin-top: 2.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.1);
  padding: 0.85rem 1rem;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
  border-radius: 0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--forest);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--sage-light);
  font-weight: 300;
}

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A8B6F' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.contact-form .btn {
  margin-top: 0.5rem;
}

/* --- Thank You Page --- */
.thank-you {
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.thank-you h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--forest-deep);
  margin-bottom: 1rem;
}

.thank-you p {
  font-size: 0.95rem;
  color: var(--taupe);
  margin-bottom: 2rem;
  max-width: 500px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .about-grid,
  .about-full-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-photo {
    max-width: 300px;
    aspect-ratio: 1;
  }

  .about-sidebar {
    position: static;
  }

  .featured-grid,
  .tiers-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 8rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
