/* Miss Bonnie Cooks – shared styles. Large print, calm, one clear action per page. */
@font-face { font-family: "Lora"; src: url("fonts/Lora-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("fonts/Lora-Italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Lora"; src: url("fonts/Lora-Bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/Poppins-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/Poppins-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/Poppins-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  --cream: #FEF7E7;
  --paper: #FFFDF7;
  --brown: #4A2C17;
  --body: #3B2A1C;
  --grey: #6B5F55;
  --red: #B22A2E;
  --red-dark: #8E1F23;
  --blue: #3F5A80;
  --yellow: #F7D66F;
  --rule: #E3D3B8;
  --ok: #2F6B3A;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--body);
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  font-size: 21px;
  line-height: 1.6;
}

/* red-and-white gingham band, like her kitchen curtains */
.gingham {
  height: 36px;
  background-color: #fff;
  background-image:
    linear-gradient(90deg, rgba(178, 42, 46, .55) 50%, transparent 50%),
    linear-gradient(rgba(178, 42, 46, .55) 50%, transparent 50%);
  background-size: 18px 18px;
}

.page { max-width: 680px; margin: 0 auto; padding: 36px 20px 48px; }
.center { text-align: center; }

/* her round picture – a monogram shows until the photo file is added */
.portrait {
  width: 168px; height: 168px; margin: 0 auto 18px;
  border-radius: 50%; border: 6px solid var(--yellow);
  background: var(--paper); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(74, 44, 23, .12);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait .mono { font-family: "Lora", Georgia, serif; font-style: italic; font-size: 30px; color: var(--brown); line-height: 1.1; text-align: center; }
.portrait.small { width: 96px; height: 96px; border-width: 4px; margin: 0; flex: none; }
.portrait.small .mono { font-size: 18px; }

.kicker { font-family: "Lora", Georgia, serif; font-style: italic; color: var(--grey); font-size: 24px; margin: 0; }
h1 { font-family: "Lora", Georgia, serif; font-weight: 700; color: var(--brown); font-size: 44px; line-height: 1.15; margin: 4px 0 14px; }
h2 { font-family: "Lora", Georgia, serif; font-weight: 700; color: var(--brown); font-size: 30px; line-height: 1.2; margin: 0 0 8px; }
.lead { font-size: 22px; margin: 0 0 24px; }
.motto { font-family: "Lora", Georgia, serif; font-style: italic; font-size: 22px; color: var(--body); margin: 28px 0 0; }

/* the one big form */
.card {
  background: var(--paper); border: 2px solid var(--rule); border-radius: 18px;
  padding: 26px 24px; box-shadow: 0 6px 20px rgba(74, 44, 23, .08);
  border-top: 10px solid var(--yellow);
  text-align: left;
}
label { display: block; font-weight: 500; font-size: 21px; margin: 0 0 6px; color: var(--brown); }
.optional { font-weight: 400; color: var(--grey); font-size: 18px; }
input[type=text], input[type=email] {
  width: 100%; font: inherit; font-size: 22px; color: var(--body);
  padding: 14px 16px; border: 2px solid #CDB998; border-radius: 12px; background: #fff;
  margin: 0 0 20px;
}
input:focus { outline: 4px solid rgba(78, 104, 140, .35); border-color: var(--blue); }

.btn {
  display: block; width: 100%; text-align: center; text-decoration: none; cursor: pointer;
  font-family: "Poppins", Arial, sans-serif; font-weight: 700; font-size: 23px; line-height: 1.3;
  color: #fff; background: var(--red); border: 0; border-radius: 14px;
  padding: 18px 20px; min-height: 64px;
  box-shadow: 0 4px 0 var(--red-dark);
}
.btn:hover { background: #C2353A; }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--red-dark); }
.btn:focus-visible { outline: 4px solid var(--blue); outline-offset: 3px; }
.btn[disabled] { opacity: .7; cursor: wait; }
.btn.secondary { background: #fff; color: var(--red); border: 3px solid var(--red); box-shadow: none; }
.btn.secondary:hover { background: #FFF4F3; }
.btn + .btn { margin-top: 16px; }

.fine { font-size: 17px; color: var(--grey); margin: 16px 0 0; line-height: 1.5; }
.message { display: none; border-radius: 12px; padding: 14px 16px; margin: 0 0 18px; font-size: 19px; }
.message.show { display: block; }
.message.error { background: #FCE9E8; color: var(--red-dark); border: 2px solid #F0B9B6; }
.message.note { background: #EEF3FA; color: var(--blue); border: 2px solid #C9D6EA; }
.message a { color: inherit; font-weight: 700; }

/* hide the bot trap */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* what you get – three short promises */
.promises { list-style: none; padding: 0; margin: 0 0 26px; text-align: left; }
.promises li { padding-left: 38px; position: relative; margin: 0 0 10px; }
.promises li::before { content: "\2665"; position: absolute; left: 4px; top: 0; color: var(--red); font-size: 22px; }

/* Recipe Box */
.box-head { display: flex; align-items: center; gap: 18px; margin: 0 0 22px; }
.box-head h1 { font-size: 38px; margin: 0; }
.welcome { background: #FFF3C4; border: 2px solid var(--yellow); border-radius: 14px; padding: 16px 20px; margin: 0 0 26px; font-size: 21px; }
.welcome strong { color: var(--brown); }
.tile { background: var(--paper); border: 2px solid var(--rule); border-radius: 18px; padding: 22px 22px 24px; margin: 0 0 22px; border-left: 10px solid var(--red); }
.tile .from { font-size: 17px; color: var(--grey); margin: 0 0 2px; text-transform: uppercase; letter-spacing: .04em; font-weight: 500; }
.tile h2 { margin-bottom: 2px; }
.tile .sub { color: var(--red); font-weight: 500; margin: 0 0 12px; font-size: 19px; }
.tile details { margin: 0 0 16px; font-size: 19px; }
.tile summary { cursor: pointer; color: var(--blue); font-weight: 500; min-height: 44px; display: flex; align-items: center; }
.tile ol { margin: 6px 0 0; padding-left: 28px; }
.tile .watch { display: inline-block; margin-top: 12px; font-size: 19px; color: var(--blue); font-weight: 500; min-height: 44px; padding-top: 8px; }
.cookbook { background: var(--brown); color: #FFF6E3; border-radius: 18px; padding: 24px 24px 26px; margin: 34px 0 0; }
.cookbook h2 { color: #fff; }
.cookbook p { margin: 0 0 16px; }
.cookbook .btn { background: var(--yellow); color: var(--brown); box-shadow: 0 4px 0 #C9A740; }
.empty { text-align: center; color: var(--grey); padding: 30px 0; }

/* home + cookbook */
.choices { display: grid; gap: 18px; margin: 30px 0 0; }
.choice small { display: block; font-weight: 400; font-size: 17px; opacity: .9; }

footer { text-align: center; font-size: 16px; color: var(--grey); padding: 8px 20px 28px; line-height: 1.5; }
footer a { color: var(--grey); }

@media (max-width: 520px) {
  body { font-size: 20px; }
  h1 { font-size: 36px; }
  .box-head h1 { font-size: 30px; }
  .page { padding-top: 26px; }
  .portrait { width: 140px; height: 140px; }
}
