/* Nani's Nom-Noms — site styles
   Colors are taken from the logo. Change them in one place below. */

@font-face {
  font-family: "Fredoka";
  src: url("/fonts/fredoka.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  --cream: #FFFDE9;        /* page background (same as the logo's background) */
  --cream-deep: #FBF4DA;
  --paper: #FFFEF9;        /* cards */
  --ink: #4B3A26;          /* main text */
  --ink-soft: #6B5842;     /* secondary text */
  --outline: #645037;      /* the logo's brown outline */
  --line: #EEE3CC;         /* soft borders */
  --mint: #60BFA4;
  --mint-deep: #23715C;    /* mint that's dark enough for text */
  --mint-tint: #DDF2EA;
  --pink: #EFB6C4;
  --pink-tint: #FBE4EA;
  --butter-tint: #FFF2C9;
  --danger: #A8323E;

  --font-display: "Fredoka", "Nunito", ui-rounded, system-ui, sans-serif;
  --font-body: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 28px;
  --shadow: 0 1px 0 rgba(100, 80, 55, .06), 0 14px 34px -18px rgba(100, 80, 55, .35);
  --shadow-lift: 0 1px 0 rgba(100, 80, 55, .06), 0 22px 40px -18px rgba(100, 80, 55, .42);
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 .5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.6rem, 2rem + 3vw, 4.25rem); letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 1.6rem + 1.8vw, 2.85rem); }
h3 { font-size: 1.75rem; }

p { margin: 0 0 1em; }

a { color: var(--mint-deep); }

:focus-visible {
  outline: 3px solid var(--mint-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

section[id] { scroll-margin-top: 76px; }

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--pink-tint);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .02em;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .85em 1.5em;
  border: 2.5px solid var(--outline);
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--outline);
  transition: transform .12s ease, box-shadow .12s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--outline); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--outline); }
.btn-primary { background: var(--mint); }
.btn-primary:hover { background: #70C8AF; }
.btn-secondary { background: var(--pink); }
.btn-secondary:hover { background: #F3C4D0; }
.btn-small { padding: .55em 1.05em; font-size: .98rem; box-shadow: 0 3px 0 var(--outline); }
.btn-small:hover { box-shadow: 0 5px 0 var(--outline); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; box-shadow: 0 4px 0 var(--outline); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 233, .92);
  -webkit-backdrop-filter: saturate(1.3) blur(10px);
  backdrop-filter: saturate(1.3) blur(10px);
  border-bottom: 1px solid rgba(100, 80, 55, .1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.brand img { width: 44px; height: 44px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  white-space: nowrap;
}

.site-nav { display: flex; align-items: center; gap: 20px; }
.nav-link { color: var(--ink); font-weight: 800; text-decoration: none; }
.nav-link:hover { color: var(--mint-deep); }
.label-short { display: none; }

@media (max-width: 560px) {
  .nav-link { display: none; }
  .brand-name { font-size: 1.12rem; }
  .brand img { width: 40px; height: 40px; }
}

@media (max-width: 400px) {
  .label-long { display: none; }
  .label-short { display: inline; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 6vw, 84px) 0 clamp(56px, 7vw, 96px);
}

/* soft "sprinkles" in the background, fading out toward the menu */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360' viewBox='0 0 360 360'%3E%3Cg fill='none' stroke-linecap='round' stroke-width='6'%3E%3Cpath d='M30 40L43 34' stroke='%23EFB6C4'/%3E%3Cpath d='M150 22L160 31' stroke='%2360BFA4'/%3E%3Cpath d='M300 60L288 64' stroke='%23F2CF8A'/%3E%3Cpath d='M230 130L236 142' stroke='%23EFB6C4'/%3E%3Cpath d='M90 150L103 147' stroke='%2360BFA4'/%3E%3Cpath d='M330 200L320 208' stroke='%23EFB6C4'/%3E%3Cpath d='M40 262L51 269' stroke='%23F2CF8A'/%3E%3Cpath d='M180 250L192 244' stroke='%2360BFA4'/%3E%3Cpath d='M270 322L283 325' stroke='%23EFB6C4'/%3E%3Cpath d='M110 330L116 341' stroke='%2360BFA4'/%3E%3C/g%3E%3Ccircle cx='210' cy='72' r='4' fill='%2360BFA4'/%3E%3Ccircle cx='62' cy='204' r='3.5' fill='%23EFB6C4'/%3E%3Ccircle cx='304' cy='272' r='3' fill='%23F2CF8A'/%3E%3Ccircle cx='352' cy='120' r='3.5' fill='%2360BFA4'/%3E%3Ccircle cx='150' cy='96' r='3' fill='%23F2CF8A'/%3E%3C/svg%3E");
  background-size: 360px 360px;
  opacity: .42;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
}

/* "Cookies · Cakes · Muffins · Pies" chips that jump to each menu section */
.jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}
.jump-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 7px 15px;
  border: 2px solid var(--pink);
  border-radius: 999px;
  background: var(--pink-tint);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  transition: background-color .15s ease, transform .12s ease;
}
.jump-links a::after {
  content: "";
  width: 6px;
  height: 6px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  opacity: .55;
  transform: translateY(-2px) rotate(45deg);
}
.jump-links a:hover { background: #fff; transform: translateY(-1px); }
.jump-links a:active { transform: translateY(1px); }

@media (max-width: 440px) {
  .jump-links { gap: 6px; }
  .jump-links a { padding: 7px 12px; font-size: .95rem; }
  .jump-links a::after { display: none; }
}

.hero-text .lead {
  font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem);
  max-width: 34em;
}

