/* ============================================================
   Bit Of Butter — Design tokens
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=Source+Serif+4:ital,wght@0,400;0,500;1,400&family=Pinyon+Script&display=swap');

:root {
  --cream:        #F6F1E2;
  --cream-deep:   #EEE6CE;
  --navy:         #16324F;
  --navy-deep:    #0F2439;
  --gold:         #A9812F;
  --gold-light:   #C9A45C;
  --ink:          #2B2A24;
  --ink-soft:     #55524A;
  --line:         rgba(22, 50, 79, 0.16);

  --font-display: 'Fraunces', 'Iowan Old Style', serif;
  --font-body:    'Source Serif 4', 'Iowan Old Style', Georgia, serif;
  --font-script:  'Pinyon Script', cursive;

  --max: 1180px;
  --gutter: clamp(24px, 5vw, 72px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

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

a { color: inherit; }

::selection { background: var(--gold-light); color: var(--navy-deep); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-deep);
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1.04; font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); line-height: 1.12; }
h3 { font-size: 1.4rem; line-height: 1.3; }

p { margin: 0 0 1.1em; max-width: 62ch; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

/* signature curved rule, echoing the line beneath the wordmark on the label */
.flourish {
  display: block;
  width: 210px;
  height: 22px;
  margin: 22px 0;
}
.flourish.center { margin-left: auto; margin-right: auto; }
.flourish path { fill: none; stroke: var(--gold); stroke-width: 1.4; }

.eyebrow {
  font-family: var(--font-script);
  font-size: 1.7rem;
  color: var(--gold);
  display: inline-block;
  margin-bottom: 2px;
}

/* ============ Buttons & links ============ */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.02rem;
  text-decoration: none;
  padding: 13px 30px;
  border: 1px solid var(--navy);
  color: var(--navy-deep);
  border-radius: 2px;
  transition: background 0.25s ease, color 0.25s ease;
}
.btn:hover { background: var(--navy-deep); color: var(--cream); }

.btn.solid {
  background: var(--navy-deep);
  color: var(--cream);
}
.btn.solid:hover { background: var(--navy); }

.text-link {
  font-style: italic;
  color: var(--navy-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.text-link:hover { color: var(--gold); border-color: var(--navy-deep); }

/* ============ Header / nav ============ */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--cream);
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 16px;
}
.hero-logo {
  width: min(260px, 60%);
  height: auto;
  margin-bottom: 28px;
  mix-blend-mode: multiply;
}
.logotype {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--navy-deep);
  text-decoration: none;
  line-height: 1;
}
.logo-link { display: block; line-height: 0; }

.logo-img {
  height: 48px;
  width: auto;
  mix-blend-mode: multiply; /* hides a white/cream box if the PNG isn't transparent */
}

@media (max-width: 760px) {
  .logo-img { height: 40px; }
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 34px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.96rem;
  color: var(--ink);
  letter-spacing: 0.02em;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--navy-deep);
  border-color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--navy);
  width: 42px;
  height: 38px;
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1px;
  background: var(--navy-deep);
}
.nav-toggle span { top: 18px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .main-nav.open { max-height: 260px; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 6px var(--gutter) 20px;
  }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav a { display: block; padding: 14px 0; }
}

/* ============ Footer ============ */

.site-footer {
  background: var(--navy-deep);
  color: var(--cream);
  margin-top: 120px;
}

.site-footer .wrap {
  padding-top: 64px;
  padding-bottom: 40px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
}

@media (max-width: 700px) {
  .site-footer .wrap { grid-template-columns: 1fr; gap: 32px; }
}

.site-footer .logotype { color: var(--cream); font-size: 2.1rem; }
.site-footer p { color: rgba(246,241,226,0.75); max-width: 34ch; }

.site-footer h4 {
  color: var(--gold-light);
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  font-size: 1rem;
  margin-bottom: 14px;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: rgba(246,241,226,0.85); text-decoration: none; font-size: 0.95rem; }
.site-footer a:hover { color: var(--gold-light); }

.foot-base {
  border-top: 1px solid rgba(246,241,226,0.15);
  padding-top: 20px;
  padding-bottom: 34px;
  font-size: 0.82rem;
  color: rgba(246,241,226,0.5);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ============ Sections generic ============ */

section { padding: 96px 0; }
section.tight { padding: 64px 0; }
.alt-bg { background: var(--cream-deep); }

.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ============ Home: hero ============ */

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.85fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding-top: 64px;
  padding-bottom: 88px;
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .hero-visual { order: -1; max-width: 360px; margin: 0 auto; padding: 44px 26px 36px; }
}

.hero h1 { margin-bottom: 20px; }
.hero .lede { margin-bottom: 34px; }

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

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 40px 52px;
  background: radial-gradient(ellipse at 50% 35%, #FBF8EC 0%, var(--cream) 72%);
  border: 1px solid var(--navy);
  border-radius: 8px;
  box-shadow: 0 28px 44px -32px rgba(15, 36, 57, 0.4);
}

/* fine gold inner line, like the framing on the label */
.hero-visual::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(169, 129, 47, 0.55);
  border-radius: 4px;
  pointer-events: none;
}

.hero-visual img {
  width: 100%;
  max-width: 380px;
  height: auto;
  mix-blend-mode: multiply; /* blends away any cream box around the logo */
}

.hero-visual .flourish { margin: 30px auto 20px; }

.hero-caption {
  margin: 0 auto;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy-deep);
}

/* ============ Facts strip ============ */

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.facts div {
  padding: 34px var(--gutter);
  border-left: 1px solid var(--line);
}
.facts div:first-child { border-left: none; }
.facts h3 { font-size: 1.1rem; margin-bottom: 6px; }
.facts p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }

