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

:root {
  --ink:        #1a1714;
  --ink-light:  #3d3830;
  --ink-faint:  #6b6258;
  --paper:      #f5f0e8;
  --paper-warm: #ede7d9;
  --paper-dark: #ddd5c4;
  --red:        #c0392b;
  --red-muted:  #8b2020;
  --gold:       #b8922a;
  --white:      #fdfaf5;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'Noto Serif JP', 'Times New Roman', serif;
  --font-mono:    'Space Mono', monospace;

  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

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

/* ─── Ambient Background Kanji ──────────────────────────────────── */
.bg-kanji {
  position: fixed;
  top: -5vh;
  right: -5vw;
  font-family: var(--font-body);
  font-size: clamp(300px, 40vw, 600px);
  font-weight: 700;
  color: var(--paper-dark);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
  line-height: 1;
  user-select: none;
  animation: floatKanji 20s ease-in-out infinite;
}

@keyframes floatKanji {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%       { transform: translateY(30px) rotate(-1deg); }
}

/* ─── Header ────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--paper-dark);
  backdrop-filter: blur(8px);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.logo-kanji {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.logo-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
}

.logo-sub {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.nav {
  margin-left: auto;
  display: flex;
  gap: 0.25rem;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.4rem 0.9rem;
  color: var(--ink-faint);
  border-radius: 2px;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover, .nav-link.active {
  color: var(--ink);
  background: var(--paper-dark);
}

.nav-link.active {
  color: var(--red);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--ink);
  margin-left: auto;
}

/* ─── Hero ──────────────────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--red);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.1s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 9vw, 8rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 0.2s forwards;
}

.hero-title em {
  font-style: italic;
  color: var(--red);
}

.hero-desc {
  max-width: 520px;
  font-size: 1.05rem;
  color: var(--ink-light);
  line-height: 1.75;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 0.35s forwards;
}

.hero-meta {
  display: flex;
  gap: 2rem;
  align-items: center;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 0.45s forwards;
}

.hero-location, .hero-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 2rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--ink-faint);
  text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

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

/* ─── Section Commons ───────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  white-space: nowrap;
}

.section-rule {
  flex: 1;
  height: 1px;
  background: var(--paper-dark);
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--white);
  background: var(--red);
  padding: 0.3rem 0.8rem;
  display: inline-block;
  margin-bottom: 1.5rem;
}

/* ─── Featured Post ─────────────────────────────────────────────── */
.featured-post {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
}

.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--paper-dark);
  padding: 3rem;
  box-shadow: 4px 4px 0 var(--paper-dark);
  transition: box-shadow 0.3s, transform 0.3s;
}

.featured-card:hover {
  box-shadow: 8px 8px 0 var(--paper-dark);
  transform: translate(-2px, -2px);
}

.featured-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.img-placeholder {
  width: 100%;
  height: 100%;
  background: var(--paper-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}

.placeholder-kanji {
  font-family: var(--font-body);
  font-size: 5rem;
  font-weight: 700;
  color: var(--paper);
  opacity: 0.6;
  user-select: none;
}

.placeholder-kanji.small { font-size: 2.5rem; }

.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.post-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--red);
  border: 1px solid var(--red);
  padding: 0.2rem 0.6rem;
}

.post-date {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
}

.featured-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.featured-excerpt {
  font-size: 0.95rem;
  color: var(--ink-light);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.read-more {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s, border-color 0.2s;
}

.read-more span { transition: transform 0.2s; }
.read-more:hover { color: var(--red); border-color: var(--red); }
.read-more:hover span { transform: translateX(4px); }
.read-more.small { font-size: 0.72rem; }

/* ─── Post Grid ─────────────────────────────────────────────────── */
.post-grid-section {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.post-card {
  background: var(--white);
  border: 1px solid var(--paper-dark);
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}

.post-card:hover {
  box-shadow: 5px 5px 0 var(--paper-dark);
  transform: translate(-2px, -2px);
}

.post-card-img {
  background: var(--paper-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
}

.post-card-body {
  padding: 1.5rem;
}

.post-card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.post-card-excerpt {
  font-size: 0.88rem;
  color: var(--ink-light);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

/* ─── Timeline ──────────────────────────────────────────────────── */
.timeline-section {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
}

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--paper-dark);
}

.timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 1.25rem 0;
  opacity: 0.45;
  transition: opacity 0.2s;
}

.timeline-item.done, .timeline-item.active { opacity: 1; }

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 1.55rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--paper-dark);
  border: 2px solid var(--paper-dark);
  flex-shrink: 0;
  z-index: 1;
}

.timeline-item.done .timeline-dot {
  background: var(--ink);
  border-color: var(--ink);
}

.timeline-item.active .timeline-dot {
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.2);
}

.timeline-content {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

.timeline-item.active .timeline-date { color: var(--red); }

.timeline-label {
  font-size: 1rem;
  color: var(--ink);
}

/* ─── Newsletter ────────────────────────────────────────────────── */
.newsletter-section {
  position: relative;
  z-index: 1;
  background: var(--ink);
  overflow: hidden;
  padding: 6rem 2rem;
}

.newsletter-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.newsletter-kanji {
  font-family: var(--font-body);
  font-size: 10rem;
  font-weight: 700;
  color: rgba(255,255,255,0.04);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  line-height: 1;
  white-space: nowrap;
}

.newsletter-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 1rem;
}

