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

:root {
  --charcoal: #2b2d2e;
  --charcoal-light: #353839;
  --green: #5a8a6a;
  --green-light: #6b9e7a;
  --green-pale: #e8f0eb;
  --cream: #fafaf8;
  --text: #2c2c2c;
  --text-light: #d4d4d4;
  --text-muted: #999;
  --border-light: #e2e2e2;
  --border-dark: #444;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--cream);
}

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

a:hover {
  color: var(--green-light);
  text-decoration: underline;
}

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

/* === Header === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--charcoal);
  z-index: 100;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-title {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.01em;
}

.site-title:hover {
  color: var(--green-light);
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  font-size: 0.82rem;
  color: var(--text-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--green-light);
  text-decoration: none;
}

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 26px;
  height: 18px;
  position: relative;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  position: absolute;
  left: 0;
  transition: 0.3s;
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 8px; }
.menu-toggle span:nth-child(3) { top: 16px; }

.menu-toggle.active span:nth-child(1) { top: 8px; transform: rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { top: 8px; transform: rotate(-45deg); }

/* === Hero === */
.hero {
  padding: 110px 24px 80px;
  background: var(--cream);
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 56px;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 8px;
  color: var(--charcoal);
}

.subtitle {
  font-size: 1.05rem;
  color: var(--green);
  margin-bottom: 28px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.intro {
  font-size: 0.97rem;
  margin-bottom: 16px;
  color: #555;
  line-height: 1.75;
}

.intro em {
  font-style: italic;
  color: #444;
}

.social-links {
  display: flex;
  gap: 14px;
  margin-top: 24px;
}

.social-links a {
  color: #666;
  transition: color 0.2s;
}

.social-links a:hover {
  color: var(--green);
  text-decoration: none;
}

.hero-image {
  flex-shrink: 0;
  width: 300px;
}

.hero-image img {
  border-radius: 4px;
  width: 100%;
  height: auto;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

/* === Sections === */
.section {
  padding: 64px 24px;
}

.section-dark {
  background: var(--charcoal);
  color: var(--text-light);
}

.section-dark a {
  color: var(--green-light);
}

.section-dark a:hover {
  color: #8fbf9e;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* Section Headers */
.section-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 36px;
}

.section-header h2 {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.section-dark .section-header h2 {
  color: #fff;
}

.section-tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.section-dark .section-tagline {
  color: #888;
}

.section-thumb {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.section-thumb--wide {
  width: 140px;
  height: auto;
  border-radius: 4px;
}

/* === Accordion === */
.accordion {
  border-bottom: 1px solid var(--border-light);
}

.section-dark .accordion {
  border-bottom-color: var(--border-dark);
}

.accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  padding: 18px 4px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: color 0.2s;
  text-align: left;
}

.section-dark .accordion-toggle {
  color: var(--text-light);
}

.accordion-toggle:hover {
  color: var(--green);
}

.section-dark .accordion-toggle:hover {
  color: var(--green-light);
}

.accordion-icon {
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 12px;
}

.accordion.open .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 4px;
}

.accordion.open .accordion-content {
  max-height: 2000px;
  padding: 0 4px 24px;
}

.accordion-content p {
  font-size: 0.95rem;
  margin-bottom: 10px;
  line-height: 1.7;
}

.section-dark .accordion-content p {
  color: #bbb;
}

.mc-link a {
  font-weight: 600;
  font-size: 1rem;
}

/* === Item Lists === */
.item-list {
  list-style: none;
}

.item-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(128,128,128,0.15);
  font-size: 0.93rem;
  line-height: 1.6;
}

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

.item-list .date {
  display: inline-block;
  min-width: 90px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.section-dark .item-list .date {
  color: #777;
}

.item-list .pub {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
}

.section-dark .item-list .pub {
  color: #777;
}

.item-list .topic {
  display: block;
  color: #888;
  font-size: 0.85rem;
  margin-top: 2px;
  padding-left: 90px;
}

/* === Techniques List === */
.techniques-list {
  list-style: none;
  margin-top: 8px;
}

.techniques-list li {
  padding: 8px 0;
  font-size: 0.93rem;
  border-bottom: 1px solid rgba(128,128,128,0.15);
  line-height: 1.6;
}

.techniques-list li:last-child {
  border-bottom: none;
}

.techniques-list strong {
  color: var(--text);
}

.section:not(.section-dark) .techniques-list strong {
  color: var(--charcoal);
}

/* === Footer === */
.site-footer {
  padding: 36px 24px;
  text-align: center;
  background: var(--charcoal);
  border-top: 1px solid var(--border-dark);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.site-footer .social-links {
  justify-content: center;
  margin-bottom: 12px;
}

.site-footer .social-links a {
  color: #888;
}

.site-footer .social-links a:hover {
  color: var(--green-light);
}

.site-footer p {
  font-size: 0.8rem;
  color: #666;
}

/* === Responsive === */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--charcoal);
    flex-direction: column;
    padding: 16px 24px 20px;
    gap: 12px;
    border-bottom: 1px solid var(--border-dark);
    display: none;
  }

  .site-nav.open {
    display: flex;
  }

  .hero-inner {
    flex-direction: column-reverse;
    gap: 28px;
  }

  .hero-image {
    width: 180px;
    margin: 0 auto;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .hero {
    padding: 90px 20px 48px;
  }

  .section {
    padding: 48px 20px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .item-list .date {
    display: block;
    min-width: unset;
    margin-bottom: 2px;
  }

  .item-list .topic {
    padding-left: 0;
  }

  .section-thumb {
    width: 70px;
    height: 70px;
  }

  .section-thumb--wide {
    width: 120px;
  }
}
