/*
Theme Name: shyn.
Theme URI: https://shyn.jp
Author: Shyn.
Author URI: https://shyn.jp
Description: Ambient minimal theme for shyn. — Space. Spirituality. Mindfulness. Art. Music.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: shyn
*/

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

:root {
  --bg:     #f2efea;
  --fg:     #1e1c1a;
  --muted:  #8a8680;
  --light:  #c8c4be;
  --serif:  'EB Garamond', Georgia, serif;
  --sans:   'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ─────────────────────────────────────────
   HEADER
───────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-branding {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 9px;
}

.site-branding .logo-mark svg {
  width: 28px; height: 28px;
  display: block;
}

.site-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--fg);
}

.menu-toggle {
  width: 33px; height: 33px;
  border-radius: 50%;
  border: 1px solid rgba(30,28,26,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: none;
}
.menu-toggle::after {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--fg);
}

/* Nav overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(242,239,234,0.97);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.nav-overlay .nav-close {
  position: absolute;
  top: 28px; right: 40px;
  background: none;
  border: none;
  font-family: var(--serif);
  font-size: 22px;
  cursor: pointer;
  color: var(--fg);
  opacity: 0.5;
  transition: opacity 0.2s;
}
.nav-overlay .nav-close:hover { opacity: 1; }
.nav-overlay ul {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.nav-overlay ul li a {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--fg);
  opacity: 0.7;
  transition: opacity 0.2s;
}
.nav-overlay ul li a:hover { opacity: 1; }

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 170px 1fr;
  position: relative;
}

.hero-side-nav {
  padding: 118px 0 0 40px;
  display: flex;
  flex-direction: column;
  gap: 17px;
  z-index: 2;
}
.hero-side-nav a {
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--fg);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.25s;
}
.hero-side-nav a:hover { opacity: 1; }

.hero-visual {
  position: relative;
  overflow: hidden;
}
#galaxy-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}

.hero-content {
  position: absolute;
  bottom: 0; left: 0;
  padding: 0 0 88px 56px;
  z-index: 2;
}
.hero-headline {
  font-family: var(--serif);
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.13em;
  margin-bottom: 22px;
}
.hero-rule {
  width: 26px; height: 1px;
  background: rgba(30,28,26,0.35);
  margin-bottom: 22px;
}
.hero-tags p {
  font-size: 11px;
  letter-spacing: 0.07em;
  color: var(--muted);
  line-height: 1.9;
  font-weight: 300;
}

/* ─────────────────────────────────────────
   FEATURES
───────────────────────────────────────── */
.section-features {
  padding: 94px 56px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  border-top: 1px solid rgba(0,0,0,0.07);
}

.feature-item {
  text-align: center;
  padding: 16px 8px;
}
.feature-icon {
  width: 50px; height: 50px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon svg {
  width: 50px; height: 50px;
  stroke: var(--fg);
  fill: none;
  stroke-width: 0.9;
  opacity: 0.65;
}
.feature-label {
  font-size: 9.5px;
  letter-spacing: 0.2em;
  margin-bottom: 12px;
  font-weight: 400;
}
.feature-desc {
  font-family: var(--serif);
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ─────────────────────────────────────────
   ART SECTION
───────────────────────────────────────── */
.section-art {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
}
.art-visual {
  position: relative;
  overflow: hidden;
  background: #e4dfd7;
}
#art-canvas {
  width: 100%; height: 100%;
  display: block;
}
.art-copy {
  padding: 78px 72px 78px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sec-label {
  font-size: 9.5px;
  letter-spacing: 0.24em;
  color: var(--muted);
  margin-bottom: 14px;
  font-weight: 400;
}
.sec-rule {
  width: 26px; height: 1px;
  background: var(--light);
  margin-bottom: 26px;
}
.art-headline {
  font-family: var(--serif);
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.1em;
  margin-bottom: 38px;
}
.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--light);
  padding-bottom: 3px;
  transition: border-color 0.2s;
  width: fit-content;
}
.link-btn:hover { border-color: var(--fg); }

/* ─────────────────────────────────────────
   MUSIC PLAYER
───────────────────────────────────────── */
.section-music {
  padding: 70px 56px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 56px;
  align-items: center;
  border-top: 1px solid rgba(0,0,0,0.07);
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.player-left {
  display: flex;
  align-items: center;
  gap: 26px;
  min-width: 268px;
}
.album-art {
  width: 84px; height: 84px;
  border-radius: 2px;
  flex-shrink: 0;
  overflow: hidden;
}
#album-canvas { width: 100%; height: 100%; display: block; }

.track-info {}
.now-playing-label {
  font-size: 8.5px;
  letter-spacing: 0.24em;
  color: var(--muted);
  margin-bottom: 5px;
}
.track-title {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.track-meta {
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-bottom: 13px;
}
.player-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ctrl-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--fg);
  opacity: 0.55;
  padding: 3px;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
}
.ctrl-btn:hover { opacity: 1; }
.play-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(30,28,26,0.45) !important;
  opacity: 0.75 !important;
  justify-content: center;
}

