/* de la boue wines. Matches the original Squarespace theme:
   Francesco (headings + text), Adobe Garamond-style fallback, cream background, lavender accent. */
@font-face {
  font-family: "Francesco";
  src: url("/fonts/francescoweb-regular.woff2") format("woff2"),
       url("/fonts/francescoweb-regular.woff") format("woff");
  font-display: swap;
}
:root {
  --bg: #f4eee6;          /* hsl(34, 39%, 93%) from the theme */
  --ink: #000;
  --cream: #f4eee6;
  --accent: #938ac2;      /* hsl(250, 31%, 65%) */
  --serif: "Francesco", "EB Garamond", "Adobe Garamond Pro", Garamond, Georgia, serif;
  --garamond: "EB Garamond", "Adobe Garamond Pro", Garamond, Georgia, serif;
  --gutter: 4vw;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 300 19.2px/1.8 var(--serif);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--bg); padding: 8px 12px; z-index: 100; }

/* ---------- Header ---------- */
.site-header {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 43px var(--gutter) 0; position: relative; z-index: 20;
}
.site-header .logo img { width: 280px; height: auto; }
.nav { display: flex; gap: 20px; }
.nav a {
  text-decoration: none; font-size: 19.2px; line-height: 1.8; padding: 2px 0;
  border-bottom: 1px solid transparent;
}
.nav a[aria-current="page"], .nav a:hover { border-bottom-color: currentColor; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 20px; }
.icon-link { display: inline-flex; width: 22px; height: 22px; }
.icon-link svg { width: 100%; height: 100%; fill: currentColor; }
.pill {
  display: inline-block; font: 500 14.27px/1.2 var(--serif); letter-spacing: .02em;
  padding: 21.4px 35.75px; border: 2px solid currentColor; border-radius: 300px;
  text-decoration: none; text-align: center; background: transparent; color: inherit;
  transition: opacity .2s;
}
.pill:hover { opacity: .75; }
.pill-md { font-size: 16px; padding: 24px 40px; }

.menu-toggle { display: none; background: none; border: 0; padding: 10px 0; cursor: pointer; width: 36px; }
.menu-toggle span { display: block; height: 1px; background: #000; margin: 7px 0; transition: transform .25s; }
.menu-open .menu-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu {
  display: none; position: fixed; inset: 0; background: var(--bg); z-index: 10;
  flex-direction: column; align-items: center; justify-content: center; gap: 10px;
}
.mobile-menu a { font-size: 32px; text-decoration: none; }
.mobile-menu .pill { font-size: 16px; margin-top: 24px; }
.mobile-menu .socials { display: flex; gap: 24px; margin-top: 24px; }
.menu-open .mobile-menu { display: flex; }
.menu-open { overflow: hidden; }

/* ---------- Home ---------- */
.home-intro { text-align: center; padding-top: 88px; }
.home-intro .grapes { width: 100px; margin: 0 auto; }
.home-intro .tagline { width: 585px; margin: 52px auto 0; }
.hero {
  position: relative; margin: 110px var(--gutter) 0; aspect-ratio: 1324 / 785;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: var(--cream); overflow: hidden; padding: 24px;
}
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.12); z-index: -1; }
.hero { isolation: isolate; }
.hero h2 { font-size: 44.8px; line-height: 1.3; max-width: 624px; }
.hero .pill { margin-top: 35px; color: var(--cream); }
.sketch-shoe { width: 75px; margin: 120px auto 0; }

