/* Goodness Granny: layout modeled on maryberry.co.uk (big photo, serif script headings with thin rules, pill buttons). Placeholder build, 2026-10-17. */
:root {
  --bg: #ffffff;
  --cream: #fbf6f1;
  --ink: #4f4a4d;
  --ink-soft: #7a7175;
  --rose: #a8687a;
  --rose-deep: #8a4e61;
  --sage: #6f8f7a;
  --sage-deep: #587463;
  --line: #d9c7cd;
  --footer: #3f3438;
  --footer-ink: #f1e6e9;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1f1a1c; --cream: #2a2326; --ink: #ece3e6; --ink-soft: #c2b4b9;
    --rose: #e0a2b3; --rose-deep: #eab7c5; --sage: #8fb19b; --sage-deep: #a5c4af;
    --line: #5a4950; --footer: #141012; --footer-ink: #f1e6e9;
  }
}
:root[data-theme="dark"] {
  --bg: #1f1a1c; --cream: #2a2326; --ink: #ece3e6; --ink-soft: #c2b4b9;
  --rose: #e0a2b3; --rose-deep: #eab7c5; --sage: #8fb19b; --sage-deep: #a5c4af;
  --line: #5a4950; --footer: #141012; --footer-ink: #f1e6e9;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Open Sans", Helvetica, Arial, sans-serif; font-size: 17px; line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage-deep); }

/* Header over the photo, like Mary Berry's */
.site-head { position: absolute; top: 0; left: 0; right: 0; z-index: 20; text-align: center; padding: 26px 16px 18px; background: linear-gradient(rgba(40,28,32,.55), rgba(40,28,32,0)); }
.site-head.solid { position: relative; background: var(--footer); }
.logo { display: inline-block; color: #fff; text-decoration: none; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; letter-spacing: .14em; font-size: clamp(30px, 6vw, 54px); line-height: 1; }
.logo .flower { font-size: .5em; vertical-align: middle; margin: 0 .25em; position: relative; top: -.1em; }
.menu-btn { display: block; margin: 14px auto 0; background: none; border: 0; color: #fff; cursor: pointer; font: 600 14px/1 "Open Sans", sans-serif; letter-spacing: .3em; }
.menu-btn .ring { display: block; width: 46px; height: 46px; margin: 0 auto 8px; border: 1.5px solid #fff; border-radius: 50%; position: relative; }
.menu-btn .ring::before, .menu-btn .ring::after, .menu-btn .ring span { content: ""; position: absolute; left: 13px; right: 13px; height: 1.5px; background: #fff; }
.menu-btn .ring::before { top: 16px; } .menu-btn .ring span { top: 22px; } .menu-btn .ring::after { top: 28px; }

.menu { position: fixed; inset: 0; background: rgba(63,52,56,.97); z-index: 50; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.menu.open { display: flex; }
.menu a { color: #fff; text-decoration: none; font-family: "Cormorant Garamond", Georgia, serif; font-size: 34px; }
.menu a:hover { color: #f3c6d2; }
.menu .close { position: absolute; top: 22px; right: 22px; background: none; border: 0; color: #fff; font-size: 36px; cursor: pointer; }

/* Hero photo */
.hero { position: relative; height: clamp(520px, 92vh, 860px); overflow: hidden; }
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.hero .caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 16px 40px; text-align: center; color: #fff; background: linear-gradient(rgba(40,28,32,0), rgba(40,28,32,.6)); }
.hero .caption p, .hero .caption h1 { margin: 0; font-weight: 400; line-height: 1.2; font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: clamp(24px, 4vw, 38px); }

/* Section headings: "Granny's *latest* devotional" with thin rules */
.sec { padding: 70px 16px; }
.sec.cream { background: var(--cream); }
.sec-title { text-align: center; color: var(--rose); font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; font-size: clamp(38px, 6vw, 56px); line-height: 1.1; margin: 0 auto 44px; max-width: 640px; }
.sec-title em { font-style: italic; }
.sec-title::after { content: ""; display: block; width: 110px; height: 1px; background: var(--line); margin: 22px auto 0; }
.sec-title .rule { display: block; height: 1px; background: var(--line); margin: 10px auto; max-width: 300px; }

.wrap { max-width: 1080px; margin: 0 auto; }
.narrow { max-width: 720px; margin: 0 auto; }

/* Feature: big photo with overlaid title, then text (like "Mary's latest book") */
.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.photo-title { position: relative; border-radius: 4px; overflow: hidden; aspect-ratio: 4 / 5; }
.photo-title img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.photo-title span { position: absolute; bottom: 0; right: 0; left: 0; padding: 50px 20px 18px; background: linear-gradient(rgba(0,0,0,0), rgba(40,28,32,.55)); text-align: right; color: #fff; font-size: 24px; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.feature h3 { font-family: "Cormorant Garamond", Georgia, serif; color: var(--rose); font-weight: 500; font-size: 46px; line-height: 1.1; margin: 0 0 6px; }
.feature .date { color: var(--ink-soft); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 18px; }
.feature p { font-size: 19px; margin: 0 0 18px; }
.verse { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: 24px; line-height: 1.45; color: var(--rose-deep); border-left: 2px solid var(--line); padding-left: 18px; margin: 0 0 20px; }
.verse cite { display: block; font-style: normal; font-family: "Open Sans", sans-serif; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-top: 6px; }
.more { color: var(--sage-deep); text-transform: uppercase; letter-spacing: .06em; font-size: 15px; text-decoration: none; }
.more:hover { text-decoration: underline; }

/* Row of small cards with arrows (like the book carousel) */
.carousel { position: relative; }
.track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 16px; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.card { scroll-snap-align: start; text-decoration: none; color: var(--sage-deep); text-align: center; }
.card img { aspect-ratio: 3 / 4; width: 100%; object-fit: cover; object-position: center 25%; border-radius: 4px; margin-bottom: 12px; }
.card .t { text-transform: uppercase; letter-spacing: .05em; font-size: 15px; line-height: 1.4; }
.card .d { color: var(--ink-soft); font-size: 13px; }
.arrow { position: absolute; top: 38%; background: none; border: 0; font-size: 54px; line-height: 1; color: #b9b2b5; cursor: pointer; padding: 0 6px; }
.arrow.prev { left: -46px; } .arrow.next { right: -46px; }

.pill { display: block; width: max-content; margin: 36px auto 0; background: var(--sage); color: #fff; text-decoration: none; text-transform: uppercase; letter-spacing: .06em; font-size: 17px; padding: 18px 46px; border-radius: 999px; }
.pill:hover { background: var(--sage-deep); }

/* Full-width photo with big title (like the featured recipe) */
.banner { position: relative; height: clamp(420px, 70vh, 640px); overflow: hidden; }
.banner img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.banner .over { position: absolute; left: 0; right: 0; bottom: 0; padding: 80px 16px 44px; color: #fff; background: linear-gradient(rgba(40,28,32,0), rgba(40,28,32,.7)); }
.banner h3 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; font-size: clamp(40px, 7vw, 72px); line-height: 1; margin: 0 0 10px; max-width: 1080px; margin-inline: auto; }
.banner p { max-width: 1080px; margin: 0 auto; font-size: 18px; }
.recipe-bits { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.recipe-bits h4 { font-family: "Cormorant Garamond", Georgia, serif; color: var(--rose); font-weight: 500; font-size: 30px; margin: 0 0 8px; }
.recipe-bits ul, .recipe-bits ol { margin: 0; padding-left: 20px; }

/* Welcome */
.welcome { display: grid; grid-template-columns: 300px 1fr; gap: 44px; align-items: center; }
.welcome img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; object-position: center 22%; }
.welcome p { font-size: 19px; margin: 0 0 14px; }
.sign { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; color: var(--rose); font-size: 30px; }

/* Devotional page */
.dev-hero { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 100%; height: clamp(460px, 78vh, 720px); overflow: hidden; }
.dev-hero > * { min-height: 0; }
.dev-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.dev-hero .txt { display: flex; flex-direction: column; justify-content: center; padding: 48px; background: var(--cream); }
.dev-hero h1 { font-family: "Cormorant Garamond", Georgia, serif; color: var(--rose); font-weight: 500; font-size: clamp(40px, 5vw, 60px); line-height: 1.05; margin: 0 0 12px; }
.body-text p { font-size: 19px; }
.body-text .hook { font-family: "Cormorant Garamond", Georgia, serif; font-size: 30px; line-height: 1.3; color: var(--rose-deep); }
.prayer { background: var(--cream); border-radius: 6px; padding: 24px 28px; margin: 30px 0; }
.prayer h2 { font-family: "Cormorant Garamond", Georgia, serif; color: var(--rose); font-weight: 500; font-size: 32px; margin: 0 0 8px; }
.prev-next { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; border-top: 1px solid var(--line); padding-top: 20px; }

/* Footer, like Mary Berry's small caps row */
footer { background: var(--footer); color: var(--footer-ink); text-align: center; padding: 48px 16px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
footer a { color: #fff; text-decoration: none; margin: 0 12px; display: inline-block; padding: 4px 0; }
footer a:hover { text-decoration: underline; }
footer .small { margin-top: 18px; color: #c9b8be; }

@media (max-width: 1180px) { .arrow { display: none; } }
@media (max-width: 820px) {
  .feature, .recipe-bits, .welcome, .dev-hero { grid-template-columns: 1fr; }
  .welcome img { max-width: 240px; margin: 0 auto; }
  .dev-hero .txt { padding: 32px 16px; }
  .dev-hero { height: auto; grid-template-rows: auto; }
  .dev-hero img { height: 62vh; }
  .sec { padding: 52px 16px; }
}

@media (max-width: 440px) { .logo { font-size: 27px; letter-spacing: .1em; } }

/* Granny recommends (2026-10-17) */
.hero.short { height: clamp(380px, 62vh, 620px); }
.hero.short img { object-position: center 8%; }
.jump { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; }
.jump a { text-decoration: none; color: var(--sage-deep); }
.rec-intro { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center; max-width: 820px; margin: -10px auto 40px; }
.rec-intro img { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; object-position: center 20%; }
.rec-intro p { font-size: 19px; margin: 0; font-style: italic; font-family: "Cormorant Garamond", Georgia, serif; font-size: 25px; line-height: 1.4; color: var(--rose-deep); }
.rec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.rec { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 26px 22px 22px; display: flex; flex-direction: column; }
.sec.cream .rec { background: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sec.cream .rec { background: var(--bg); } }
.rec-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--cream); display: grid; place-items: center; margin-bottom: 14px; }
.sec.cream .rec-icon { background: #f6ece6; }
.rec-icon svg { width: 22px; height: 22px; fill: var(--rose); }
.rec-kind { margin: 0 0 4px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.rec h3 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; color: var(--rose-deep); font-size: 27px; line-height: 1.15; margin: 0 0 10px; }
.rec-note { font-size: 16px; line-height: 1.6; margin: 0 0 18px; flex: 1; }
.rec-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.price { font-size: 15px; color: var(--ink); }
.price small { color: var(--ink-soft); font-size: 12px; }
.rec-btn { background: var(--sage); color: #fff; text-decoration: none; border-radius: 999px; padding: 9px 20px; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.rec-btn:hover { background: var(--sage-deep); }
@media (max-width: 820px) { .rec-intro { grid-template-columns: 1fr; text-align: center; } .rec-intro img { margin: 0 auto; width: 170px; height: 170px; } }

/* Recipe banner as a split on wider screens, so a tall photo never turns into a giant face (2026-10-17) */
@media (min-width: 821px) {
  .banner { display: grid; grid-template-columns: auto 1fr; grid-template-rows: 100%; height: clamp(460px, 70vh, 680px); background: var(--footer); }
  .banner > * { min-height: 0; }
  .banner img { width: auto; height: 100%; aspect-ratio: 1536 / 2367; object-fit: cover; }
  .banner .over { position: static; display: flex; flex-direction: column; justify-content: center; padding: 48px; background: none; }
  .banner h3, .banner p { margin-inline: 0; }
}

/* Product picture inside each Recommends card, button centered, no price (Lance, 2026-10-17) */
.rec-pic { display: block; background: #fff; border-radius: 8px; border: 1px solid var(--line); padding: 12px; margin: 0 0 18px; }
.rec-pic img { width: 100%; height: 190px; object-fit: contain; }
.rec-note { flex: 0 0 auto; }
.rec-foot { justify-content: center; margin-top: auto; }
.rec-note { flex: 1 0 auto; }
.rec-pic.cover { padding: 0; overflow: hidden; }
.rec-pic.cover img { height: 214px; object-fit: cover; }
.rec-foot { margin-top: 0; }
.rec-pic.cover img { height: auto; aspect-ratio: 16 / 8.5; object-fit: cover; }

/* Launch additions (2026-10-21): breadcrumbs, plain page titles, Follow Goodness Granny, footer icons */
.crumbs { margin: 0 0 14px; font-size: 14px; color: var(--ink-soft); }
.crumbs a { color: var(--sage-deep); text-decoration: none; }
.page-title { font-family: "Cormorant Garamond", Georgia, serif; color: var(--rose); font-weight: 500; font-size: clamp(40px, 5vw, 56px); line-height: 1.1; margin: 0 0 20px; }
.body-text > h2 { font-family: "Cormorant Garamond", Georgia, serif; color: var(--rose-deep); font-weight: 500; font-size: 30px; line-height: 1.2; margin: 34px 0 8px; }
.follow { text-align: center; }
.follow p { margin: 0 0 26px; font-size: 18px; }
.follow-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.follow-btn { display: inline-flex; align-items: center; gap: 12px; padding: 12px 24px 12px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--cream); color: var(--rose-deep); text-decoration: none; text-align: left; }
.follow-btn:hover { border-color: var(--rose); }
.follow-btn svg { width: 30px; height: 30px; flex: none; }
.follow-btn span { font-weight: 600; font-size: 17px; line-height: 1.25; }
.follow-btn small { display: block; font-weight: 400; font-size: 14px; color: var(--ink-soft); }
footer .social-row { margin: 0 0 22px; }
footer a.social-icon { margin: 0 8px; padding: 8px; }
footer .social-icon svg { width: 26px; height: 26px; display: block; }
footer a.email { text-transform: none; letter-spacing: .04em; font-size: 14px; }

/* Video player: the Short in a 9:16 frame that loads YouTube only on play (2026-10-21) */
.dev-date { color: var(--ink-soft); letter-spacing: .14em; text-transform: uppercase; font-size: 14px; margin: 0 0 10px; }
.vid-frame { position: relative; width: 100%; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: #000; align-self: start; }
.vid-frame img { width: 100%; height: 100%; object-fit: cover; }
.vid-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid-play { display: block; position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.vid-play:focus-visible { outline: 3px solid var(--rose); outline-offset: -3px; }
.play-icon { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: rgba(40,28,32,.62); display: grid; place-items: center; transition: transform .15s; }
.vid-play:hover .play-icon { transform: scale(1.08); }
.play-icon svg { width: 36px; height: 36px; fill: #fff; margin-left: 5px; }
.watch { display: flex; flex-wrap: wrap; gap: 12px; }
.watch-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--sage); color: #fff; text-decoration: none; border-radius: 999px; padding: 12px 24px 12px 18px; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.watch-btn:hover { background: var(--sage-deep); }
.watch-btn svg { width: 24px; height: 24px; flex: none; }
.watch-btn.alt { background: var(--bg); color: var(--rose-deep); border: 1px solid var(--line); }

/* Cards with a Video label, and the All devotionals page (2026-10-21) */
.card-pic { display: block; position: relative; margin-bottom: 12px; }
.card .card-pic img { margin-bottom: 0; }
.card .badge { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 4px; background: rgba(40,28,32,.72); color: #fff; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px 4px 7px; border-radius: 999px; }
.card .badge svg { width: 14px; height: 14px; fill: #fff; }
.arch-crumbs { text-align: center; }
.arch-intro { text-align: center; max-width: 620px; margin: -18px auto 40px; font-size: 18px; }
.dev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 36px 24px; }
@media (max-width: 520px) { .dev-grid { grid-template-columns: 1fr 1fr; gap: 28px 14px; } .card .t { font-size: 14px; } }

/* Video at the bottom of a devotional (2026-10-21) */
.vid-bottom { margin: 48px auto 0; max-width: 340px; text-align: center; }
.vid-bottom h2 { font-family: "Cormorant Garamond", Georgia, serif; color: var(--rose); font-weight: 500; font-size: 30px; margin: 0 0 18px; }
.vid-bottom .watch { justify-content: center; margin-top: 16px; }
