/* 16 Kids 'n a Crunch — see DESIGN.md. The market table: cream banner, black tablecloth, teal 2014 stamp. */
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("/assets/fonts/nunito-sans.woff2") format("woff2"); font-weight: 200 1000; font-style: normal; font-display: swap; }

:root {
  --ink: #1E1D1B;          /* tablecloth charcoal */
  --cream: #F6F1E7;        /* banner cream */
  --label: #FFFDF8;        /* label white */
  --teal: #5FB69C;         /* logo teal (on charcoal) */
  --teal-mid: #3E9A80;     /* figures on cream */
  --teal-deep: #276B57;    /* links/text on cream */
  --kraft: #C9A57A;
  --chalk: #E9DCC4;
  --grey: #5C564C;
  --line: #DCD2BF;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* one spacing scale */
  --s1: .5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2.5rem; --s5: 4rem; --s6: 6rem;
  --radius: 4px;
  --shadow: 0 10px 22px -12px rgba(30, 29, 27, .45);
  --wrap: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1.125rem/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-deep); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--ink); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.1; margin: 0 0 var(--s2); letter-spacing: -.01em; font-variation-settings: "SOFT" 100, "WONK" 1; }
h1 { font-size: clamp(2.4rem, 6.4vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 var(--s2); }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.measure { max-width: 66ch; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--cream); padding: var(--s1) var(--s2); z-index: 10; }
.skip:focus { left: var(--s2); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* buttons: banner vinyl, square-ish */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.4rem; border-radius: var(--radius); border: 2px solid var(--ink);
  background: var(--ink); color: var(--cream); font: 800 1rem/1.2 var(--sans); letter-spacing: .02em; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, transform .15s; }
.btn:hover { background: var(--teal); color: var(--ink); border-color: var(--teal); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn--teal { background: var(--teal); border-color: var(--teal); color: var(--ink); }
.btn--teal:hover { background: var(--cream); border-color: var(--cream); }
.actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }

/* header */
.site-head { background: var(--cream); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding-block: .6rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); }
.brand img { width: 58px; height: 58px; border-radius: var(--radius); }
.brand span { font: 700 1.15rem/1.1 var(--serif); }
.brand small { display: block; font: 600 .78rem/1.3 var(--sans); color: var(--grey); letter-spacing: .06em; }
.nav-toggle { display: none; }
.menu-btn { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .4rem .9rem; border: 2px solid var(--ink); border-radius: var(--radius); font: 800 .95rem var(--sans); cursor: pointer; background: transparent; color: var(--ink); }
.site-nav { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: .7rem 0; color: var(--ink); text-decoration: none; font-weight: 700; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--teal); text-decoration-thickness: 3px; text-underline-offset: .35em; }
.site-nav a:hover { color: var(--teal-deep); }
.site-nav .nav-order { margin-top: var(--s1); }
.site-nav .nav-order a { display: inline-flex; color: var(--cream); padding: .6rem 1.2rem; }
.site-nav .nav-order a:hover { color: var(--ink); }
.nav-toggle:checked ~ .site-nav { display: block; flex-basis: 100%; padding-bottom: var(--s2); }
.site-head .wrap { flex-wrap: wrap; }
.nav-toggle:focus-visible + .menu-btn { outline: 3px solid var(--teal); outline-offset: 3px; }
@media (min-width: 900px) {
  .menu-btn { display: none; }
  .site-head .wrap { flex-wrap: nowrap; }
  .site-nav, .nav-toggle:checked ~ .site-nav { display: block; flex-basis: auto; padding: 0; }
  .site-nav ul { display: flex; align-items: center; gap: var(--s3); }
  .site-nav a { padding: .5rem 0; }
  .site-nav .nav-order { margin: 0; }
}

/* the sixteen kids */
.kids { width: 100%; max-width: 30rem; height: auto; }
.kids--small { max-width: 16rem; }