.rule { border: 0; height: 1px; background: #000; margin: 110px 120px 0; }
.substack-embed { display: flex; justify-content: center; padding: 120px var(--gutter) 80px; }
.substack-embed-light { padding-top: 200px; padding-bottom: 160px; }
.substack-embed iframe { width: 480px; max-width: 100%; height: 320px; border: 1px solid #eee; background: #fff; }

/* ---------- Vintages list ---------- */
.blog-grid {
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 60px; row-gap: 70px;
  max-width: 1084px; margin: 100px auto 0; padding: 0 var(--gutter);
  box-sizing: content-box;
}
.blog-grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.blog-grid h2 { font-size: 35.2px; line-height: 1.4; margin-top: 28px; }
.blog-grid h2 a { text-decoration: none; }
.blog-grid p { font-size: 16px; line-height: 1.8; margin: 12px 0 0; }
.read-more {
  display: inline-block; margin-top: 20px; font: 300 16px/1.6 var(--garamond);
  color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent);
}

/* ---------- Post ---------- */
.post { max-width: 994px; margin: 0 auto; padding: 133px var(--gutter) 0; box-sizing: content-box; }
.post h1 { font-size: 64px; line-height: 1.4; text-align: center; }
.post .post-image { margin-top: 70px; width: 100%; }
.post .body { margin-top: 33px; }
.post .body p { margin: 0 0 16px; }
.post-nav { display: flex; justify-content: space-between; padding: 120px var(--gutter) 0; }
.post-nav a { display: inline-flex; width: 28px; height: 40px; }
.post-nav svg { width: 100%; height: 100%; stroke: #000; fill: none; stroke-width: 1.5; }

/* ---------- Shop ---------- */
.shop { max-width: 900px; margin: 0 auto; padding: 141px var(--gutter) 0; text-align: center; box-sizing: content-box; }
.shop p { font-style: italic; font-size: 16px; line-height: 1.8; }
.shop .pill { margin-top: 18px; }

/* ---------- About ---------- */
.slider { position: relative; margin-top: 42px; }
.slides {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  scroll-behavior: smooth;
}
.slides::-webkit-scrollbar { display: none; }
.slides > * { flex: 0 0 100%; scroll-snap-align: center; }
.gallery .slides img { width: 100%; height: 710px; object-fit: contain; }
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border: 0; cursor: pointer; display: grid; place-items: center;
  background: #fff; color: #000; font-size: 22px; line-height: 1;
}
.slider-btn.prev { left: 14px; } .slider-btn.next { right: 14px; }
.about-text { max-width: 789px; margin: 100px auto 0; padding: 0 var(--gutter); box-sizing: content-box; }
.about-text hr { border: 0; height: 1px; background: #000; margin: 27px 0; }
.about-text p { margin: 0 0 16px; }
.about-text a { text-decoration: underline; text-underline-offset: 3px; }
.growers-title { font-size: 64px; line-height: 1.23; padding: 0 150px; margin-top: 430px; }
.growers { margin-top: 112px; }
.growers .slides { gap: 3vw; padding: 0 0; }
.growers .slides > * { flex: 0 0 90%; scroll-snap-align: start; }
.grower { position: relative; height: 900px; padding: 130px; overflow: hidden; isolation: isolate; }
.grower img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.grower h2 { font-size: 48px; line-height: 1.3; max-width: 467px; }
.grower p { font-size: 22.4px; margin-top: 30px; }
.growers .slider-btn {
  width: 58px; height: 58px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 28px;
}
.growers .slider-btn.prev { left: 30px; } .growers .slider-btn.next { right: 30px; }

/* ---------- Footer ---------- */
.site-footer { text-align: center; padding: 60px var(--gutter) 120px; }
.site-footer img { width: 225px; margin: 0 auto 32px; }
.site-footer p { margin: 0 0 12px; }
.site-footer a { text-decoration: none; }

/* ---------- Phones / tablets ---------- */
@media (max-width: 767px) {
  :root { --gutter: 6vw; }
  .site-header { grid-template-columns: 1fr auto; padding-top: 30px; }
  .site-header .nav, .header-actions { display: none; }
  .site-header .logo { order: -1; }
  .site-header .logo img { width: 175px; }
  .menu-toggle { display: block; justify-self: end; }
  .home-intro { padding-top: 70px; }
  .home-intro .grapes { width: 64px; }
  .home-intro .tagline { width: 92%; margin-top: 30px; }
  .hero { aspect-ratio: 398 / 714; margin-top: 56px; }
  .hero h2 { font-size: 28px; }
  .hero .pill { margin-top: 26px; font-size: 13px; padding: 16px 24px; }
  .sketch-shoe { width: 48px; margin-top: 60px; }
  .substack-embed-light { padding-top: 100px; padding-bottom: 80px; }
  .rule { margin: 60px var(--gutter) 0; }
  .substack-embed { padding-top: 64px; justify-content: flex-start; }
  .blog-grid { grid-template-columns: 1fr; row-gap: 60px; margin-top: 40px; }
  .blog-grid img { aspect-ratio: 3 / 2; }
  .blog-grid h2 { font-size: 26px; margin-top: 20px; }
  .post { padding-top: 70px; }
  .post h1 { font-size: 44px; }
  .post .post-image { margin-top: 44px; }
  .post .body p { font-size: 17px; }
  .shop { padding-top: 120px; }
  .gallery .slides img { height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
  .about-text { margin-top: 60px; }
  .growers-title { font-size: 44px; padding: 0 var(--gutter); margin-top: 160px; }
  .growers { margin-top: 48px; }
  .growers .slides > * { flex-basis: 88%; }
  .grower { height: 120vw; padding: 32px; }
  .grower h2 { font-size: 32px; }
  .grower p { font-size: 18px; margin-top: 12px; }
  .growers .slider-btn { width: 44px; height: 44px; font-size: 20px; }
  .growers .slider-btn.prev { left: 10px; } .growers .slider-btn.next { right: 10px; }
  .site-footer img { width: 320px; max-width: 85%; }
}
@media (prefers-reduced-motion: reduce) { .slides { scroll-behavior: auto; } }

/* ---------- Tech sheets ---------- */
.sheets { max-width: 789px; margin: 0 auto; padding: 133px var(--gutter) 0; box-sizing: content-box; }
.sheets h1 { font-size: 64px; line-height: 1.4; text-align: center; margin-bottom: 60px; }
.sheet-list { list-style: none; margin: 0; padding: 0; }
.sheet-list li { padding: 34px 0; border-top: 1px solid #000; }
.sheet-list li:last-child { border-bottom: 1px solid #000; }
.sheet-list h2 { font-size: 35.2px; line-height: 1.4; }
.sheet-list h2 a { text-decoration: none; }
.sheet-list p { font-size: 16px; margin: 6px 0 0; }
.sheets .back { display: inline-block; margin-top: 48px; font: 300 16px/1.6 var(--garamond); color: var(--accent); text-decoration: none; }
.footer-links { margin-top: 20px; font-size: 16px; }
.footer-links a { color: var(--accent); }
@media (max-width: 767px) {
  .sheets { padding-top: 70px; }
  .sheets h1 { font-size: 44px; margin-bottom: 36px; }
  .sheet-list h2 { font-size: 26px; }
}

