@font-face {
  font-family: "Yeseva One";
  src: url("/fonts/yeseva.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #fffdfa;
  --paper-2: #faf5f0;
  --ink: #241812;
  --ink-soft: #6f5c4e;
  --line: #ece4db;
  --line-soft: #f4efe9;
  /* Peach for fills (carries dark ink text); the deeper cut for accent TEXT on paper. */
  --accent: #e8734a;
  --accent-hover: #de6339;
  --accent-ink: #c54a29;
  --good: #3f6b46;
  --warn: #a8631a;
  --gone: #9a8a7c;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(36, 24, 18, .04), 0 10px 28px rgba(36, 24, 18, .045);
  --display: "Yeseva One", "Iowan Old Style", Georgia, serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: ui-sans-serif, -apple-system, "Segoe UI", Inter, Helvetica, Arial, sans-serif;

  /* Category accents. These are FILL colors only — bars, dots, rules, card washes.
     Nothing sets type in them, which is what lets them stay light and saturated;
     the moment a hue has to carry 14px text it gets dragged down to ~5:1 and muddy. */
  --cat-savory: #45bd7e;
  --cat-chocolate: #a87850;
  --cat-fruit: #f4557e;
  --cat-spiced: #f7b32b;
  --cat-savory-tint: #edf9f2;
  --cat-chocolate-tint: #faf3ec;
  --cat-fruit-tint: #fff2f6;
  --cat-spiced-tint: #fff6e0;
}

* { box-sizing: border-box; }

/* A class rule that sets display (.notify__fields, say) otherwise beats UA [hidden]. */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-ink); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px 96px; }
.wrap--narrow { max-width: 760px; }

/* ---- site header ---- */
.site-head {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 242, .92);
  backdrop-filter: saturate(1.4) blur(8px);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-head__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 400;
  letter-spacing: 0.004em;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.brand span { color: var(--accent-ink); }
.nav { display: flex; gap: 4px; }
.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 14px;
  padding: 7px 12px;
  border-radius: 999px;
}
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.nav-cta {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: var(--accent);
  padding: 8px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--accent-hover); }

/* ---- headings ---- */
.page-head { padding: 44px 0 26px; max-width: 640px; }
.hero { padding: 56px 0 34px; max-width: 660px; }
.hero__cta { margin: 26px 0 0; }
h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 6vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.022em;
  margin: 0 0 12px;
}
h2 {
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: -0.012em;
  margin: 40px 0 14px;
}
.lede { font-size: 17px; color: var(--ink-soft); margin: 0; max-width: 56ch; }
.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-ink);
  font-weight: 700;
  margin: 0 0 10px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---- filter chips ---- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 0 6px;
  position: sticky;
  top: 57px;
  background: var(--paper);
  z-index: 30;
}
.chip {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.chip:hover { border-color: var(--ink-soft); color: var(--ink); }
.chip[aria-pressed="true"] { color: #fff; }
.chip__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--chip, currentColor); flex: none; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.chip__n { font-weight: 400; opacity: .6; font-variant-numeric: tabular-nums; }

/* ---- category section ---- */
.cat { margin: 38px 0 0; }
.cat__bar {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--cat, var(--line));
  margin-bottom: 20px;
}
.cat__name {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}
.cat__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--cat, var(--line));
  flex: none;
}
.cat__count {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  white-space: nowrap;
  margin-left: auto;
}

/* ---- the three-across grid ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.scone {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--cat-tint, #fff);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: border-color .12s ease, transform .12s ease;
}
.scone::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: var(--cat, var(--line));
}
.scone:hover { border-color: var(--cat, var(--ink-soft)); }
.scone.is-picked { border-color: var(--cat, var(--ink)); box-shadow: 0 0 0 3px var(--cat, var(--ink)) inset, var(--shadow); }
.scone.is-out { opacity: .5; }

.scone__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 6px 0 0;
}
.scone__name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
}
.scone__price {
  font-size: 15px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.scone__desc {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.5;
  margin: 8px 0 12px;
  flex: 1; /* pushes every card's footer to the same baseline */
}
.scone__detail {
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.45;
  margin: 7px 0 0;
}
/* With descriptions gone, something must still push every footer in a row to
   the same baseline — an empty spacer does it for cards with no detail line. */
