/* ============================================
   Static HTML/CSS/JS version
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito Sans', 'Open Sans', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #363738;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-weight: 500;
  color: #1a1a1a;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

::selection {
  background: #6c8ba4;
  color: #fff;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f6f6f6; }
::-webkit-scrollbar-thumb { background: #c9c9c9; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #a8a8a8; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 16px 0;
  transition: padding 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.site-header.scrolled {
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: 'Allura', cursive;
  font-size: 34px;
  color: #1a1a1a;
  line-height: 1;
  transform: translateY(2px);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  position: relative;
  font-size: 15px;
  font-weight: 600;
  color: #363738;
  padding-bottom: 4px;
  transition: color 0.25s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #6c8ba4;
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}
.nav-link.active {
  color: #6c8ba4;
}
.search-btn {
  color: #363738;
  transition: color 0.25s ease;
  display: flex;
  align-items: center;
}
.search-btn:hover {
  color: #6c8ba4;
}
.mobile-toggle {
  display: none;
  color: #363738;
}
.mobile-menu {
  display: none;
  padding: 16px 24px;
  background: #fff;
  border-top: 1px solid #eee;
  flex-direction: column;
  gap: 16px;
}
.mobile-menu.open {
  display: flex;
}
.search-btn-mobile {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #363738;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  padding: 0;
}

/* ============ SEARCH OVERLAY ============ */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.97);
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.25s ease;
}
.search-overlay.open {
  display: flex;
}
.search-inner {
  width: 100%;
  max-width: 680px;
  padding: 24px;
}
.search-close {
  color: #363738;
  margin-left: auto;
  display: block;
  margin-bottom: 24px;
  transition: color 0.2s ease;
}
.search-close:hover {
  color: #6c8ba4;
}
#search-input {
  width: 100%;
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  background: transparent;
  border: none;
  border-bottom: 2px solid #dcdcdc;
  padding: 8px 0 12px;
  color: #1a1a1a;
  outline: none;
  transition: border-color 0.25s ease;
}
#search-input:focus {
  border-bottom-color: #6c8ba4;
}
#search-input::placeholder {
  color: #b5b5b5;
}
.search-hint {
  margin-top: 16px;
  font-size: 14px;
  color: #7a7a7a;
}
.search-results {
  margin-top: 24px;
  max-height: 340px;
  overflow-y: auto;
}
.search-result-item {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: color 0.2s ease;
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  color: #1a1a1a;
}
.search-result-item:hover {
  color: #6c8ba4;
}
.search-result-item .rdate {
  display: block;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 12px;
  color: #8a8a8a;
  margin-top: 4px;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('image.jpg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;

  transform: translateY(220px); 
}
.hero-title {
  font-family: 'Allura', cursive;
  font-size: clamp(4rem, 11vw, 10rem);
  color: #ffffff;
  line-height: 1;
  font-weight: 400;
}
.hero-subtitle {
  margin-top: 8px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: #ffffff;
}
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: #1a1a1a;
  animation: bounce 2s infinite;
  display: flex;
}

/* ============ ANIMATIONS ============ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -10px); }
}
.fade-up { animation: fadeUp 1s ease forwards; }
.fade-up-delay { animation: fadeUp 1s 0.3s ease both; }

/* ============ SECTIONS ============ */
.section {
  padding: 80px 0;
}
@media (min-width: 768px) {
  .section {
    padding: 112px 0;
  }
}
.section-articles {
  background: #ffffff;
  padding-top:30px;
  padding-bottom:112px
}
.section-about {
  background: #fafafa;
}
.section-works {
  background: #ffffff;
}
.section-podcast {
  background: #fafafa;
}
.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 56px;
}
.watercolor-divider {
  max-width: 260px;
  width: 100%;
  height: auto;
  opacity: 0.85;
  margin-bottom: 32px;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 500;
  color: #1a1a1a;
  text-align: center;
}
.section-title.left {
  text-align: left;
}
.section-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: #8a8a8a;
  font-size: 16px;
  margin-bottom: 32px;
}
.section-subtitle.center {
  text-align: center;
  margin-top: 12px;
}

/* ============ ARTICLES GRID ============ */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 640px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .articles-grid { grid-template-columns: repeat(3, 1fr); }
}
.article-card {
  background: #fff;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
  display: block;
}
.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.09);
}
.card-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f2f2f2;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.article-card:hover .card-image img {
  transform: scale(1.06);
}
.card-body {
  padding: 20px 4px 24px;
}
.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  line-height: 1.2;
  color: #1a1a1a;
  transition: color 0.25s ease;
}
.article-card:hover .card-title {
  color: #6c8ba4;
}
.card-date {
  margin-top: 8px;
  font-size: 13px;
  color: #8a8a8a;
}
.card-excerpt {
  margin-top: 12px;
  font-size: 14.5px;
  color: #4a4a4a;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.more-link {
  text-align: center;
  margin-top: 64px;
}
.more-link a {
  display: inline-block;
  font-size: 15px;
  color: #6c8ba4;
  font-style: italic;
  border-bottom: 1px solid #6c8ba4;
  padding-bottom: 2px;
  transition: color 0.25s ease;
}
.more-link a:hover {
  color: #4d6d87;
}

