/* ===========================================================
   Toasty Peel Shop
   Palette and type from Toasty_Peel_Corrected_Brand_Guide:
   Toast #F6C453 / Burnt Orange #D86636 / Cream #F7E8C6 / Dark Brown #28211D
   Display: Lilita One  Body: Nunito Sans  Accent: Kalam  UI: Fredoka
   =========================================================== */

:root {
  --toast: #F6C453;
  --orange: #D86636;
  --cream: #F7E8C6;
  --brown: #28211D;
  --paper: #FDF7E7;
  --crust: #C0552A;
  --ink-soft: rgba(40, 33, 29, 0.72);

  --line: 3px;
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-pill: 999px;

  --pop: 6px 6px 0 var(--brown);
  --pop-sm: 4px 4px 0 var(--brown);
  --pop-lift: 9px 9px 0 var(--brown);

  --wrap: 1180px;
  --gap: clamp(20px, 3vw, 34px);
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--brown);
  font-family: "Nunito Sans", system-ui, sans-serif;
  font-size: clamp(1rem, 0.35vw + 0.95rem, 1.125rem);
  line-height: 1.6;
  text-wrap: pretty;
  background-image: radial-gradient(var(--toast) 1.4px, transparent 1.5px);
  background-size: 22px 22px;
  background-attachment: fixed;
}

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

a { color: var(--crust); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--brown); text-decoration-color: var(--orange); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--toast); color: var(--brown); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--brown); color: var(--cream); padding: 12px 18px; border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px); }
.wrap--narrow { max-width: 760px; }

h1, h2, h3, .display {
  font-family: "Lilita One", "Nunito Sans", sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.94;
  text-transform: uppercase;
  margin: 0;
}

.display { font-size: clamp(2.6rem, 7.4vw, 5rem); }
.display--sm { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h2.section-title { font-size: clamp(1.8rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); }

.kicker {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--crust);
  margin: 0 0 14px;
}

.lede { font-size: clamp(1.06rem, 1.1vw + 0.85rem, 1.4rem); max-width: 56ch; color: var(--ink-soft); }
.hand { font-family: "Kalam", cursive; font-size: 1.25rem; line-height: 1.35; }

.rule { height: var(--line); background: var(--brown); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Fredoka", sans-serif; font-weight: 600;
  font-size: 1rem; letter-spacing: 0.02em;
  padding: 14px 24px; min-height: 48px;
  border: var(--line) solid var(--brown);
  border-radius: var(--r-pill);
  background: var(--paper); color: var(--brown);
  text-decoration: none;
  box-shadow: var(--pop-sm);
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--pop); color: var(--brown); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--brown); }
.btn--primary { background: var(--orange); color: var(--paper); }
.btn--primary:hover { background: var(--crust); color: var(--paper); }
.btn--toast { background: var(--toast); }
.btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }
.btnrow { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ---------- header ---------- */
.bar {
  position: sticky; top: 0; z-index: 40;
  background: var(--cream);
  border-bottom: var(--line) solid var(--brown);
}
.bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.bar__brand { display: block; line-height: 0; }
.bar__brand img { width: clamp(116px, 13vw, 156px); }
.nav ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 9px 16px; min-height: 44px; display: flex; align-items: center;
  font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 0.95rem;
  color: var(--brown); text-decoration: none;
  border: var(--line) solid transparent; border-radius: var(--r-pill);
}
.nav a:hover { background: var(--toast); border-color: var(--brown); }
.nav a[aria-current="page"] { background: var(--orange); color: var(--paper); border-color: var(--brown); }
.nav__toggle {
  display: none; align-items: center; gap: 10px;
  background: var(--paper); border: var(--line) solid var(--brown); border-radius: var(--r-pill);
  padding: 10px 18px; min-height: 46px; cursor: pointer;
  font-family: "Fredoka", sans-serif; font-weight: 600; color: var(--brown);
}
.nav__toggle span { display: block; width: 20px; height: 3px; background: var(--brown); border-radius: 2px; }
.nav__toggle em { font-style: normal; }

