:root {
  /* one canvas, warm near-black — no muddy blob soup */
  --bg:       #0b0a0c;
  --ink:      #f4efe9;   /* warm ivory, never harsh pure white */
  --ink-2:    #a39d97;   /* muted warm gray */
  --ink-3:    #6a655f;   /* dim */
  --line:     rgba(244, 239, 233, 0.10);
  --line-2:   rgba(244, 239, 233, 0.18);

  /* ONE accent. used in tiny, deliberate doses. */
  --accent:   #ff5a6e;
  --accent-2: rgba(255, 90, 110, 0.16);

  --maxw: 980px;
  --ease: cubic-bezier(0.22, 0.68, 0.16, 1);
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.65;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  padding-bottom: 92px; /* clearance for the fixed music toggle */
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #fff; }

/* ---------------- canvas: one soft glow + grain + vignette ---------------- */
.canvas { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

.glow {
  position: absolute;
  top: -22%; left: 50%;
  width: 90vmax; height: 90vmax;
  transform: translateX(-50%);
  background: radial-gradient(circle at center,
              rgba(255, 90, 110, 0.16) 0%,
              rgba(255, 90, 110, 0.05) 26%,
              transparent 55%);
  filter: blur(10px);
}
.vignette {
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 30%, transparent 55%, rgba(0,0,0,0.55) 100%);
}
/* film grain — richness without noise */
.grain {
  position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: overlay;
  animation: grain 6s steps(4) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); }
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-2%, -2%); }
}

/* ---------------- nav ---------------- */
.nav {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px clamp(22px, 5vw, 60px);
  z-index: 10;
}
.brand { font-family: "Fraunces", serif; font-size: 1.18rem; font-weight: 500; letter-spacing: -0.02em; }
.brand__dot { color: var(--accent); }
.nav__status {
  font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink-3);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

/* ---------------- hero ---------------- */
.hero {
  min-height: 100svh;
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px clamp(22px, 5vw, 60px) 80px;
}

.kicker {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 26px;
}

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px 7px 13px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: rgba(255,255,255,0.02);
  margin-bottom: 34px;
}
.badge__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-2);
  animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(255,90,110,0.5); }
  70%  { box-shadow: 0 0 0 9px rgba(255,90,110,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,90,110,0); }
}

.hero__title {
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: clamp(2.9rem, 8.5vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0 0 28px;
}
.hero__title em { font-style: italic; font-weight: 300; }
.period { color: var(--accent); }   /* the single signature touch */

.hero__sub {
  max-width: 540px;
  margin: 0 0 40px;
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  color: var(--ink-2);
}

/* ---------------- notify form ---------------- */
.notify {
  display: flex;
  width: min(440px, 100%);
  border: 1px solid var(--line-2);
  border-radius: 100px;
  padding: 6px;
  background: rgba(255,255,255,0.02);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.notify:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-2);
}
.notify__input {
  flex: 1;
  border: 0; outline: 0; background: transparent;
  color: var(--ink);
  font: inherit; font-size: 0.96rem;
  padding: 10px 16px;
}
.notify__input::placeholder { color: var(--ink-3); }
.notify__btn {
  border: 0;
  border-radius: 100px;
  padding: 10px 22px;
  font: inherit; font-size: 0.92rem; font-weight: 500;
  color: #15090b;
  background: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.notify__btn:hover { transform: translateY(-1px); background: #fff; }
.notify__btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.notify__note {
  margin: 16px 0 0;
  font-size: 0.78rem;
  color: var(--ink-3);
  letter-spacing: 0.01em;
}
.notify__note.is-ok { color: var(--accent); }

/* ---------------- glimpse: quiet editorial rows ---------------- */
.glimpse {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 9vw, 110px) clamp(22px, 5vw, 60px) clamp(60px, 9vw, 120px);
}
.glimpse__head { margin-bottom: 18px; }
.label {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--accent);
}
.glimpse__head h2 {
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  letter-spacing: -0.02em;
  margin: 10px 0 0;
}