.player-right { flex: 1; }
#waveform-canvas { width: 100%; height: 56px; display: block; margin-bottom: 8px; }
.player-times {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ─────────────────────────────────────────
   JOURNAL
───────────────────────────────────────── */
.section-journal {
  padding: 80px 56px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 60px;
  border-top: 1px solid rgba(0,0,0,0.07);
}
.journal-intro {}
.journal-heading {
  font-size: 9.5px;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-bottom: 20px;
  font-weight: 400;
}
.journal-rule {
  width: 26px; height: 1px;
  background: var(--light);
  margin-bottom: 22px;
}
.journal-desc {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 32px;
}
.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.post-card {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  height: 278px;
  cursor: pointer;
  display: block;
  text-decoration: none;
}
.post-card .card-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.post-card canvas.card-bg {
  display: block;
}
.post-card:hover .card-bg { transform: scale(1.04); }
.post-card .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.58) 0%, rgba(0,0,0,0.1) 55%, transparent 100%);
}
.post-card .card-text {
  position: absolute;
  bottom: 0; left: 0;
  padding: 22px 20px;
}
.post-card .card-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  color: #fff;
  line-height: 1.45;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}
.post-card .card-date {
  font-size: 10px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.06em;
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.site-footer {
  padding: 44px 40px 36px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-top: 1px solid rgba(0,0,0,0.07);
}
.footer-brand .footer-logo {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.footer-brand .footer-copy {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-top: 5px;
}
.footer-nav {
  display: flex;
  gap: 28px;
  list-style: none;
}
.footer-nav a {
  font-size: 10.5px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--fg); }

/* ─────────────────────────────────────────
   INNER PAGES
───────────────────────────────────────── */
.page-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 140px 40px 100px;
}
.page-wrap h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 400;
  letter-spacing: 0.1em;
  margin-bottom: 36px;
}
.page-wrap .entry-content p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 1.4em;
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-side-nav { display: none; }
  .hero-content { padding: 0 32px 72px; }
  .section-features { grid-template-columns: repeat(2, 1fr); padding: 64px 32px; }
  .section-art { grid-template-columns: 1fr; }
  .art-visual { min-height: 360px; }
  .art-copy { padding: 56px 40px; }
  .section-music { grid-template-columns: 1fr; padding: 56px 32px; }
  .section-journal { grid-template-columns: 1fr; padding: 64px 32px; gap: 40px; }
  .journal-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer { flex-direction: column; gap: 28px; align-items: flex-start; }
}

@media (max-width: 600px) {
  .site-header { padding: 20px 24px; }
  .section-features { grid-template-columns: 1fr; }
  .journal-grid { grid-template-columns: 1fr; }
  .section-music { gap: 36px; }
  .player-left { flex-direction: column; align-items: flex-start; }
}


/* ─────────────────────────────────────────
   SINGLE POST
───────────────────────────────────────── */
.single-hero {
  position: relative;
  min-height: 60vh;
  overflow: hidden;
  background: #ddd9d2;
}
.single-hero-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
#single-hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}
.single-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18,16,14,0.55) 0%, rgba(0,0,0,0.1) 55%, transparent 100%);
}
.single-hero-text {
  position: absolute;
  bottom: 0; left: 0;
  padding: 0 60px 60px;
  z-index: 2;
}
.single-category {
  font-size: 9.5px;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 14px;
}
.single-title {
  font-family: var(--serif);
  font-size: clamp(26px, 3.5vw, 48px);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.06em;
  color: #fff;
  margin-bottom: 14px;
}
.single-date {
  font-size: 10.5px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.08em;
}

.single-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 40px 100px;
}
.single-content p {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 2.0;
  color: var(--muted);
  margin-bottom: 1.6em;
  letter-spacing: 0.04em;
}
.single-content h2 {
  font-family: var(--serif);
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 400;
  letter-spacing: 0.08em;
  margin: 2.4em 0 1em;
}
.single-content h3 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.06em;
  margin: 2em 0 0.8em;
}
.single-content blockquote {
  border-left: 1px solid var(--light);
  padding-left: 24px;
  margin: 2em 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  line-height: 1.9;
  color: var(--muted);
}
.single-content figure { margin: 2.4em 0; }
.single-content figure img { width: 100%; border-radius: 2px; }
.single-content figcaption {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-top: 10px;
  text-align: center;
}

.single-nav {
  margin-top: 72px;
  padding-top: 36px;
  border-top: 1px solid rgba(0,0,0,0.07);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.single-nav-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 48%;
}
.single-nav-link.next { text-align: right; margin-left: auto; }
.single-nav-link .nav-dir {
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.single-nav-link .nav-title {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 400;
  color: var(--fg);
  line-height: 1.5;
  letter-spacing: 0.04em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.single-nav-link:hover .nav-title { border-color: var(--light); }

/* ─────────────────────────────────────────
   ARCHIVE
───────────────────────────────────────── */
.archive-wrap {
  padding: 140px 56px 100px;
  max-width: 1200px;
  margin: 0 auto;
}
.archive-header {
  margin-bottom: 60px;
}
.archive-desc {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
  letter-spacing: 0.04em;
  max-width: 480px;
}
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.archive-pagination {
  margin-top: 56px;
  text-align: center;
}
.archive-pagination .page-numbers {
  display: inline-flex;
  gap: 8px;
  list-style: none;
}
.archive-pagination .page-numbers li a,
.archive-pagination .page-numbers li span {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 50%;
  transition: border-color 0.2s, color 0.2s;
}
.archive-pagination .page-numbers li a:hover { color: var(--fg); border-color: var(--light); }
.archive-pagination .page-numbers li .current { color: var(--fg); border-color: var(--fg); }

.no-posts {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

@media (max-width: 900px) {
  .archive-wrap { padding: 120px 32px 80px; }
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .single-hero-text { padding: 0 32px 48px; }
  .single-body { padding: 60px 28px 80px; }
}
@media (max-width: 600px) {
  .archive-grid { grid-template-columns: 1fr; }
  .single-nav { flex-direction: column; }
  .single-nav-link { max-width: 100%; }
  .single-nav-link.next { text-align: left; margin-left: 0; }
}
