/* Premium Zibibbo brand design system */
:root {
  --bg:         oklch(97% 0.006 90);    /* warm cream — bottle label background */
  --surface:    oklch(99% 0.003 90);    /* card lift */
  --fg:         oklch(18% 0.025 250);   /* deep navy-ink — from majolica blue family */
  --muted:      oklch(45% 0.015 250);   /* secondary text — blue-grey */
  --border:     oklch(89% 0.008 90);    /* thin dividers */
  --accent:     oklch(48% 0.14 250);    /* majolica blue — Sicilian ceramic tile */
  --highlight:  oklch(82% 0.16 90);     /* Sicilian gold — sun motif, sparingly */
  --terracotta: oklch(58% 0.16 28);     /* vermilion red — carnival rays, rare use */

  --font-display: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --font-body:    'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, Menlo, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--fg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Subtle grain noise overlay (2-3% opacity) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  z-index: 9999;
  background: repeating-conic-gradient(rgba(0, 0, 0, 0.04) 0 25%, transparent 0 50%) 0 0/3px 3px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--fg);
  color: var(--bg);
  padding: 10px 14px;
  z-index: 1000;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(calc(100% - 48px), 1120px);
  margin: 0 auto;
}

/* Vertical section gaps matching brand-spec (min 120px desktop, 80px mobile) */
.section {
  padding: 120px 0;
}

.section.alt {
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.flow > * + * {
  margin-top: 24px;
}

/* Typographic scale */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
}

p {
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  color: var(--fg);
}

/* Header style - editorial glassmorphism */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(12px);
  background-color: rgba(244, 242, 237, 0.85); /* oklch(97% 0.006 90) but semi-trans */
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg);
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding-top: 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.lead {
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.6;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Rectangular layout buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border: 1px solid var(--border);
  background-color: var(--surface);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.button:hover,
.button:focus-visible {
  border-color: var(--fg);
  background-color: var(--fg);
  color: var(--bg);
}

.button.button-primary {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.button.button-primary:hover,
.button.button-primary:focus-visible {
  background-color: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
}

.hero-points,
.check-list {
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-points li,
.check-list li {
  margin-bottom: 8px;
}

.hero-figure {
  border: 1px solid var(--border);
  background-color: var(--surface);
  padding: 40px;
}

.hero-figure img {
  width: 100%;
  mix-blend-mode: multiply; /* Blend white background of bottle image */
}

.hero-figure figcaption {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-align: center;
}

/* Video highlights section */
.video-highlights {
  border: 1px solid var(--border);
  background-color: var(--surface);
  padding: 40px;
  margin-top: 32px;
}

.highlight-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.highlight-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 24px;
}

.highlight-list > li {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.highlight-list ul {
  list-style: square;
  padding-left: 24px;
  margin-top: 10px;
}

.highlight-list ul li {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 8px;
  line-height: 1.5;
}

.highlight-summary {
  background-color: var(--bg);
  padding: 24px;
  border-left: 3px solid var(--accent);
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--fg);
}

/* Flat Grid cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.card,
.contact-card,
.vendor-panel,
.map-canvas {
  padding: 36px;
  background-color: var(--surface);
  border: 1px solid var(--border);
}

.card h3 {
  margin-bottom: 16px;
  font-weight: 400;
}

.card p {
  color: var(--muted);
}

/* Two-column splits (asymmetric) */
.two-col {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 48px;
  align-items: start;
}

.contact-card {
  display: grid;
  gap: 20px;
}

/* FAQ Accordions */
.faq-list {
  display: grid;
  gap: 16px;
}

.faq-list details {
  border: 1px solid var(--border);
  background-color: var(--surface);
  padding: 24px;
}

.faq-list summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.25rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--muted);
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  margin-top: 16px;
  color: var(--muted);
}

/* Map area */
.map-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.nearby-btn {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.nearby-btn.is-active {
  background-color: #2e7d32;
  border-color: #2e7d32;
}

.map-toolbar select {
  padding: 10px 14px;
  border: 1px solid var(--border);
  background-color: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.map-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.map-canvas {
  min-height: 480px;
  padding: 0;
}

.map-canvas.is-hidden {
  display: none;
}

.vendor-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 480px;
  overflow-y: auto;
}

.fallback-card {
  padding: 24px;
  border: 1px solid var(--border);
  background-color: var(--bg);
}

.vendor-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vendor-list li {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.vendor-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.vendor-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.vendor-distance {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 3px 8px;
  background-color: rgba(38, 79, 119, 0.08);
  color: var(--accent);
}

.vendor-kakao-icon,
.vendor-naver-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.vendor-kakao-icon:hover,
.vendor-naver-icon:hover {
  opacity: 0.75;
}

.vendor-address {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 4px;
}

/* Video Layout */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  background-color: #000;
}

.video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-caption {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Footer layout */
.site-footer {
  padding: 80px 0 100px;
  border-top: 1px solid var(--border);
  background-color: var(--surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.footer-grid p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 6px;
}

/* Scroll reveal logic */
.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 24px;
    right: 24px;
    top: calc(100% + 12px);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background-color: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero-grid,
  .two-col,
  .footer-grid,
  .card-grid,
  .map-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .section {
    padding: 80px 0;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(calc(100% - 32px), 1120px);
  }

  .hero {
    padding-top: 40px;
  }

  .cta-row {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-figure,
  .video-highlights {
    padding: 24px;
  }

  .card,
  .contact-card,
  .vendor-panel,
  .map-canvas {
    padding: 24px;
  }
}

/* Dark section & premium layouts matching awesome-design-md (Claude) */
.section.dark {
  background-color: var(--fg);
  color: var(--bg);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.section.dark h1,
.section.dark h2,
.section.dark h3,
.section.dark h4 {
  color: var(--bg);
}

.section.dark p {
  color: oklch(80% 0.01 90);
}

.section.dark .eyebrow {
  color: oklch(65% 0.01 90);
}

.section.dark .video-highlights {
  background-color: oklch(24% 0.02 250);
  border-color: rgba(255, 255, 255, 0.1);
}

.section.dark .highlight-list ul li {
  color: oklch(78% 0.01 90);
}

.section.dark .highlight-summary {
  background-color: var(--fg);
  border-left-color: var(--highlight);
  color: var(--bg);
}

.section.dark .video-caption {
  color: oklch(65% 0.01 90);
}

.site-footer.dark {
  background-color: var(--fg);
  color: var(--bg);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer.dark p {
  color: oklch(70% 0.01 90);
}

.site-footer.dark a {
  color: oklch(80% 0.01 90);
}

.site-footer.dark a:hover {
  color: var(--highlight);
}

.site-footer.dark .footer-brand {
  color: var(--bg);
}

.hero-manifesto {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  font-weight: 200;
  font-style: italic;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 24px;
  opacity: 0.95;
}

/* Editorial section numbers */
.section-number {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 200;
  color: var(--border);
  line-height: 1;
  display: block;
  margin-bottom: 16px;
  opacity: 0.85;
}

.section.dark .section-number {
  color: rgba(255, 255, 255, 0.12);
}

/* Fine dashed borders for 2026 blueprint-editorial layout */
.card,
.contact-card,
.vendor-panel,
.map-canvas,
.video-highlights {
  border: 1px dashed var(--border) !important;
}

.faq-list details {
  border: 1px dashed var(--border) !important;
}

.hero-figure {
  border: 1px dashed var(--border) !important;
}
