/* =============================================
   JaponyaKore Theme — Main Stylesheet
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&family=Mulish:wght@300;400;500&display=swap');

:root {
  --bordo: #6B0F2A;
  --bordo-light: #8C1535;
  --bordo-pale: #D4A0AE;
  --cream: #FAF6F1;
  --ink: #1A0D12;
  --muted: #9E8088;
  --warm: #F0E8E0;
  --accent: #C9404A;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Mulish', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ── NAV ── */
.site-header {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid rgba(107,15,42,0.12);
  padding: 0 3rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 80px;
}
.site-branding a {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem; font-weight: 700;
  color: var(--ink); letter-spacing: -0.03em;
  line-height: 1;
}
.site-branding a span { color: var(--bordo); }

.main-navigation ul {
  display: flex; gap: 2rem; list-style: none;
}
.main-navigation ul a {
  color: var(--muted); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: color 0.25s; position: relative;
}
.main-navigation ul a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px; background: var(--bordo);
  transition: width 0.3s ease;
}
.main-navigation ul a:hover { color: var(--bordo); }
.main-navigation ul a:hover::after { width: 100%; }
.nav-search-btn {
  background: none; border: none; color: var(--muted);
  font-size: 1.1rem; cursor: pointer; transition: color 0.25s;
}
.nav-search-btn:hover { color: var(--bordo); }

/* ── MAIN CONTENT OFFSET ── */
.site-content { margin-top: 80px; }

/* ── HERO ── */
.hero-section {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 80px);
}
.hero-text-side {
  display: flex; flex-direction: column; justify-content: center;
  padding: 5rem 4rem 5rem 3rem;
  border-right: 1px solid rgba(107,15,42,0.1);
}
.hero-issue-tag {
  font-size: 0.65rem; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--bordo); margin-bottom: 2.5rem;
  display: flex; align-items: center; gap: 1rem;
  animation: fadeUp 0.9s ease 0.1s both;
}
.hero-issue-tag::before {
  content: ''; display: block; width: 32px; height: 1px; background: var(--bordo);
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 5vw, 4.8rem); font-weight: 700;
  line-height: 1.05; letter-spacing: -0.03em;
  color: var(--ink); margin-bottom: 1.5rem;
  animation: fadeUp 0.9s ease 0.25s both;
}
.hero-title em { font-style: italic; color: var(--bordo); }
.hero-excerpt {
  color: var(--muted); line-height: 1.8; font-size: 1rem;
  max-width: 420px; margin-bottom: 2.5rem;
  animation: fadeUp 0.9s ease 0.4s both;
}
.hero-meta {
  display: flex; align-items: center; gap: 1.5rem;
  font-size: 0.75rem; color: var(--muted); margin-bottom: 2rem;
  animation: fadeUp 0.9s ease 0.55s both;
}
.hero-author { display: flex; align-items: center; gap: 0.6rem; }
.author-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--bordo), var(--bordo-light));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  color: white; font-size: 0.75rem; font-weight: 700;
  overflow: hidden;
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hero-read-btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  color: var(--bordo); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  border-bottom: 1px solid var(--bordo); padding-bottom: 2px;
  transition: gap 0.3s, color 0.3s;
  animation: fadeUp 0.9s ease 0.7s both;
}
.hero-read-btn:hover { gap: 1.2rem; color: var(--accent); }
.hero-read-btn::after { content: '→'; }

.hero-visual-side {
  position: relative; overflow: hidden; background: var(--ink);
  min-height: 400px;
}
.hero-visual-side .post-thumbnail {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.5;
}
.hero-visual-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(26,13,18,0.2) 0%, rgba(107,15,42,0.7) 100%);
}
.hero-visual-pattern {
  position: absolute; inset: 0; opacity: 0.04;
  background-image:
    repeating-linear-gradient(45deg, #fff 0, #fff 1px, transparent 0, transparent 50%),
    repeating-linear-gradient(-45deg, #fff 0, #fff 1px, transparent 0, transparent 50%);
  background-size: 20px 20px;
}
.hero-visual-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: 3rem;
}
.hero-visual-label {
  font-size: 0.6rem; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--bordo-pale); margin-bottom: 1rem;
}
.hero-visual-quote {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-style: italic;
  color: white; line-height: 1.4; max-width: 320px; margin-bottom: 1rem;
}
.hero-visual-attr { font-size: 0.7rem; color: rgba(255,255,255,0.35); letter-spacing: 0.1em; }
.dest-tags {
  position: absolute; top: 3rem; right: 2rem;
  display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-end;
}
.dest-tag {
  background: rgba(107,15,42,0.65); backdrop-filter: blur(10px);
  padding: 0.3rem 0.8rem;
  font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--bordo-pale); border-left: 2px solid var(--bordo-pale);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── TICKER ── */