.squiggle {
  white-space: nowrap;
  padding-bottom: .12em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='14' viewBox='0 0 44 14'%3E%3Cpath d='M0 7 Q11 0 22 7 T44 7' fill='none' stroke='%23EFB6C4' stroke-width='5'/%3E%3C/svg%3E") repeat-x 0 100% / .7em .22em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 22px;
}

.hero-note {
  max-width: 32em;
  margin: 0;
  color: var(--ink-soft);
  font-size: .98rem;
}

.hero-logo {
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
  filter: drop-shadow(0 22px 24px rgba(100, 80, 55, .18));
}

@media (prefers-reduced-motion: no-preference) {
  .hero-logo { animation: bob 7s ease-in-out infinite; }
  .hero-text > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-text > :nth-child(2) { animation-delay: .06s; }
  .hero-text > :nth-child(3) { animation-delay: .12s; }
  .hero-text > :nth-child(4) { animation-delay: .18s; }
  .hero-text > :nth-child(5) { animation-delay: .24s; }
}

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-art { order: -1; }
  .hero-logo { max-width: 230px; }
  .hero-actions, .jump-links { justify-content: center; }
  .hero-text .lead, .hero-note { margin-inline: auto; }
}

/* ---------- Menu ---------- */

.menu { padding: clamp(40px, 6vw, 80px) 0 clamp(72px, 9vw, 120px); }

.section-head {
  max-width: 640px;
  margin: 0 auto clamp(32px, 5vw, 52px);
  text-align: center;
}
.section-head p:last-child { color: var(--ink-soft); font-size: 1.1rem; }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
}

.menu-card {
  scroll-margin-top: 84px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.menu-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.menu-photo { aspect-ratio: 3 / 2; background: var(--mint-tint); }
.menu-photo img { width: 100%; height: 100%; object-fit: cover; }
.tint-mint { background: var(--mint-tint); }
.tint-pink { background: var(--pink-tint); }
.tint-butter { background: var(--butter-tint); }

.menu-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 26px 24px;
}
.menu-body h3 { margin-bottom: 12px; }

.menu-body h4 {
  margin: 0 0 8px;
  color: var(--mint-deep);
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.prices { list-style: none; margin: 0 0 18px; padding: 0; }
.prices li {
  display: flex;
  align-items: baseline;
  padding: 3px 0;
  font-size: 1.08rem;
}
.prices .item {
  display: flex;
  flex: 1;
  align-items: baseline;
  font-weight: 800;
}
.prices .item::after {
  content: "";
  flex: 1;
  min-width: 20px;
  margin: 0 10px;
  border-bottom: 2.5px dotted #DCCDB0;
  transform: translateY(-5px);
}
.prices .price {
  color: var(--mint-deep);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
}

.flavors { list-style: none; margin: 0 0 18px; padding: 0; }
.flavors.two-col { columns: 2 190px; column-gap: 24px; }
.flavors li {
  position: relative;
  padding: 3px 0 3px 20px;
  break-inside: avoid;
}
.flavors li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .8em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pink);
}
.flavors li:nth-child(3n + 2)::before { background: var(--mint); }
.flavors li:nth-child(3n)::before { background: #F2CF8A; }
.flavors .note { color: var(--ink-soft); font-size: .92em; }

.flavor-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
}

.card-note { margin: 0 0 18px; color: var(--ink-soft); font-size: .98rem; }

.card-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  margin-top: auto;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  color: var(--mint-deep);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
}
.card-link:hover { border-bottom-color: currentColor; }
.card-link svg { transition: transform .2s ease; }
.card-link:hover svg { transform: translateX(3px); }

