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

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #1a1a2e;
  background: #fafafa;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a2e;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  text-decoration: none;
  color: #555;
  font-size: 0.925rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover {
  color: #1a1a2e;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #1a1a2e;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  background: linear-gradient(135deg, #f8f6f3 0%, #eee8e0 100%);
}

.hero-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #8b7355;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  color: #1a1a2e;
  max-width: 700px;
  margin: 0 auto 20px;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 1.1rem;
  color: #666;
  max-width: 520px;
  margin: 0 auto 36px;
}

.btn {
  display: inline-block;
  padding: 12px 32px;
  background: #1a1a2e;
  color: #fff;
  text-decoration: none;
  font-size: 0.925rem;
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.2s, transform 0.2s;
}

.btn:hover {
  background: #2d2d4a;
  transform: translateY(-1px);
}

/* ===== Section Titles ===== */
.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 40px;
  letter-spacing: -0.02em;
  color: #1a1a2e;
}

/* ===== Articles ===== */
.articles {
  padding: 80px 0;
  background-color: #d3d2d2;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* ===== Card ===== */
.card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-radius: 12px 12px 0 0;
}

.card-body {
  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.card-meta time {
  font-size: 0.8rem;
  color: #999;
}

.tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8b7355;
  background: #f5f0ea;
  padding: 3px 10px;
  border-radius: 20px;
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
  color: #1a1a2e;
  letter-spacing: -0.01em;
}

.card-subtitle {
  font-size: 0.85rem;
  color: #8b7355;
  font-style: italic;
  margin-bottom: 8px;
}

.card-body > p {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

/* Read More Button */
.read-more {
  display: inline-block;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  color: #8b7355;
  transition: color 0.2s;
}

.read-more::before {
  content: "+";
  display: inline-block;
  margin-right: 6px;
  font-weight: 700;
}

.read-more:hover {
  color: #6b5a42;
}

/* ===== Modal (pure CSS) ===== */
.modal-toggle {
  display: none;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal-toggle:checked + .modal-overlay {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: #fff;
  border-radius: 16px;
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow: hidden;
  position: relative;
  z-index: 1;
  transform: translateY(20px);
  transition: transform 0.3s;
}

.modal-scroll {
  max-height: 85vh;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.modal-toggle:checked + .modal-overlay .modal {
  transform: translateY(0);
}

/* Clickable background to close modal */
.modal-bg {
  position: fixed;
  inset: 0;
  cursor: default;
}

.modal-close {
  position: sticky;
  top: 12px;
  float: right;
  margin-right: 12px;
  margin-top: 12px;
  margin-bottom: -48px;
  font-size: 1.5rem;
  line-height: 1;
  color: #999;
  cursor: pointer;
  z-index: 10;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 0 7px 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: color 0.2s, background 0.2s;
}

.modal-close:hover {
  color: #1a1a2e;
  background: rgba(255, 255, 255, 1);
}

.modal-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  border-radius: 16px 16px 0 0;
}

.modal-body {
  padding: 32px 36px 40px;
}

.modal-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
  color: #1a1a2e;
  letter-spacing: -0.01em;
}

.modal-body .card-subtitle {
  margin-top: -8px;
  margin-bottom: 16px;
}

.modal-body p {
  color: #444;
  font-size: 0.95rem;
  margin-bottom: 14px;
  line-height: 1.8;
}

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

/* Lock body scroll when modal open — works via :has() */
body:has(.modal-toggle:checked) {
  overflow: hidden;
}

/* ===== About ===== */
.about {
  padding: 80px 0;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.about-content {
  max-width: 680px;
}

.about-content p {
  color: #555;
  font-size: 1.05rem;
  margin-bottom: 16px;
  line-height: 1.8;
}

/* ===== Contact ===== */
.contact {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, #f8f6f3 0%, #eee8e0 100%);
}

.contact-text {
  color: #666;
  font-size: 1.05rem;
  margin-bottom: 28px;
}

.contact .btn {
  font-size: 0.9rem;
}

/* ===== Footer ===== */
.site-footer {
  padding: 32px 0;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
}

.site-footer p {
  font-size: 0.825rem;
  color: #999;
}

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

  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .nav.open {
    display: flex;
  }

  .hero {
    padding: 64px 0 56px;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .articles {
    padding: 56px 0;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 28px;
  }

  .card-body {
    padding: 20px 24px 24px;
  }

  .modal {
    max-height: 90vh;
    border-radius: 12px;
  }

  .modal-img {
    height: 200px;
    border-radius: 12px 12px 0 0;
  }

  .modal-body {
    padding: 24px 24px 32px;
  }

  .modal-body h2 {
    font-size: 1.3rem;
  }

  .about,
  .contact {
    padding: 56px 0;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.75rem;
  }

  .card h3 {
    font-size: 1.1rem;
  }

  .modal-overlay {
    padding: 12px;
  }

  .modal-img {
    height: 160px;
  }
}