.ticker-bar {
  background: var(--bordo); padding: 0.65rem 0; overflow: hidden;
}
.ticker-track {
  display: flex; width: max-content;
  animation: ticker 30s linear infinite;
}
.ticker-item {
  font-size: 0.68rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(255,255,255,0.65); white-space: nowrap;
  padding: 0 2rem; display: flex; align-items: center; gap: 2rem;
}
.ticker-sep { color: rgba(255,255,255,0.25); }
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── SECTION LAYOUT ── */
.section-wrap { padding: 5rem 3rem; }
.section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(107,15,42,0.12); padding-bottom: 1rem;
}
.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem; font-weight: 700;
  color: var(--ink); letter-spacing: -0.02em;
}
.section-header h2 span { color: var(--bordo); font-style: italic; }
.see-all-link {
  font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--bordo); display: flex; align-items: center; gap: 0.4rem;
  transition: gap 0.3s;
}
.see-all-link:hover { gap: 0.8rem; }
.see-all-link::after { content: '→'; }

/* ── FEATURED GRID ── */
.featured-grid {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 2px; background: rgba(107,15,42,0.08);
}
.f-card {
  background: var(--cream); padding: 2.5rem;
  position: relative; overflow: hidden;
  transition: background 0.3s; cursor: pointer;
}
.f-card:hover { background: var(--warm); }
.f-card.large { grid-row: span 2; border-right: 2px solid rgba(107,15,42,0.08); }
.f-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--bordo);
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease;
}
.f-card:hover::before { transform: scaleX(1); }
.f-card .post-thumbnail-wrap {
  width: 100%; height: 200px; overflow: hidden; margin-bottom: 1.2rem;
}
.f-card.large .post-thumbnail-wrap { height: 260px; }
.f-card .post-thumbnail-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.f-card:hover .post-thumbnail-wrap img { transform: scale(1.04); }
.card-country {
  display: inline-block; font-size: 0.6rem; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--bordo); font-weight: 500;
  background: rgba(107,15,42,0.07); padding: 0.25rem 0.6rem; margin-bottom: 1.2rem;
}
.f-card h3 {
  font-family: 'Playfair Display', serif; font-weight: 700;
  color: var(--ink); line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 1rem;
}
.f-card.large h3 { font-size: 2rem; }
.f-card:not(.large) h3 { font-size: 1.2rem; }
.f-card .entry-excerpt {
  font-size: 0.9rem; color: var(--muted); line-height: 1.7; margin-bottom: 1.5rem;
}
.f-card.large .entry-excerpt { font-size: 0.95rem; }
.card-footer-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.72rem; color: var(--muted);
}
.read-time { display: flex; align-items: center; gap: 0.4rem; }
.read-time::before { content: ''; display: block; width: 16px; height: 1px; background: var(--bordo); }

/* ── TWO COLUMNS ── */
.two-col-section {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(107,15,42,0.12);
}
.col-block { padding: 4rem 3rem; }
.col-block:first-child { border-right: 1px solid rgba(107,15,42,0.12); }
.col-label {
  display: flex; align-items: center; gap: 0.8rem;
  font-size: 0.65rem; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--bordo); margin-bottom: 2.5rem; font-weight: 500;
}
.col-label-flag { font-size: 1.2rem; }
.post-list-items { display: flex; flex-direction: column; }
.post-list-row {
  display: flex; gap: 1.5rem; align-items: flex-start;
  padding: 1.4rem 0; border-bottom: 1px solid rgba(107,15,42,0.07);
  transition: padding-left 0.3s;
}
.post-list-row:last-child { border-bottom: none; }
.post-list-row:hover { padding-left: 0.5rem; }
.post-list-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 700; font-style: italic;
  color: rgba(107,15,42,0.18); min-width: 2rem; line-height: 1; margin-top: 0.1rem;
}
.post-list-content { flex: 1; }
.post-list-title {
  font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700;
  color: var(--ink); line-height: 1.3; margin-bottom: 0.4rem; letter-spacing: -0.01em;
}
.post-list-title a { color: inherit; }
.post-list-title a:hover { color: var(--bordo); }
.post-list-meta { font-size: 0.7rem; color: var(--muted); }