@media (max-width: 860px) {
  .menu-grid { grid-template-columns: 1fr; max-width: 580px; margin-inline: auto; }
}

@media (max-width: 420px) {
  .menu-body { padding: 18px 20px 20px; }
}

/* ---------- Request form ---------- */

.request {
  position: relative;
  padding: clamp(56px, 8vw, 104px) 0;
  background: var(--mint-tint);
}

/* scalloped edge, like a cupcake liner */
.request::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -17px;
  height: 18px;
  background: radial-gradient(circle at 50% 100%, var(--mint-tint) 17px, transparent 17.5px) 0 0 / 36px 18px repeat-x;
}

.request-inner {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: start;
  gap: clamp(28px, 5vw, 72px);
}

.request-intro { padding-top: 8px; }
.request-intro .eyebrow { background: #fff; }
.request-intro > p { font-size: 1.1rem; }

.perks {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.perks li {
  position: relative;
  padding: 12px 16px 12px 50px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .65);
}
.perks li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 14px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--mint);
}
.perks li::after {
  content: "";
  position: absolute;
  left: 24px;
  top: 18px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.form-card {
  padding: clamp(22px, 4vw, 36px);
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.kind { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.kind legend {
  margin-bottom: 10px;
  padding: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
}
.kind-options { display: flex; flex-wrap: wrap; gap: 8px; }
.kind-options label { position: relative; cursor: pointer; }
.kind-options input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.kind-options span {
  display: inline-block;
  padding: 8px 16px;
  border: 2px solid #E3D6BD;
  border-radius: 999px;
  background: #fff;
  font-weight: 800;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.kind-options label:hover span { border-color: var(--mint); }
.kind-options input:checked + span {
  background: var(--mint);
  border-color: var(--outline);
  box-shadow: 0 3px 0 var(--outline);
}
.kind-options input:focus-visible + span { outline: 3px solid var(--mint-deep); outline-offset: 2px; }

.field { margin-bottom: 16px; }
.field[hidden] { display: none; }
.field label { display: block; margin-bottom: 6px; font-weight: 800; }
.hint { color: var(--ink-soft); font-weight: 600; font-size: .92em; }

.field input,
.field textarea {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 2px solid #E3D6BD;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 136px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #8F7D66; opacity: 1; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--mint);
  box-shadow: 0 0 0 4px rgba(96, 191, 164, .28);
}
.field [aria-invalid="true"],
.field [aria-invalid="true"]:focus { border-color: var(--danger); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(168, 50, 62, .18); }
.field-error { margin: 6px 0 0; color: var(--danger); font-weight: 700; font-size: .95rem; }

.notice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--butter-tint);
  font-weight: 700;
}
.notice svg { flex: none; color: var(--mint-deep); }

/* spam trap: hidden from people */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.turnstile-slot:not(:empty) { margin: 4px 0 16px; }

.form-status { margin: 12px 0 0; font-weight: 700; text-align: center; }
.form-status:empty { margin: 0; }
.form-status.is-error { color: var(--danger); }
.form-fineprint { margin: 12px 0 0; color: var(--ink-soft); font-size: .92rem; text-align: center; }

.form-success { padding: 20px 4px; text-align: center; }
.form-success:focus { outline: none; }
.form-success img { margin: 0 auto 14px; }
.form-success p { max-width: 26em; margin-inline: auto; font-size: 1.08rem; }

@media (prefers-reduced-motion: no-preference) {
  .form-success:not([hidden]) img { animation: pop .5s cubic-bezier(.2, .9, .3, 1.4) both; }
}

@keyframes pop {
  from { transform: scale(.6) rotate(-8deg); opacity: 0; }
  to { transform: none; opacity: 1; }
}

@media (max-width: 860px) {
  .request-inner { grid-template-columns: 1fr; max-width: 580px; margin-inline: auto; }
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 40px 0 48px;
  background: var(--cream-deep);
  color: var(--ink-soft);
  font-size: .98rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
}

.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand p { margin: 0; }
.footer-brand strong { color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }
.footer-notes { max-width: 480px; }
.footer-notes p:last-child { margin-bottom: 0; }
.footer-notes strong { color: var(--ink); }
.fine { font-size: .92rem; }

/* ---------- Small pages (404, thank-you) ---------- */

.simple-page {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  padding: 24px;
}

.simple-card {
  max-width: 480px;
  padding: 36px 28px;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}
.simple-card img { margin: 0 auto 16px; }
.simple-card h1 { font-size: clamp(2rem, 1.6rem + 2vw, 2.6rem); }
.simple-card p { color: var(--ink-soft); font-size: 1.08rem; }
.simple-card .btn { margin-top: 8px; }

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
