/* =========================================================
   TAGLESS — original stylesheet
   Fictional brand: THE WAGASHI CLUB (1986-1989) -> TAGLESS (2026)
   ========================================================= */

:root {
  --c-bg: #f4f1ea;
  --c-ink: #14121a;
  --c-dark: #1a1720;
  --c-dark-2: #24202b;
  --c-line: #dedad0;
  --c-muted: #6b6660;

  --c-kinako: #ff8fb3;
  --c-anmitsu: #ff5b3d;
  --c-yomoghi: #8ea3c4;

  --font-display: "Bungee", "Space Grotesk", sans-serif;
  --font-body: "Space Grotesk", sans-serif;
  --header-h: 76px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; }
blockquote { margin: 0; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--c-ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 2000;
}

.skip-link:focus { left: 12px; top: 12px; }

.block-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-body);
  letter-spacing: 0.28em;
  font-size: 12px;
  font-weight: 700;
  color: var(--c-muted);
  margin: 0 0 14px;
  text-transform: uppercase;
}

.block-dark .eyebrow { color: rgba(244, 241, 234, 0.55); }

.section-lead {
  color: var(--c-muted);
  margin-top: 10px;
  max-width: 560px;
}

.block-dark .section-lead { color: rgba(244, 241, 234, 0.72); }

.block h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

/* ---------- header ---------- */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 500;
  background: rgba(20, 18, 26, 0);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

#site-header.is-scrolled {
  background: rgba(20, 18, 26, 0.92);
  backdrop-filter: blur(6px);
}

.header-inner {
  max-width: 1180px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f4f1ea;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.08em;
  z-index: 2;
}

#nav ul {
  display: flex;
  align-items: center;
  gap: 34px;
}

#nav a {
  color: #f4f1ea;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}

#nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

#nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* X / Instagram icons at the end of the nav (desktop: header icons,
   mobile: a row at the bottom of the open menu) */
#nav .nav-social { display: flex; gap: 16px; }
#nav .nav-social a { font-size: 17px; padding-bottom: 0; }
#nav .nav-social a::after { display: none; }
#nav .nav-social a:hover { color: var(--c-kinako); }
.nav-social-label { display: none; }

#menu-trigger {
  display: none;
  width: 32px; height: 24px;
  border: 0; background: none;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2;
}

/* The burger lines are SVG images, not CSS background-color spans: some
   phone browsers recolor light backgrounds (forced dark mode) and turned
   the lines black on the dark header, while images are left untouched. */
#menu-trigger img {
  display: block;
  width: 32px;
  height: 24px;
  max-width: none;
}
#menu-trigger .burger-close { display: none; }
#menu-trigger.is-open .burger-open { display: none; }
#menu-trigger.is-open .burger-close { display: block; }

/* ---------- hero ---------- */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 15%, #322a3d 0%, transparent 45%),
    radial-gradient(circle at 82% 78%, #2c2233 0%, transparent 50%),
    var(--c-ink);
}

.crt-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.035) 0px,
    rgba(255, 255, 255, 0.035) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #f4f1ea;
  padding: 120px 24px 80px;
}

.hero-mark {
  font-family: var(--font-display);
  font-size: clamp(52px, 13vw, 128px);
  letter-spacing: 0.04em;
  margin: 18px 0 34px;
  color: #f4f1ea;
  text-shadow: 3px 3px 0 var(--c-anmitsu), 6px 6px 0 rgba(255, 91, 61, 0.25);
}

.hero-reveal {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
  min-height: 128px;
}

