/* ============================================================
   灯火珈琲 -TOMOSHIBI-  |  css/index.css
   Home-page layout. Tokens & motion hooks come from tokens.css.
   Colours and type reference :root custom properties only.
   ============================================================ */

/* ---- nav toggle bars (mobile) ---- */
.nav-toggle__bar {
  position: absolute;
  left: 50%; width: 1.4rem; height: 1px;
  background: currentColor;
  transform: translateX(-50%);
  transition: transform var(--dur-1) var(--ease-out-quart);
}
.nav-toggle__bar:nth-child(1) { top: 42%; }
.nav-toggle__bar:nth-child(2) { top: 58%; }
.site-nav.nav-open .nav-toggle__bar:nth-child(1) { top: 50%; transform: translateX(-50%) rotate(45deg); }
.site-nav.nav-open .nav-toggle__bar:nth-child(2) { top: 50%; transform: translateX(-50%) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--nav-h) + var(--space-4)) var(--page-inline) var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.hero__ghost {
  top: 8%;
  right: -3%;
  font-size: clamp(4.5rem, 26vw, 24rem);
  z-index: 0;
}
.hero__label {
  position: absolute;
  top: calc(var(--nav-h) + var(--space-3));
  left: var(--page-inline);
  z-index: 3;
}
.hero__title {
  position: absolute;
  top: calc(var(--nav-h) + var(--space-4));
  right: var(--page-inline);
  margin: 0;
  font-size: clamp(2.8rem, 9.4vw, 7.6rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.04em;
  color: var(--color-fg);
  z-index: 3;
}
.hero__foot {
  position: relative;
  z-index: 3;
  max-width: 46ch;
}
.hero__tag {
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: var(--step-1);
  line-height: 1.4;
  margin-bottom: var(--space-3);
  max-width: none;
}
.hero__body {
  color: var(--color-fg);
  font-size: var(--step-0);
  max-width: 44ch;
}
.hero__cue {
  position: absolute;
  right: var(--page-inline);
  bottom: var(--space-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  z-index: 3;
}
.hero__cue-line {
  width: 1px; height: clamp(2.5rem, 7vh, 5rem);
  background: linear-gradient(to bottom, var(--color-muted), transparent);
}
@media (max-width: 720px) {
  /* push the vertical headline below the eyebrow label so '深' clears 'ROASTERY' */
  .hero__title { font-size: clamp(2.4rem, 13vw, 4rem); top: calc(var(--nav-h) + var(--space-6)); }
  .hero__cue { display: none; }
  .hero__ghost { font-size: 42vw; top: 14%; }
}

/* ============================================================
   MANIFESTO
   ============================================================ */
.manifesto { position: relative; }
.manifesto__grid { position: relative; row-gap: var(--space-4); align-items: start; }
.manifesto__chapter {
  position: absolute;
  left: calc(var(--page-inline) * -0.2);
  top: 0;
  color: var(--color-muted);
  font-size: var(--step--1);
  letter-spacing: 0.18em;
  height: 100%;
}
.manifesto__title {
  font-size: clamp(2.6rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 0.98;
  align-self: start;
}
.manifesto__body {
  align-self: end;
  padding-top: var(--space-5);
}
.manifesto__body p { color: var(--color-fg); }
@media (max-width: 720px) {
  .manifesto__chapter { position: static; height: auto; writing-mode: horizontal-tb; display: block; margin-bottom: var(--space-3); }
  .manifesto__body { padding-top: var(--space-3); }
}

/* ============================================================
   BLENDS GALLERY
   ============================================================ */
.blends__head { align-items: end; row-gap: var(--space-4); margin-bottom: var(--space-6); }
.blends__title { font-size: clamp(2.4rem, 7vw, 5.2rem); font-weight: 700; margin-top: var(--space-2); }
.blends__lede { align-self: end; }
.blends__lede p { color: var(--color-muted); }

.blends__grid { align-items: start; }
.blend { position: relative; }
.blend--a { grid-column: 1 / 5; margin-top: 0; }
.blend--b { grid-column: 6 / 10; margin-top: clamp(3rem, 12vh, 9rem); }
.blend--c { grid-column: 9 / 13; margin-top: clamp(1.5rem, 5vh, 4rem); }

.blend__inner {
  position: relative;
  background: var(--color-surface);
  aspect-ratio: 3 / 4;
  padding: var(--space-4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--color-muted);
  transition: background-color var(--dur-2) var(--ease-out-quart);
}
.blend__inner::after {
  content: "";
  position: absolute;
  left: var(--space-4); bottom: var(--space-4);
  width: calc(100% - var(--space-4) * 2); height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-2) var(--ease-out-quart);
}
.blend:hover .blend__inner { background: var(--surface-2); }
.blend:hover .blend__inner::after { transform: scaleX(1); }

.blend__num {
  position: absolute;
  top: -0.15em; right: 0.1em;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 300;
  font-size: clamp(4rem, 9vw, 8rem);
  line-height: 0.8;
  color: var(--color-fg);
  opacity: 0.08;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.blend__bean {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -55%);
  width: 45%;
  color: var(--color-muted);
  opacity: 0.7;
}
.blend__name {
  position: absolute;
  top: var(--space-3); left: var(--space-4);
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--color-fg);
  height: auto;
}
.blend__note {
  position: relative;
  z-index: 2;
  font-size: var(--step--1);
  color: var(--color-muted);
  max-width: none;
  margin-bottom: var(--space-3);
}
@media (max-width: 720px) {
  .blend--a, .blend--b, .blend--c { grid-column: 1 / -1; margin-top: 0; margin-bottom: var(--space-3); }
  .blend__inner { aspect-ratio: 16 / 10; }
}

/* ============================================================
   BLEND DETAIL LIST
   ============================================================ */
.blend-detail__grid { row-gap: var(--space-5); align-items: start; }
.blend-detail__head h2 { font-size: clamp(2.2rem, 6vw, 4.4rem); font-weight: 700; margin-top: var(--space-2); }
.blend-detail__list { margin-top: var(--space-2); }
.index-row--blend { grid-template-columns: auto 1fr auto; align-items: center; }
.index-row__mid {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.blend-detail__name {
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--color-fg);
  height: auto;
  flex: none;
}
.index-row__note { color: var(--color-muted); font-size: var(--step-0); max-width: 46ch; }
.blend-detail__temp { color: var(--color-muted); font-size: var(--step-0); font-weight: 300; }
@media (max-width: 720px) {
  .index-row--blend { grid-template-columns: auto 1fr; row-gap: var(--space-2); }
  .blend-detail__temp { grid-column: 2; justify-self: end; }
  .index-row__mid { flex-direction: row; align-items: flex-start; }
}

/* ============================================================
   STORE TEASER
   ============================================================ */
.store-teaser {
  position: relative;
  background: var(--color-bg-deep);
  overflow: hidden;
}
.store-teaser__steam {
  position: absolute;
  top: -8%; left: 18%;
  width: clamp(30px, 5vw, 60px);
  height: 120%;
  color: var(--color-accent);
  opacity: 0.32;
  z-index: 1;
}
.store-teaser__isolate {
  position: relative;
  z-index: 2;
  font-family: var(--font-mincho);
  font-size: var(--step-1);
  color: var(--color-muted);
  margin-bottom: var(--space-7);
  max-width: none;
}
.store-teaser__grid { position: relative; z-index: 2; row-gap: var(--space-4); align-items: end; }
.store-teaser__title {
  font-size: clamp(2.6rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 0.98;
}
.store-teaser__body { align-self: end; }
.store-teaser__body p { color: var(--color-fg); margin-bottom: var(--space-4); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding-top: var(--space-6);
  padding-bottom: var(--space-4);
  background: var(--color-bg);
}
.footer__top {
  padding-top: var(--space-5);
  align-items: start;
  row-gap: var(--space-5);
}
.footer__addr { font-style: normal; }
.footer__lines { color: var(--color-muted); line-height: 2.1; max-width: none; }
.footer__lines a { color: var(--color-fg); }
.footer__nav {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: var(--space-4);
}
.footer__nav-link {
  font-size: var(--step-0);
  font-weight: 500;
  color: var(--color-fg);
  height: auto;
  transition: color var(--dur-1) var(--ease-out-quart);
}
.footer__nav-link:hover, .footer__nav-link:focus-visible { color: var(--color-accent); }
.footer__word {
  margin-top: var(--space-5);
  font-weight: 900;
  font-size: clamp(3.4rem, 12vw, 12rem);
  line-height: 0.82;
  letter-spacing: -0.04em;
  color: var(--color-fg);
  text-transform: uppercase;
  white-space: nowrap;
}
.footer__marquee {
  margin-block: var(--space-5) var(--space-4);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding-block: var(--space-3);
}
.footer__marquee .marquee-track > span { font-family: var(--font-mincho); font-weight: 400; }
.footer__base {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}
@media (max-width: 720px) {
  .footer__nav { justify-content: flex-start; }
  .footer__word { font-size: 20vw; }
}
