/* Nonna Fiora, the made-up brand's own website. Edited by hand.
   Two voices on one page. The brand speaks in the carton's colours and type:
   paperboard cream, the red band, the green stripe, a script wordmark.
   CPG Canary speaks in its own: deep slate, Figtree, the canary yellow.
   Nothing here comes from /site.css on purpose, so the brand does not look
   like CPG Canary. */

:root {
  --paper: #F3EBD8;
  --marble: #FAF6EE;
  --tomato: #A8281E;
  --tomato-deep: #8A1F17;
  --basil: #2F6B3C;
  --ink: #2A1B14;
  --soft: #66544A;
  --rule: #DFD3BA;
  --ember: #1D1411;
  --slate: #323F53;
  --slate-deep: #2A3546;
  --canary: #F2C230;
  --canary-soft: #FFE89A;
  --white: #FFFFFF;
  --script: 'Playball', 'Brush Script MT', cursive;
  --serif: 'Libre Caslon Text', Georgia, 'Times New Roman', serif;
  --sans: 'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --cc: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gl: max(20px, env(safe-area-inset-left, 0px));
  --gr: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); }
img, video { max-width: 100%; display: block; }
h1, h2, p, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--basil); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: var(--gl); padding-right: var(--gr); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--white); color: var(--ink); padding: 10px 14px; z-index: 50; }
.skip:focus { left: 12px; top: 12px; }

/* ── The red band and the green stripe, as on the carton ── */
.band { background: var(--tomato); color: var(--marble); border-bottom: 3px solid var(--marble); box-shadow: 0 7px 0 var(--basil); position: relative; z-index: 3; padding-top: env(safe-area-inset-top, 0px); }
.band__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.band__mark { font-family: var(--script); font-size: 30px; line-height: 1; text-decoration: none; padding: 6px 0; }
.band__links { display: flex; gap: 4px; }
.band__links a { display: none; align-items: center; min-height: 44px; padding: 0 12px; font-weight: 500; font-size: 16px; text-decoration: none; border-radius: 999px; }
.band__links a:last-child { display: inline-flex; }
.band__links a:hover { background: rgba(255, 255, 255, .14); }
.band :focus-visible { outline-color: var(--marble); }

/* ── Hero: the front of the box, at full size ── */
.hero { position: relative; background: #F1EBE0; margin-top: 7px; }
.hero__img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 88% 50%; }
.hero__in { padding-block: 26px 44px; }
.hero__text { display: grid; gap: 14px; justify-items: start; max-width: 33rem; }
.hero__mark { font-family: var(--script); color: var(--tomato); font-size: clamp(58px, 17vw, 104px); line-height: .95; margin-left: -3px; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(19px, 5.2vw, 27px); line-height: 1.25; letter-spacing: .09em; text-transform: uppercase; color: var(--ink); }
.hero__from { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--soft); margin-top: -6px; }
.hero__lede { font-size: 18.5px; max-width: 27em; margin-top: 6px; }
.spec { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 22px; font-weight: 600; font-size: 14.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink); border-block: 1.5px solid var(--ink); padding: 10px 0; width: 100%; }
.btn { display: inline-flex; align-items: center; min-height: 52px; padding: 12px 26px; border-radius: 999px; background: var(--tomato); color: var(--marble); font-weight: 600; font-size: 17px; text-decoration: none; margin-top: 6px; transition: background-color .2s ease; }
.btn:hover { background: var(--tomato-deep); }

/* ── The oven ── */
.film { background: var(--ember); color: var(--marble); }
.clip { position: relative; overflow: hidden; background: var(--ember); border-radius: 18px; min-width: 0; }
.clip video { width: 100%; height: auto; }
.clip--wide { border-radius: 0; max-height: 78vh; }
.clip--wide video { height: 100%; max-height: 78vh; object-fit: cover; }
.film__cap { padding-block: 22px 26px; }
.film__cap p { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 5.4vw, 34px); line-height: 1.25; text-wrap: balance; }

/* ── Sections ── */
.sec { padding-block: clamp(56px, 11vw, 104px); }
.sec--marble { background: var(--marble); border-block: 1px solid var(--rule); }
.copy { display: grid; gap: 16px; align-content: start; min-width: 0; }
.copy h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(29px, 6.6vw, 44px); line-height: 1.12; letter-spacing: -.01em; text-wrap: balance; color: var(--ink); }
.copy > p { max-width: 33em; font-size: 18px; }
.photo img { width: 100%; height: auto; border-radius: 18px; }

.story, .inside, .bake, .find { display: grid; gap: 30px; }
.story__clip { justify-self: stretch; }

.seven { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; border-top: 1.5px solid var(--ink); max-width: 30rem; }
.seven li { font-family: var(--serif); font-size: 19px; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.seven li:last-child { grid-column: 1 / -1; border-bottom: 1.5px solid var(--ink); }

.find__media { display: grid; gap: 14px; min-width: 0; }
.photo--tag { width: 62%; justify-self: start; margin-top: -9%; margin-left: -2%; position: relative; z-index: 1; rotate: -1.4deg; }
.photo--tag img { border: 6px solid var(--marble); box-shadow: 0 14px 30px rgba(42, 27, 20, .24); }

/* ── The brand's footer ── */
.foot { background: var(--ember); color: #E9DFCF; padding-block: 52px calc(168px + env(safe-area-inset-bottom, 0px)); border-top: 7px solid var(--basil); }
.foot__in { display: grid; gap: 10px; }
.foot__mark { font-family: var(--script); font-size: 54px; line-height: 1; color: var(--marble); }
.foot__line { font-family: var(--serif); font-style: italic; font-size: 18px; }
.foot__real { margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .22); display: grid; gap: 14px; font-family: var(--cc); font-size: 16px; max-width: 44em; }
.foot__real strong { color: var(--white); font-weight: 700; }
.foot__links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--canary-soft); font-weight: 600; text-underline-offset: 3px; }
.foot :focus-visible { outline-color: var(--canary); }

