/* Nana's Fridge — site styles ("neighborhood market" direction)
   Palette from the Fridge Note brand guide. Bitter headings, Work Sans text. */

:root {
  --purple: #512b81;
  --purple-deep: #3c1f62;
  --ink: #2b1a42;
  --text-2: #4e3f64;
  --text-3: #5e5070;
  --gold: #e8b640;
  --cream: #fff8e9;
  --white: #ffffff;
  --line: #e2d6be;
  --on-purple: #e6dcf2;

  --serif: "Bitter", "Rockwell", Georgia, serif;
  --sans: "Work Sans", Arial, Helvetica, sans-serif;

  --wrap: 1240px;
  --gutter: 28px;
  --awning: repeating-linear-gradient(90deg, var(--purple) 0 36px, var(--cream) 36px 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img { max-width: 100%; display: block; }
a { color: var(--purple); text-underline-offset: 3px; }
a:hover { color: var(--purple-deep); }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; color: var(--ink); line-height: 1.1; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5vw, 4.2rem); line-height: 1.06; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.45rem; font-weight: 600; color: var(--purple); }
p { margin: 0 0 1em; text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (max-width: 600px) { :root { --gutter: 18px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--purple); color: var(--cream); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- Header with awning ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--cream); border-bottom: 1px solid var(--line); }
.site-header::before { content: ""; display: block; height: 16px; background: var(--awning); border-bottom: 3px solid var(--purple); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; }
.nav a:not(.btn):hover { color: var(--purple); text-decoration: underline; }
.nav .nav-link { display: none; }
@media (min-width: 900px) { .nav .nav-link { display: inline; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 17px; line-height: 1.2;
  padding: 15px 26px; min-height: 48px; border-radius: 2px;
  border: 2px solid var(--purple); background: var(--purple); color: var(--cream);
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--purple-deep); border-color: var(--purple-deep); color: var(--cream); }
.btn-sm { padding: 10px 18px; min-height: 44px; font-size: 16px; }
.btn-lg { padding: 16px 28px; font-size: 18px; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #f0c45a; border-color: #f0c45a; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--purple); }
.btn-ghost:hover { background: var(--purple); color: var(--cream); }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
@media (max-width: 700px) { section { padding: 64px 0; } }
.band-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-purple { background: var(--purple); color: var(--cream); }
.band-purple h2, .band-purple h3 { color: var(--cream); }
.band-purple a:not(.btn) { color: var(--gold); }
.section-intro { max-width: 40em; color: var(--text-2); margin-bottom: 40px; }
.section-cta { margin-top: 36px; }
.text-link { font-weight: 700; }
.eyebrow { display: block; font-weight: 600; font-size: 15px; color: var(--text-3); margin-bottom: 10px; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 80px; }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-copy { flex: 1 1 460px; min-width: 0; }
.hero .lede { font-size: 20px; color: var(--text-2); max-width: 30em; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.hero-actions .email { font-weight: 600; }
.print { margin: 0; padding: 12px; background: var(--white); border: 1px solid var(--line); }
.print img { width: 100%; height: auto; }
.print figcaption { margin-top: 10px; font-size: 14px; color: var(--text-3); }
.hero .print { flex: 1 1 520px; min-width: 0; }
.hero .print img { aspect-ratio: 3 / 2; object-fit: cover; }

/* ---------- Gold lettering band ---------- */
.lettering-band { background: var(--gold); padding: 56px 0; }
.lettering-band .wrap { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 28px clamp(28px, 6vw, 72px); }
.lettering-band img { width: clamp(150px, 26vw, 250px); height: auto; }

/* ---------- Columns with a top rule (how it works, why say yes) ---------- */
.ruled { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); column-gap: 32px; border-top: 3px solid var(--purple); }
.ruled > div { padding: 26px 0 10px; }
.ruled h3 { margin-bottom: 8px; }
.ruled p { color: var(--text-2); margin: 0; }
.reasons > div { border-bottom: 1px solid var(--line); padding-bottom: 26px; }

/* ---------- Shelves ---------- */
.shelf-line { font-family: var(--serif); font-weight: 500; font-size: clamp(1.35rem, 2.4vw, 1.8rem); line-height: 1.5; max-width: 34em; margin: 0 0 40px; }
.shelf-line .ask { color: var(--purple); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 4px; text-underline-offset: 6px; }
.products img { width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: cover; }
@media (max-width: 700px) { .products img { aspect-ratio: 4 / 3; object-position: 85% 50%; } }

/* ---------- Places ---------- */
.place-icons { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.place-icons li { display: flex; align-items: center; gap: 16px; background: var(--cream); border: 1px solid var(--line); padding: 20px; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; line-height: 1.25; }
.place-icons svg { flex: none; width: 44px; height: 44px; color: var(--purple); }
.note-small { font-size: 14px; color: var(--text-3); margin-top: 14px; }

/* ---------- About + Nana ---------- */
.split { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.split > .copy { flex: 1 1 440px; min-width: 0; max-width: 620px; }
.split .print { flex: 0 1 380px; min-width: 0; }
.tilt { transform: rotate(-1.5deg); }
.tilt-r { transform: rotate(1.5deg); }
.print svg { width: 100%; height: auto; display: block; }
.signoff { font-weight: 700; color: var(--purple); margin: 0; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; border-top: 3px solid var(--purple); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative;
  font-family: var(--serif); font-weight: 600; font-size: 1.3rem; line-height: 1.3; color: var(--ink);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-family: var(--sans); font-size: 28px; font-weight: 400; color: var(--purple); }
.faq-list details[open] summary::after { content: "–"; }
.faq-list .answer { padding: 0 48px 24px 0; color: var(--text-2); }
.faq-list .answer p { margin: 0; }
.faq-list .answer strong { color: var(--ink); }

/* ---------- Request form ---------- */
.request .wrap { display: flex; flex-wrap: wrap; gap: 56px; }
.request-intro { flex: 1 1 320px; min-width: 0; }
.request-intro p { color: var(--on-purple); }
.next-steps { list-style: none; counter-reset: n; padding: 0; margin: 28px 0; display: grid; gap: 14px; }
.next-steps li { counter-increment: n; display: grid; grid-template-columns: 34px 1fr; gap: 12px; color: var(--on-purple); }
.next-steps li::before { content: counter(n); width: 34px; height: 34px; display: grid; place-items: center; background: var(--gold); color: var(--ink); font-weight: 700; }
.next-steps strong { color: var(--cream); }
.request .form-card { flex: 2 1 560px; min-width: 0; }

.form-card { background: var(--cream); color: var(--ink); padding: 32px 26px 28px; border-radius: 2px; }
@media (min-width: 640px) { .form-card { padding: 40px 36px 34px; } }
.band-purple .form-card a { color: var(--purple); }
.fields { display: grid; gap: 18px; }
@media (min-width: 640px) { .fields { grid-template-columns: 1fr 1fr; } .field.full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field legend { font-weight: 600; font-size: 15px; color: var(--ink); }
.field .hint { font-size: 14px; color: var(--text-3); }
.field .opt { font-weight: 400; color: var(--text-3); }
input, select, textarea {
  font: inherit; font-size: 17px; color: var(--ink); background: var(--white);
  border: 1px solid #cdbf9f; border-radius: 2px; padding: 12px 14px; width: 100%; min-height: 50px;
}
textarea { min-height: 110px; resize: vertical; }
select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%232B1A42' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 12px center / 18px no-repeat; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(81, 43, 129, .2); }
input:user-invalid, textarea:user-invalid, select:user-invalid { border-color: #b3261e; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 24px; }
.form-foot .small { font-size: 14px; color: var(--text-3); margin: 0; flex: 1 1 220px; }
.form-error { color: #b3261e; font-weight: 600; margin: 14px 0 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-done { text-align: center; padding: 24px 8px; }
.form-done .big-check { width: 60px; height: 60px; margin: 0 auto 16px; background: var(--gold); display: grid; place-items: center; }
.form-done h3 { font-size: 1.6rem; color: var(--ink); }
.form-done p { margin: 0 auto; max-width: 28em; }
.is-hidden { display: none !important; }

/* ---------- Footer ---------- */
.site-footer { background: var(--purple-deep); color: var(--on-purple); font-size: 15px; }
.site-footer::after { content: ""; display: block; height: 18px; background: repeating-linear-gradient(90deg, var(--gold) 0 36px, var(--purple-deep) 36px 72px); }
.site-footer .wrap { padding-top: 52px; padding-bottom: 30px; }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot-logo img { height: 64px; width: auto; margin-bottom: 18px; }
.foot-tag { display: flex; align-items: flex-end; gap: 14px; }
.foot-tag img { width: 108px; height: auto; }
.site-footer h4 { color: var(--cream); margin: 0 0 12px; font-size: 14px; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-bottom { border-top: 1px solid rgba(255, 248, 233, .16); margin-top: 40px; padding-top: 18px; font-size: 14px; color: #c9bbdc; }

/* ---------- Sticky phone button ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--cream); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .25s ease;
}
.mobile-cta .btn { width: 100%; }
.mobile-cta.show { transform: none; }
@media (min-width: 900px) { .mobile-cta { display: none; } }

/* ---------- Help page ---------- */
.help-hero { padding: 48px 0 8px; }
.help-hero h1 { font-size: clamp(2rem, 6vw, 3rem); }
.help-hero .lede { font-size: 19px; color: var(--text-2); max-width: 34em; }
.promise { display: inline-block; background: var(--gold); color: var(--ink); font-weight: 700; padding: 10px 16px; }
.choices { display: grid; gap: 12px; margin: 28px 0 8px; border: 0; padding: 0; }
@media (min-width: 720px) { .choices { grid-template-columns: repeat(3, 1fr); } }
.choices legend { font-weight: 600; margin-bottom: 10px; padding: 0; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.choice label {
  display: flex; align-items: center; gap: 14px; cursor: pointer; min-height: 72px;
  background: var(--white); border: 2px solid var(--purple); border-radius: 2px;
  padding: 16px 18px; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--purple);
}
.choice label svg { flex: none; width: 32px; height: 32px; }
.choice label small { display: block; font-family: var(--sans); font-size: 14px; color: var(--text-3); margin-top: 2px; }
.choice input:checked + label { background: var(--purple); color: var(--cream); }
.choice input:checked + label small { color: var(--on-purple); }
.choice input:focus-visible + label { outline: 3px solid var(--gold); outline-offset: 3px; }
.help-form { margin: 18px 0 64px; }
.help-form .form-card { background: var(--white); border: 1px solid var(--line); }
.help-contact { padding: 0 0 72px; }
.note { background: var(--white); border: 1px solid var(--line); padding: 26px 24px; max-width: 640px; }
.note h3 { font-size: 1.4rem; }

/* ---------- Legal + 404 ---------- */
.legal { padding: 56px 0 88px; }
.legal .wrap { max-width: 800px; }
.legal h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); }
.legal h2 { font-size: 1.6rem; margin-top: 2em; }
.legal .updated { color: var(--text-3); font-weight: 600; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }
