/* The Gourd Project — static rebuild for Cloudflare Pages */
:root {
  --cream: #fff5eb;
  --ink: #131516;
  --text: #545454;
  --muted: #5f5858;
  --line: #e6d9cb;
  --accent: #8a6a43;
  --serif: "EB Garamond", "Adobe Garamond Pro", Garamond, Georgia, serif;
  --max: 760px;
  --wide: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--muted); font-family: var(--serif); font-size: 19px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2 { font-weight: 400; color: var(--ink); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.2rem); }
h2 a { text-decoration: none; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 100; }

/* Header */
.site-header { position: relative; z-index: 20; display: flex; justify-content: space-between; align-items: flex-start; padding: 28px 48px; color: var(--ink); }
.site-header.overlay { position: absolute; top: 0; left: 0; right: 0; color: #fff; }
.brand { font-size: 15px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; line-height: 1.3; font-weight: 500; }
.site-header nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 34px; max-width: 640px; }
.site-header nav a { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.site-header nav a[aria-current="page"], .site-header nav a:hover { text-decoration: underline; color: inherit; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: inherit; }
.nav-toggle span { display: block; width: 26px; height: 1.5px; background: currentColor; margin: 6px 0; transition: transform .25s; }

/* Hero */
.hero { position: relative; height: 100vh; min-height: 520px; overflow: hidden; display: grid; place-items: center; text-align: center; }
.hero--short { height: 56vh; min-height: 360px; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero--short::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.22); }
.hero-text { position: relative; z-index: 1; padding: 0 1rem; }
.hero h1 { margin: 0; }
.hero--short h1 { color: #fff; }
.kicker { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: #292929; margin: 0 0 .9em; }
.hero--short .kicker { color: #fff; }

/* Content blocks */
.block { padding: 110px 24px; }
.block.tight { padding-top: 40px; padding-bottom: 40px; }
.block.center { text-align: center; }
.block.pad-top { padding-top: 200px; }
.wrap { max-width: var(--max); margin: 0 auto; }
.wrap.wide { max-width: var(--wide); margin-top: 56px; }
.lead { font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.55; color: var(--text); margin: 0; }
.statement { font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.35; color: var(--ink); }
.divider img { width: 100%; height: 90vh; min-height: 420px; object-fit: cover; }

/* Galleries */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: var(--wide); margin: 32px auto 0; }
.g-item { display: block; overflow: hidden; aspect-ratio: 4 / 5; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.g-item:hover img { transform: scale(1.03); }
.figs { display: grid; gap: 20px; }
.figs-2 { grid-template-columns: 1fr 1fr; }
.figs figure { margin: 0; }
.mockup { margin: 0 auto; }

/* Press logos */
.logos { list-style: none; padding: 0; margin: 56px auto 0; max-width: 980px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; align-items: center; }
.logos img { max-height: 60px; width: auto; margin: 0 auto; opacity: .8; transition: opacity .2s; }
.logos a:hover img { opacity: 1; }

/* Quote */
.quote blockquote { margin: 0; text-align: center; }
.quote blockquote p { font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1.35; color: var(--ink); margin: 0 0 1em; font-style: italic; }
.quote cite { font-style: normal; letter-spacing: .06em; }

/* Buttons */
.btn { display: inline-block; margin-top: 1.4em; padding: 14px 34px; border: 1px solid var(--ink); color: var(--ink); text-decoration: none; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; transition: background .2s, color .2s; }
.btn:hover { background: var(--ink); color: var(--cream); }
.btn--disabled { opacity: .6; cursor: default; }
.btn--disabled:hover { background: none; color: var(--ink); }

/* Product pages */
.product { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; max-width: var(--wide); margin: 0 auto; padding: 60px 48px 110px; align-items: start; }
.product-info { position: sticky; top: 40px; }
.product dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; margin: 0 0 1.5em; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.product dt::after { content: " /"; }
.product dd { margin: 0; }
.product-gallery { display: grid; gap: 16px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; font-size: clamp(1.2rem, 2.4vw, 1.5rem); color: var(--ink); display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 1em 0 0; font-size: 1.1rem; }

/* Contact */
address { font-style: normal; font-size: 1.25rem; margin-top: 2em; }
address p { margin: .3em 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); text-align: center; padding: 56px 24px; font-size: 15px; }
.site-footer .social { list-style: none; padding: 0; margin: 0 0 1.2em; display: flex; justify-content: center; gap: 30px; letter-spacing: .14em; text-transform: uppercase; }
.site-footer .social a { text-decoration: none; }
.site-footer p { margin: .3em 0; }
.copy { opacity: .7; font-size: 13px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(20,18,16,.92); display: grid; place-items: center; z-index: 200; cursor: zoom-out; padding: 4vh 4vw; }
.lightbox img { max-height: 92vh; max-width: 92vw; object-fit: contain; }

/* Mobile */
@media (max-width: 860px) {
  body { font-size: 18px; }
  .site-header { padding: 20px 22px; align-items: center; }
  .nav-toggle { display: block; }
  .site-header nav { position: fixed; inset: 0; background: var(--cream); color: var(--ink); display: none; align-items: center; justify-content: center; }
  .site-header nav ul { flex-direction: column; align-items: center; gap: 22px; }
  .site-header nav a { font-size: 20px; }
  body.nav-open .site-header nav { display: flex; }
  body.nav-open .nav-toggle { position: relative; z-index: 2; color: var(--ink); }
  body.nav-open .nav-toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
  body.nav-open .nav-toggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .block { padding: 72px 22px; }
  .gallery { grid-template-columns: 1fr; padding: 0 22px; }
  .figs-2 { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(2, 1fr); padding: 0 22px; }
  .product { grid-template-columns: 1fr; gap: 32px; padding: 30px 22px 72px; }
  .product-info { position: static; }
  .divider img { height: 60vh; }
  /* keep the home-page title above the flask on phones */
  .hero:not(.hero--short) { place-items: start center; padding-top: 18vh; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