/* ── EDITORIAL QUOTE ── */
.editorial-quote {
  background: var(--ink); padding: 6rem 3rem;
  text-align: center; position: relative; overflow: hidden;
}
.eq-pattern {
  position: absolute; inset: 0; opacity: 0.03;
  background-image: radial-gradient(circle, #fff 1px, transparent 1px);
  background-size: 30px 30px;
}
.eq-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.eq-mark {
  font-family: 'Playfair Display', serif; font-size: 6rem; line-height: 0.5;
  color: var(--bordo); opacity: 0.5; display: block; margin-bottom: 1.5rem;
}
.eq-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem); font-style: italic;
  color: white; line-height: 1.5; margin-bottom: 1.5rem;
}
.eq-attr { font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--bordo-pale); }

/* ── PHOTO STRIP ── */
.photo-strip { padding: 5rem 3rem; }
.strip-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 1.5rem; margin-top: 2rem;
}
.strip-item { position: relative; overflow: hidden; cursor: pointer; }
.strip-item-img {
  width: 100%; object-fit: cover; display: block;
  transition: transform 0.6s cubic-bezier(0.23,1,0.32,1);
}
.strip-item:first-child .strip-item-img { height: 340px; }
.strip-item:not(:first-child) .strip-item-img { height: 280px; }
.strip-item:hover .strip-item-img { transform: scale(1.05); }
.strip-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.5rem 1.2rem 1rem;
  background: linear-gradient(to top, rgba(26,13,18,0.9) 0%, transparent 100%);
}
.strip-caption-loc {
  font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--bordo-pale); margin-bottom: 0.3rem;
}
.strip-caption-title {
  font-family: 'Playfair Display', serif; font-size: 1rem;
  font-weight: 700; font-style: italic; color: white; line-height: 1.3;
}
/* Fallback gradient when no image */
.strip-item-placeholder { width: 100%; }
.strip-item:first-child .strip-item-placeholder { height: 340px; }
.strip-item:not(:first-child) .strip-item-placeholder { height: 280px; }
.strip-item:nth-child(1) .strip-item-placeholder { background: linear-gradient(160deg, #0D1117 0%, #1A2744 40%, #2E4A8C 70%, #4A6FBB 100%); }
.strip-item:nth-child(2) .strip-item-placeholder { background: linear-gradient(160deg, #1A0D12 0%, #3D1020 40%, #6B0F2A 70%, #9E3050 100%); }
.strip-item:nth-child(3) .strip-item-placeholder { background: linear-gradient(160deg, #0D1A0D 0%, #1A3B1A 40%, #2D6B2D 70%, #4A9E4A 100%); }

/* ── NEWSLETTER ── */
.newsletter-section {
  background: var(--warm); border-top: 3px solid var(--bordo);
  padding: 4rem 3rem;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
.nl-title {
  font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700;
  letter-spacing: -0.02em; color: var(--ink); margin-bottom: 0.7rem;
}
.nl-title em { font-style: italic; color: var(--bordo); }
.nl-desc { color: var(--muted); font-size: 0.9rem; line-height: 1.7; }
.nl-form { display: flex; flex-direction: column; gap: 0.8rem; }
.nl-input-row { display: flex; }
.nl-input {
  flex: 1; padding: 0.9rem 1.2rem;
  border: 1px solid rgba(107,15,42,0.2); border-right: none;
  background: white; font-family: 'Mulish', sans-serif;
  font-size: 0.85rem; color: var(--ink); outline: none; transition: border-color 0.3s;
}
.nl-input::placeholder { color: var(--muted); }
.nl-input:focus { border-color: var(--bordo); }
.nl-btn {
  background: var(--bordo); color: white; border: 1px solid var(--bordo);
  padding: 0.9rem 1.5rem; font-family: 'Mulish', sans-serif;
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer; transition: background 0.3s; white-space: nowrap;
}
.nl-btn:hover { background: var(--accent); }
.nl-note { font-size: 0.7rem; color: var(--muted); }

/* ── SINGLE POST ── */
.single-post-wrap { max-width: 760px; margin: 0 auto; padding: 4rem 3rem; }
.single-post-header { margin-bottom: 3rem; }
.single-post-category {
  font-size: 0.65rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--bordo); margin-bottom: 1.5rem; display: block;
}
.single-post-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 700;
  line-height: 1.1; letter-spacing: -0.03em; color: var(--ink); margin-bottom: 1.5rem;
}
.single-post-meta {
  display: flex; align-items: center; gap: 1.5rem;
  font-size: 0.75rem; color: var(--muted);
  padding-bottom: 2rem; border-bottom: 1px solid rgba(107,15,42,0.12);
}
.single-post-thumbnail {
  width: 100%; max-height: 480px; object-fit: cover; margin-bottom: 3rem;
}
.entry-content { font-size: 1.05rem; line-height: 1.85; color: var(--ink); }
.entry-content h2 {
  font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 700;
  margin: 2.5rem 0 1rem; letter-spacing: -0.02em;
}
.entry-content h3 {
  font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700;
  margin: 2rem 0 0.8rem;
}
.entry-content p { margin-bottom: 1.5rem; }
.entry-content a { color: var(--bordo); border-bottom: 1px solid rgba(107,15,42,0.3); }
.entry-content a:hover { border-color: var(--bordo); }
.entry-content ul, .entry-content ol { margin: 1rem 0 1.5rem 1.5rem; }
.entry-content li { margin-bottom: 0.5rem; }
.entry-content blockquote {
  border-left: 3px solid var(--bordo); padding: 1rem 2rem;
  margin: 2rem 0; background: var(--warm);
  font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.2rem;
}
.entry-content img { margin: 2rem 0; border-radius: 2px; }

/* ── ARCHIVE / BLOG PAGE ── */
.archive-wrap { padding: 4rem 3rem; }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.archive-card { background: white; transition: box-shadow 0.3s; }
.archive-card:hover { box-shadow: 0 8px 30px rgba(107,15,42,0.1); }
.archive-card-thumb { width: 100%; height: 200px; object-fit: cover; }
.archive-card-thumb-placeholder {
  width: 100%; height: 200px;
  background: linear-gradient(135deg, var(--bordo) 0%, var(--bordo-light) 100%);
}
.archive-card-body { padding: 1.5rem; }
.archive-card-cat {
  font-size: 0.6rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--bordo); font-weight: 500; margin-bottom: 0.7rem; display: block;
}
.archive-card-title {
  font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700;
  color: var(--ink); line-height: 1.3; margin-bottom: 0.7rem;
}
.archive-card-title a { color: inherit; transition: color 0.25s; }
.archive-card-title a:hover { color: var(--bordo); }
.archive-card-meta { font-size: 0.7rem; color: var(--muted); }

/* ── PAGINATION ── */
.pagination { padding: 3rem; text-align: center; }
.page-numbers {
  display: inline-flex; gap: 0.5rem; align-items: center;
}
.page-numbers a, .page-numbers span {
  padding: 0.5rem 1rem; font-size: 0.8rem;
  border: 1px solid rgba(107,15,42,0.2); color: var(--muted);
  transition: all 0.25s;
}
.page-numbers a:hover, .page-numbers .current {
  background: var(--bordo); color: white; border-color: var(--bordo);
}

/* ── FOOTER ── */
.site-footer {
  background: var(--ink); padding: 3rem;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 2rem;
}
.footer-brand-name {
  font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: white;
}
.footer-brand-name span { color: var(--bordo-pale); }
.footer-brand-desc { font-size: 0.7rem; color: rgba(255,255,255,0.28); margin-top: 0.3rem; }
.footer-navigation { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
.footer-navigation a {
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.35); transition: color 0.3s;
}
.footer-navigation a:hover { color: var(--bordo-pale); }
.footer-right { text-align: right; }
.footer-copy { font-size: 0.68rem; color: rgba(255,255,255,0.2); }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .site-header { padding: 0 1.5rem; }
  .main-navigation { display: none; }
  .hero-section { grid-template-columns: 1fr; min-height: auto; }
  .hero-visual-side { min-height: 280px; }
  .hero-text-side { padding: 3rem 1.5rem; border-right: none; border-bottom: 1px solid rgba(107,15,42,0.1); }
  .section-wrap { padding: 3.5rem 1.5rem; }
  .featured-grid { grid-template-columns: 1fr; }
  .f-card.large { grid-row: span 1; border-right: none; border-bottom: 2px solid rgba(107,15,42,0.08); }
  .two-col-section { grid-template-columns: 1fr; }
  .col-block:first-child { border-right: none; border-bottom: 1px solid rgba(107,15,42,0.12); }
  .col-block { padding: 3rem 1.5rem; }
  .strip-grid { grid-template-columns: 1fr; }
  .strip-item:first-child .strip-item-img,
  .strip-item:not(:first-child) .strip-item-img { height: 240px; }
  .newsletter-section { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 1.5rem; }
  .site-footer { grid-template-columns: 1fr; text-align: center; gap: 1.5rem; }
  .footer-right { text-align: center; }
  .photo-strip { padding: 3.5rem 1.5rem; }
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .single-post-wrap { padding: 3rem 1.5rem; }
  .archive-wrap { padding: 3rem 1.5rem; }
}
@media (max-width: 600px) {
  .archive-grid { grid-template-columns: 1fr; }
}