.hero-reveal li {
  font-size: 15px;
  letter-spacing: 0.03em;
  color: rgba(244, 241, 234, 0.85);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-reveal li.is-visible { opacity: 1; transform: translateY(0); }
.hero-reveal li strong { color: var(--c-kinako); }

.hero-actions {
  margin-top: 44px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 15px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  display: inline-block;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--c-anmitsu); color: #fff8f5; }
.btn-primary:hover { background: #ff7255; }

.btn-ghost { border-color: rgba(244, 241, 234, 0.5); color: #f4f1ea; }
.btn-ghost:hover { border-color: #f4f1ea; background: rgba(244, 241, 234, 0.08); }

/* ---------- generic blocks ---------- */
.block { padding: 110px 0; }
.block-alt { background: #ece7db; }
.block-dark { background: var(--c-dark); color: rgba(244, 241, 234, 0.9); }
.block-dark h2 { color: #f4f1ea; }

/* ---------- characters ---------- */
.char-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.char-card {
  background: #ffffff;
  border: 1px solid var(--c-line);
  border-radius: 20px;
  padding: 36px 24px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.char-card:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(20, 18, 26, 0.1); }

.char-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 20px;
  cursor: pointer;
  background: var(--c-bg-alt, #ece7db);
}

.char-photo img.photo-1986,
.char-photo img.photo-2026 {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  transition: opacity 0.5s ease;
}

.char-photo img.photo-2026 { opacity: 0; }
.char-card.is-2026 .photo-1986 { opacity: 0; }
.char-card.is-2026 .photo-2026 { opacity: 1; }

.char-year-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(20, 18, 26, 0.78);
  color: #f4f1ea;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 11px;
  border-radius: 999px;
  z-index: 2;
}

.char-badge-mark {
  position: absolute;
  left: 10px;
  bottom: 10px;
  width: 42px;
  height: 42px;
  margin: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 2;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.45));
}

.char-card.is-2026 .char-badge-mark { opacity: 1; }

.char-flip {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: rgba(20, 18, 26, 0.78);
  color: #f4f1ea;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s ease;
}

.char-flip:hover { background: var(--c-anmitsu); }

.char-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.04em;
}

.char-emotion {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  margin: 10px 0 16px;
  text-transform: uppercase;
}

.char-kinako .char-emotion { color: var(--c-kinako); }
.char-anmitsu .char-emotion { color: var(--c-anmitsu); }
.char-yomoghi .char-emotion { color: var(--c-yomoghi); }

.char-line { color: var(--c-muted); font-style: italic; margin: 0; }

/* ---------- wagashi club ---------- */
.club-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 52px);
  color: #f4f1ea;
  letter-spacing: 0.03em;
}

.club-lead {
  font-size: 18px;
  color: #f4f1ea;
  margin-top: 16px;
  max-width: 620px;
}

.club-body {
  color: rgba(244, 241, 234, 0.72);
  max-width: 620px;
  margin-top: 14px;
}

.archival-photo {
  margin: 48px auto 0;
  max-width: 620px;
  background: var(--c-bg);
  padding: 12px 12px 40px;
  border-radius: 4px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.4);
  transform: rotate(-1.1deg);
}

.archival-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}

.archival-photo figcaption {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--c-ink);
  text-align: center;
}

.archival-photo-2026 {
  transform: rotate(1deg);
  margin-top: 56px;
}

.artifact-strip {
  margin-top: 32px;
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
}

.artifact {
  background: var(--c-bg);
  padding: 10px 10px 28px;
  width: 210px;
  border-radius: 4px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.32);
  margin: 0;
}

.artifact:nth-child(odd) { transform: rotate(-2deg); }
.artifact:nth-child(even) { transform: rotate(2deg); }

.artifact a { display: block; }

.artifact-open {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
}

.artifact img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}

.artifact figcaption {
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--c-ink);
}

.artifact-strip-light .artifact {
  box-shadow: 0 12px 26px rgba(20, 18, 26, 0.12);
}

.follow-badge {
  width: 44px;
  height: 44px;
  margin: 0 0 14px;
}

.timeline {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.timeline-step {
  background: rgba(244, 241, 234, 0.06);
  border: 1px solid rgba(244, 241, 234, 0.16);
  border-radius: 14px;
  padding: 16px 28px;
  text-align: center;
  min-width: 220px;
}

.timeline-step span {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.04em;
  color: #f4f1ea;
}

.timeline-step small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: rgba(244, 241, 234, 0.6);
}

.timeline-gap { border-style: dashed; opacity: 0.75; }
.timeline-final { background: var(--c-anmitsu); border-color: var(--c-anmitsu); }
.timeline-final span, .timeline-final small { color: #fff8f5; }

.timeline-arrow {
  color: rgba(244, 241, 234, 0.4);
  font-size: 16px;
}

.club-quote {
  margin-top: 56px;
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 30px);
  color: #f4f1ea;
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.club-quote em { color: var(--c-kinako); font-style: normal; }

/* ---------- music ---------- */
.track-list { margin-top: 40px; border-top: 1px solid var(--c-line); }

.track {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--c-line);
}

.track-index {
  font-family: var(--font-display);
  color: var(--c-muted);
  font-size: 14px;
  width: 28px;
}

.track-info { flex: 1; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.track-title { font-size: 16px; font-weight: 700; }

.track-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  color: #fff;
}

.tag-kinako { background: var(--c-kinako); }
.tag-anmitsu { background: var(--c-anmitsu); }
.tag-yomoghi { background: var(--c-yomoghi); }
.tag-all { background: var(--c-ink); }

