:root {
  /* Palette taken from the logo: navy lettering and rings, cream ground, sage laurel, brick chimney */
  --flour: #f8f3e6;
  --parchment: #efe6d1;
  --accent: #1d2b4c;
  --accent-dark: #121c33;
  --sage: #7d8b4e;
  --brick: #9a4a2c;
  --ink: #1f2433;
  --muted: #5f6270;
  --line: #ddd2bb;
  --rule: rgba(29, 43, 76, 0.35);
  --white: #fff;
  --error: #b3261e;
  --radius: 14px;
  --shadow: 0 2px 6px rgba(29, 43, 76, 0.06), 0 10px 30px rgba(29, 43, 76, 0.08);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Source Sans 3", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--flour);
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 0.5em; color: var(--accent); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
a { color: var(--accent); }
[hidden] { display: none !important; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; font-weight: 700; margin: 0 0 0.75rem; }
.hint { color: var(--muted); font-size: 0.9rem; font-weight: 400; }
.section-title { text-align: center; margin-bottom: 1.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
/* Laurel-and-heart flourish from the logo, used under titles and in the footer */
.section-title::after, .ornament {
  content: ""; display: block; width: 200px; height: 20px; margin: 0.6rem auto 0;
  background: url("../images/ornament.svg") center / contain no-repeat;
}
/* Double ring like the logo's border: a solid edge plus a thin inner rule */
.framed { border: 1px solid var(--rule); outline: 1px solid var(--rule); outline-offset: -7px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4em;
  background: var(--accent); color: var(--white);
  border: 2px solid var(--accent); border-radius: 999px;
  padding: 0.7em 1.4em; font: 600 1rem var(--sans);
  text-decoration: none; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn-small { padding: 0.4em 1em; font-size: 0.95rem; }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.85); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.15); border-color: var(--white); }
.btn-ghost-dark { background: transparent; color: var(--accent); }
.btn-ghost-dark:hover { background: var(--parchment); border-color: var(--accent); }
.btn-block { width: 100%; padding: 0.9em; font-size: 1.1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(250, 246, 239, 0.92); backdrop-filter: blur(8px);
  border-bottom: 3px double var(--rule);
}
/* Three columns so the logo sits in the exact center whatever the widths of the name and links */
.nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; height: 72px; }
.nav-logo img { width: 60px; height: 60px; }
.nav-links { justify-self: end; }
.brand { justify-self: start; font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: var(--accent); text-decoration: none; text-transform: uppercase; letter-spacing: 0.06em; }
.brand-name { white-space: nowrap; }
.brand-name span { color: var(--sage); }
@media (max-width: 900px) { .brand-name span { display: block; } .brand { line-height: 1.15; } }
@media (max-width: 380px) { .brand { font-size: 0.85rem; } }
.nav-links { list-style: none; display: flex; align-items: center; gap: 1.25rem; margin: 0; padding: 0; }
.nav-links a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; }
.nav-links a:not(.btn):hover { color: var(--accent); }
.cart-count {
  background: var(--white); color: var(--accent); border-radius: 999px;
  font-size: 0.8rem; min-width: 1.4em; padding: 0 0.4em; line-height: 1.4em; text-align: center;
}
@media (max-width: 600px) {
  .nav-links li:not(:last-child) { display: none; }
}