/* ---------- separator stripe ---------- */
.stripe {
  height: 18px;
  background: var(--orange);
  background-image: radial-gradient(var(--toast) 1.6px, transparent 1.7px);
  background-size: 14px 14px;
  background-position: center;
  border-bottom: var(--line) solid var(--brown);
}
/* ---------- hero ---------- */
.hero { padding: clamp(40px, 6vw, 78px) 0 clamp(30px, 4vw, 56px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: var(--gap); align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero__art { position: relative; display: grid; place-items: center; }
.hero__blob {
  position: absolute; inset: 6% 4%;
  background: var(--toast);
  border: var(--line) solid var(--brown);
  border-radius: 46% 54% 52% 48% / 52% 46% 54% 48%;
  box-shadow: var(--pop-lift);
}
.hero__art img { position: relative; width: min(78%, 400px); }
.hero__tag {
  position: absolute; right: 0; bottom: 2%;
  background: var(--paper); border: var(--line) solid var(--brown); border-radius: var(--r-md);
  box-shadow: var(--pop-sm); padding: 10px 16px; transform: rotate(-4deg);
  font-family: "Kalam", cursive; font-size: 1.05rem;
}

/* ---------- bands and sections ---------- */
.band { padding: clamp(44px, 6vw, 82px) 0; }
.band--toast { background: var(--toast); border-block: var(--line) solid var(--brown); }
.band--orange { background: var(--orange); color: var(--paper); border-block: var(--line) solid var(--brown); }
.band--orange .kicker { color: var(--toast); }
.band--orange .lede { color: rgba(253, 247, 231, 0.92); }
.band--paper { background: var(--paper); border-block: var(--line) solid var(--brown); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: clamp(24px, 3vw, 40px); }

/* ---------- grids and cards ---------- */
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }

.card {
  position: relative;
  background: var(--paper);
  border: var(--line) solid var(--brown);
  border-radius: var(--r-lg);
  box-shadow: var(--pop-sm);
  padding: 26px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translate(-3px, -3px); box-shadow: var(--pop-lift); }
.card__peel {
  position: absolute; top: 0; right: 0; width: 40px; height: 40px;
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  border-top-right-radius: var(--r-lg);
  background: linear-gradient(45deg, transparent 0 calc(50% - 1.5px), var(--brown) calc(50% - 1.5px) calc(50% + 1.5px), var(--cream) calc(50% + 1.5px));
  transition: width 0.22s ease, height 0.22s ease;
  pointer-events: none;
}
.card:hover .card__peel, .card:focus-within .card__peel { width: 62px; height: 62px; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--ink-soft); }

.sticker { text-align: left; }
.sticker__shot {
  display: grid; place-items: center;
  background: var(--cream);
  border: var(--line) solid var(--brown);
  border-radius: var(--r-md);
  aspect-ratio: 1 / 1;
  margin-bottom: 18px;
  padding: 16px;
  overflow: hidden;
}
.sticker__shot img { width: 78%; filter: drop-shadow(0 6px 0 rgba(40, 33, 29, 0.14)); transition: transform 0.25s ease; }
.card:hover .sticker__shot img { transform: rotate(-3deg) scale(1.04); }
.sticker__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; list-style: none; padding: 0; }
.sticker__meta li {
  font-family: "Fredoka", sans-serif; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--toast); border: 2px solid var(--brown); border-radius: var(--r-pill); padding: 4px 11px;
}
.sticker__meta li.is-soon { background: var(--paper); }

/* value / pose row */
.pose { text-align: left; }
.pose img { width: min(190px, 70%); margin-bottom: 16px; }
.pose h3 { margin-bottom: 8px; }
.pose p { color: var(--ink-soft); margin: 0; }
.band--toast .pose p { color: var(--brown); }

/* numbered how-it-works */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { position: relative; padding-left: 74px; margin-bottom: 30px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: -4px;
  width: 52px; height: 52px; display: grid; place-items: center;
  background: var(--toast); border: var(--line) solid var(--brown); border-radius: var(--r-pill);
  font-family: "Lilita One", sans-serif; font-size: 1.5rem;
}
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; color: var(--ink-soft); }

/* ---------- faq ---------- */
.faq { display: grid; gap: 14px; max-width: 820px; }
.faq details {
  background: var(--paper); border: var(--line) solid var(--brown); border-radius: var(--r-md);
  box-shadow: var(--pop-sm); padding: 4px 22px;
}
.faq summary {
  font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.05rem;
  padding: 16px 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: "Lilita One", sans-serif; font-size: 1.6rem; line-height: 1; color: var(--orange); }
