/* ===== Little Bear — shared styles ===== */
:root {
  --cream: #f7f2e9;
  --ink: #2e2b24;
  --brown: #6b4a30;
  --gold: #a9783f;
  --gold-text: #8a6a24;
  --button: #9b7558;
  --line: rgba(46, 43, 36, 0.18);
  --field-bg: #fdfcf9;
  --field-line: #5c5851;
  --body-olive: #55533f;
  --font-display: 'Crimson Pro', Georgia, serif;
  --font-body: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --font-logo: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
  --font-plain: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font-body); }
img { max-width: 100%; }
a { color: inherit; }

.page { position: relative; max-width: 1080px; margin: 0 auto; padding: 24px 40px 40px; }
.page::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url(images/bg-art.png) center 120px / min(1100px, 100%) no-repeat; opacity: .55;
}
.page > * { position: relative; z-index: 1; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ===== Top navigation ===== */
.topnav { display: flex; justify-content: flex-end; gap: 32px; padding-bottom: 8px; }
.topnav a {
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  color: var(--gold-text); font-weight: 500; padding: 6px 0; border-bottom: 1px solid transparent;
}
.topnav a:hover, .topnav a[aria-current="page"] { border-bottom-color: var(--gold-text); }

/* ===== Header / hero ===== */
.site-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: start; padding-top: 24px; }
.eyebrow { font-family: var(--font-plain); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 22px; }
.hero-heading { font-family: var(--font-display); font-weight: 500; font-size: 55px; line-height: 1.2; letter-spacing: .01em; word-spacing: .06em; margin: 0; color: var(--ink); }
.hero-rule { width: 55px; height: 1px; background: var(--gold); margin: 34px 0 40px; }
.hero-copy { font-family: var(--font-plain); font-size: 12px; line-height: 1.7; font-weight: 700; letter-spacing: .06em; color: var(--gold-text); margin: 0; max-width: 430px; }

