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

/* Dark theme (default - current brown) */
:root,
[data-theme="dark"] {
  --bg: #1b0e07;
  --bg-subtle: rgba(192, 136, 92, 0.08);
  --bg-subtle-2: rgba(212, 169, 106, 0.06);
  --text: #faf6f0;
  --text-secondary: #f5e6d0;
  --heading: #d4a96a;
  --accent: #c0885c;
  --muted: #8a7565;
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-border: rgba(212, 169, 106, 0.12);
  --card-border-hover: rgba(212, 169, 106, 0.3);
  --divider: #d4a96a;
  --footer-border: rgba(212, 169, 106, 0.1);
  --grain-opacity: 0.03;
  --steam-color: rgba(212, 169, 106, 0.4);
  --toggle-bg: rgba(255, 255, 255, 0.08);
  --toggle-border: rgba(212, 169, 106, 0.2);
}

/* Light theme (white with brown accents) */
[data-theme="light"] {
  --bg: #ffffff;
  --bg-subtle: rgba(192, 136, 92, 0.06);
  --bg-subtle-2: rgba(212, 169, 106, 0.04);
  --text: #1b0e07;
  --text-secondary: #2c1a0e;
  --heading: #6b3a1f;
  --accent: #8b5e3c;
  --muted: #7a6a5e;
  --card-bg: rgba(27, 14, 7, 0.03);
  --card-border: rgba(27, 14, 7, 0.1);
  --card-border-hover: rgba(27, 14, 7, 0.2);
  --divider: #c0885c;
  --footer-border: rgba(27, 14, 7, 0.08);
  --grain-opacity: 0.015;
  --steam-color: rgba(192, 136, 92, 0.3);
  --toggle-bg: rgba(27, 14, 7, 0.05);
  --toggle-border: rgba(27, 14, 7, 0.15);
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.4s ease, color 0.4s ease;
  background-image:
    radial-gradient(ellipse at 20% 50%, var(--bg-subtle) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, var(--bg-subtle-2) 0%, transparent 50%);
}

/* Subtle grain texture overlay */
.grain-overlay {
  position: fixed;
  inset: 0;
  opacity: var(--grain-opacity);
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* Theme toggle button */
.theme-toggle {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 100;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--toggle-border);
  background: var(--toggle-bg);
  color: var(--heading);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.theme-toggle:hover {
  border-color: var(--heading);
  background: var(--card-border-hover);
}

[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

.container {
  max-width: 640px;
  width: 100%;
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  animation: fadeUp 1s ease-out;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll-triggered fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger cards */
.info-cards .card:nth-child(2) { transition-delay: 0.1s; }
.info-cards .card:nth-child(3) { transition-delay: 0.2s; }
.info-cards .card:nth-child(4) { transition-delay: 0.3s; }

/* Steam animation */
.steam {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 1rem;
  height: 40px;
}

.steam span {
  display: block;
  width: 2px;
  height: 100%;
  background: linear-gradient(to top, transparent, var(--steam-color));
  border-radius: 2px;
  animation: rise 2s ease-in-out infinite;
}

.steam span:nth-child(2) {
  animation-delay: 0.4s;
  height: 80%;
}

.steam span:nth-child(3) {
  animation-delay: 0.8s;
  height: 60%;
}

@keyframes rise {
  0%, 100% {
    opacity: 0;
    transform: translateY(0) scaleY(0.5);
  }
  50% {
    opacity: 1;
    transform: translateY(-8px) scaleY(1);
  }
}

/* Logo section */
.logo-section {
  margin-bottom: 1.5rem;
}

.coffee-icon {
  color: var(--heading);
  margin-bottom: 1rem;
  transition: color 0.4s ease;
}

h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(2rem, 6vw, 3.2rem);
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.1;
  transition: color 0.4s ease;
}

.divider {
  width: 60px;
  height: 2px;
  background: var(--divider);
  margin: 1.5rem auto;
  border-radius: 1px;
  transition: background 0.4s ease;
}

.tagline {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 2.5rem;
  transition: color 0.4s ease;
}

/* Coming Soon */
.coming-soon {
  margin-bottom: 2.5rem;
}

.coming-soon h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--heading);
  margin-bottom: 0.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.4s ease;
}

.coming-soon p {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.6;
  transition: color 0.4s ease;
}

.coming-soon strong {
  font-weight: 500;
  color: var(--text);
}

/* Info cards */
.info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: left;
  transition: border-color 0.3s ease, background 0.4s ease;
}

.card:hover {
  border-color: var(--card-border-hover);
}

.card h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--heading);
  margin-bottom: 0.75rem;
  transition: color 0.4s ease;
}

.card p,
.card li {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
  transition: color 0.4s ease;
}

.card ul {
  list-style: none;
  padding: 0;
}

.card li::before {
  content: "\2022";
  color: var(--accent);
  font-weight: 700;
  margin-right: 0.5rem;
}

/* Instagram section */
.instagram-section {
  margin-bottom: 2.5rem;
  padding: 2rem 0;
}

.instagram-section h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--heading);
  margin-bottom: 0.35rem;
  transition: color 0.4s ease;
}

.instagram-subtitle {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--muted);
  margin-bottom: 1.5rem;
  transition: color 0.4s ease;
}

.instagram-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--heading);
  border-radius: 50px;
  color: var(--heading);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.4s ease;
}

.instagram-btn:hover {
  background: var(--heading);
  color: var(--bg);
}

.instagram-btn svg {
  flex-shrink: 0;
}

/* Location pin */
.location {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  transition: color 0.4s ease;
}

.location svg {
  color: var(--accent);
  flex-shrink: 0;
  transition: color 0.4s ease;
}

/* Check back message */
.check-back {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 3rem;
  transition: color 0.4s ease;
}

/* Footer */
footer {
  border-top: 1px solid var(--footer-border);
  padding-top: 1.5rem;
  transition: border-color 0.4s ease;
}

footer p {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 300;
  letter-spacing: 0.02em;
  transition: color 0.4s ease;
}

/* Social links */
.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  color: var(--heading);
  text-decoration: none;
  transition: border-color 0.3s ease, background 0.3s ease, color 0.4s ease;
}

.social-link:hover {
  border-color: var(--heading);
  background: var(--card-bg);
}

/* Responsive */
@media (max-width: 560px) {
  .container {
    padding: 2rem 1.25rem;
  }

  .info-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  h1 {
    font-size: 2rem;
  }

  .coming-soon h2 {
    font-size: 1.3rem;
  }

  .tagline {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }

  .coming-soon {
    margin-bottom: 2rem;
  }

  .card {
    padding: 1.25rem;
  }

  .instagram-btn {
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
  }

  .theme-toggle {
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 360px) {
  .container {
    padding: 1.75rem 1rem;
  }

  h1 {
    font-size: 1.75rem;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .steam span {
    animation: none;
  }

  .container {
    animation: none;
  }
}
