/* Courtnie's Kitchen — one stylesheet, no build step.
   Colors are sampled from the hand-drawn logo: paper cream, pencil brown,
   sage green, and the soft red of the little hearts. */

/* ---------- Tokens ---------- */
:root {
  --paper:     #f7f0e5;   /* page */
  --paper-2:   #f1e7d7;   /* quiet bands */
  --ink:       #443527;   /* headings */
  --ink-soft:  #63503f;   /* body */
  --muted:     #7d6a58;   /* asides */
  --sage:      #5c6049;
  --sage-deep: #474b38;
  --berry:     #a5533f;   /* links, prices */
  --line:      #ddcfb8;

  --wrap: 62rem;
  --gap:  clamp(3.25rem, 7vw, 5.25rem);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
           Georgia, serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 4.6vw, 2.9rem); line-height: 1.14; }
h2 { font-size: clamp(1.5rem, 3vw, 1.95rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

a { color: var(--berry); text-underline-offset: 3px; }
a:hover { color: var(--sage-deep); }
strong { color: var(--ink); font-weight: 600; }

:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: #fff; padding: .7rem 1rem; z-index: 10;
}
.skip:focus { left: .5rem; top: .5rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.4rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font: inherit; font-size: 1rem;
  padding: .65rem 1.4rem;
  border: 1px solid var(--sage);
  border-radius: 6px;
  background: var(--sage);
  color: var(--paper);
  text-decoration: none;
}
.btn:hover { background: var(--sage-deep); border-color: var(--sage-deep); color: var(--paper); }
.btn--quiet { background: transparent; color: var(--sage-deep); border-color: var(--line); }
.btn--quiet:hover { background: var(--paper-2); border-color: var(--sage); color: var(--sage-deep); }
.btn--sm { padding: .45rem 1rem; font-size: .92rem; }

/* ---------- Header ---------- */
.site-header { padding: 1.5rem 0 .5rem; }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  color: var(--ink); text-decoration: none;
  font-size: 1.2rem;
}
.brand img { width: 40px; height: 40px; }
.brand:hover { color: var(--sage-deep); }
.nav { display: flex; align-items: center; gap: 1.5rem; font-size: 1rem; }
.nav a { color: var(--ink-soft); text-decoration: none; }
.nav a:hover { color: var(--berry); text-decoration: underline; }
@media (max-width: 560px) {
  .brand { font-size: 1.05rem; }
  .brand img { width: 34px; height: 34px; }
  .nav { gap: 1.1rem; font-size: .95rem; }
}

/* ---------- Sprig divider ---------- */
.sprig { display: block; margin: 0 auto; width: 158px; height: auto; opacity: .85; }
.sprig--top { margin-bottom: 2.25rem; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 2.25rem 0 var(--gap); }
.hero img.stamp {
  width: min(280px, 68vw); height: auto; margin: 0 auto 1.75rem;
}
.hero h1 { max-width: 20ch; margin-inline: auto; }
.lede {
  font-size: 1.1rem; color: var(--ink-soft);
  max-width: 34rem; margin: 0 auto 1.75rem;
}
.hero .note { font-size: .95rem; color: var(--muted); max-width: 30rem; margin: 1.6rem auto 0; }

/* ---------- Sections ---------- */
.section { padding: var(--gap) 0; }
.section--quiet { background: var(--paper-2); }
.section-head { max-width: 38rem; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); }

/* ---------- Menu ---------- */
.menu { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 3.5rem; }
@media (max-width: 700px) { .menu { grid-template-columns: 1fr; gap: 2.5rem; } }
/* A column can hold more than one group (treats and cookie packs share one). */
.menu-col { display: grid; gap: 2.25rem; align-content: start; }
.menu h3 {
  font-size: 1.3rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.1rem;
}
.menu h3 small {
  display: block; font-size: .88rem; color: var(--muted);
  font-weight: 400; margin-top: .3rem;
}
.items { list-style: none; margin: 0 0 1.1rem; padding: 0; }
.items li { margin: 0 0 1rem; }
.items .row { display: flex; align-items: baseline; gap: .6rem; }
.items .row b { font-weight: 600; color: var(--ink); }
.items .dots {
  flex: 1 1 auto;
  border-bottom: 1px dotted var(--line);
  transform: translateY(-.28em);
}
.items .price { color: var(--berry); white-space: nowrap; }
.items .note { display: block; font-size: .93rem; color: var(--muted); line-height: 1.5; }
.menu-foot { font-size: .93rem; color: var(--muted); }

/* ---------- Stand ----------
   The one dark band on the page, so the stand stands out. */
