/* Ember & Oak — shared stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

html[data-theme="light"] {
  --bg: #f8f3ec;
  --surface: #fffaf3;
  --surface-alt: #f1e6d6;
  --text: #2b1d14;
  --text-muted: #6b5544;
  --border: #e4d5c3;
  --accent: #b5651d;
  --accent-strong: #8a4513;
  --accent-soft: rgba(181, 101, 29, 0.12);
  --shadow: 0 20px 40px -20px rgba(43, 29, 20, 0.25);
}

html[data-theme="dark"] {
  --bg: #1b130c;
  --surface: #241a10;
  --surface-alt: #2e2115;
  --text: #f5ead9;
  --text-muted: #c9b39c;
  --border: #3a2a1c;
  --accent: #e0954a;
  --accent-strong: #f0aa63;
  --accent-soft: rgba(224, 149, 74, 0.16);
  --shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  transition: background-color 0.35s ease, color 0.35s ease;
  position: relative;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--text);
  margin: 0;
  line-height: 1.15;
}

p {
  margin: 0;
  color: var(--text-muted);
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* Ambient background orbs */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  z-index: 0;
  pointer-events: none;
}

#bg-orb-one {
  width: 420px;
  height: 420px;
  top: -120px;
  left: -100px;
  background: var(--accent);
}

#bg-orb-two {
  width: 360px;
  height: 360px;
  bottom: -140px;
  right: -80px;
  background: var(--accent-strong);
}

@media (prefers-reduced-motion: no-preference) {
  #bg-orb-one {
    animation: float-orb-one 22s ease-in-out infinite;
  }
  #bg-orb-two {
    animation: float-orb-two 26s ease-in-out infinite;
  }
}

@keyframes float-orb-one {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.08); }
}

@keyframes float-orb-two {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, -30px) scale(1.1); }
}

.page-wrap {
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.35s ease, border-color 0.35s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
}

#brand-icon {
  color: var(--accent);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
  transition: color 0.25s ease;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background-color: var(--accent);
  transition: width 0.25s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--text);
}

.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  color: var(--text);
  transition: background-color 0.25s ease, transform 0.2s ease, border-color 0.25s ease;
}

.theme-toggle:hover {
  background-color: var(--accent-soft);
  transform: translateY(-2px);
  border-color: var(--accent);
}

.theme-toggle svg {
  width: 19px;
  height: 19px;
}

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

.mobile-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 10px 24px 20px;
  border-top: 1px solid var(--border);
  background-color: var(--bg);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu .nav-link {
  padding: 12px 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
  background-color: var(--accent);
  color: #fffaf3;
}

.btn-primary:hover {
  background-color: var(--accent-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  border: 1px solid var(--border);
  color: var(--text);
  background-color: var(--surface);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}

/* Hero */
.hero {
  padding: 72px 0 96px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-headline {
  font-size: 52px;
  font-weight: 600;
  margin-bottom: 22px;
}

.hero-headline em {
  font-style: italic;
  color: var(--accent);
}

.hero-subtext {
  font-size: 18px;
  max-width: 480px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image-wrap {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background-color: var(--surface-alt);
}

#hero-beans-image {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-image-wrap:hover #hero-beans-image {
  transform: scale(1.04);
}

.hero-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
}

.hero-badge-number {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--accent);
}

.hero-badge-label {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Section headers */
.section {
  padding: 88px 0;
}

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

.section-header {
  max-width: 620px;
  margin-bottom: 52px;
}

.section-eyebrow {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 14px;
  display: block;
}

.section-title {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 16px;
}

.section-title.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background-color: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

/* Promo band */
.promo-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.promo-image-wrap {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background-color: var(--surface-alt);
}

#promo-image {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.promo-image-wrap:hover #promo-image {
  transform: scale(1.05);
}

.promo-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.promo-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 15px;
}

.promo-list svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand-text {
  margin-top: 14px;
  max-width: 320px;
  font-size: 14px;
}

.footer-heading {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 18px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 15px;
  transition: color 0.25s ease;
}

.footer-nav a:hover {
  color: var(--accent);
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.social-link:hover {
  background-color: var(--accent);
  color: #fffaf3;
  border-color: var(--accent);
  transform: translateY(-3px);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-headline {
    font-size: 40px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .promo-inner {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}