/* HOME 1: banner hero */
.hero { padding: var(--s4) 0 var(--s5); }
.hero .wrap { display: grid; gap: var(--s4); align-items: center; }
.hero-name { font: 800 clamp(1.2rem, 2.6vw, 1.5rem)/1 var(--serif); letter-spacing: .14em; text-transform: uppercase; margin: var(--s2) 0 var(--s2); color: var(--teal-deep); }
.hero h1 { max-width: 13ch; }
.hero-lede { font-size: 1.2rem; color: var(--grey); max-width: 38ch; }
.hero-photo { justify-self: center; width: min(100%, 26rem); background: var(--kraft); padding: .8rem .8rem 2.6rem; border-radius: var(--radius); box-shadow: var(--shadow); transform: rotate(1.5deg); }
.hero-photo img { border-radius: 2px; aspect-ratio: 3 / 4; object-fit: cover; }
.hero-photo figcaption { font: italic 500 1rem/1.3 var(--serif); color: var(--ink); text-align: center; margin-top: .7rem; }
@media (min-width: 860px) {
  .hero .wrap { grid-template-columns: 1.25fr 1fr; }
  .hero-photo { justify-self: end; }
}

/* HOME 2: the vinyl banner on the tablecloth */
.tablecloth { background: var(--ink); padding: var(--s5) 0; }
.vinyl { position: relative; max-width: 54rem; margin-inline: auto; background: var(--label); color: var(--ink); border-radius: var(--radius); text-align: center; overflow: hidden; box-shadow: var(--shadow); }
.vinyl-body { padding: var(--s4) var(--s3) var(--s3); }
.vinyl h2 { font-weight: 900; text-transform: uppercase; letter-spacing: .02em; font-size: clamp(2rem, 6vw, 3.6rem); margin-bottom: var(--s1); }
.vinyl .quip { font: italic 500 clamp(1.1rem, 2.4vw, 1.4rem)/1.35 var(--serif); margin-bottom: var(--s3); }
.freefrom { list-style: none; padding: 0; margin: 0 0 var(--s1); display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem 1.1rem; font: 700 clamp(1.25rem, 3.4vw, 1.9rem)/1.3 var(--serif); }
.freefrom li + li::before { content: "*"; color: var(--teal-mid); margin-right: 1.1rem; }
.vinyl .nos { font-weight: 700; color: var(--grey); margin: 0; }
.vinyl-foot { background: var(--ink); color: var(--cream); font: 900 clamp(1.6rem, 5vw, 2.6rem)/1 var(--serif); letter-spacing: .06em; text-transform: uppercase; padding: 1rem var(--s2); border-top: 6px solid var(--teal); }
.flake { position: absolute; width: 4.5rem; height: 4.5rem; color: var(--kraft); opacity: .7; }
.flake--l { top: 1rem; left: 1rem; } .flake--r { top: 1rem; right: 1rem; }
@media (max-width: 600px) { .flake { display: none; } }

