/* ============================================
   Edua — Sonic Atmosphere
   Design: Claude Design B案
   ============================================ */

:root {
  --bg: #0b0b0c;
  --bg-elev: #141416;
  --bg-card: #18181b;
  --text: #ece8e1;
  --text-muted: #9a948b;
  --text-faint: #5c5852;
  --accent: #b8c9a6;          /* dusty sage */
  --accent-warm: #c9a979;     /* muted amber */
  --accent-dim: #6e7d62;
  --border: #26252a;
  --rule: #1d1c20;

  --serif: Georgia, 'Hiragino Mincho ProN', 'Yu Mincho', 'YuMincho', 'Noto Serif JP', serif;
  --sans: 'Helvetica Neue', Helvetica, Arial, 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Noto Sans JP', sans-serif;

  --max: 880px;
  --pad-x: clamp(20px, 5vw, 48px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* subtle vignette / atmosphere */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(184, 201, 166, 0.04), transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 90%, rgba(201, 169, 121, 0.025), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

main,
.site-header,
.site-footer {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* ---------- Header ---------- */
.site-header {
  padding: 28px var(--pad-x);
  max-width: var(--max);
  margin: 0 auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.site-logo__mark {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(184, 201, 166, 0.6);
  animation: pulse 3.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.9); }
  50%      { opacity: 1;    transform: scale(1.1); }
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  width: 100%;
}

/* ---------- Main ---------- */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ---------- Hero ---------- */
.hero {
  padding: 120px 0 140px;
  position: relative;
}

.hero__caption {
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 40px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero__caption::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--rule), transparent);
  max-width: 200px;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(64px, 12vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 0 0 8px;
  color: var(--text);
}

.hero__title-sub {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 40px;
  color: var(--accent);
}

.hero__lede {
  font-family: var(--serif);
  font-size: clamp(17px, 2vw, 19px);
  line-height: 1.75;
  color: var(--text);
  max-width: 38ch;
  margin: 0 0 56px;
}

/* waveform */
.waveform {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 40px;
  width: 100%;
  max-width: 280px;
}

.waveform__bar {
  flex: 1;
  background: var(--accent);
  opacity: 0.55;
  border-radius: 1px;
  animation: wave 1.8s ease-in-out infinite;
  transform-origin: bottom;
}

.waveform__bar:nth-child(1)  { animation-delay: 0.0s;  height: 40%; }
.waveform__bar:nth-child(2)  { animation-delay: 0.1s;  height: 65%; }
.waveform__bar:nth-child(3)  { animation-delay: 0.2s;  height: 30%; }
.waveform__bar:nth-child(4)  { animation-delay: 0.3s;  height: 80%; }
.waveform__bar:nth-child(5)  { animation-delay: 0.4s;  height: 55%; }
.waveform__bar:nth-child(6)  { animation-delay: 0.5s;  height: 90%; }
.waveform__bar:nth-child(7)  { animation-delay: 0.6s;  height: 45%; }
.waveform__bar:nth-child(8)  { animation-delay: 0.7s;  height: 70%; }
.waveform__bar:nth-child(9)  { animation-delay: 0.8s;  height: 35%; }
.waveform__bar:nth-child(10) { animation-delay: 0.9s;  height: 60%; }
.waveform__bar:nth-child(11) { animation-delay: 1.0s;  height: 50%; }
.waveform__bar:nth-child(12) { animation-delay: 1.1s;  height: 75%; }
.waveform__bar:nth-child(13) { animation-delay: 1.2s;  height: 40%; }
.waveform__bar:nth-child(14) { animation-delay: 1.3s;  height: 85%; }
.waveform__bar:nth-child(15) { animation-delay: 1.4s;  height: 50%; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; }
  50%      { transform: scaleY(1);   opacity: 0.75; }
}

/* ---------- Section base ---------- */
.section {
  padding: 96px 0;
  border-top: 1px solid var(--rule);
}

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 56px;
  gap: 24px;
}