.track-play {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--c-ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.track-play:hover { background: var(--c-anmitsu); }

.track-note {
  margin-top: 24px;
  font-size: 13px;
  color: var(--c-muted);
}

/* Music: member (character) is the top-level row, same idea as
   BROXENVOID's ARCHIVE list ("record" as the top-level row). Rows
   only show the member + how many releases they have so far -
   never album titles directly, so this list never needs editing
   when a member's catalog grows; /music/<member>/ carries that. */
.member-row { align-items: center; }
.member-info { flex: 1; display: block; }
.member-link { display: block; }
.member-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 5px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 10px;
}
.member-album-meta {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--c-muted);
}

/* ---------- archive ---------- */
.archive-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.archive-card {
  background: #ffffff;
  border: 1px solid var(--c-line);
  border-radius: 14px;
  padding: 28px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.archive-card i { font-size: 22px; color: var(--c-anmitsu); }
.archive-card span { font-size: 13px; letter-spacing: 0.04em; }
.archive-card:hover { transform: translateY(-4px); border-color: var(--c-anmitsu); }

/* ---------- follow ---------- */
.follow-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.follow-card {
  background: rgba(244, 241, 234, 0.05);
  border: 1px solid rgba(244, 241, 234, 0.14);
  border-radius: 16px;
  padding: 28px 24px;
}

.follow-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  margin-bottom: 12px;
}

.follow-card p {
  font-size: 14px;
  color: rgba(244, 241, 234, 0.68);
  margin: 0;
}

.follow-card a {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-bottom: 1px solid currentColor;
}

/* single shared account (@tagless_kay on both X and Instagram) -
   shown once here; the three character cards below link to the
   same account rather than repeating these icons three times. */
.follow-official {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}
.follow-btn {
  display: inline-grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: center;
  min-width: 250px;
  padding: 16px 24px;
  border-radius: 999px;
  background: #f4f1ea;
  color: var(--c-ink);
  transition: transform 0.2s ease, background 0.2s ease;
}
.follow-btn i { grid-row: 1 / 3; font-size: 26px; }
.follow-btn span { font-size: 16px; font-weight: 700; letter-spacing: 0.02em; }
.follow-btn small { font-size: 13px; color: rgba(20, 18, 26, 0.62); }
.follow-btn:hover { transform: translateY(-2px); background: var(--c-kinako); }

/* footer: same account again, on every page */
.footer-social {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid rgba(244, 241, 234, 0.3);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: #f4f1ea;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.footer-social a:hover { border-color: var(--c-kinako); color: var(--c-kinako); }

/* ---------- footer ---------- */
footer {
  background: var(--c-ink);
  color: rgba(244, 241, 234, 0.6);
  text-align: center;
  padding: 56px 24px 40px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f4f1ea;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.06em;
}

.footer-tagline {
  margin: 14px 0 28px;
  font-size: 13px;
  color: rgba(244, 241, 234, 0.55);
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 28px;
}

.footer-nav a {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.75);
}

footer small {
  display: block;
  font-size: 11px;
  max-width: 520px;
  margin: 0 auto;
  color: rgba(244, 241, 234, 0.45);
}

/* ---------- page top ---------- */
#pagetop {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--c-anmitsu);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  z-index: 400;
}

#pagetop.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .char-grid { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .follow-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }

  #menu-trigger { display: flex; }

  /* Explicit height, not bottom:0 — once scrolled, the header gets
     backdrop-filter, which makes it the containing block for this fixed
     menu; with bottom:0 the menu then collapsed to 0px and its links
     floated unreadably over the page content. */
  #nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    background: var(--c-ink);
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }

  #nav a { font-size: 17px; }

  #nav .nav-social { gap: 12px; flex-wrap: wrap; border-bottom: 0; padding-top: 28px; }
  #nav .nav-social a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border: 1px solid rgba(244, 241, 234, 0.35);
    border-radius: 999px;
    font-size: 15px;
    text-transform: none;
  }
  .nav-social-label { display: inline; }

  .follow-btn { width: 100%; min-width: 0; }

  #nav.is-open { transform: translateX(0); }

  #nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 32px 28px;
  }

  #nav li {
    width: 100%;
    padding: 18px 0;
    border-bottom: 1px solid rgba(244, 241, 234, 0.14);
  }

  .block { padding: 76px 0; }
  .track-info { flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media (max-width: 420px) {
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
}