/* HOME 3: what's in it */
.inside { padding: var(--s6) 0 var(--s5); }
.inside .wrap { display: grid; gap: var(--s4); align-items: start; }
.bio-quote { margin: 0; }
.bio-quote p { font: italic 500 clamp(1.6rem, 3.6vw, 2.4rem)/1.25 var(--serif); margin: 0 0 var(--s2); }
.bio-quote .tbc { color: var(--grey); }
.bio-quote footer { font-weight: 700; color: var(--grey); }
.chalkboard { background: var(--ink); color: var(--chalk); border-radius: var(--radius); padding: var(--s3) var(--s4) var(--s3); border: 10px solid #6E5A40; box-shadow: var(--shadow); }
.chalkboard h2, .chalkboard h3 { color: var(--label); text-transform: uppercase; letter-spacing: .1em; font-size: 1.35rem; text-align: center; border-bottom: 2px dashed rgba(233, 220, 196, .45); padding-bottom: .6rem; }
.chalkboard ul { list-style: none; padding: 0; margin: 0; text-align: center; font: italic 500 1.35rem/1.65 var(--serif); }
.allergen { margin-top: var(--s2); font-size: 1rem; color: var(--grey); padding-left: 1rem; border-left: 4px solid var(--kraft); }
@media (min-width: 860px) { .inside .wrap { grid-template-columns: 1.3fr 1fr; gap: var(--s5); } }

/* HOME 4: next market ticket */
.market { padding: var(--s5) 0; border-top: 1px solid var(--line); }
.ticket { display: grid; background: var(--label); border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.ticket-date { background: var(--teal); color: var(--ink); padding: var(--s3); display: flex; flex-direction: column; justify-content: center; }
.ticket-date .month { font: 800 1.2rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.ticket-date .days { font: 900 clamp(3.5rem, 11vw, 6rem)/.95 var(--serif); letter-spacing: -.03em; }
.ticket-date .year { font-weight: 800; }
.ticket-info { padding: var(--s3); border-top: 2px dashed var(--ink); }
.ticket-info h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.ticket-info address { font-style: normal; margin-bottom: var(--s2); }
.ticket-info .samples { display: inline-block; background: var(--ink); color: var(--cream); font: 800 .95rem var(--serif); letter-spacing: .08em; text-transform: uppercase; padding: .3rem .7rem; border-radius: var(--radius); margin-bottom: var(--s2); }
@media (min-width: 760px) {
  .ticket { grid-template-columns: minmax(14rem, 1fr) 2fr; }
  .ticket-info { border-top: 0; border-left: 2px dashed var(--ink); padding: var(--s4); }
  .ticket-date { padding: var(--s4); }
}
.market-photo { margin: var(--s4) 0 0; }
.market-photo img { width: 100%; max-width: 1200px; border-radius: var(--radius); box-shadow: var(--shadow); }
.market-photo figcaption, .cap { font-size: .95rem; color: var(--grey); margin-top: .6rem; }

/* HOME 5: kraft order band */
.kraft-band { background: var(--kraft); padding: var(--s4) 0; }
.kraft-band .wrap { display: grid; gap: var(--s2) var(--s4); align-items: center; }
.kraft-band h2 { margin: 0 0 .4rem; }
.kraft-band p { margin: 0; max-width: 52ch; }
@media (min-width: 860px) { .kraft-band .wrap { grid-template-columns: 1fr auto; } }

/* HOME 6: story teaser */
.stamp-row { padding: var(--s6) 0; }
.stamp-row .wrap { display: grid; gap: var(--s4); align-items: center; }
.stamp { width: 12rem; border-radius: var(--radius); transform: rotate(-3deg); box-shadow: var(--shadow); }
.facts { list-style: none; padding: 0; margin: 0 0 var(--s3); display: grid; gap: var(--s2); }
.facts li { border-top: 2px solid var(--ink); padding-top: .5rem; }
.facts strong { display: block; font: 800 1.9rem/1.1 var(--serif); }
.facts span { color: var(--grey); }
@media (min-width: 760px) {
  .stamp-row .wrap { grid-template-columns: auto 1fr; }
  .facts { grid-template-columns: repeat(3, 1fr); }
}

/* placeholder note: clearly marked, to be filled in */
.todo { background: repeating-linear-gradient(-45deg, transparent 0 10px, rgba(201, 165, 122, .14) 10px 20px), var(--label); border: 2px dashed var(--kraft); border-radius: var(--radius); padding: var(--s2) var(--s3); color: var(--grey); font-size: 1rem; }
.todo strong { color: var(--ink); }

/* inner pages: headers vary by page */
.page-head { padding: var(--s5) 0 var(--s4); }
.page-head .kicker { font-weight: 800; color: var(--teal-deep); letter-spacing: .12em; text-transform: uppercase; font-size: .9rem; margin-bottom: var(--s1); }
.page-head p.lede { font-size: 1.25rem; color: var(--grey); max-width: 46ch; }
.page-head--split .wrap { display: grid; gap: var(--s4); align-items: end; }
@media (min-width: 860px) { .page-head--split .wrap { grid-template-columns: 1.2fr 1fr; } }
.page-head--dark { background: var(--ink); color: var(--cream); }
.page-head--dark .kicker { color: var(--teal); }
.page-head--dark p.lede { color: var(--chalk); }
.page-head--dark a { color: var(--teal); }
.page-head--kraft { background: var(--kraft); }
.page-head--kraft p.lede { color: var(--ink); }
.page-head--story { text-align: center; padding-top: var(--s4); }
.page-head--story h1 { margin-inline: auto; max-width: 16ch; }
.page-head--story .kids { margin: 0 auto var(--s3); }
.page-head--story p.lede { margin-inline: auto; }

.section { padding: var(--s5) 0; }
.section + .section { border-top: 1px solid var(--line); }
.article { max-width: 66ch; margin-inline: auto; }
.article h2 { margin-top: var(--s4); }
.pull { margin: var(--s4) 0; padding: var(--s2) 0 var(--s2) var(--s3); border-left: 6px solid var(--teal); font: italic 600 clamp(1.5rem, 3.4vw, 2.2rem)/1.25 var(--serif); }
.pull cite { display: block; font: 700 1rem var(--sans); font-style: normal; color: var(--grey); margin-top: .6rem; }

/* product page */
.product { display: grid; gap: var(--s4); align-items: start; }
@media (min-width: 860px) { .product { grid-template-columns: 1fr 1fr; gap: var(--s5); } }
.checks { list-style: none; padding: 0; margin: 0 0 var(--s3); }
.checks li { padding: .55rem 0 .55rem 2rem; border-bottom: 1px solid var(--line); position: relative; font-weight: 700; }
.checks li::before { content: ""; position: absolute; left: .2rem; top: .95rem; width: .9rem; height: .5rem; border-left: 3px solid var(--teal-deep); border-bottom: 3px solid var(--teal-deep); transform: rotate(-45deg); }
.table-list { columns: 2 14rem; column-gap: var(--s4); padding: 0; list-style: none; margin: 0 0 var(--s3); }
.table-list li { break-inside: avoid; padding: .5rem 0; border-bottom: 1px dotted var(--grey); }
.framed { background: var(--label); padding: .7rem; border-radius: var(--radius); box-shadow: var(--shadow); margin: 0; }
.framed img { border-radius: 2px; width: 100%; }
.framed figcaption { font-size: .95rem; color: var(--grey); padding: .6rem .2rem 0; }

/* gallery of market days */
.market-days { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); align-items: start; }
.market-days figure:nth-child(2) { transform: rotate(-1deg); }
.market-days figure:nth-child(3) { transform: rotate(1deg); }

/* market list */
.events { list-style: none; padding: 0; margin: 0; }
.event { display: grid; grid-template-columns: 5.5rem 1fr; gap: var(--s3); padding: var(--s3) 0; border-bottom: 2px solid var(--ink); }
.event:first-child { border-top: 2px solid var(--ink); }
.event .when { font: 900 1.1rem/1.05 var(--serif); text-transform: uppercase; }
.event .when b { display: block; font-size: 2.2rem; }
.event h3 { margin-bottom: .3rem; }
.event p { margin-bottom: .4rem; }
.event--tbc { color: var(--grey); }

/* forms */
.form-card { background: var(--label); border: 2px solid var(--ink); border-radius: var(--radius); padding: var(--s3); }
@media (min-width: 700px) { .form-card { padding: var(--s4); } }
.field { margin-bottom: var(--s2); }
.field label, .field legend { display: block; font-weight: 800; margin-bottom: .35rem; }
.field .hint { font-weight: 400; color: var(--grey); font-size: .95rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink); background: #fff; border: 2px solid #8C8476; border-radius: var(--radius); padding: .7rem .8rem; min-height: 48px; }
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--teal); outline-offset: 1px; border-color: var(--ink); }
.row-2 { display: grid; gap: 0 var(--s2); }
@media (min-width: 600px) { .row-2 { grid-template-columns: 1fr 1fr; } }
fieldset.field { border: 0; padding: 0; margin: 0 0 var(--s2); }
.choices { display: grid; gap: .5rem; }
.choices label { display: flex; align-items: center; gap: .6rem; font-weight: 600; margin: 0; min-height: 44px; padding: .4rem .8rem; border: 2px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; }
.choices input { width: 1.2rem; height: 1.2rem; min-height: 0; accent-color: var(--teal-deep); margin: 0; }
.choices label:has(input:checked) { border-color: var(--ink); }
[data-hp-form-status] { font-weight: 700; }
.contact-grid { display: grid; gap: var(--s4); align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.3fr; gap: var(--s5); } }
.links-list { list-style: none; padding: 0; margin: 0 0 var(--s3); }
.links-list li { padding: .7rem 0; border-bottom: 1px solid var(--line); }
.links-list a { font-weight: 800; }
.links-list span { display: block; color: var(--grey); font-size: .95rem; }