@media (max-width: 700px) {
  .facts { grid-template-columns: 1fr; }
  .facts div { border-left: none; border-top: 1px solid var(--line); }
  .facts div:first-child { border-top: none; }
}

/* ============ Two column feature ============ */

.feature {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: clamp(30px, 6vw, 80px);
  align-items: center;
}
.feature.reverse { grid-template-columns: 0.9fr 1fr; }
.feature.reverse .feature-art { order: -1; }

@media (max-width: 820px) {
  .feature, .feature.reverse { grid-template-columns: 1fr; }
  .feature.reverse .feature-art { order: 0; }
}

.feature-art svg { width: 100%; height: auto; }

.stat-row {
  display: flex;
  gap: 40px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.stat-row div { max-width: 160px; }
.stat-row .num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--navy-deep);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-row .cap { font-size: 0.88rem; color: var(--ink-soft); }

/* ============ Product teaser row (home) ============ */

.teaser-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
}
.teaser-row > div {
  padding: 0 20px;
  border-left: 1px solid var(--line);
}
.teaser-row > div:first-child { border-left: none; padding-left: 0; }
.teaser-row svg { width: 64px; height: 64px; margin-bottom: 18px; }
.teaser-row h3 { margin-bottom: 8px; }
.teaser-row p { font-size: 0.96rem; color: var(--ink-soft); margin-bottom: 16px; }

@media (max-width: 900px) {
  .teaser-row { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .teaser-row > div:nth-child(odd) { border-left: none; padding-left: 0; }
  .teaser-row > div:nth-child(-n+2) { padding-top: 0; }
}

@media (max-width: 560px) {
  .teaser-row { grid-template-columns: 1fr; gap: 44px; }
  .teaser-row > div { border-left: none; padding: 0 !important; }
}

/* ============ Page header (About / Products / Contact) ============ */

.page-header {
  padding-top: 68px;
  padding-bottom: 30px;
}
.page-header .lede { margin-top: 18px; }

/* ============ About page ============ */

.story-block {
  display: grid;
  grid-template-columns: 0.6fr 1fr;
  gap: clamp(24px, 5vw, 64px);
  padding: 56px 0;
}
.story-block + .story-block { border-top: 1px solid var(--line); }
.story-block h3 { color: var(--gold); font-style: italic; font-family: var(--font-body); font-weight: 400; font-size: 1.15rem; }

@media (max-width: 760px) {
  .story-block { grid-template-columns: 1fr; gap: 12px; }
}

.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--navy-deep);
  line-height: 1.4;
  max-width: 46ch;
  margin: 0 auto;
  text-align: center;
  padding: 0;
}
.pull-quote cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-top: 18px;
}

/* ============ Products page ============ */

.product-block {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(30px, 6vw, 76px);
  align-items: center;
  padding: 70px 0;
}
.product-block.reverse { grid-template-columns: 1.15fr 0.85fr; }
.product-block.reverse .product-art { order: 2; }
.product-block + .product-block { border-top: 1px solid var(--line); }

@media (max-width: 820px) {
  .product-block, .product-block.reverse { grid-template-columns: 1fr; }
  .product-block.reverse .product-art { order: -1; }
}

.product-art svg { width: 100%; max-width: 320px; margin: 0 auto; }
.product-block .tag {
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: var(--gold);
  font-style: italic;
  margin-bottom: 10px;
  display: block;
}
.attr-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 26px;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.attr-list li {
  font-size: 0.88rem;
  color: var(--ink-soft);
  padding-left: 16px;
  position: relative;
}
.attr-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

.product-meta {
  margin: 0 0 26px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.product-meta .price {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--navy-deep);
  line-height: 1.1;
  margin: 0 0 8px;
}
.product-meta .price span {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-soft);
}
.product-meta .shelf {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0;
}
.product-meta .shelf strong { font-weight: 500; color: var(--navy-deep); }

/* ============ Contact page ============ */

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(30px, 6vw, 80px);
}
@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 7px;
  font-style: italic;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 9px 2px;
  outline: none;
  transition: border-color 0.2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 100px; }

.contact-details h4 {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  color: var(--navy-deep);
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.contact-details section,
.contact-details > div { padding: 0 0 30px; }

.form-status {
  margin-top: 18px;
  font-size: 0.92rem;
  color: var(--gold);
  min-height: 1.4em;
}

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
/* ============ Delivery checker ============ */

.delivery-check { margin-top: 20px; }

.delivery-check label {
  display: block;
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-style: italic;
  margin-bottom: 7px;
}

.delivery-row {
  display: flex;
  gap: 14px;
  align-items: flex-end;
}

.delivery-row input {
  flex: 1;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  text-transform: uppercase;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 9px 2px;
  outline: none;
  transition: border-color 0.2s ease;
}
.delivery-row input:focus { border-color: var(--gold); }

.delivery-row .btn {
  background: transparent;
  cursor: pointer;
  padding: 9px 22px;
}
.delivery-row .btn:hover { background: var(--navy-deep); }

.delivery-result {
  margin: 14px 0 0;
  padding-left: 12px;
  border-left: 2px solid transparent;
  font-size: 0.95rem;
  min-height: 1.4em;
}
.delivery-result.ok { border-color: #3f7a4a; }
.delivery-result.no { border-color: var(--gold); }

.delivery-note {
  margin: 10px 0 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* honeypot field: hidden from people, visible to spam bots */
.hp { position: absolute; left: -9999px; }