/* ===== Logo block ===== */
.logo-block { display: inline-flex; flex-direction: column; align-items: flex-start; text-decoration: none; color: #000; }
.bear-logo { width: 170px; height: auto; display: block; margin-bottom: 6px; }
.logo-text { font-family: var(--font-logo); font-weight: 800; font-size: 44px; line-height: 1.05; letter-spacing: .01em; color: #000; white-space: nowrap; }
.logo-art { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 8px; }
.logo-art .script-logo { width: 170px; height: auto; display: block; }
.logo-art .standing-bear { width: 112px; height: auto; display: block; }
.logo-sub { font-family: var(--font-body); font-weight: 400; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: #000; white-space: nowrap; margin-top: 4px; }
.logo-flag { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; gap: 10px; color: #000; }
.logo-flag-text { font-family: var(--font-body); font-weight: 500; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.flag-icon { height: 26px; width: auto; display: block; flex-shrink: 0; }

/* ===== Section headings / copy ===== */
.page-title { font-family: var(--font-logo); font-weight: 800; font-size: 40px; letter-spacing: .09em; text-align: center; margin: 44px 0 28px; text-transform: uppercase; color: var(--ink); }
.lead-copy { font-size: 18px; line-height: 1.45; margin: 0 0 18px; color: #000; }
.lead-copy strong { font-weight: 600; }
.notice-line { text-align: center; text-transform: uppercase; font-size: 15px; letter-spacing: .02em; margin: 34px 0; color: var(--ink); }
.notice-line strong { font-weight: 600; }

/* Story / values / contact body copy */
.prose { font-family: var(--font-plain); font-weight: 700; font-size: 16px; line-height: 1.55; letter-spacing: .05em; color: var(--body-olive); margin-top: 36px; }
.prose p { margin: 0 0 16px; }
.next-step { margin: 36px 0 8px; text-align: center; }
.text-link { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-text); text-decoration: none; border-bottom: 1px solid var(--gold-text); padding-bottom: 2px; font-weight: 500; }

/* Contact */
.contact-mail { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 56px 0 24px; font-family: var(--font-plain); font-weight: 700; font-size: 22px; letter-spacing: .06em; color: var(--body-olive); text-decoration: none; }
.contact-mail svg { width: 44px; height: 32px; flex-shrink: 0; }

/* ===== Landing ===== */
.cookie-link { display: block; width: min(300px, 70%); margin: 70px auto 10px; transition: transform .2s ease; }
.cookie-link img { width: 100%; height: auto; display: block; }
.cookie-link:hover { transform: scale(1.03); }
.cookie-caption { text-align: center; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-text); margin: 0 0 80px; }

/* ===== Selection page ===== */
.banner { margin: 28px -40px 0; background: var(--brown); border-top: 2px solid var(--gold); border-bottom: 2px solid var(--gold); display: grid; grid-template-columns: repeat(3, 1fr); gap: 76px; padding: 0; }
.banner figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 64px; margin: 0 auto; padding: 0 40px; max-width: 900px; }
.product-media { aspect-ratio: 1 / 1; margin-bottom: 18px; background: #fff; }
.product-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product h3 { font-family: var(--font-logo); font-weight: 700; font-size: 16px; margin: 0; color: #000; }
.product .tagline { font-size: 15px; font-weight: 500; margin: 2px 0 14px; }
.product p { font-size: 13px; line-height: 1.6; margin: 0 0 12px; }
.product .price { margin: 0 0 16px; text-align: center; }
.product .price-amount { display: block; font-family: var(--font-logo); font-weight: 700; font-size: 26px; line-height: 1.1; color: var(--ink); }
.product .price-note { display: block; font-size: 12px; color: var(--body-olive); margin-top: 4px; }
.product { display: flex; flex-direction: column; }
.product .actions { text-align: center; margin-top: auto; padding-top: 22px; }

.pay-button {
  display: inline-block; font-family: var(--font-body); font-weight: 600; font-size: 16px; letter-spacing: .05em; text-transform: uppercase;
  background: var(--button); color: #fff; border: none; border-radius: 999px; padding: 13px 40px; cursor: pointer; text-decoration: none; transition: background .15s ease;
}
.pay-button:hover { background: var(--brown); }
.pay-button[disabled] { opacity: .7; cursor: wait; }

/* ===== Checkout ===== */
.checkout-form { margin-top: 36px; }
.section-label { text-align: center; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 22px; }
.section-label strong { font-weight: 600; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; align-items: start; }
.col { display: grid; gap: 14px; align-content: start; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row-postal { grid-template-columns: .5fr 1fr; }
.field { position: relative; }
.field label { position: absolute; top: 8px; left: 14px; font-size: 12px; color: var(--ink); pointer-events: none; }
.field label .req { color: #c0261c; }
.field input { width: 100%; font-family: var(--font-body); font-size: 15px; padding: 26px 14px 8px; border: 1px solid var(--field-line); border-radius: 2px; background: var(--field-bg); color: var(--ink); }
.field input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.field input:user-invalid { border-color: #c0261c; }
.zone-hint { display: block; font-size: 12px; color: var(--brown); margin-top: 5px; min-height: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { background: #fdf1ee; border: 1px solid #c0261c; border-radius: 4px; padding: 12px 16px; margin: 0 0 22px; font-size: 14px; }
.thanks-block p { font-size: 18px; line-height: 1.45; margin: 0 0 18px; color: #000; }
.thanks-block .signoff { margin: 0; }
.signature { font-family: 'Caveat', 'Brush Script MT', cursive; font-size: 30px; line-height: 1; display: block; margin-top: 4px; }
.checkout-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-top: 30px; }
.checkout-note { font-size: 12px; line-height: 1.6; max-width: 380px; color: var(--ink); }
.checkout-note a { color: var(--brown); }
.summary { width: min(420px, 100%); margin-left: auto; font-size: 14px; }
.summary .line { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.summary .total { font-weight: 600; font-size: 16px; border-bottom: 2px solid var(--gold); }
.summary-actions { text-align: right; margin-top: 18px; }

/* ===== Legal pages ===== */
.legal { max-width: 760px; margin: 36px 0 0; font-size: 15px; line-height: 1.7; }
.legal h1 { font-family: var(--font-display); font-weight: 500; font-size: 34px; margin: 0 0 6px; }
.legal h2 { font-family: var(--font-logo); font-weight: 700; font-size: 16px; letter-spacing: .02em; margin: 30px 0 8px; }
.legal p, .legal li { margin: 0 0 10px; }
.legal ul { padding-left: 20px; margin: 0 0 12px; }
.legal .updated { color: var(--brown); font-size: 13px; margin-bottom: 20px; }
.todo { background: #fff2a8; padding: 0 3px; border-radius: 2px; }

/* ===== Footer ===== */
.site-footer { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--gold); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-text); }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 700; font-family: var(--font-plain); }
.footer-row a { color: var(--gold-text); text-decoration: none; }
.legal-links { display: flex; justify-content: center; gap: 24px; margin-top: 14px; }
.legal-links a, .legal-links button { color: var(--gold-text); text-decoration: none; font: inherit; letter-spacing: inherit; text-transform: inherit; background: none; border: 0; padding: 0; cursor: pointer; border-bottom: 1px solid transparent; }
.legal-links a:hover, .legal-links button:hover { border-bottom-color: var(--gold-text); }

/* ===== Cookie banner ===== */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 720px; margin: 0 auto; background: var(--field-bg); border: 1px solid var(--gold); border-radius: 8px; padding: 16px 20px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; box-shadow: 0 4px 18px rgba(46,43,36,.15); }
.cookie-banner p { margin: 0; flex: 1 1 320px; font-size: 13px; line-height: 1.5; }
.cookie-banner a { color: var(--brown); }
.cookie-banner .btns { display: flex; gap: 10px; }
.cookie-banner button { font-family: var(--font-body); font-weight: 600; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; border-radius: 999px; padding: 9px 22px; cursor: pointer; border: 1px solid var(--button); }
.cookie-banner .accept { background: var(--button); color: #fff; }
.cookie-banner .decline { background: transparent; color: var(--brown); }

/* ===== Responsive ===== */
@media (max-width: 820px) {
  .page { padding: 20px 20px 32px; }
  .topnav { gap: 18px; flex-wrap: wrap; }
  .site-header { grid-template-columns: 1fr; gap: 24px; }
  .logo-col { order: -1; }
  .hero-heading { font-size: 38px; }
  .banner { margin: 28px -20px 0; gap: 8px; grid-template-columns: repeat(3, 1fr); }
  .products { grid-template-columns: 1fr; padding: 0; gap: 40px; }
  .form-grid, .row-2 { grid-template-columns: 1fr; }
  .row-postal { grid-template-columns: 1fr 1fr; }
  .checkout-foot { flex-direction: column; align-items: stretch; }
  .summary-actions { text-align: stretch; }
  .summary-actions .pay-button { width: 100%; }
  .page-title { font-size: 26px; letter-spacing: .05em; }
  .footer-row { flex-direction: column; text-align: center; }
  .legal-links { flex-wrap: wrap; gap: 14px 22px; }
}

/* ---------- Coffee page: story and box contents ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 56px; max-width: 900px; margin: 34px auto 0; padding: 26px 40px 0; border-top: 1px solid var(--gold); }
.story h3 { font-family: var(--font-logo); font-weight: 700; font-size: 16px; margin: 0 0 8px; color: #000; }
.story p { font-size: 15px; line-height: 1.6; margin: 0; color: #000; }
.product .contents-title { font-family: var(--font-logo); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; margin: 6px 0 6px; }
.box-contents { list-style: none; margin: 0 0 4px; padding: 0; font-size: 13px; line-height: 1.5; }
.box-contents li { position: relative; padding-left: 16px; margin-bottom: 4px; }
.box-contents li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
@media (max-width: 820px) { .story { grid-template-columns: 1fr; padding: 22px 0 0; } }

/* ---------- Back button on the information pages ---------- */
.back-row { margin: 8px 0 28px; }
.back-link { display: inline-block; font-family: var(--font-body); font-weight: 600; font-size: 14px; letter-spacing: .05em; text-transform: uppercase; color: var(--brown); text-decoration: none; border: 1.5px solid var(--gold); border-radius: 999px; padding: 8px 26px; }
.back-link:hover { background: var(--gold); color: #fff; }
.back-link:focus-visible { outline: 2px solid var(--brown); outline-offset: 3px; }

/* ---------- Landing page ---------- */
.landing::before { display: none; }
.landing-mark { display: flex; align-items: center; gap: 38px; }
.landing-mark .circle-logo { width: 198px; height: auto; display: block; }
.landing-mark .standing-bear { width: 138px; height: auto; display: block; }
.landing .cookie-link { width: min(320px, 78%); margin: 150px auto 130px; }
.landing .cookie-link:focus-visible { outline: 2px solid var(--brown); outline-offset: 6px; border-radius: 50%; }
@media (max-width: 820px) {
  .landing-mark { gap: 22px; justify-content: center; }
  .landing-mark .circle-logo { width: 140px; }
  .landing-mark .standing-bear { width: 96px; }
  .landing .cookie-link { width: min(280px, 80%); margin: 70px auto 80px; }
}

/* ---------- Coffee page banner: four slides, portrait images on phones ---------- */
.slider { margin: 48px -40px 0; border-top: 2px solid var(--gold); border-bottom: 2px solid var(--gold); background: #fff; }
.slides { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease, visibility 0s; }
.slide picture, .slide img { display: block; width: 100%; height: 100%; }
.slide img { object-fit: cover; }
.slide-text { position: absolute; color: var(--ink); }
.slide[data-pos="left"] .slide-text { left: 7%; top: 50%; transform: translateY(-50%); width: 34%; }
.slide[data-pos="top"] .slide-text { left: 50%; top: 4%; transform: translateX(-50%); width: 90%; text-align: center; }
.slide[data-pos="top"] .slide-title { font-size: clamp(22px, 2.6vw, 34px); margin-bottom: 6px; }
.slide-title { font-family: var(--font-logo); font-weight: 800; letter-spacing: .01em; font-size: clamp(26px, 3.6vw, 44px); line-height: 1.1; margin: 0 0 10px; }
.slide-sub { font-size: 15px; line-height: 1.55; color: var(--body-olive); margin: 0 0 18px; }
.slide-cta { font-size: 14px; padding: 11px 32px; }
.slider-controls { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 10px 0 12px; background: var(--cream); }
.slider-dots { display: flex; gap: 10px; }
.slider-dot { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--gold); background: transparent; padding: 0; cursor: pointer; }
.slider-dot[aria-current="true"] { background: var(--gold); }
.slider-arrow { background: none; border: none; font-size: 26px; line-height: 1; color: var(--brown); cursor: pointer; padding: 2px 8px; }
.slider button:focus-visible, .slide-cta:focus-visible { outline: 2px solid var(--brown); outline-offset: 3px; }

@media (max-width: 820px) {
  .slider { margin: 32px -20px 0; }
  .slides { aspect-ratio: 4 / 5; }
  .slide .slide-text, .slide[data-pos] .slide-text { left: 50%; top: 3%; transform: translateX(-50%); width: 88%; text-align: center; }
  .slide-title { font-size: 28px; margin-bottom: 6px; }
  .slide[data-pos="top"] .slide-title { font-size: 22px; margin-bottom: 4px; }
  .slide-sub { font-size: 13px; line-height: 1.45; margin-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { .cookie-link { transition: none; } .slide, .slide.is-active { transition: none; } }