.section__label {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section__label::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.section__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.015em;
  margin: 14px 0 0;
  color: var(--text);
}

.section__more {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 4px;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.section__more:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ---------- Journal (Blog) ---------- */
.journal {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border-block: 1px solid var(--rule);
}

.journal__item {
  background: var(--bg);
  padding: 28px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  transition: background 0.25s ease, padding 0.25s ease;
}

.journal__item a {
  display: block;
  padding: 4px 24px;
}

.journal__item:hover {
  background: var(--bg-elev);
}

.journal__meta {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
}

.journal__date {
  font-variant-numeric: tabular-nums;
}

.journal__cat {
  color: var(--accent-warm);
}

.journal__cat::before {
  content: "\00b7";
  margin-right: 14px;
  color: var(--text-faint);
}

.journal__title {
  font-family: var(--serif);
  font-size: clamp(20px, 2.5vw, 24px);
  line-height: 1.4;
  color: var(--text);
  margin: 0 0 8px;
  font-weight: 400;
  transition: color 0.2s ease;
}

.journal__item:hover .journal__title {
  color: var(--accent);
}

.journal__excerpt {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
  max-width: 56ch;
}

/* ---------- Music ---------- */
.music__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}

.music__intro {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.8;
  color: var(--text);
  max-width: 44ch;
  margin: 0;
}

.music__intro em {
  font-style: italic;
  color: var(--accent);
}

.releases {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.release {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 24px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.release:hover {
  border-color: var(--accent-dim);
  transform: translateY(-2px);
}

.release__cover {
  aspect-ratio: 1;
  background: var(--bg);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* placeholder visual — abstract sound forms */
.release__cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 35%, rgba(184, 201, 166, 0.35), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(201, 169, 121, 0.18), transparent 55%);
}

.release__cover-text {
  position: relative;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--text);
  letter-spacing: -0.01em;
  text-align: center;
  line-height: 1.2;
  padding: 12px;
  z-index: 1;
  mix-blend-mode: screen;
}

.release__title {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--text);
  margin: 0;
  font-weight: 400;
  line-height: 1.3;
}

.release__sub {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: -10px 0 0;
}

.release__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: auto;
  padding-top: 8px;
}

.release__link {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 5px 10px;
  transition: color 0.2s, border-color 0.2s;
}

.release__link:hover {
  color: var(--accent);
  border-color: var(--accent-dim);
}

/* alternating cover tints for variety */
.release:nth-child(2) .release__cover::before {
  background:
    radial-gradient(circle at 60% 30%, rgba(201, 169, 121, 0.28), transparent 55%),
    radial-gradient(circle at 25% 75%, rgba(184, 201, 166, 0.16), transparent 60%);
}

.release:nth-child(3) .release__cover::before {
  background:
    radial-gradient(circle at 50% 50%, rgba(184, 201, 166, 0.22), transparent 65%),
    linear-gradient(135deg, transparent 40%, rgba(201, 169, 121, 0.1) 60%, transparent 100%);
}

/* ---------- Footer ---------- */
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px var(--pad-x) 56px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer__mark {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-dim);
}

.copyright {
  margin: 0;
  font-family: var(--serif);
  font-size: 13px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}

.social {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.social a {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  transition: color 0.2s;
}

.social a:hover {
  color: var(--accent);
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .site-header {
    padding: 22px var(--pad-x);
  }

  .nav-links {
    gap: 22px;
  }

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

  .section {
    padding: 64px 0;
  }

  .section__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 40px;
  }

  .journal__item a {
    padding: 4px 0;
  }

  .releases {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .release {
    padding: 16px;
    gap: 14px;
  }

  .release__cover-text {
    font-size: 16px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

@media (max-width: 420px) {
  .releases {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-logo__mark,
  .waveform__bar {
    animation: none;
  }
}