.rows { border-top: 1px solid var(--line); }
.row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: baseline;
  gap: clamp(14px, 3vw, 32px);
  padding: 26px 8px;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.4s var(--ease), background 0.4s var(--ease);
}
.row:hover { padding-left: 18px; background: linear-gradient(90deg, rgba(255,90,110,0.04), transparent 70%); }
.row__idx {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.78rem; color: var(--ink-3);
  padding-top: 6px;
}
.row__title {
  font-family: "Fraunces", serif;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 400; letter-spacing: -0.01em;
  margin: 0 0 4px;
  transition: color 0.3s var(--ease);
}
.row:hover .row__title { color: var(--accent); }
.row__desc { margin: 0; color: var(--ink-2); font-size: 0.94rem; max-width: 48ch; }
.row__tag {
  align-self: center;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 5px 11px;
  white-space: nowrap;
}
.row__tag[data-tag="live"] { color: var(--accent); border-color: var(--accent-2); }

/* ---------------- closing line ---------------- */
.closing {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 50px) clamp(22px, 5vw, 60px) clamp(70px, 11vw, 130px);
  text-align: center;
}
.closing__line {
  font-family: "Fraunces", serif;
  font-weight: 300;
  font-size: clamp(1.5rem, 4.2vw, 2.5rem);
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

/* ---------------- footer ---------------- */
.footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px clamp(22px, 5vw, 60px) 34px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem; color: var(--ink-3);
}
.madein {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--ink-2); font-weight: 500; letter-spacing: 0.02em;
}
.madein__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: breathe 2.6s var(--ease) infinite;
}
@keyframes breathe { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.footer__meta { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.06em; }

/* ---------------- background music toggle ---------------- */
.music {
  position: fixed;
  right: clamp(18px, 4vw, 40px);
  bottom: clamp(18px, 4vw, 34px);
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 14px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  background: rgba(11, 10, 12, 0.72);
  backdrop-filter: blur(12px);
  color: var(--ink-2);
  font: inherit; font-size: 0.8rem; letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.music:hover { color: var(--ink); transform: translateY(-2px); }
.music.is-playing { color: var(--ink); border-color: var(--accent-2); }
.music__label { white-space: nowrap; }

.music__eq { display: inline-flex; align-items: flex-end; gap: 2.5px; height: 14px; }
.music__eq i { width: 3px; height: 5px; border-radius: 2px; background: currentColor; transition: background 0.3s; }
.music.is-playing .music__eq i { background: var(--accent); animation: eq 0.9s ease-in-out infinite; }
.music.is-playing .music__eq i:nth-child(2) { animation-delay: 0.18s; }
.music.is-playing .music__eq i:nth-child(3) { animation-delay: 0.34s; }
@keyframes eq { 0%, 100% { height: 5px; } 50% { height: 14px; } }

/* gentle pulse to invite the first click */
.music.is-idle { animation: musicPulse 2.6s var(--ease) infinite; }
@keyframes musicPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 90, 110, 0); }
  50%      { box-shadow: 0 0 0 7px rgba(255, 90, 110, 0.12); }
}

/* keep the YouTube iframe present but out of sight */
.yt-hidden { position: fixed; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; pointer-events: none; opacity: 0; }

/* ---------------- entrance + reveal ---------------- */
.hero > * {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.9s var(--ease) forwards;
}
.hero > *:nth-child(1) { animation-delay: 0.05s; }
.hero > *:nth-child(2) { animation-delay: 0.15s; }
.hero > *:nth-child(3) { animation-delay: 0.25s; }
.hero > *:nth-child(4) { animation-delay: 0.37s; }
.hero > *:nth-child(5) { animation-delay: 0.49s; }
.hero > *:nth-child(6) { animation-delay: 0.58s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .grain, .badge__dot, .madein__dot, .music, .music__eq i { animation: none; }
  .hero > *, .reveal { opacity: 1; transform: none; animation: none; transition: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 560px) {
  .nav__status { display: none; }
  .notify { flex-direction: column; border-radius: 24px; padding: 8px; gap: 6px; }
  .notify__btn { border-radius: 18px; padding: 13px; }
  .row { grid-template-columns: 30px 1fr; }
  .row__tag { display: none; }
  .footer { flex-direction: column; gap: 12px; text-align: center; }
}
