/* Flour & Salt — warm, simple, readable */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --cream: #f7f1e8;
  --cream-deep: #efe4d4;
  --paper: #fffaf3;
  --ink: #2c2118;
  --ink-soft: #5c4a3a;
  --muted: #7a6554;
  --line: #e2d4c2;
  --clay: #b86b3d;
  --clay-deep: #954f28;
  --wheat: #d4a574;
  --shadow: 0 12px 40px rgba(44, 33, 24, 0.1);
  --radius: 14px;
  --font: Georgia, "Times New Roman", serif;
  --ui: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max: 1080px;
  --narrow: 680px;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: var(--clay-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--clay);
}

h1, h2, h3 {
  font-family: var(--font);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 0.6em; }
h2 { font-size: clamp(1.55rem, 3.5vw, 2.1rem); margin: 0 0 0.5em; }
h3 { font-size: 1.25rem; margin: 0 0 0.4em; }

p { margin: 0 0 1em; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.container.narrow,
.narrow {
  width: min(100% - 2rem, var(--narrow));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 241, 232, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.brand:hover { color: var(--ink); }

.brand-mark {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.brand-text {
  font-family: var(--font);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  gap: 0.25rem 1.25rem;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--clay);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 1px;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(72vh, 560px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--cream-deep);
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: relative;
  width: 100%;
  background: linear-gradient(to top, rgba(44, 33, 24, 0.72) 0%, rgba(44, 33, 24, 0.35) 55%, transparent 100%);
  color: var(--paper);
  padding: 4rem 0 3rem;
}

.hero-copy {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  max-width: 36rem;
}

.hero-copy h1 {
  color: #fffaf3;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}

.hero-lead {
  color: rgba(255, 250, 243, 0.92);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.eyebrow {
  font-family: var(--ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 0.75rem;
}

.hero-overlay .eyebrow {
  color: var(--wheat);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--ui);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--clay);
  color: #fffaf3;
  border-color: var(--clay);
}

.btn-primary:hover {
  background: var(--clay-deep);
  border-color: var(--clay-deep);
  color: #fffaf3;
}

.btn-ghost {
  background: transparent;
  color: var(--clay-deep);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--clay);
  color: var(--clay);
  background: rgba(184, 107, 61, 0.06);
}

.hero-overlay .btn-primary {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section-header {
  max-width: 36rem;
  margin-bottom: 2.25rem;
}

.section-lead {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.section-lead.center {
  text-align: center;
}

.page-hero {
  padding: 3rem 0 1rem;
}

.page-lead {
  color: var(--ink-soft);
  font-size: 1.15rem;
  margin: 0;
}

/* Recipe cards */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.recipe-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.recipe-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(44, 33, 24, 0.14);
}

.recipe-card-media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cream-deep);
}

.recipe-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.recipe-card:hover .recipe-card-media img {
  transform: scale(1.04);
}

.recipe-card-body {
  padding: 1.25rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.recipe-card-body p:last-of-type {
  flex: 1;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.recipe-meta {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.4rem;
}

.recipe-card h3 a {
  text-decoration: none;
  color: var(--ink);
}

.recipe-card h3 a:hover {
  color: var(--clay-deep);
}

.recipe-card .btn {
  align-self: flex-start;
  margin-top: 0.5rem;
}

/* Note / quote */
.note-section {
  background: var(--cream-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.bakery-note {
  margin: 0 0 1.5rem;
  padding: 0;
  border: none;
  text-align: center;
}

.bakery-note p {
  font-family: var(--font);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-style: italic;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.bakery-note footer {
  color: var(--muted);
  font-size: 0.95rem;
}

.note-cta {
  text-align: center;
  color: var(--ink-soft);
  margin: 0;
}

.visit-title {
  text-align: center;
}

.visit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.about-image-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--cream-deep);
}

.about-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 5 / 4;
}

.about-copy p {
  color: var(--ink-soft);
}

.values-section {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.value-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
}

.value-num {
  display: block;
  font-family: var(--font);
  font-size: 1.5rem;
  color: var(--wheat);
  margin-bottom: 0.5rem;
}

.value-card p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 0.98rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-aside h2 {
  margin-bottom: 1rem;
}

.hours-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.hours-list li:last-child { border-bottom: none; }

.hours-list li span:first-child {
  font-weight: 600;
  color: var(--ink);
}

.aside-block {
  margin-bottom: 1.5rem;
}

.aside-block h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.aside-block p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 0.98rem;
}

.contact-form-wrap {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.contact-form .form-row {
  margin-bottom: 1.15rem;
}

.contact-form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--muted);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--clay);
  box-shadow: 0 0 0 3px rgba(184, 107, 61, 0.18);
  background: #fff;
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.form-actions {
  margin-top: 0.5rem;
}

.form-status {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
}

.form-status.success {
  background: #e8f2e4;
  color: #2a4a22;
  border: 1px solid #c5dcb8;
}

.form-status.error {
  background: #f8ebe6;
  color: #6b2e1a;
  border: 1px solid #e5c4b4;
}

.form-status:not([hidden]) {
  display: block;
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Modal */
.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(44, 33, 24, 0.55);
  cursor: pointer;
}

.modal-panel {
  position: relative;
  width: min(100%, 720px);
  max-height: min(90vh, 860px);
  background: var(--paper);
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  outline: none;
}

.modal-scroll {
  max-height: min(90vh, 860px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: rgba(247, 241, 232, 0.92);
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.modal-close:hover {
  background: #fff;
}

.modal-hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--cream-deep);
}

.modal-body {
  padding: 1.5rem 1.6rem 2rem;
}

.modal-intro {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.recipe-cols {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.5rem 2rem;
  margin-top: 1.25rem;
}

.recipe-cols h3 {
  font-size: 1.05rem;
  margin-bottom: 0.65rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
}

.recipe-cols ul,
.recipe-cols ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ink-soft);
}

.recipe-cols li {
  margin-bottom: 0.45rem;
  font-size: 0.98rem;
}

.modal-tip {
  margin: 1.5rem 0 0;
  padding: 1rem 1.1rem;
  background: var(--cream);
  border-left: 3px solid var(--clay);
  border-radius: 0 10px 10px 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

body.modal-open {
  overflow: hidden;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0;
  background: var(--ink);
  color: rgba(255, 250, 243, 0.78);
}

.footer-inner {
  display: grid;
  gap: 1.25rem;
}

.footer-brand .brand-text {
  color: #fffaf3;
  display: block;
  margin-bottom: 0.35rem;
}

.footer-brand p {
  margin: 0;
  font-size: 0.95rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-nav a {
  color: rgba(255, 250, 243, 0.85);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-nav a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 250, 243, 0.5);
  border-top: 1px solid rgba(255, 250, 243, 0.12);
  padding-top: 1.25rem;
}

/* Responsive */
@media (max-width: 900px) {
  .recipe-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .recipe-cols {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1rem 1rem;
    box-shadow: 0 12px 24px rgba(44, 33, 24, 0.08);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a[aria-current="page"] {
    border-bottom-color: var(--line);
    color: var(--clay-deep);
  }

  .header-inner {
    position: relative;
  }

  .hero {
    min-height: 58vh;
  }

  .contact-form-wrap {
    padding: 1.25rem;
  }

  .section {
    padding: 2.75rem 0;
  }
}

@media (min-width: 721px) and (max-width: 900px) {
  .recipe-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .recipe-grid .recipe-card:last-child {
    grid-column: 1 / -1;
    max-width: 420px;
    justify-self: center;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .recipe-card,
  .recipe-card-media img,
  .btn {
    transition: none;
  }
}