/* Ground & Grace visual refinement — loaded after the compiled Vite stylesheet. */

:root {
  --gg-display: "Fraunces", Georgia, serif;
  --gg-wordmark: "Fraunces", Georgia, serif;
  --gg-espresso: #2d1a14;
  /* Locked lockup proportions: Coffee sits at ~34% of the name line. */
  --gg-wm-coffee-scale: .34;
  --gg-wm-tracking: -.055em;
  --gg-wm-coffee-tracking: .17em;
}

/* Use the editorial typeface already established on the About page throughout
   meaningful headings, while keeping utility/navigation copy crisp in Inter. */
h1, h2, h3,
.footer-cta h2,
.about-story-copy h2,
.about-closing-cta h2 {
  font-family: var(--gg-display) !important;
  font-weight: 700 !important;
  letter-spacing: -.045em;
}

/* -------------------------------------------------------------------------- */
/* Brand lockup — one system for header, hero, mobile menu, and footer         */
/* Structure: .brand-wordmark > .wordmark-sans + .brand-coffee                 */
/* Master size lives on the wordmark; children use em so proportions stay locked. */
/* -------------------------------------------------------------------------- */

.brand-wordmark,
.hero-wordmark-stack {
  overflow: visible !important;
}

.brand-wordmark {
  display: grid !important;
  align-content: center;
  justify-items: start;
  gap: 0 !important;
  line-height: .9 !important;
  font-family: var(--gg-wordmark) !important;
  font-size: 1.2rem;
  color: var(--gg-espresso);
}

.brand-wordmark .wordmark-sans,
.site-header .brand-wordmark .wordmark-sans,
.footer-brand .brand-wordmark .wordmark-sans,
.mobile-menu-logo .brand-wordmark .wordmark-sans,
.hero-title-lockup .wordmark-sans,
.home-hero .hero-title-lockup .wordmark-sans,
body[data-page="home"] .home-hero h1.hero-title-lockup .hero-wordmark-stack .wordmark-sans {
  display: inline-block;
  margin: 0;
  padding: 0;
  font-family: var(--gg-wordmark) !important;
  font-size: 1em !important;
  font-weight: 800 !important;
  font-style: normal !important;
  letter-spacing: var(--gg-wm-tracking) !important;
  line-height: .9 !important;
  color: var(--gg-espresso) !important;
  background: none !important;
  -webkit-text-fill-color: currentColor;
  text-shadow: none !important;
  text-transform: none !important;
  transform: none !important;
  animation: none !important;
  white-space: nowrap;
}

.wordmark-amp,
.brand-wordmark .wordmark-amp,
.site-header .wordmark-amp,
.home-hero .hero-title-lockup .wordmark-amp,
body[data-page="home"] .home-hero h1.hero-title-lockup .wordmark-amp {
  display: inline-block;
  margin: 0 .08em !important;
  color: var(--brown) !important;
  /* A conventional ampersand remains recognizable at every lockup scale. */
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-style: normal !important;
  font-weight: 800 !important;
  font-size: .78em !important;
  letter-spacing: 0 !important;
  line-height: .9 !important;
  transform: translateY(-.025em) !important;
}

.brand-coffee,
.site-header .brand-coffee,
.footer-brand .brand-coffee,
.mobile-menu-logo .brand-coffee,
body[data-page="home"] .home-hero .hero-wordmark-stack .brand-coffee,
body[data-page="home"] .home-hero h1.hero-title-lockup .brand-coffee {
  display: block !important;
  margin: .22em 0 0 .06em !important;
  padding: 0 !important;
  overflow: visible !important;
  color: var(--brown) !important;
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: currentColor !important;
  font-family: var(--gg-wordmark) !important;
  font-size: max(.625rem, calc(1em * var(--gg-wm-coffee-scale))) !important;
  font-style: italic !important;
  font-weight: 700 !important;
  letter-spacing: var(--gg-wm-coffee-tracking) !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  text-shadow: none !important;
  clip-path: none !important;
  filter: none !important;
  transform: none !important;
  animation: none !important;
}

/* Header: compact but readable; Coffee never drops below ~10px. */
.site-header .brand {
  gap: 11px;
}

