/* August Canned Beans Co — shared styles */
:root {
  --brand: #374996;        /* sampled from the logo */
  --brand-deep: #26336e;
  --brand-ink: #18204a;
  --brand-tint: #e9ecf7;
  --brand-tint-2: #f4f6fc;
  --bean: #c2763a;         /* accent: baked-bean amber */
  --bean-tint: #fbefe4;
  --peach: #ffd9b8;
  --paper: #ffffff;
  --ink: #1b1f33;
  --muted: #5d6482;
  --line: #d9ddee;
  --kidney: #c0453a;       /* used only for errors */
  --radius: 14px;
  --shadow: 0 1px 2px rgba(24,32,74,.04);
  --shadow-lift: 0 12px 30px rgba(24,32,74,.1);
  --font-display: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--bean);
  outline-offset: 2px;
}

h1, h2, h3 { margin: 0 0 .5em; }
h1 { font: 900 clamp(40px, 7vw, 72px)/.95 var(--font-display); text-transform: uppercase; letter-spacing: -.01em; }
h2 { font: 800 clamp(28px, 4vw, 40px)/1.15 var(--font-display); color: var(--brand-ink); }
h3 { font: 800 19px/1.25 var(--font-display); color: var(--brand-ink); letter-spacing: .01em; }
p { margin: 0 0 1em; max-width: 64ch; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: .5rem 1rem; z-index: 20; border-radius: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 64px; padding-block: 8px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand); }
.brand img { width: 40px; height: 40px; border-radius: 8px; }
.brand span { font: 800 14px/1.15 var(--font-display); text-transform: uppercase; letter-spacing: .08em; }