/* Hero */
.hero { position: relative; min-height: min(78vh, 680px); display: flex; align-items: flex-end; color: var(--white); overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 28, 51, 0.1) 0%, rgba(18, 28, 51, 0.78) 100%); }
.hero-content { position: relative; padding: 4rem 0 3.5rem; }
.hero h1 { color: var(--white); font-size: clamp(2.3rem, 6vw, 4rem); max-width: 18ch; }
.hero-sub { font-size: 1.15rem; max-width: 36rem; opacity: 0.95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* About */
.about { display: grid; gap: 2rem; align-items: center; padding: 4.5rem 0; }
.about-text h2::after { content: ""; display: block; width: 200px; height: 20px; margin-top: 0.6rem; background: url("../images/ornament.svg") left center / contain no-repeat; }
.about-img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
@media (min-width: 800px) { .about { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }

/* Menu */
.menu { padding: 2rem 0 3rem; }
.menu-category { margin-bottom: 3rem; }
.category-title { font-size: 1.5rem; text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 3px double var(--rule); padding-bottom: 0.4rem; }
.category-blurb { color: var(--muted); margin-top: -0.25rem; }
.product-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.product { display: flex; flex-direction: column; overflow: hidden; }
.product-img { aspect-ratio: 4 / 3; background: var(--white); overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 1rem 1.15rem 1.15rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.product-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.product-head h3 { margin: 0; font-size: 1.2rem; }
.price { font-family: var(--serif); font-weight: 700; color: var(--brick); font-size: 1.1rem; white-space: nowrap; }
.product-desc { margin: 0; color: var(--muted); font-size: 0.95rem; }
.ships-note { margin: 0; color: var(--sage); font-size: 0.88rem; font-weight: 700; }

.choice-group { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip { position: relative; }
.chip input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 0.3em 0.85em; border: 1.5px solid var(--line); border-radius: 999px;
  font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.15s;
}
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--white); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.custom-label { font-size: 0.9rem; font-weight: 600; }
.add-row { display: flex; gap: 0.6rem; align-items: center; margin-top: auto; }
.btn-add { flex: 1; padding: 0.55em 0.9em; white-space: nowrap; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.stepper button {
  width: 2.2rem; height: 2.4rem; border: 0; background: transparent; font-size: 1.2rem; color: var(--accent); cursor: pointer;
}
.stepper button:hover { background: var(--parchment); }
.stepper input {
  width: 2.2rem; border: 0; text-align: center; font: 600 1rem var(--sans); background: transparent; -moz-appearance: textfield;
}
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper-small button { width: 1.9rem; height: 1.9rem; font-size: 1rem; }
.stepper-small span { min-width: 1.4rem; text-align: center; font-weight: 600; }
.added-msg { margin: 0; font-size: 0.9rem; color: var(--accent-dark); min-height: 1.2em; }
.added-msg.is-error { color: var(--error); }

/* Forms */
input, select, textarea {
  width: 100%; font: 1rem var(--sans); color: var(--ink);
  padding: 0.6em 0.75em; margin-top: 0.3rem;
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--white);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(29, 43, 76, 0.15); }
textarea { resize: vertical; }
label { display: block; font-weight: 600; margin-bottom: 0.9rem; }
fieldset { border: 0; padding: 0; margin: 0 0 0.5rem; }
legend { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; margin-bottom: 0.6rem; }
.radio-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 0.9rem; }
.radio {
  display: flex; align-items: center; gap: 0.5rem; margin: 0;
  padding: 0.65em 1em; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; flex: 1; min-width: 150px;
}
.field-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 0 0.75rem; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr 1fr; } .field-city { grid-column: 1 / -1; } }
.radio input { width: auto; margin: 0; accent-color: var(--accent); }
.radio:has(input:checked) { border-color: var(--accent); background: #eef0f5; }

/* Order */
.order-section { background: var(--parchment); padding: 4rem 0; }
.order-grid { max-width: 680px; }
.order-form, .confirmation { padding: clamp(1.25rem, 4vw, 2.25rem); }
.order-form h2, .confirmation h2 { margin-bottom: 1rem; }
.notice { background: #fff6dd; border: 1px solid #ecd38f; border-radius: 10px; padding: 0.6rem 0.9rem; font-size: 0.92rem; margin-bottom: 1rem; }
.cart { border: 1.5px dashed var(--line); border-radius: 12px; padding: 1rem; margin-bottom: 1.5rem; }
.cart-empty { margin: 0 0 0.5rem; color: var(--muted); }
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-lines li {
  display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 0.6rem;
  padding: 0.55rem 0; border-bottom: 1px solid var(--line);
}
.line-info { display: flex; flex-direction: column; min-width: 0; }
.line-name { font-weight: 600; }
.line-custom { color: var(--muted); font-size: 0.88rem; overflow-wrap: anywhere; }
.line-total { font-weight: 600; min-width: 4rem; text-align: right; }
.line-remove { border: 0; background: none; font-size: 1.4rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 0.2rem 0.4rem; }
.line-remove:hover { color: var(--error); }
.cart-ship { display: flex; justify-content: space-between; padding-top: 0.6rem; color: var(--muted); }
.cart-total { display: flex; justify-content: space-between; padding-top: 0.75rem; font-size: 1.2rem; }
.cart-total strong { color: var(--brick); font-family: var(--serif); }
.form-error { color: var(--error); background: #fdeceb; border-radius: 10px; padding: 0.6rem 0.9rem; }

.confirmation:focus { outline: none; }
.confirmation .eyebrow { color: var(--accent); }
.summary { list-style: none; padding: 0; margin: 1rem 0; border-top: 1px solid var(--line); }
.summary li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.summary-total { font-weight: 700; font-size: 1.1rem; }
.pickup-box, .venmo, .cash { background: var(--flour); border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: 1rem; }
.pickup-box p, .cash p { margin: 0; }
.pickup-box .hint { margin-top: 0.5rem; }
.venmo { text-align: center; }
.venmo-qr { display: inline-block; padding: 12px; background: var(--white); border-radius: 12px; margin: 0.5rem 0; }
.venmo-qr img { width: 200px; height: 200px; }
.venmo-btn { background: #008cff; border-color: #008cff; }
.venmo-btn:hover { background: #0074d4; border-color: #0074d4; }
.venmo .hint { margin: 0.75rem 0 0; }

/* Pickup info */
.pickup { padding: 4.5rem 0 3rem; }
.info-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.info { background: var(--white); border-radius: var(--radius); padding: 1.25rem 1.4rem; box-shadow: var(--shadow); }
.info h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.1em; }
.info p { margin: 0 0 0.4rem; }
.link { font-weight: 600; text-decoration: none; }
.deadline-table { width: 100%; border-collapse: collapse; }
.deadline-table th { text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding: 0 0 0.3rem; }
.deadline-table td { padding: 0.3rem 0; border-top: 1px solid var(--line); }
.deadline-table td:last-child { font-weight: 700; color: var(--accent); }
.deadline-table th:first-child, .deadline-table td:first-child { padding-right: 0.75rem; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 600px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery img:last-child { grid-column: 1 / -1; aspect-ratio: 2 / 1; } }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* Contact */
.contact { padding: 4rem 0; }
.contact-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); max-width: 720px; margin-inline: auto; }
.contact-item {
  display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius);
  padding: 1rem 1.25rem; box-shadow: var(--shadow); text-decoration: none; color: var(--ink);
  overflow-wrap: anywhere; transition: transform 0.15s;
}
.contact-item:hover { transform: translateY(-2px); }
.contact-item span { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 700; }
.contact-item strong { color: var(--accent); font-size: 1.05rem; }

/* Footer */
.site-footer { background: var(--accent); color: #f3ead6; text-align: center; padding: 2rem 0 1.75rem; font-size: 0.92rem; border-top: 3px double var(--sage); }
.site-footer .ornament { background-image: url("../images/ornament-light.svg"); margin: 0 auto 0.9rem; }
.site-footer p { margin: 0; }
.site-footer .footer-note { margin-top: 0.5rem; font-size: 0.8rem; opacity: 0.75; }