.faq details[open] summary::after { content: "\2013"; }
.faq details > div { padding-bottom: 18px; color: var(--ink-soft); }
.faq details > div p { margin: 0; }

/* ---------- forms ---------- */
.form { display: grid; gap: 20px; max-width: 720px; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 0.95rem; }
.field span { font-size: 0.85rem; color: var(--ink-soft); }
.input {
  font: inherit; color: var(--brown);
  background: var(--paper);
  border: var(--line) solid var(--brown); border-radius: var(--r-sm);
  padding: 13px 15px; min-height: 50px; width: 100%;
}
textarea.input { min-height: 150px; resize: vertical; }
.input:focus { background: #fff; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice {
  display: inline-flex; align-items: center; gap: 9px;
  border: var(--line) solid var(--brown); border-radius: var(--r-pill);
  background: var(--paper); padding: 10px 16px; min-height: 46px; cursor: pointer;
  font-family: "Fredoka", sans-serif; font-size: 0.95rem;
}
.choice:has(input:checked) { background: var(--toast); box-shadow: var(--pop-sm); }
.note {
  background: var(--toast); border: var(--line) solid var(--brown); border-radius: var(--r-md);
  padding: 14px 18px; margin: 0 0 4px; font-size: 0.95rem;
}
.note code { background: var(--paper); border: 2px solid var(--brown); border-radius: 5px; padding: 1px 6px; font-size: 0.9em; }

.formcard {
  background: var(--paper); border: var(--line) solid var(--brown); border-radius: var(--r-lg);
  box-shadow: var(--pop); padding: clamp(24px, 3vw, 40px); position: relative;
}

/* ---------- page head / posts ---------- */
.phead { padding: clamp(36px, 5vw, 70px) 0 clamp(28px, 4vw, 48px); }
.phead .lede { margin-top: 20px; }
.post { padding: clamp(36px, 5vw, 70px) 0; }
.post .display--sm { margin-bottom: 24px; }
.prose { font-size: 1.08rem; }
.prose h2 { font-size: 1.6rem; margin: 34px 0 12px; }
.prose p { margin: 0 0 18px; }
.prose ul { padding-left: 22px; margin: 0 0 18px; }
.prose li { margin-bottom: 8px; }
.backlink { margin-top: 36px; font-family: "Fredoka", sans-serif; }

.postlist { display: grid; gap: var(--gap); list-style: none; margin: 0; padding: 0; }
.postlist h3 { font-size: clamp(1.3rem, 2.4vw, 1.9rem); margin-bottom: 10px; }
.postlist .kicker { margin-bottom: 10px; }
.postlist a.more { font-family: "Fredoka", sans-serif; display: inline-block; margin-top: 14px; }

/* ---------- cta ---------- */
.cta__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: var(--gap); align-items: center; }
.cta__art img { width: min(240px, 80%); margin-left: auto; }

/* ---------- footer ---------- */
.foot { background: var(--brown); color: var(--cream); border-top: var(--line) solid var(--brown); margin-top: 0; }
.foot__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: var(--gap); padding-block: clamp(40px, 5vw, 64px); }
.foot__brand img { width: 180px; margin-bottom: 18px; }
.foot__brand .hand { color: var(--toast); margin: 0; }
.foot__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 28px; }
.foot h2 { font-size: 0.82rem; letter-spacing: 0.2em; color: var(--toast); margin-bottom: 14px; font-family: "Fredoka", sans-serif; font-weight: 600; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot a { color: var(--cream); text-decoration: none; }
.foot a:hover { color: var(--toast); text-decoration: underline; }
.foot__rule { height: var(--line); background: var(--orange); }
.foot__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-block: 20px; font-size: 0.85rem; color: rgba(247, 232, 198, 0.75); }
.foot__meta p { margin: 0; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.is-in { opacity: 1; transform: none; }
.bob { animation: bob 4.5s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-12px) rotate(1.5deg); } }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .hero__grid, .cta__grid, .foot__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__art { order: -1; }
  .cta__art img { margin: 0 auto; }
}

@media (max-width: 760px) {
  .nav__toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--cream); border-bottom: var(--line) solid var(--brown);
    padding: 14px clamp(18px, 4vw, 40px) 20px;
    display: none;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 4px; }
  .bar__inner { position: relative; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .bob { animation: none; }
  .card, .btn, .sticker__shot img { transition: none; }
}
