/* ============ Tokens ============ */
:root {
  --tide: #0E2F3F;        /* deep navy */
  --wave: #1F5C74;        /* mid blue */
  --foam: #F7F3EA;        /* warm ivory background */
  --foam-deep: #EFE8D9;   /* slightly deeper ivory for contrast blocks */
  --sand: #CBAD82;        /* warm tan */
  --ember: #D97A3F;       /* terracotta accent */
  --ink: #16242B;         /* near-black body text */
  --ink-soft: #3E5058;    /* softened body text */
  --line: rgba(14,47,63,0.14);

  --display: "Fraunces", Georgia, serif;
  --body: "Karla", -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--foam);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
h1, h2, h3 {
  font-family: var(--display);
  color: var(--tide);
  margin: 0 0 0.4em;
  font-weight: 500;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.6rem, 5vw, 4.1rem); line-height: 1.06; font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1.15; }
h3 { font-size: 1.28rem; }
p { margin: 0 0 1em; color: var(--ink-soft); max-width: 62ch; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 3px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ember); color: #fff; }
.btn-primary:hover { background: #c3692f; }
.btn-ghost { border-color: var(--tide); color: var(--tide); }
.btn-ghost:hover { background: var(--tide); color: var(--foam); }
.btn-dark { background: var(--tide); color: var(--foam); }
.btn-dark:hover { background: #0a2431; }
.btn-small { padding: 10px 18px; font-size: 0.9rem; border-radius: 3px; }

/* ============ Header ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 234, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 1.3rem;
  color: var(--tide);
  font-weight: 600;
  margin-right: auto;
}
.logo-mark { width: 30px; height: 22px; color: var(--ember); }
.logo-mark svg { width: 100%; height: 100%; }
.nav { display: flex; gap: 30px; }
.nav a { font-weight: 600; font-size: 0.95rem; color: var(--ink-soft); }
.nav a:hover { color: var(--ember); }
.nav-cta { white-space: nowrap; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--tide); border-radius: 2px; }

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 70px 0 0;
  background: linear-gradient(180deg, #FDFBF6 0%, var(--foam) 55%, #E7F0EE 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-bottom: 60px;
}
.hero-copy p.hero-lede { font-size: 1.12rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; margin: 30px 0 22px; flex-wrap: wrap; }
.hero-note {
  font-size: 0.88rem;
  color: var(--wave);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0;
}
.hero-note::before { content: "— "; color: var(--sand); }
.hero-art {
  background: linear-gradient(160deg, var(--foam-deep), var(--foam));
  border-radius: 4px;
  padding: 20px;
  box-shadow: 0 30px 60px -30px rgba(14,47,63,0.4);
}
.hero-art img { border-radius: 2px; }
.hero-tideline { color: var(--foam-deep); line-height: 0; }
.hero-tideline svg { width: 100%; height: 44px; display: block; }

/* ============ Story ============ */
.story { padding: 90px 0; background: var(--foam-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.story-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
}
.story-sign { font-family: var(--display); font-style: italic; font-size: 1.2rem; color: var(--tide); margin-top: 1.4em; }
.story-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 26px; }
.story-facts li {
  border-left: 2px solid var(--ember);
  padding-left: 18px;
  font-size: 0.98rem;
  color: var(--ink-soft);
  font-weight: 600;
}
.story-facts span {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
  color: var(--tide);
  font-weight: 500;
  line-height: 1.1;
}
.beach-strip {
  margin-top: 60px;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
}
.beach-photo {
  position: relative;
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: 0 18px 40px -18px rgba(14,47,63,0.35);
}
.beach-photo--wide { aspect-ratio: 16 / 10; }
.beach-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.beach-photo:hover img { transform: scale(1.035); }
.beach-photo figcaption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  padding: 6px 14px;
  background: rgba(14,47,63,0.72);
  color: var(--foam);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 3px;
}

/* ============ Shop ============ */
.shop { padding: 100px 0; }
.shop-head { max-width: 560px; margin: 0 0 50px; }
.shop-head p { font-size: 1.05rem; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.product-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.product-card:hover {
  box-shadow: 0 24px 48px -24px rgba(14,47,63,0.3);
  transform: translateY(-3px);
}
.product-card--bundle { background: var(--tide); border-color: var(--tide); }
.product-card--bundle h3, .product-card--bundle p { color: var(--foam); }
.product-card--bundle p { opacity: 0.85; }
.product-image { aspect-ratio: 4 / 3.1; overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform 0.6s ease; }
.product-card:hover .product-image img { transform: scale(1.04); }
.product-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.product-body p { flex: 1; font-size: 0.98rem; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.price-block { display: flex; flex-direction: column; gap: 2px; }
.price { font-family: var(--display); font-size: 1.5rem; color: inherit; font-weight: 500; line-height: 1.1; }
.shipping-note { font-size: 0.8rem; color: var(--ink-soft); font-weight: 600; }
.product-card--bundle .shipping-note { color: rgba(247,243,234,0.7); }
.shipping-note--free { color: var(--ember); }
.product-card--bundle .shipping-note--free { color: var(--sand); }
.bundle-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--ember);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  z-index: 2;
}

/* ============ Roast process ============ */
.roast { padding: 100px 0; background: var(--tide); color: var(--foam); }
.roast h2, .roast h3 { color: var(--foam); }
.roast-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: center; }
.roast-steps { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-direction: column; gap: 34px; }
.roast-steps li { display: flex; gap: 22px; }
.roast-step-index {
  font-family: var(--display);
  font-size: 1.1rem;
  color: var(--tide);
  background: var(--sand);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 600;
}
.roast-steps p { color: rgba(247,243,234,0.75); margin: 0; }
.roast-art { color: var(--sand); opacity: 0.9; }

/* ============ Contact ============ */
.contact { padding: 100px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-details p { display: flex; flex-direction: column; gap: 4px; font-size: 1rem; color: var(--ink); margin-bottom: 22px; }
.contact-details span { font-size: 0.82rem; font-weight: 700; color: var(--ember); }
.contact-details a { text-decoration: underline; text-underline-offset: 3px; }

/* ============ Footer ============ */
.footer { padding: 34px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer p { margin: 0; font-size: 0.85rem; color: var(--ink-soft); }

/* ============ Responsive ============ */
@media (max-width: 880px) {
  .nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .header.nav-open .nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--foam);
    padding: 20px 32px 26px;
    border-bottom: 1px solid var(--line);
    gap: 18px;
  }
  .header.nav-open .nav-cta {
    display: inline-flex;
    position: absolute;
    top: 100%;
    right: 32px;
    margin-top: 170px;
  }
  .hero-grid, .story-grid, .roast-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .product-grid { grid-template-columns: 1fr; }
  .roast-art { display: none; }
  .beach-strip { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .container { padding: 0 20px; }
  .header-inner { padding: 16px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 2px;
}