.newsletter-desc {
  font-size: 0.95rem;
  color: rgba(245,240,232,0.65);
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.newsletter-form {
  display: flex;
  gap: 0;
  max-width: 420px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  padding: 0.9rem 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-right: none;
  color: var(--white);
  outline: none;
  transition: border-color 0.2s;
}

.newsletter-input::placeholder { color: rgba(255,255,255,0.3); }
.newsletter-input:focus { border-color: var(--red); }

.newsletter-btn {
  padding: 0.9rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--red);
  color: var(--white);
  border: 1px solid var(--red);
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.newsletter-btn:hover { background: var(--red-muted); }

/* ─── Footer ────────────────────────────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 1;
  background: var(--ink-light);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-kanji {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--red);
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--white);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: rgba(245,240,232,0.4);
  margin-left: auto;
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(245,240,232,0.5);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--white); }

/* ─── Responsive ────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .featured-card {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }

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

  .nav { display: none; }
  .mobile-menu-btn { display: block; }

  .hero { padding: 5rem 1.5rem 4rem; min-height: auto; }
}

@media (max-width: 600px) {
  .hero-title { font-size: 3.5rem; }
  .newsletter-form { flex-direction: column; }
  .newsletter-input { border-right: 1px solid rgba(255,255,255,0.2); border-bottom: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .footer-copy { margin-left: 0; }
}

/* ─── Videos Section ────────────────────────────────────────────── */
.videos-section {
  position: relative;
  z-index: 1;
  background: var(--ink);
  padding: 5rem 0;
}

.videos-section .section-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
}

.videos-section .section-title { color: var(--white); }
.videos-section .section-rule { background: rgba(255,255,255,0.15); }

.yt-channel-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  opacity: 0.7;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.yt-channel-link:hover { opacity: 1; }

.videos-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.video-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
}
.video-card:hover {
  transform: translateY(-4px);
  border-color: var(--red);
}

.video-embed-wrap {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  background: #000;
}
.video-embed-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

.video-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.video-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1.3;
}
.video-desc {
  font-size: 0.85rem;
  color: rgba(245,240,232,0.55);
  line-height: 1.6;
}

.videos-cta {
  text-align: center;
  margin-top: 3rem;
  padding: 0 2rem;
}

.yt-subscribe-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: background 0.2s, transform 0.2s;
}
.yt-subscribe-btn:hover {
  background: var(--red-muted);
  transform: translateY(-2px);
}

/* ─── Photos Section ────────────────────────────────────────────── */
.photos-section {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.photos-hint {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-faint);
  background: var(--paper-warm);
  border-left: 3px solid var(--gold);
  padding: 0.8rem 1.2rem;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.photos-hint code {
  background: var(--paper-dark);
  padding: 0.1rem 0.4rem;
  font-size: 0.75rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.photo-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
  background: var(--paper-warm);
  border: 1px solid var(--paper-dark);
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-out);
  display: block;
}
.photo-item:hover img { transform: scale(1.05); }

.photo-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 2px dashed var(--paper-dark);
}
.photo-plus {
  font-size: 2rem;
  color: var(--paper-dark);
  line-height: 1;
}
.photo-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--ink-faint);
  text-align: center;
  line-height: 1.6;
}
.photo-label code { font-size: 0.62rem; }

/* Photo caption overlay */
.photo-item::after {
  content: attr(data-caption);
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(26,23,20,0.85));
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  padding: 1.5rem 0.8rem 0.6rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.photo-item:hover::after { opacity: 1; }

/* ─── Lightbox ──────────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,8,6,0.95);
  z-index: 999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
}
.lightbox.open { display: flex; }

.lightbox-img-wrap {
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img-wrap img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border: 1px solid rgba(255,255,255,0.1);
}

.lightbox-caption {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(245,240,232,0.6);
  letter-spacing: 0.05em;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  width: 40px; height: 40px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: border-color 0.2s;
}
.lightbox-close:hover { border-color: var(--red); color: var(--red); }

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  width: 48px; height: 48px;
  font-size: 1.8rem;
  cursor: pointer;
  transition: border-color 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
.lightbox-prev:hover, .lightbox-next:hover { border-color: var(--red); color: var(--red); }

/* ─── Responsive additions ──────────────────────────────────────── */
@media (max-width: 900px) {
  .videos-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .photo-grid { grid-template-columns: 1fr; }
}

/* ─── Empty states ──────────────────────────────────────────────── */
.post-grid-empty {
  grid-column: 1 / -1;
  padding: 3rem;
  text-align: center;
  border: 1px dashed var(--paper-dark);
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}
.post-grid-empty a {
  color: var(--red);
  border-bottom: 1px solid rgba(192,57,43,0.3);
}

.videos-coming-soon {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  text-align: center;
}