.scone__body { flex: 1; min-height: 4px; }
.scone__tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 13px; }
.seasonal {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.seasonal::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cat, var(--ink-soft));
}
.scone__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 13px;
  border-top: 1px solid var(--line-soft);
}

.tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(36, 24, 18, .05);
  color: var(--ink-soft);
}

.stock {
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stock--plenty { color: var(--good); }
.stock--low    { color: var(--warn); }
.stock--out    { color: var(--gone); }

/* ---- forms ---- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--ink-soft); }
input, select, textarea {
  width: 100%;
  font: inherit;
  font-size: 16px; /* keeps iOS from zooming on focus */
  color: var(--ink);
  background: #fff;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--accent-ink);
  outline-offset: 1px;
  border-color: transparent;
}
textarea { resize: vertical; min-height: 76px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
}
.btn:hover:not(:disabled) { background: var(--accent-hover); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover:not(:disabled) { background: var(--paper-2); }

.notice {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 15px;
  margin: 0 0 18px;
  border: 1px solid;
}
.notice--error { background: #fdf0ec; border-color: #f0cec2; color: #8c3315; }
.notice--info  { background: var(--paper-2); border-color: var(--line); color: var(--ink-soft); }

/* ---- notify sign-up ---- */
.notify {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 28px 26px;
  margin: 10px 0 8px;
  scroll-margin-top: 80px; /* the sticky header must not cover it on #notify */
}
.notify__title {
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: -0.012em;
  margin: 0 0 6px;
}
.notify__blurb { color: var(--ink-soft); font-size: 15px; margin: 0 0 18px; }
.notify__fields { display: flex; gap: 10px; flex-wrap: wrap; }
.notify__fields input { flex: 1 1 210px; min-width: 0; background: #fff; }
.notify__fields .btn { flex: 0 0 auto; }
.notify__msg { font-size: 14.5px; margin: 12px 0 0; min-height: 1.2em; }
.notify__msg--error { color: #8c3315; }
.notify__msg--ok { color: var(--good); font-weight: 600; }
/* Once they're on the list, the inputs have nothing left to do. */
.notify__form.is-done .notify__fields { display: none; }

/* Honeypot: off-screen rather than display:none, since some bots skip hidden
   inputs but happily fill positioned ones. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---- footer ---- */
.foot {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.foot__line { color: var(--ink-soft); font-size: 14px; margin: 0 0 6px; }

/* ---- misc ---- */
.muted { color: var(--ink-soft); }
.center { text-align: center; }
.stack > * + * { margin-top: 12px; }
.split { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.facts { list-style: none; padding: 0; margin: 0; }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts li:last-child { border-bottom: 0; }
.facts .k { color: var(--ink-soft); }
.skeleton { color: var(--ink-soft); padding: 40px 0; text-align: center; }

/* Three across, then two, then one. */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  /* One scrollable row beats two wrapped rows on a phone-height screen. */
  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 -18px;
    padding: 12px 18px 8px;
  }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; }
  /* Stacked fields look wrong with a button that doesn't match their width. */
  .notify { padding: 22px 20px; }
  .notify__fields .btn { width: 100%; }
  .split { grid-template-columns: 1fr; }
  .wrap { padding-left: 18px; padding-right: 18px; }
  .site-head__inner { padding-left: 16px; padding-right: 16px; gap: 6px; }
  /* "Southern Scones" is a long wordmark — let it and the nav scale down
     together so the header still fits a 320px screen without scrolling. */
  .brand { font-size: clamp(14px, 4.3vw, 17px); }
  .nav { gap: 2px; }
  .nav a { padding: 7px 8px; font-size: clamp(12.5px, 3.5vw, 14px); }
}

@media print {
  .site-head, .nav, .chips, .no-print { display: none !important; }
  body { background: #fff; }
}