/* ============ ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: start;
}
@media (min-width: 768px) {
  .about-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
}
.author-photo {
  aspect-ratio: 3 / 4;
  max-width: 520px;
  overflow: hidden;
  background: #eee;
  margin-top: 32px;
}
.author-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-text {
  padding-top: 8px;
}
.about-text .lead {
  font-size: 17px;
  line-height: 1.8;
  color: #4a4a4a;
}
.accordion {
  margin-top: 32px;
  border: 1px solid #e6e6e6;
  background: #fff;
}
.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: #4a4a4a;
  transition: background 0.2s ease;
}
.accordion-header:hover {
  background: #fafafa;
}
.accordion-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #d0d0d0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a8a8a;
  font-size: 18px;
  line-height: 1;
  font-weight: 400;
}
.accordion-body {
  display: none;
  padding: 0 24px 24px;
}
.accordion-body p {
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.75;
  color: #4a4a4a;
}
.accordion.open .accordion-body {
  display: block;
}
.mountain-photo {
  margin-top: 32px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eee;
}
.mountain-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}
.author-narrative {
  max-width: 760px;
  margin: 64px auto 0;
  padding: 0 8px;
  font-size: 16px;
  line-height: 1.9;
  color: #4a4a4a;
  font-style: italic;
}
.author-narrative p {
  margin-bottom: 24px;
}

/* ============ WORKS ============ */
.works-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 768px) {
  .works-grid { grid-template-columns: 380px 1fr; gap: 56px; }
}
.heart-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #eee;
}
.heart-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid #eee;
  margin-bottom: 32px;
}
.tab {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #8a8a8a;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.tab:hover {
  color: #4a4a4a;
}
.tab.active {
  color: #6c8ba4;
  border-bottom-color: #6c8ba4;
}
.tab-content-wrapper {
  max-height: 500px;
  overflow-y: auto;
  padding-right: 12px;
}
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
  animation: fadeIn 0.35s ease;
}
.tab-content ul {
  list-style: none;
}
.tab-content li {
  font-size: 15px;
  line-height: 1.7;
  color: #4a4a4a;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}
.tab-content h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  color: #1a1a1a;
  margin-bottom: 12px;
  margin-top: 8px;
}
.tab-content h4:first-child {
  margin-top: 0;
}

/* ============ PODCAST ============ */
.podcast-header {
  text-align: center;
  margin-bottom: 56px;
}
.podcast-card {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #eee;
  padding: 32px;
}
.podcast-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f0f0f0;
  flex-wrap: wrap;
}
.podcast-cover {
  width: 64px;
  height: 64px;
  overflow: hidden;
  background: #eee;
  flex-shrink: 0;
}
.podcast-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.podcast-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  color: #1a1a1a;
}
.podcast-author {
  font-size: 14px;
  color: #8a8a8a;
  margin-top: 2px;
}
.podcast-meta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8a8a8a;
  font-size: 14px;
}
.episodes-list {
  list-style: none;
}
.episode-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
}
.episode-item:last-child {
  border-bottom: none;
}
.play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f2f2f2;
  color: #4a4a4a;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, color 0.25s ease;
  flex-shrink: 0;
}
.play-btn:hover {
  background: #e5e5e5;
}
.play-btn.playing {
  background: #6c8ba4;
  color: #fff;
}
.episode-info {
  flex: 1;
  min-width: 0;
}
.episode-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  color: #1a1a1a;
}
.episode-date {
  font-size: 12px;
  color: #8a8a8a;
  margin-top: 2px;
}
.episode-duration {
  font-size: 14px;
  color: #8a8a8a;
  font-variant-numeric: tabular-nums;
}

/* ============ FOOTER ============ */
.copyright {
  padding: 40px 0 24px;
  background: #fff;
  text-align: center;
}
.copyright p {
  font-size: 15px;
  color: #8a8a8a;
}
.site-footer {
  background: #783f04;
  text-align: center;
  padding: 20px 24px;
}
.site-footer p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.95);
}
.site-footer a {
  text-decoration: underline;
  color: inherit;
}
.site-footer a:hover {
  color: #fff;
}

/* ============ BACK TO TOP ============ */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 40px;
  z-index: 40;
  background: #f2f2f2;
  border: 1px solid #e5e5e5;
  color: #6c8ba4;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: background 0.25s ease, color 0.25s ease, opacity 0.3s ease;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.back-to-top:hover {
  background: #6c8ba4;
  color: #fff;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .section-title.left {
    text-align: center;
  }
  .podcast-card {
    padding: 20px;
  }
  .podcast-meta {
    margin-left: 0;
    width: 100%;
  }
}