/* ── CPG Canary's voice: the bar and the notes ── */
.cc { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--slate-deep); color: var(--white); font-family: var(--cc); border-top: 3px solid var(--canary); padding-bottom: env(safe-area-inset-bottom, 0px); }
.cc__in { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px 12px; max-width: 1120px; margin: 0 auto; padding: 10px var(--gr) 10px var(--gl); }
.cc__bird { display: grid; place-items: center; width: 44px; height: 44px; }
.cc__text { font-size: 15.5px; line-height: 1.35; min-width: 0; }
.cc__text strong { font-weight: 700; }
.cc__text span { color: #D9DEE6; display: none; }
.cc__btn { grid-column: 1 / -1; min-height: 48px; padding: 10px 22px; border-radius: 999px; border: 0; background: var(--canary); color: var(--slate-deep); font: 700 16.5px var(--cc); cursor: pointer; }
.cc__btn[aria-pressed="true"] { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .85); }
.cc__link { display: none; align-items: center; min-height: 44px; color: var(--white); font-weight: 600; font-size: 15.5px; text-underline-offset: 3px; white-space: nowrap; }
.cc :focus-visible { outline-color: var(--canary); }

.note { font-family: var(--cc); background: var(--slate); color: var(--white); border-radius: 20px; padding: 16px 18px 14px; display: grid; gap: 9px; max-width: 34rem; width: 100%; box-shadow: 0 12px 28px rgba(42, 53, 70, .28); text-align: left; }
.note__by { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700; color: var(--canary-soft); }
.note__n { font: 700 13px/1 var(--cc); width: 22px; height: 22px; border-radius: 50%; background: var(--canary); color: var(--slate-deep); display: inline-grid; place-items: center; flex: none; }
.note blockquote { font-size: 17px; line-height: 1.45; font-weight: 500; font-style: normal; text-transform: none; letter-spacing: 0; }
.note blockquote em { font-style: italic; }
.note__src { font-size: 14.5px; color: #D9DEE6; }
.note__src a { color: var(--white); font-weight: 600; text-underline-offset: 3px; }
.note :focus-visible { outline-color: var(--canary); }
.hero__text .note { margin-top: 4px; }

/* With script the notes wait for the switch. Without it they simply show. */
.js .note { display: none; }
.js.notes-on .note { display: grid; animation: note-in .5s ease both; }
@keyframes note-in { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
/* The number rides on a no-break space so it never drops to a line of its own. */
.flag::after { content: "\00A0" attr(data-n) "\00A0"; display: none; margin-left: 5px; padding: 2px 2px; border-radius: 999px; background: var(--canary); color: var(--slate-deep); font: 700 13px/1 var(--cc); letter-spacing: 0; text-transform: none; vertical-align: .14em; }
.notes-on .flag, html:not(.js) .flag { background: linear-gradient(transparent 58%, var(--canary-soft) 58%); color: var(--ink); border-radius: 2px; }
.notes-on .flag::after, html:not(.js) .flag::after { display: inline; }
.notes-on .flag--quiet::after, html:not(.js) .flag--quiet::after { display: none; }
.film .flag { color: inherit; }
.notes-on .film .flag, html:not(.js) .film .flag { background: linear-gradient(transparent 60%, rgba(242, 194, 48, .5) 60%); color: var(--white); }

/* ── Wider screens ── */
@media (min-width: 560px) {
  .foot { padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px)); }
  .band__links a { display: inline-flex; }
  .cc__in { grid-template-columns: auto minmax(0, 1fr) auto auto; }
  .cc__btn { grid-column: auto; }
  .cc__link { display: inline-flex; }
  .cc__text span { display: inline; }
}
@media (min-width: 900px) {
  .hero { min-height: min(78vh, 760px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: stretch; }
  .hero__img { grid-column: 2; grid-row: 1; height: 100%; min-height: 560px; aspect-ratio: auto; object-position: 90% 50%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24%); mask-image: linear-gradient(90deg, transparent 0, #000 24%); }
  .hero__in { grid-column: 1; grid-row: 1; align-self: center; max-width: none; margin: 0; padding-block: 56px 64px; padding-left: max(var(--gl), calc((100vw - 1120px) / 2 + 20px)); padding-right: 12px; }
  .hero__text { max-width: 31rem; }
  .story { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px 64px; align-items: center; }
  .inside { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; align-items: center; }
  .bake { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; align-items: center; }
  .find { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
}

/* Moving from one page to the next cross-fades instead of flashing white.
   Both pages must carry this rule, so it lives here and in the Nonna Fiora
   stylesheet. Browsers without support load the page as before, and it is
   off for anyone who has asked for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .2s; }
}

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