.site-header .brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(75, 45, 33, .12);
}

.site-header .brand-wordmark {
  font-size: 1.125rem !important;
}

.site-header .brand-coffee {
  margin-top: .18em !important;
  font-size: max(.625rem, calc(1em * var(--gg-wm-coffee-scale))) !important;
}

.mobile-menu-logo .brand-wordmark {
  font-size: 1.05rem !important;
}

.mobile-menu-logo .brand-coffee {
  font-size: max(.6rem, calc(1em * var(--gg-wm-coffee-scale))) !important;
}

/* Footer: same lockup, larger master size, Coffee scales with it. */
.footer-brand .brand-wordmark {
  font-size: clamp(1.55rem, 2.1vw, 1.95rem) !important;
}

.footer-brand .brand-coffee {
  margin-top: .26em !important;
}

/* -------------------------------------------------------------------------- */
/* Homepage hero — same lockup, fluid master size (no tablet size spike)       */
/* -------------------------------------------------------------------------- */

body[data-page="home"] .home-hero .hero-profile,
body[data-page="home"] .home-hero h1.hero-title-lockup,
body[data-page="home"] .hero-wordmark-stack {
  overflow: visible !important;
}

body[data-page="home"] .home-hero h1.hero-title-lockup {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 1.35rem !important;
  padding: 0 !important;
  line-height: 1 !important;
  text-align: center;
}

/* Keep the hero identity inside its own column at very wide desktop widths. */
body[data-page="home"] .home-hero {
  grid-template-columns: minmax(0, 1fr) minmax(400px, .76fr) !important;
}

body[data-page="home"] .home-hero .hero-profile {
  text-align: center;
  min-width: 0;
}

body[data-page="home"] .home-hero h1.hero-title-lockup .hero-wordmark-stack,
body[data-page="home"] .home-hero .hero-wordmark-stack {
  display: grid !important;
  justify-items: center !important;
  justify-content: center !important;
  align-content: center !important;
  gap: 0 !important;
  width: max-content !important;
  max-width: 100% !important;
  margin-inline: auto !important;
  padding: .06em .04em .12em !important;
  line-height: .9 !important;
  text-align: center !important;
  font-family: var(--gg-wordmark) !important;
  /* Continuous fluid scale: fits 320–414 without clipping, no mid-width jump. */
  font-size: clamp(2.35rem, calc(.85rem + 7.5vw), 3.3rem) !important;
}

body[data-page="home"] .home-hero h1.hero-title-lockup .hero-wordmark-stack .wordmark-sans {
  max-width: none !important;
  justify-self: center;
}

body[data-page="home"] .home-hero h1.hero-title-lockup .hero-wordmark-stack .brand-coffee {
  justify-self: center;
  margin: .2em 0 0 !important;
  /* Hero Coffee tracks the master size (no rem floor) so proportion stays locked. */
  font-size: calc(1em * var(--gg-wm-coffee-scale)) !important;
  text-align: center;
}

@media (min-width: 921px) {
  body[data-page="home"] .home-hero h1.hero-title-lockup .hero-wordmark-stack,
  body[data-page="home"] .home-hero .hero-wordmark-stack {
    /* Desktop column: scale with viewport without exceeding the copy column. */
    font-size: clamp(3.15rem, calc(1.55rem + 2.55vw), 4.7rem) !important;
  }

  body[data-page="home"] .home-hero h1.hero-title-lockup .hero-wordmark-stack .brand-coffee {
    margin-top: .22em !important;
  }
}