/* footer: the tablecloth */
.site-foot { background: var(--ink); color: var(--chalk); padding: var(--s5) 0 var(--s4); margin-top: 0; }
.site-foot a { color: var(--label); }
.site-foot a:hover { color: var(--teal); }
.foot-grid { display: grid; gap: var(--s4); }
.foot-brand p { font: italic 500 1.5rem/1.3 var(--serif); color: var(--label); margin: var(--s2) 0 .3rem; max-width: 22ch; }
.foot-brand small { color: var(--chalk); font-size: .95rem; }
.site-foot h2 { font: 800 .9rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: var(--s1); }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li a { display: inline-block; padding: .35rem 0; }
.foot-base { margin-top: var(--s4); padding-top: var(--s2); border-top: 1px solid rgba(233, 220, 196, .25); font-size: .95rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s1) var(--s3); }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr; } }

/* 404 */
.lost { text-align: center; padding: var(--s6) 0; }
.lost h1 { max-width: 16ch; margin-inline: auto; }
.lost .kids { margin: 0 auto var(--s3); opacity: .9; }
.lost .actions { justify-content: center; }

/* ---- design pass (REVIEW/) ---- */
h1, h2, h3 { text-wrap: balance; }
p, li, figcaption { text-wrap: pretty; }

/* hero on phones: real product photo + call to action inside the first screen */
@media (max-width: 859px) {
  .hero { padding: var(--s3) 0 var(--s4); }
  .hero .wrap { gap: var(--s3); }
  .hero .kids { max-width: 22rem; }
  .hero-name { margin: var(--s1) 0 .6rem; }
  .hero h1 { font-size: clamp(2.1rem, 9.4vw, 3rem); max-width: none; margin-bottom: .6rem; }
  .hero-lede { font-size: 1.08rem; margin-bottom: 0; }
  .hero .actions { margin-top: var(--s2); gap: .6rem; flex-wrap: nowrap; }
  .hero .btn { padding-inline: 1rem; white-space: nowrap; }
  .hero-photo { width: 100%; max-width: 30rem; padding: .6rem .6rem 2.1rem; transform: rotate(-1deg); }
  .hero-photo img { aspect-ratio: 4 / 3; object-position: 50% 74%; }
  .hero-photo figcaption { margin-top: .45rem; }
}

