/* hinagiku.bar — Japanese Minimal Speakeasy */
/* Palette: #0A0A0A, #141210, #1A1A1A, #1E1B16, #2A2520, #2A2A2A, #5A5450, #C8C4BC, #F0EDE6 */

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

html {
  scroll-behavior: smooth;
}

body {
  background: #0A0A0A;
  color: #C8C4BC;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.8;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ===== GROUND PLANE: FIELD ===== */
.field {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, #141210 0%, #0A0A0A 100%);
  pointer-events: none;
}

.field-daisy {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70vh;
  height: 70vh;
  opacity: 0.07;
}

/* ===== HUD OVERLAY ===== */
.hud {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
  transition: opacity 0.6s ease;
}

.hud a,
.hud-nav a {
  pointer-events: auto;
}

/* Vertical wordmark */
.wordmark-vertical {
  position: fixed;
  left: 24px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: #5A5450;
  text-transform: lowercase;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

/* Corner element - top left */
.hud-corner-tl {
  position: fixed;
  top: 28px;
  left: 64px;
  pointer-events: none;
}

.hud-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: #2A2A2A;
  text-transform: uppercase;
}

/* Navigation - upper right */
.hud-nav {
  position: fixed;
  top: 28px;
  right: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: auto;
}

.hud-nav a {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: #5A5450;
  text-decoration: none;
  text-transform: lowercase;
  transition: color 0.3s ease;
}

.hud-nav a:hover {
  color: #F0EDE6;
}

/* Candle flame - lower left */
.hud-candle {
  position: fixed;
  bottom: 32px;
  left: 48px;
  width: 36px;
  height: 48px;
  pointer-events: none;
}

.flame {
  width: 100%;
  height: 100%;
}

@keyframes flame-morph {
  0%, 100% {
    d: path("M 30 70 C 20 55, 10 40, 30 20 C 50 40, 40 55, 30 70");
  }
  33% {
    d: path("M 30 70 C 25 52, 8 36, 30 16 C 52 36, 35 52, 30 70");
  }
  66% {
    d: path("M 30 70 C 18 54, 12 38, 30 22 C 48 38, 42 54, 30 70");
  }
}

.flame path {
  animation: flame-morph 9s ease-in-out infinite;
}

/* ===== MAIN CONTENT ===== */
main {
  position: relative;
  z-index: 10;
  padding-top: 100vh; /* Push past opening section */
}

/* ===== SECTION 01: OPENING ===== */
.section-opening {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  pointer-events: none;
}

.opening-content {
  text-align: center;
  opacity: 0;
  animation: reveal-fade 1.2s ease forwards;
  animation-delay: 1.2s;
}

@keyframes reveal-fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.domain-reveal {
  font-family: 'Cormorant Garamond', serif;
  font-size: 72px;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: #F0EDE6;
  line-height: 1.1;
  margin-bottom: 16px;
}

.domain-subtitle {
  font-family: 'Noto Serif JP', serif;
  font-size: 18px;
  font-weight: 400;
  color: #5A5450;
  margin-bottom: 32px;
  letter-spacing: 0.05em;
}

.opening-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-weight: 300;
  font-style: italic;
  color: #2A2A2A;
  letter-spacing: 0.05em;
  line-height: 1.8;
}

/* ===== INK-WASH DIVIDER ===== */
.ink-divider {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  height: 1px;
}

.ink-divider::after {
  content: '';
  display: block;
  width: 40%;
  height: 1px;
  background: linear-gradient(to right, transparent, #2A2520 30%, #2A2520 70%, transparent);
}

/* ===== CONTENT SECTIONS ===== */
.section-content-wrap {
  padding: 120px 0;
}

.section-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 48px;
}

/* Section label with number and rule */
.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.section-num {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: #2A2A2A;
  text-transform: uppercase;
  flex-shrink: 0;
}

.section-rule {
  flex: 1;
  height: 1px;
  background: #2A2A2A;
  max-width: 60px;
}

/* Section headings */
.section-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 600;
  color: #F0EDE6;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-subheading {
  font-family: 'Noto Serif JP', serif;
  font-size: 18px;
  font-weight: 400;
  color: #5A5450;
  margin-bottom: 48px;
  letter-spacing: 0.02em;
}

/* Body text */
.body-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 300;
  color: #C8C4BC;
  max-width: 560px;
  line-height: 1.8;
  margin-bottom: 28px;
}

/* ===== SECTION 02: MA ===== */
/* uses default section styles */

/* ===== SECTION 03: CRAFT ===== */
.craft-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 60px;
}

.craft-item {
  border-left: 1px solid #2A2A2A;
  padding-left: 24px;
}

.craft-item-label {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: #5A5450;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.craft-item-desc {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 300;
  color: #C8C4BC;
  max-width: 480px;
  line-height: 1.8;
}

.craft-daisy {
  width: 60px;
  height: 60px;
  opacity: 0.4;
  margin-top: 20px;
}

.craft-daisy svg {
  width: 100%;
  height: 100%;
}

/* ===== SECTION 04: CANDLELIGHT HOURS ===== */
.hours-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 48px;
}

.hours-row {
  display: flex;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid #1A1A1A;
}

.hours-key {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: #2A2A2A;
  text-transform: uppercase;
  width: 80px;
  flex-shrink: 0;
}

.hours-val {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #5A5450;
  text-transform: lowercase;
}

.hours-divider {
  height: 32px;
}

/* ===== SECTION 05: THE STEM ===== */
.section-stem .body-text {
  margin-bottom: 20px;
}

.contact-line {
  margin-top: 32px;
}

.inline-link {
  color: #5A5450;
  text-decoration: underline;
  text-decoration-color: #5A5450;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 17px;
  transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

.inline-link:hover {
  color: #F0EDE6;
  text-decoration-color: #F0EDE6;
}

.stem-motif {
  width: 40px;
  margin-top: 80px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.35;
}

.stem-motif svg {
  width: 100%;
  height: auto;
}

/* ===== FOOTER ===== */
.footer {
  padding: 80px 0 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.footer-text {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: #2A2A2A;
  text-transform: lowercase;
}

.footer-sep {
  font-family: 'Cormorant Garamond', serif;
  color: #1E1B16;
  font-size: 14px;
}

/* ===== HUD SCROLL STATE ===== */
.hud.scrolled {
  opacity: 0.2;
}

/* ===== SECTION FADE-IN ON SCROLL ===== */
.section-content-wrap {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.section-content-wrap.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 2px;
}

::-webkit-scrollbar-track {
  background: #0A0A0A;
}

::-webkit-scrollbar-thumb {
  background: #2A2A2A;
}
