/* Demand test 2, family recipe books: the child brand's one page. The designer, 16 November 2026.
   A proposal for Mike; nothing here is live. Paper, not the parent's dark screen. One colour scheme:
   the page is paper in every setting, because the thing is a printed book.
   Fonts: Libre Baskerville (headings, the name) and Public Sans (everything else), both SIL Open Font
   License 1.1, from the files the Company already holds; on the real site they are served from its own address. */

@font-face { font-family: "Libre Baskerville"; src: url("/fonts/libre-baskerville/LibreBaskerville.ttf") format("truetype"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Libre Baskerville"; src: url("/fonts/libre-baskerville/LibreBaskerville-Italic.ttf") format("truetype"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/fonts/public-sans/PublicSans.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }

:root {
  --paper: #fbf6ea;   /* the page */
  --card: #fffdf7;    /* a recipe card, a form field, the book's pages */
  --panel: #f1e6d2;   /* the warm block behind the offer and the footer */
  --ink: #2b241c;     /* text */
  --muted: #6b6257;   /* small print, labels */
  --tomato: #a8361c;  /* the one accent: the button, links, the name's underline */
  --rule: #dccfb8;    /* lines only */
  --biro: #2c4f8f;    /* the handwriting in the picture only, never text */
  --side: 24px;
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 19px/1.55 "Public Sans", sans-serif; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--tomato); text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-family: "Libre Baskerville", Georgia, serif; font-weight: 700; margin: 0; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }

.wrap { max-width: 1100px; margin: 0 auto; padding-left: var(--side); padding-right: var(--side); }

/* Header: the name set in type, with a drawn underline, and one line saying what this is. */
header.top { padding: 22px 0 18px; }
header.top .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.name { font: 400 28px/1 "Libre Baskerville", Georgia, serif; color: var(--ink); text-decoration: none; display: inline-block; position: relative; padding-bottom: 10px; }
.name svg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 8px; }
.tag { font-size: 15px; color: var(--muted); }

/* The offer: the words on the left, the picture on the right, on one warm panel. */
.offer { background: var(--panel); padding: 36px 0 44px; }
.offer .wrap { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
.offer h1 { font-size: 32px; line-height: 1.15; margin-bottom: 10px; }
.offer .when { font-family: "Libre Baskerville", Georgia, serif; font-size: 20px; margin-bottom: 26px; }
.offer h2 { font-size: 22px; margin-bottom: 8px; }
.offer .price { font-size: 20px; margin: 14px 0 22px; }
.offer .price strong { font-family: "Libre Baskerville", Georgia, serif; font-size: 28px; font-weight: 700; }
.offer .actions { margin: 0; }
.art { width: 100%; max-width: 560px; margin: 0 auto; }

/* Being straight with you: five short points, then one sentence. */
.straight { padding: 40px 0 8px; }
.straight h2 { font-size: 28px; margin-bottom: 14px; }
.straight ul { margin: 0 0 18px; padding-left: 1.2em; max-width: 760px; }
.straight li { margin-bottom: 10px; }
.straight .aside { max-width: 760px; font-style: italic; font-family: "Libre Baskerville", Georgia, serif; font-size: 18px; }

/* The form block: one field, one button, then what happens to the address. */
.reserve-block { padding: 32px 0 44px; }
.reserve-block h2 { font-size: 28px; margin-bottom: 12px; }
.reserve-block > .wrap > p { max-width: 760px; }
.reserve-block h3 { font-size: 20px; margin: 26px 0 8px; }
.reserve-block ol { margin: 0 0 18px; padding-left: 1.4em; max-width: 760px; }
.reserve-block ol li { margin-bottom: 8px; }
form.reserve { display: flex; flex-direction: column; gap: 10px; max-width: 620px; background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 18px; }
form.reserve label { font-size: 16px; font-weight: 600; }
form.reserve .row { display: flex; flex-direction: column; gap: 10px; }
form.reserve input[type="email"] { font: inherit; font-size: 18px; padding: 13px 14px; border: 2px solid var(--rule); border-radius: 8px; background: var(--paper); color: var(--ink); min-width: 0; flex: 1 1 auto; }
form.reserve input[type="email"]:focus { outline: 3px solid var(--tomato); outline-offset: 2px; border-color: var(--tomato); }
.button { display: inline-block; font: 700 18px/1 "Public Sans", sans-serif; background: var(--tomato); color: #fffdf7; border: 0; border-radius: 8px; padding: 16px 24px; cursor: pointer; text-decoration: none; text-align: center; white-space: nowrap; }
.button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* Footer: one line. */
footer.foot { background: var(--panel); border-top: 1px solid var(--rule); padding: 26px 0 32px; font-size: 15px; color: var(--muted); }
footer.foot p { margin: 0; max-width: 760px; }

@media (min-width: 720px) {
  :root { --side: 40px; }
  form.reserve .row { flex-direction: row; }
}
@media (min-width: 900px) {
  .offer { padding: 52px 0 56px; }
  .offer .wrap { grid-template-columns: 1.05fr 0.95fr; gap: 48px; }
  .offer h1 { font-size: 42px; }
  .name { font-size: 32px; }
}
@media (max-width: 719px) {
  .button { white-space: normal; }
  .offer .actions .button { display: block; }
}
@media (prefers-reduced-motion: no-preference) {
  /* Nothing moves on this page. Left here so a later addition has to opt in. */
}
