@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,600;9..144,700&display=swap');

:root {
  --ink: #30343b;
  --muted: #68707a;
  --white: #fffdfb;
  --paper: #f8f7f4;
  --blue: #cdebf4;
  --blue-strong: #75bfd3;
  --pink: #f8dbe2;
  --pink-strong: #eaa7b6;
  --grey: #e7e9ec;
  --line: #c9ced3;
  --shadow: 0 18px 50px rgba(67, 78, 88, .12);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
img { display: block; width: 100%; }
a { color: inherit; }

.site-header {
  max-width: 1400px;
  margin: 18px auto 0;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: "Fraunces", serif; font-size: 1.35rem; font-weight: 700; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px 14px 6px 14px; background: var(--pink); font-family: "DM Sans", sans-serif; font-size: .85rem; font-weight: 700; transform: rotate(-3deg); }
nav { display: flex; gap: 30px; }
nav a { text-decoration: none; font-size: .86rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; border-bottom: 2px solid transparent; }
nav a:hover, nav a:focus-visible { border-color: var(--pink-strong); }

.hero { max-width: 1400px; min-height: 680px; margin: 8px auto 80px; padding: 70px clamp(28px, 6vw, 92px); display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(30px, 6vw, 90px); background: var(--white); border: 1px solid var(--line); border-radius: 42px; overflow: hidden; }
.eyebrow { margin: 0 0 16px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow span { color: var(--pink-strong); }
h1, h2, h3, h4, p { overflow-wrap: anywhere; }
h1, h2 { font-family: "Fraunces", Georgia, serif; line-height: .98; letter-spacing: -.035em; }
h1 { margin: 0; font-size: clamp(4rem, 8vw, 7.5rem); }
h1 em { position: relative; color: #4a7380; font-style: normal; }
h1 em::after { content: ""; position: absolute; left: 2%; right: -2%; bottom: .02em; height: 10px; background: var(--pink); border-radius: 50%; z-index: -1; transform: rotate(-1deg); }
.intro { max-width: 580px; margin: 32px 0; color: var(--muted); font-size: clamp(1.15rem, 2vw, 1.4rem); }
.button { display: inline-flex; align-items: center; gap: 20px; padding: 15px 22px; background: var(--ink); color: white; border-radius: 14px 14px 14px 4px; text-decoration: none; font-weight: 700; transition: transform .2s, box-shadow .2s; }
.button:hover, .button:focus-visible { transform: translateY(-3px) rotate(-1deg); box-shadow: 7px 7px 0 var(--blue); }
.mini-note { max-width: 420px; margin-top: 38px; padding: 15px 18px; display: flex; align-items: center; gap: 14px; border: 1px dashed #9fa6ad; border-radius: 18px; transform: rotate(-1deg); }
.mini-note .mascot { width: 72px; height: 82px; flex: none; object-fit: contain; margin: -26px 0 -17px -8px; filter: drop-shadow(0 5px 5px rgba(48, 52, 59, .14)); }
.mini-note p { margin: 0; font-size: .85rem; line-height: 1.4; }

.hero-art { position: relative; min-height: 530px; }
.photo-card { margin: 0; position: absolute; background: white; box-shadow: var(--shadow); }
.photo-card img { aspect-ratio: 4/3; object-fit: cover; }
.photo-main { inset: 38px 18px 30px 6px; padding: 14px 14px 54px; border: 1px solid #c8cdd1; transform: rotate(2deg); }
.photo-main figcaption { position: absolute; bottom: 16px; left: 22px; font-family: "Fraunces", serif; font-size: 1.05rem; }
.sticker { position: absolute; z-index: 3; display: grid; place-items: center; text-align: center; font-size: .8rem; line-height: 1.25; box-shadow: 0 8px 22px rgba(50,50,60,.15); }
.sticker-blue { top: 8px; right: -4px; width: 118px; height: 118px; background: var(--blue); border-radius: 50%; transform: rotate(8deg); }
.sticker-pink { left: -24px; bottom: 6px; padding: 12px 19px; background: var(--pink); border: 2px solid var(--white); border-radius: 10px 20px 12px 17px; transform: rotate(-7deg); font-weight: 700; }
.scribble { position: absolute; border: 3px solid var(--pink-strong); opacity: .6; }
.scribble-one { inset: 10px 70px 58px -22px; border-radius: 45% 55% 48% 52%; transform: rotate(-5deg); }
.scribble-two { width: 150px; height: 55px; bottom: -4px; right: -30px; border-color: var(--blue-strong); border-left-color: transparent; border-right-color: transparent; border-radius: 50%; transform: rotate(-15deg); }

.recipe-section, .notes-section, .about-section { max-width: 1320px; margin: 0 auto 110px; padding: 0 28px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 40px; }
.section-heading h2, .notes-title h2, .about-section h2 { margin: 0; font-size: clamp(2.8rem, 5vw, 5rem); }
.section-heading > p { max-width: 460px; color: var(--muted); }
.recipe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.recipe-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s; }
.recipe-card:hover { transform: translateY(-6px); }
.pink-card { background: #fff4f6; }
.blue-card { background: #effaff; }
.grey-card { background: #f1f2f3; }
.image-wrap { position: relative; padding: 12px; }
.image-wrap img { aspect-ratio: 4/3; object-fit: cover; border-radius: 19px; }
.ingredient-poster { min-height: 270px; margin: 12px; padding: 28px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; background: var(--pink); border-radius: 19px; border: 1px dashed var(--pink-strong); }
.ingredient-poster::before, .ingredient-poster::after { content: ""; position: absolute; border-radius: 50%; background: var(--blue); }
.ingredient-poster::before { width: 120px; height: 120px; right: -28px; top: -32px; }
.ingredient-poster::after { width: 64px; height: 64px; left: -15px; bottom: 25px; background: var(--white); }
.poster-word { position: relative; z-index: 1; width: fit-content; font-family: "Fraunces", serif; font-size: clamp(2rem, 3.3vw, 3.4rem); font-weight: 700; line-height: .92; }
.word-one { transform: rotate(-4deg); }
.word-two { align-self: flex-end; color: #4a7380; transform: rotate(3deg); }
.word-three { font-size: clamp(1.5rem, 2.5vw, 2.5rem); border-bottom: 5px solid var(--white); transform: rotate(-1deg); }
.recipe-tag { position: absolute; z-index: 3; left: 24px; bottom: 23px; padding: 5px 11px; background: var(--white); border-radius: 99px; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.card-content { padding: 14px 24px 26px; }
.recipe-meta { margin: 0 0 4px; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.recipe-card h3 { margin: 4px 0 8px; font-family: "Fraunces", serif; font-size: 1.8rem; line-height: 1.15; }
.recipe-card h4 { margin: 14px 0 2px; }
.recipe-card p { margin-top: 0; }
details { border-top: 1px dashed #a9afb5; margin-top: 22px; padding-top: 13px; }
summary { display: flex; justify-content: space-between; cursor: pointer; font-weight: 700; list-style: none; }
summary::-webkit-details-marker { display: none; }
details[open] summary span { transform: rotate(45deg); }
.recipe-details { padding-top: 10px; font-size: .91rem; }
.recipe-details ol { padding-left: 20px; }
.recipe-details li + li { margin-top: 8px; }
.allergen-note { margin: 24px 0 0; color: var(--muted); font-size: .8rem; text-align: center; }

.notes-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(35px, 7vw, 110px); align-items: start; padding: 70px; background: var(--blue); border-radius: 36px 80px 36px 36px; }
.notes-title { position: relative; padding: 38px 28px; background: var(--white); box-shadow: 8px 9px 0 rgba(48,52,59,.12); transform: rotate(-2deg); }
.notes-title h2 { font-size: clamp(2.5rem, 4vw, 4.2rem); }
.tape { position: absolute; width: 120px; height: 28px; top: -13px; left: 50%; background: rgba(248,219,226,.8); transform: translateX(-50%) rotate(3deg); }
.note-list article { display: grid; grid-template-columns: 58px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px dashed rgba(48,52,59,.35); }
.note-list article:first-child { padding-top: 0; }
.note-list article:last-child { border: 0; }
.note-list article > span { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--pink); font-weight: 700; }
.note-list h3 { margin: 0; font-family: "Fraunces", serif; font-size: 1.45rem; }
.note-list p { margin: 4px 0 0; }

.about-section { min-height: 360px; display: grid; grid-template-columns: 150px .9fr 1.1fr; gap: 50px; align-items: center; padding: 70px; background: var(--pink); border: 1px solid var(--pink-strong); border-radius: 80px 30px 80px 30px; }
.about-mascot { position: relative; width: 150px; height: 150px; display: grid; place-items: center; background: var(--white); border-radius: 50%; border: 2px dashed var(--pink-strong); transform: rotate(-4deg); }
.about-mascot img { width: 105px; height: 126px; object-fit: contain; margin-top: -35px; filter: drop-shadow(0 5px 5px rgba(48, 52, 59, .14)); }
.about-mascot span { position: absolute; left: 50%; bottom: -20px; min-width: 132px; padding: 5px 9px; transform: translateX(-50%) rotate(3deg); background: var(--blue); border-radius: 10px; text-align: center; font-size: .68rem; font-weight: 700; line-height: 1.15; }
.about-section h2 { font-size: clamp(2.5rem, 4.5vw, 4.8rem); }
.about-section > p { font-size: 1.12rem; }

footer { max-width: 1320px; margin: 0 auto; padding: 40px 28px 55px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.footer-brand { color: var(--ink); font-size: 1rem; }
.footer-brand .brand-mark { width: 36px; height: 36px; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { min-height: 520px; }
  .recipe-grid { grid-template-columns: 1fr 1fr; }
  .recipe-card:last-child { grid-column: 1 / -1; max-width: calc(50% - 11px); }
  .notes-section { grid-template-columns: 1fr; }
  .about-section { grid-template-columns: 120px 1fr; }
  .about-section > p { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .site-header { align-items: flex-start; padding: 16px 20px; }
  .brand { font-size: 1.05rem; }
  .brand-mark { width: 38px; height: 38px; }
  nav { gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
  nav a { font-size: .68rem; }
  .hero { min-height: 0; margin: 2px 10px 65px; padding: 50px 25px; border-radius: 30px; }
  h1 { font-size: clamp(3.4rem, 17vw, 5rem); }
  .hero-art { min-height: 390px; }
  .photo-main { inset: 30px 4px 25px; }
  .sticker-blue { right: -18px; width: 94px; height: 94px; }
  .section-heading { display: block; }
  .recipe-grid { grid-template-columns: 1fr; }
  .recipe-card:last-child { grid-column: auto; max-width: none; }
  .recipe-section, .notes-section, .about-section { margin-bottom: 75px; padding-left: 20px; padding-right: 20px; }
  .notes-section { margin-left: 10px; margin-right: 10px; padding-top: 55px; padding-bottom: 55px; border-radius: 28px 55px 28px 28px; }
  .about-section { margin-left: 10px; margin-right: 10px; grid-template-columns: 1fr; gap: 25px; padding: 48px 28px; }
  .about-section > p { grid-column: auto; }
  footer { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.category-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.category-filters button { font: inherit; font-size: 1rem; font-weight: 600; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 99px; min-height: 44px; padding: 9px 18px; cursor: pointer; }
.category-filters button:hover { background: var(--blue); }
.category-filters button[aria-pressed="true"] { background: var(--ink); color: white; border-color: var(--ink); }
.category-filters button:focus-visible { outline: 3px solid #4a7380; outline-offset: 3px; }
.category-status { margin: 0 0 24px; color: var(--muted); font-size: 1rem; }
.recipe-card .recipe-categories { font-size: .875rem; line-height: 1.5; color: #4a5962; margin: 12px 0; }
[hidden] { display: none !important; }
@media (min-width: 681px) and (max-width: 960px) {
  .recipe-grid .recipe-card:last-child { grid-column: auto; max-width: none; }
}

.recipe-browse-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.carousel-arrows { display: flex; gap: 10px; margin-left: auto; }
.carousel-arrows button { width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--ink); font: inherit; font-size: 1.3rem; cursor: pointer; }
.carousel-arrows button:hover:not(:disabled) { background: var(--blue); }
.carousel-arrows button:disabled { opacity: .35; cursor: default; }
.carousel-arrows button:focus-visible, .more-recipes-card:focus-visible, .back-to-carousel:focus-visible, .recipe-carousel:focus-visible { outline: 3px solid #4a7380; outline-offset: 3px; }
.recipe-grid.recipe-carousel { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding: 8px 4px 24px; align-items: stretch; }
.recipe-carousel > .recipe-card, .recipe-carousel > .more-recipes-card { flex: 0 0 clamp(260px, 29vw, 360px); max-width: none; scroll-snap-align: start; }
.recipe-carousel .recipe-card:hover { transform: none; }
.more-recipes-card { display: flex; align-items: center; justify-content: center; min-height: 320px; padding: 30px; text-align: center; background: var(--blue); border: 1px dashed #4a7380; border-radius: var(--radius); font-family: "Fraunces", Georgia, serif; font-size: 1.6rem; text-decoration: none; }
.more-recipes-card:hover { background: var(--pink); }
.back-to-carousel { font-weight: 600; text-underline-offset: 4px; }
@media (max-width: 680px) {
  .recipe-carousel > .recipe-card, .recipe-carousel > .more-recipes-card { flex-basis: 82%; }
}

.reading-page{max-width:820px;margin:40px auto 80px;padding:0 24px;overflow-wrap:break-word}.reading-page h1{font-family:Fraunces,serif;font-size:clamp(2.2rem,6vw,3.8rem);line-height:1.15;margin:24px 0}.reading-lead{font-size:1.2rem;color:#4c5660}.reading-page h2{font-family:Fraunces,serif;font-size:1.55rem;margin:36px 0 14px}.reading-page li{margin:12px 0}.reading-page figure{margin:28px 0}.recipe-hero{max-height:430px;object-fit:cover;border-radius:20px}.reading-page figcaption,.editorial-note{font-size:.9rem;color:#59616a}.editorial-note{padding:20px;background:#e7e9ec;border-radius:12px;margin:30px 0}.recipe-page-link{display:inline-block;margin:15px 0 5px;font-weight:700;text-underline-offset:4px}.notes-more{max-width:1200px;margin:0 auto;padding:0 28px}a:focus-visible,button:focus-visible{outline:3px solid #286f87;outline-offset:4px}@media print{.site-header,footer,.recipe-hero{display:none}.reading-page{margin:0;max-width:none;color:#000}.reading-page a{color:#000}}
