/* ==========================================================
   Made by Chance in Mississippi
   ----------------------------------------------------------
   ONE DOOR: every "Order" link on this site points at the
   same address. To change how people reach you, search all
   files for  hello@madebychanceinmississippi.com  and replace it.
   Nothing else needs to change.
   ========================================================== */

:root {
  --ink:        #241E1C;   /* warm near-black, all body text   */
  --paper:      #F6F4EE;   /* pale oat, page background        */
  --blackberry: #5E2A43;   /* primary accent — links, buttons  */
  --butter:     #E3B85C;   /* secondary, used sparingly        */
  --muted:      #7A706A;   /* prices, notes, quiet text        */
  --rule:       #DFD9CE;   /* hairlines                        */

  --measure: 34rem;        /* comfortable reading width        */

  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; max-width: var(--measure); }

a { color: var(--blackberry); }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blackberry);
  outline-offset: 3px;
}

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

/* ---------- layout ---------- */

.wrap {
  width: 100%;
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

main { padding-bottom: 5rem; }

section { margin-top: 4rem; }

/* ---------- navigation ---------- */

.site-nav {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.site-nav .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover { border-bottom-color: var(--blackberry); }

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

.nav-order { margin-left: auto; }

/* ---------- the wordmark ----------
   The <span class="wordmark-name"> is the swap slot.
   When your handwritten "Chance" is ready, replace the
   text inside it with:  <img src="images/chance.png" alt="Chance">
   ------------------------------------ */

.wordmark {
  display: inline-block;
  text-align: center;
  line-height: 1.1;
}

.wordmark-line {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.7rem, 6.5vw, 2.9rem);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.wordmark-name {
  font-style: italic;
  font-weight: 600;
}

.wordmark-name img { display: inline-block; }

.river {
  display: block;
  width: 100%;
  height: auto;
  margin: 0.35rem 0 0.4rem;
  color: var(--blackberry);
}

.wordmark-place {
  font-family: "Karla", sans-serif;
  font-size: clamp(0.8rem, 2.6vw, 1rem);
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* ---------- hero ---------- */

.hero {
  padding: 2rem 0 2.5rem;
  text-align: center;
}

.hero-tagline {
  margin: 1.1rem auto 1.4rem;
  max-width: 31rem;
  font-size: 1.1rem;
  color: var(--ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
}

.quiet-link {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
}

.quiet-link:hover { border-bottom-color: var(--ink); }

/* Wide crop so a photograph of real food is on the first screen,
   not below it. */
.hero-photo {
  margin-top: 1.75rem;
  border-radius: 2px;
  width: 100%;
  max-height: 46vh;
  object-fit: cover;
  object-position: center;
}

/* ---------- buttons ---------- */

.order-link {
  display: inline-block;
  background: var(--blackberry);
  color: var(--paper);
  text-decoration: none;
  padding: 0.7rem 1.6rem;
  border-radius: 2px;
  font-size: 1rem;
}

.order-link:hover { background: #4A2035; }

.nav-order.order-link {
  padding: 0.35rem 0.9rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

.hero-terms {
  margin: 1.1rem auto 0;
  max-width: 31rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.baking-now {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.45;
  border-left: 2px solid var(--butter);
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}
.baking-highlight {
  background-color: #F0DCAB;
  color: inherit;
  padding: 0 0.18em;
}
.baking-feature {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.baking-copy {
  flex: 0 1 34rem;
}

.baking-photo {
  flex: 1 1 16rem;
  width: 100%;
  max-width: 24rem;
  max-height: 24rem;
  object-fit: cover;
  border-radius: 2px;
}

@media (max-width: 48rem) {
  .baking-feature {
    flex-direction: column;
  }

  .baking-photo {
    max-width: 100%;
  }
}
/* ---------- page headers ---------- */

.page-header { padding: 3rem 0 0; }
.page-header h1 { font-size: clamp(2rem, 6vw, 3rem); }
.page-header p { font-size: 1.1rem; color: var(--muted); }

/* ---------- menu ---------- */

.menu-item {
  display: grid;
  grid-template-columns: 14rem 1fr;
  gap: 2rem;
  align-items: start;
  padding: 2rem 0;
  border-top: 1px solid var(--rule);
}

.menu-item:first-of-type { border-top: none; }

.menu-item-image { border-radius: 2px; }

.menu-item h2 { font-size: 1.5rem; margin-bottom: 0.35rem; }

.menu-price {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.menu-note {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-style: italic;
}

/* ---------- gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.gallery-grid figure { margin: 0; }

.gallery-grid img { border-radius: 2px; }

.gallery-grid figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- contact ---------- */

.contact-card {
  margin-top: 2.5rem;
  padding: 2rem;
  background: #FFFDF8;
  border: 1px solid var(--rule);
  border-radius: 2px;
  max-width: 34rem;
}

.contact-card h2 { font-size: 1.4rem; }

.contact-alt {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---------- about ---------- */

.about-body p { font-size: 1.1rem; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2rem 0 3rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer p { max-width: none; margin: 0; }

/* ---------- small screens ---------- */

@media (max-width: 34rem) {
  .menu-item {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .nav-order { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