.stand { background: var(--sage-deep); color: #ece4d4; }
.stand h2 { color: var(--paper); }
.stand a:not(.btn) { color: var(--paper); }
.stand :focus-visible { outline-color: var(--paper); }
.stand-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3.5rem; align-items: center;
}
@media (max-width: 700px) { .stand-grid { grid-template-columns: 1fr; gap: 2rem; } }
.stand-figure { margin: 0; }
.stand-figure img { width: 100%; border-radius: 10px; }
.stand-figure figcaption {
  margin-top: .6rem; text-align: center;
  font-size: .88rem; font-style: italic; color: #cbc3ae;
}
.eyebrow {
  margin: 0 0 .6rem;
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: #eab9a8;
}
.stand-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
  gap: .9rem 1.5rem;
  margin: 1.6rem 0 1.9rem; padding: 1rem 0;
  border-top: 1px solid rgba(247, 240, 229, .2);
  border-bottom: 1px solid rgba(247, 240, 229, .2);
}
.stand-facts dt {
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: #cbc3ae;
}
.stand-facts dd { margin: .15rem 0 0; color: var(--paper); }
.btn--light { background: var(--paper); border-color: var(--paper); color: var(--sage-deep); }
.btn--light:hover { background: #fff; border-color: #fff; color: var(--sage-deep); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
@media (max-width: 700px) { .steps { grid-template-columns: 1fr; gap: 1.75rem; } }
.step h3 { color: var(--sage-deep); margin-bottom: .35em; }
.step p { font-size: .98rem; margin: 0; }
.steps-cta { margin: 2.5rem 0 0; }

/* ---------- About ---------- */
.about { max-width: 38rem; }
.about .pull {
  font-size: 1.2rem; line-height: 1.5; color: var(--ink);
  border-left: 2px solid var(--sage); padding-left: 1.1rem;
  margin: 1.6rem 0 0;
}

/* ---------- Good to know ---------- */
.notes { display: grid; grid-template-columns: 1fr 1fr; gap: 0 3rem; }
@media (max-width: 700px) { .notes { grid-template-columns: 1fr; } }
.notes > div { padding: 1.15rem 0; border-top: 1px solid var(--line); }
.notes h3 { font-size: 1.05rem; margin-bottom: .25em; }
.notes p { font-size: .96rem; margin: 0; }

/* ---------- Order ---------- */
.order { text-align: center; }
.order .wrap { max-width: 40rem; }
.order .lede { margin-bottom: 1.6rem; }
.order .note { font-size: .95rem; color: var(--muted); margin-top: 1.5rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
  font-size: .92rem; color: var(--muted); line-height: 1.6;
}
.site-footer .wrap { display: grid; gap: 1.5rem; }
.site-footer .brand { font-size: 1.1rem; }
.legal { max-width: 46rem; }
.legal p { margin-bottom: .55em; }

/* ---------- 404 ---------- */
.narrow { max-width: 30rem; margin: 0 auto; text-align: center; padding: clamp(3rem, 10vw, 6rem) 0; }

/* ---------- Order form ---------- */
.order-form {
  max-width: 42rem; margin: 0 auto; text-align: left;
}
.order-form fieldset {
  border: 0; border-top: 1px solid var(--line);
  margin: 0 0 1.6rem; padding: 1.35rem 0 0;
}
.order-form fieldset:first-of-type { border-top: 0; padding-top: 0; }
.order-form legend {
  padding: 0; margin-bottom: .9rem;
  font-size: 1.15rem; font-weight: 600; color: var(--ink);
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem 1.75rem; }
@media (max-width: 620px) { .grid-2 { grid-template-columns: 1fr; } }

.field { margin: 0 0 1.1rem; }
.field label, .label-ish {
  display: block; margin-bottom: .3rem;
  font-size: .95rem; font-weight: 600; color: var(--ink);
}
.field label small { font-weight: 400; color: var(--muted); }
.order-form input[type="text"],
.order-form input[type="tel"],
.order-form input[type="email"],
.order-form select,
.order-form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line); border-radius: 6px;
  padding: .55rem .7rem;
}
.order-form textarea { resize: vertical; min-height: 5rem; line-height: 1.55; }
.order-form input:hover, .order-form select:hover, .order-form textarea:hover {
  border-color: var(--muted);
}
.order-form input:focus, .order-form select:focus, .order-form textarea:focus {
  border-color: var(--sage); outline: 2px solid var(--sage); outline-offset: 1px;
}
.order-form ::placeholder { color: var(--muted); opacity: .8; }

/* Menu-style rows: item on the left, amount on the right. */
.picks { display: grid; grid-template-columns: 1fr; }
.pick {
  display: flex; align-items: center; gap: 1rem;
  margin: 0; padding: .5rem 0;
  border-top: 1px dashed var(--line);
}
.pick:first-child { border-top: 0; padding-top: 0; }
.pick label { flex: 1 1 auto; margin: 0; font-size: .97rem; }
.pick label small { margin-left: .45rem; font-weight: 400; color: var(--muted); }
.pick select { flex: 0 0 9rem; width: 9rem; }
/* The cookie pack options carry their price, so they need more room. */
.pick--wide select { flex-basis: 12rem; width: 12rem; }
@media (max-width: 480px) { .pick--wide select { flex-basis: 10.5rem; width: 10.5rem; } }
@media (max-width: 420px) { .pick select { flex-basis: 7.5rem; width: 7.5rem; } }

.choice {
  display: flex; align-items: center; gap: .5rem;
  font-size: .97rem; font-weight: 400; color: var(--ink-soft);
  margin-bottom: .3rem; cursor: pointer;
}
.choice input { accent-color: var(--sage); width: 1rem; height: 1rem; }
.choice small { color: var(--muted); }

/* Delivery address, revealed by assets/order.js when drop-off is chosen. */
#dropoff-address[hidden] { display: none; }
.help {
  display: block; margin-top: .4rem;
  font-size: .89rem; line-height: 1.5; color: var(--muted);
}

.submit-row { margin: .5rem 0 0; }
.order-form button { cursor: pointer; }

/* The honeypot. Off-screen rather than display:none, which some bots skip. */
.hp {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* Validation list on the handler's "something's missing" page. */
.missing { text-align: left; display: inline-block; margin-bottom: 1.2em; }
