@import url('fonts.css');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --forest-green: #2d5016;
  --forest-green-light: #3d6b1f;
  --forest-green-dark: #1f3810;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #fafafa;
  color: #1a1a1a;
  position: relative;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* Blueprint grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: 
    radial-gradient(circle, rgba(45, 80, 22, 0.06) 1px, transparent 1px);
  background-size: 20px 20px;
  z-index: 0;
}

/* Layout - Sidebar + Main Content */
.layout {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* Sidebar */
.sidebar {
  width: 420px;
  background: #fff;
  border-right: 2px dashed #d0d0d0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  flex-shrink: 0;
}

.sidebar-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: 60px 0;
}

/* Hero Section in Sidebar */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 48px;
}

.logo {
  font-family: 'Spectral', serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 24px;
}

.hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  margin-bottom: 24px;
  color: #1a1a1a;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* CTA Buttons */
.cta-buttons {
  display: flex;
  gap: 12px;
  flex-direction: column;
  align-items: center;
}

.cta-primary,
.cta-secondary {
  padding: 12px 28px;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px dashed;
  display: inline-block;
}

.cta-primary {
  background: var(--forest-green);
  color: #fff;
  border-color: var(--forest-green-dark);
}

.cta-primary:hover {
  background: var(--forest-green-dark);
  transform: translateY(-1px);
}

.cta-secondary {
  background: transparent;
  color: var(--forest-green);
  border-color: var(--forest-green);
}

.cta-secondary:hover {
  border-color: var(--forest-green-dark);
  background: rgba(45, 80, 22, 0.05);
}

/* Main Content Area */
.main-content {
  flex: 1;
  background: #fafafa;
  overflow-y: auto;
}

/* Content Section */
.content-section {
  padding: 60px 48px;
  max-width: 900px;
}

.content-container h1 {
  font-family: 'Fraunces', serif;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #1a1a1a;
  line-height: 1.2;
}

.content-container h2 {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 16px;
  color: #1a1a1a;
  line-height: 1.3;
}

.content-container p {
  font-family: 'Fraunces', serif;
  margin-bottom: 16px;
  line-height: 1.7;
  color: #333;
  font-size: 16px;
}

.content-container ul {
  font-family: 'Fraunces', serif;
  margin-bottom: 16px;
  padding-left: 24px;
}

.content-container li {
  margin-bottom: 12px;
  line-height: 1.7;
  color: #333;
}

.content-container a {
  color: var(--forest-green);
  text-decoration: none;
  border-bottom: 1px dashed var(--forest-green);
  transition: border-color 0.2s;
}

.content-container a:hover {
  border-bottom-color: var(--forest-green-dark);
}

.content-container strong {
  font-weight: 600;
  color: #1a1a1a;
}

/* Footer in Sidebar */
.footer {
  padding-top: 40px;
  color: #999;
  font-size: 13px;
  text-align: center;
  margin: 0;
  border-top: 2px dashed #d0d0d0;
}

.mobile-footer {
  display: none;
}

.desktop-footer {
  display: block;
}

.footer-icons {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

.footer-icons a {
  color: #1a1a1a;
  text-decoration: none;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-icons a img,
.footer-icons a svg {
  width: 32px;
  height: 32px;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.footer-icons a:hover img,
.footer-icons a:hover svg {
  opacity: 1;
}

/* Responsive */
@media (max-width: 1024px) {
  .layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 2px dashed #d0d0d0;
  }

  .sidebar-content {
    min-height: auto;
    padding: 40px 0;
  }

  .hero {
    justify-content: flex-start;
    padding: 0 32px;
  }

  .desktop-footer {
    display: none;
  }

  .mobile-footer {
    display: block;
    padding: 40px 32px;
    margin: 0;
    border-top: 2px dashed #d0d0d0;
    background: #fafafa;
  }

  .content-section {
    padding: 48px 32px;
  }
}

@media (max-width: 640px) {
  .sidebar-content {
    padding: 32px 0;
  }

  .hero {
    padding: 0 24px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .mobile-footer {
    padding: 32px 24px;
    font-size: 12px;
  }

  .content-section {
    padding: 32px 24px;
  }

  .content-container h1 {
    font-size: 28px;
  }

  .content-container h2 {
    font-size: 20px;
  }
}