.nav-toggle {
  display: none; font: 700 14px var(--font-display);
  background: var(--brand); color: #fff;
  border: 0; border-radius: 999px; padding: 8px 16px; cursor: pointer;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a {
  display: block; padding: 8px 12px; border-radius: 8px;
  text-decoration: none; color: var(--ink); font: 600 14px var(--font-display);
}
.site-nav a:hover { background: var(--brand-tint); color: var(--brand); }
.site-nav a[aria-current="page"] { background: var(--brand-tint); color: var(--brand); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-header .wrap { flex-wrap: wrap; }
  .site-nav { flex-basis: 100%; display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding-bottom: 8px; }
}

/* ---------- The blue label band (hero + page heads) ---------- */
.label-band {
  position: relative; overflow: hidden;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='%23ffffff' fill-opacity='.05'%3E%3Cellipse cx='24' cy='28' rx='13' ry='8' transform='rotate(-30 24 28)'/%3E%3Cellipse cx='86' cy='70' rx='13' ry='8' transform='rotate(25 86 70)'/%3E%3Cellipse cx='40' cy='98' rx='11' ry='7' transform='rotate(60 40 98)'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(circle at 85% 10%, #4a5db0 0%, transparent 55%),
    var(--brand);
  color: #fff;
  padding-block: 72px 80px;
}
.label-band h1, .label-band h2, .label-band h3 { color: #fff; }
.label-band p { color: rgba(255,255,255,.86); }
.label-band a { color: #fff; }
.slogan {
  font: italic 500 clamp(16px, 2.2vw, 22px) var(--font-display);
  letter-spacing: .3em; text-transform: uppercase; color: var(--peach) !important;
}

.hero .wrap {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center;
}
.hero h1 { font-size: clamp(56px, 11vw, 120px); margin-bottom: .15em; }
.hero p:not(.slogan) { font-size: 17px; }
.hero img { width: min(100%, 360px); justify-self: center; filter: drop-shadow(0 20px 40px rgba(10,16,50,.35)); }
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero img { width: 180px; order: -1; justify-self: start; }
  .label-band { padding-block: 48px 56px; }
}

.page-head h1 { font-size: clamp(40px, 7vw, 72px); }
.page-head p { font-size: 17px; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font: 700 14px var(--font-display);
  padding: 11px 20px; border-radius: 999px; border: 1px solid currentColor;
  text-decoration: none; cursor: pointer; background: transparent; color: var(--brand);
  transition: background .2s, color .2s, border-color .2s;
}
.btn-solid { background: #fff; color: var(--brand); border-color: #fff; box-shadow: 0 2px 8px rgba(10,16,50,.25); }
.btn-solid:hover { background: var(--brand-tint); }
.btn-blue { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 2px 8px rgba(55,73,150,.35); }
.btn-blue:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.label-band .btn { color: #fff; border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.08); }
.label-band .btn:hover { background: rgba(255,255,255,.16); }
.label-band .btn-solid { color: var(--brand); background: #fff; border-color: #fff; }
.label-band .btn-solid:hover { background: var(--brand-tint); }

/* ---------- Sections ---------- */
.section { padding-block: 80px; }
.section-tin { background: var(--brand-tint-2); border-block: 1px solid var(--line); }
.section > .wrap > p { color: var(--muted); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; gap: 24px; } }
.split img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 12px 40px rgba(24,32,74,.08); }

/* ---------- Product shelf ---------- */
.shelf {
  list-style: none; margin: 32px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px;
}
.can-item {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--brand);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.can-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.can-item img {
  border-radius: 10px; margin-bottom: 14px;
  background-color: var(--brand-tint-2);
  background-image: radial-gradient(var(--brand-tint) 1px, transparent 1px);
  background-size: 20px 20px;
}
.can-item h3 { margin-bottom: .3em; }
.can-item p { margin: 0; font-size: 14.5px; color: #3c4260; }
.can-item .size {
  align-self: flex-start; margin-top: auto; padding-top: 12px;
  font: 600 11px var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: #8f4f1c;
}
.can-item[hidden] { display: none; }

.filters {
  display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin-top: 18px;
  background: var(--brand-tint); border-radius: 999px;
}
.filters button {
  border: 0; cursor: pointer; padding: 9px 18px; border-radius: 999px;
  font: 700 14px var(--font-display); color: var(--brand); background: transparent;
  transition: background .2s, color .2s;
}
.filters button:hover { background: rgba(55,73,150,.12); }
.filters button[aria-pressed="true"] { background: var(--brand); color: #fff; box-shadow: 0 2px 8px rgba(55,73,150,.35); }
.filter-count { margin: 14px 0 0; font: 700 13px var(--font-display); letter-spacing: .16em; text-transform: uppercase; color: var(--bean); }

/* ---------- Calculator ---------- */
.calc {
  background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--bean);
  border-radius: var(--radius); padding: 28px; max-width: 34rem;
  box-shadow: 0 1px 2px rgba(24,32,74,.04), 0 12px 40px rgba(24,32,74,.08);
}
.calc .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 500px) { .calc .row { grid-template-columns: 1fr; } }
.calc-result { font: 900 36px var(--font-display); color: var(--brand); margin: 16px 0 0; text-transform: uppercase; }
.calc-note { margin: 4px 0 0; font-size: 14.5px; color: var(--muted); }

/* ---------- Recipes ---------- */
.recipes details {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px; margin-bottom: 14px; box-shadow: var(--shadow);
}
.recipes details[open] { border-left: 4px solid var(--bean); }
.recipes summary {
  cursor: pointer; font: 800 20px var(--font-display); color: var(--brand-ink);
  list-style-position: inside;
}
.recipes summary::marker { color: var(--bean); }
.recipes summary span {
  font: 600 11px var(--font-mono); text-transform: uppercase; letter-spacing: .08em;
  color: var(--brand); background: var(--brand-tint); padding: 3px 8px; border-radius: 6px;
  margin-left: 10px; vertical-align: middle;
}
.recipes .recipe-body { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; padding-top: 16px; }
.recipes .recipe-body h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .16em; color: var(--bean); }
@media (max-width: 700px) { .recipes .recipe-body { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Timeline (About) ---------- */
.timeline { list-style: none; padding: 0; margin: 32px 0 0; border-left: 3px solid var(--line); }
.timeline li { padding: 0 0 28px 28px; position: relative; color: #3c4260; }
.timeline li::before {
  content: ""; position: absolute; left: -10px; top: .3rem;
  width: 17px; height: 17px; border-radius: 50%; background: var(--paper); border: 4px solid var(--bean);
}
.timeline strong { font: 800 19px var(--font-display); color: var(--brand-ink); display: block; }

.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 24px; }
.values > div {
  background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--brand);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
}
.values p { margin: 0; font-size: 14.5px; color: #3c4260; }

/* ---------- Forms ---------- */
label { display: block; font: 700 13px var(--font-display); text-transform: uppercase; letter-spacing: .1em; color: var(--brand-ink); margin-bottom: 6px; }
input, select, textarea {
  width: 100%; font: inherit; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
textarea { min-height: 9rem; resize: vertical; }
.field { margin-bottom: 20px; }
.field-error { color: var(--kidney); font-size: 14px; margin: 5px 0 0; min-height: 1.2em; }
[aria-invalid="true"] { border-color: var(--kidney); }
.form-status { padding: 14px 18px; border-radius: 10px; border-left: 3px solid var(--bean); background: var(--bean-tint); color: #5a3a1f; margin-top: 16px; }
.form-status:empty { display: none; }
.contact-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.not-found { text-align: center; padding-block: 96px; }
.not-found img { width: 180px; margin: 0 auto 24px; }
.not-found p { margin-inline: auto; color: var(--muted); }
.not-found .actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-ink); color: #fff; padding-block: 36px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.site-footer a { color: rgba(255,255,255,.8); text-decoration: none; font: 600 14px var(--font-display); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer p { margin: 0; }
.site-footer strong { font: 800 16px var(--font-display); text-transform: uppercase; letter-spacing: .1em; }
.site-footer .slogan { font-size: 13px; letter-spacing: .24em; }
.site-footer .wrap > p:last-child { font-size: 14px; color: rgba(255,255,255,.6); }

/* ---------- AI disclaimer ---------- */
.site-footer .ai-disclaimer {
  flex-basis: 100%; margin-top: 28px; padding: 18px 22px;
  border: 1px solid rgba(255,255,255,.16); border-left: 3px solid var(--bean);
  border-radius: 10px; background: rgba(255,255,255,.04);
}
.ai-disclaimer p { font-size: 14px; line-height: 1.65; color: rgba(255,255,255,.78); max-width: none; }
.ai-disclaimer .ai-disclaimer-title { margin-bottom: 6px; font: 700 12px var(--font-display); text-transform: uppercase; letter-spacing: .16em; color: var(--peach); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .can-item, .filters button, input, select, textarea { transition: none; }
}