@media (max-width: 369px) { .hero .actions { flex-wrap: wrap; } }

/* vinyl banner: no white strip under FREE SAMPLES; free-from list stacks on phones */
.vinyl-foot { margin: 0; }
.vinyl h2 { font-size: clamp(1.75rem, 7vw, 3.6rem); }
@media (max-width: 520px) {
  .freefrom { flex-direction: column; gap: .1rem; }
  .freefrom li + li::before { content: none; }
  .tablecloth { padding: var(--s4) 0; }
}

/* chalkboard reads shorter on phones */
@media (max-width: 600px) {
  .chalkboard { padding: var(--s2) var(--s2) var(--s3); }
  .chalkboard ul { columns: 2; column-gap: var(--s2); font-size: 1.15rem; }
  .inside { padding: var(--s5) 0 var(--s4); }
  .stamp-row { padding: var(--s5) 0; }
  .stamp { width: 9rem; }
}
@media (min-width: 860px) { .inside .wrap { align-items: center; } }

/* articles keep their side margins on phones */
.article { width: min(100% - 2.5rem, 66ch); }
.page-head--story { padding-bottom: var(--s2); }
.page-head--story + .section { padding-top: var(--s3); }

/* placeholders breathe before the next heading */
.todo { margin-block: var(--s3); }

/* market list: the date never splits */
.event { grid-template-columns: 6.5rem 1fr; }
.event .when b { white-space: nowrap; font-size: 2rem; }
@media (max-width: 420px) { .event { grid-template-columns: 5.4rem 1fr; gap: var(--s2); } .event .when b { font-size: 1.6rem; } }

/* framed photos in page headers */
.framed--wide { max-width: 32rem; justify-self: end; }
.framed--wide img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 72%; }
@media (max-width: 859px) { .framed--wide { justify-self: stretch; max-width: none; } .framed--wide img { aspect-ratio: 4 / 3; object-position: 50% 74%; } }
.framed--small { max-width: 30rem; }
.framed--tilt { transform: rotate(1.5deg); max-width: 32rem; justify-self: end; }
.page-head--dark .framed figcaption { color: var(--grey); }
.page-head--dark.page-head--split .wrap { align-items: center; }
@media (max-width: 859px) { .framed--tilt { transform: none; justify-self: stretch; } .page-head--dark.page-head--split .framed { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover { transform: none; }
}