@media (max-width: 920px) {
  body[data-page="home"] .home-hero {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .menu-rail a { min-height: 44px; }
  .menu-rail a .menu-rail-label-full { display: none !important; }
  .menu-rail a .menu-rail-label-short { display: inline !important; }
}

@media (max-width: 640px) {
  .site-header .brand-mark { width: 40px; height: 40px; }
  .site-header .brand-wordmark { font-size: 1.02rem !important; }
  .site-header .brand-coffee {
    font-size: max(.6rem, calc(1em * var(--gg-wm-coffee-scale))) !important;
  }

  body[data-page="home"] .home-hero .hero-profile { width: 100%; }
  body[data-page="home"] .home-hero h1.hero-title-lockup {
    margin-bottom: 1.15rem !important;
  }
  /* Slightly tighter tracking on the narrowest phones keeps the name on one line. */
  body[data-page="home"] .home-hero h1.hero-title-lockup .hero-wordmark-stack .wordmark-sans {
    letter-spacing: -.06em !important;
  }

  .home-origin { width: var(--container); margin: 0 auto 30px; padding: 38px 16px 36px; }
  .home-origin h2 { font-size: clamp(1.64rem, 8vw, 2.15rem) !important; letter-spacing: -.055em; line-height: 1.02; }
  .home-origin h2 span:first-child { white-space: nowrap; }
  .home-origin__copy { font-size: 1rem; }

  .footer-brand .brand-wordmark {
    font-size: clamp(1.45rem, 6.2vw, 1.75rem) !important;
  }
}

/* The logo remains in the carousel but no longer reads as a heavy placeholder. */
.hero-slide--logo {
  background: linear-gradient(145deg, var(--surface), var(--surface-soft)) !important;
}

.hero-slide--logo::after { display: none !important; }

.hero-slide--logo img {
  width: min(44%, 250px) !important;
  max-height: 58% !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Editorial pause: gives the business story a strong position immediately after the hero. */
.home-origin {
  width: var(--container);
  margin: 0 auto clamp(28px, 5vw, 62px);
  padding: clamp(40px, 6vw, 78px) clamp(22px, 6vw, 90px);
  position: relative;
  overflow: hidden;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: clamp(24px, 3vw, 38px);
  background:
    radial-gradient(circle at 8% 18%, rgba(201, 130, 59, .13), transparent 23%),
    radial-gradient(circle at 91% 85%, rgba(130, 83, 58, .13), transparent 26%),
    linear-gradient(135deg, rgba(255, 253, 248, .98), rgba(244, 234, 223, .88));
  box-shadow: 0 18px 42px rgba(75, 45, 33, .08);
}

.home-origin::before,
.home-origin::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(130, 83, 58, .16);
  border-radius: 50%;
  pointer-events: none;
}

.home-origin::before { top: -118px; left: -76px; }
.home-origin::after { right: -94px; bottom: -132px; }

.home-origin__inner {
  position: relative;
  z-index: 1;
  max-width: 1010px;
  margin: 0 auto;
}

.home-origin .eyebrow { margin-bottom: 18px; }

.home-origin h2 {
  max-width: 930px;
  margin: 0 auto;
  color: var(--gg-espresso);
  font-size: clamp(2.75rem, 5vw, 5.15rem) !important;
  font-weight: 700 !important;
  letter-spacing: -.06em;
  line-height: .96;
  text-wrap: balance;
}

.home-origin h2 span {
  display: block;
}

.home-origin h2 span:first-child {
  color: var(--brown-deep);
}

.home-origin__copy {
  max-width: 625px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.14rem);
  line-height: 1.65;
}

.home-origin__link {
  display: inline-flex;
  margin-top: 22px;
  color: var(--brown-deep);
  font-size: .9rem;
  font-weight: 900;
  text-decoration-thickness: 1px;
  text-underline-offset: .28em;
}

body[data-page="home"] .home-hero + .home-origin {
  margin-top: 0;
}

body[data-page="home"] .home-origin + .quick-info {
  margin-top: 0;
}

.home-google-reviews { padding-top: clamp(50px, 7vw, 92px) !important; }

.site-footer {
  margin-top: clamp(38px, 7vw, 92px) !important;
  padding-bottom: 72px !important;
}

.footer-grid {
  border-radius: 22px !important;
  background: linear-gradient(145deg, rgba(244, 234, 223, .9), rgba(255, 253, 248, .84)) !important;
}

.site-footer .footer-cta h2 {
  font-family: var(--gg-display) !important;
  font-weight: 700 !important;
}

@media (prefers-reduced-motion: reduce) {
  .home-origin, .home-origin * { transition: none !important; animation: none !important; }
}
