/* Formular website styles
   Brand colors: change them here and the whole site updates. */
:root {
  --espresso: #2B1B17;
  --cream: #FFF4E6;
  --paper: #FFFBF5;
  --tangerine: #E8551E;
  --tangerine-deep: #B83F12;
  --lime: #C8DC3C;
  --cherry: #A8173A;
  --ice: #D6ECE8;
  --muted: #6B574D;
  --line: #E9D9C6;
  --brand: "Kanit", system-ui, sans-serif;
  --body: "DM Sans", "Kanit", system-ui, sans-serif;
  --kana: "M PLUS 1p", "Hiragino Sans", sans-serif;
  --wrap: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--espresso); font-family: var(--body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--tangerine-deep); }
a:hover { color: var(--espresso); }
h1, h2, h3 { font-family: var(--brand); font-weight: 900; margin: 0; line-height: 1; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.kana { font-family: var(--kana); font-weight: 800; letter-spacing: .3em; color: var(--tangerine-deep); font-size: 14px; }
.eyebrow { font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--tangerine-deep); }
.section-title { font-size: clamp(36px, 5vw, 52px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--tangerine); outline-offset: 3px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--brand); font-weight: 800; font-size: 17px; padding: 15px 28px; border-radius: 999px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s; }
.btn-primary { background: var(--tangerine); color: var(--espresso); }
.btn-primary:hover { background: var(--tangerine-deep); color: var(--cream); }
.btn-outline { border-color: var(--espresso); color: var(--espresso); background: transparent; }
.btn-outline:hover { background: var(--espresso); color: var(--cream); }
.btn-dark { background: var(--espresso); color: var(--cream); }
.btn-dark:hover { background: #4a3a33; color: var(--cream); }

/* Announcement bar + header */
.topbar { background: var(--espresso); color: var(--cream); text-align: center; padding: 10px 16px; font-size: 12px; font-weight: 700; letter-spacing: .1em; }
.site-header { background: var(--cream); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.logo img { height: 44px; width: auto; }
.main-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a { font-family: var(--brand); font-weight: 800; font-size: 15px; color: var(--espresso); text-decoration: none; padding: 11px 18px; border-radius: 999px; }
.main-nav a:hover { background: var(--paper); }
.main-nav a[aria-current="page"] { background: var(--espresso); color: var(--cream); }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 14px; font-weight: 500; }
.header-right a { text-decoration: none; }
.pill-link { background: var(--tangerine); color: var(--espresso) !important; font-family: var(--brand); font-weight: 800; padding: 9px 18px; border-radius: 999px; }
.pill-link:hover { background: var(--tangerine-deep); color: var(--cream) !important; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 72px; padding-bottom: 96px; }
.hero-text { flex: 1 1 440px; min-width: 0; }
.hero h1 { font-size: clamp(56px, 8vw, 88px); line-height: .95; letter-spacing: -.01em; margin-top: 20px; }
.hero h1 span { color: var(--tangerine); }
.hero p { font-size: 19px; max-width: 470px; margin: 28px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-books { flex: 1 1 460px; min-width: 0; position: relative; aspect-ratio: 1 / 1; max-height: 520px; }
.hero-books img { position: absolute; border-radius: 6px; box-shadow: 0 10px 30px rgba(43, 27, 23, .2); height: auto; }
.hero-books .b1 { left: 2%; top: 16%; width: 40%; transform: rotate(-7deg); }
.hero-books .b2 { right: 2%; top: 12%; width: 40%; transform: rotate(6deg); }
.hero-books .b3 { left: 25%; top: 0; width: 50%; }

/* Shop */
.shop { padding-bottom: 104px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 28px 0 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.chip { font-family: var(--brand); font-weight: 800; font-size: 15px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--espresso); background: transparent; color: var(--espresso); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--espresso); color: var(--lime); }
.sort { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.sort select { font: inherit; padding: 9px 12px; border: 1.5px solid var(--espresso); border-radius: 999px; background: var(--paper); color: var(--espresso); }
.count { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 32px 24px; }
.card { text-decoration: none; color: var(--espresso); display: flex; flex-direction: column; gap: 10px; }
.card:hover .cover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(43, 27, 23, .18); }
.cover { position: relative; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.cover.text { padding: 22px; display: flex; flex-direction: column; justify-content: space-between; }
.cover .title { font-family: var(--brand); font-weight: 900; font-size: 30px; line-height: .95; white-space: pre-line; }
.cover .mark { font-family: var(--brand); font-weight: 900; font-size: 11px; letter-spacing: .06em; margin-top: 10px; }
.badge { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .08em; padding: 5px 10px; border-radius: 999px; }
.cover img + .badge { position: absolute; left: 12px; bottom: 12px; }
.card-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.card-name { font-family: var(--brand); font-weight: 800; font-size: 18px; }
.card-price { font-weight: 700; color: var(--cherry); }
.card-blurb { font-size: 14px; color: var(--muted); line-height: 1.45; margin-top: -4px; }
.card-buy { font-family: var(--brand); font-weight: 800; font-size: 14px; color: var(--tangerine-deep); }

/* Bundles */
.bundles { padding-bottom: 104px; }
.bundle-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; margin-top: 32px; }
.bundle { border-radius: 14px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; }
.bundle.dark { background: var(--espresso); color: var(--cream); border: 0; }
.bundle-art { padding: 28px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; min-height: 210px; }
.bundle-art img { border-radius: 4px; box-shadow: 0 4px 12px rgba(43, 27, 23, .22); height: auto; }
.bundle-body { padding: 24px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.bundle-body .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.bundle-body h3 { font-size: 28px; }
.bundle-body .price { font-family: var(--brand); font-weight: 800; font-size: 24px; }
.bundle-body p { margin: 8px 0 20px; font-size: 15px; color: var(--muted); }
.bundle.dark p, .bundle.dark .small { color: var(--line); }
.bundle-body .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; }
.small { font-size: 13px; color: var(--muted); }
.bundle-body .foot a { font-family: var(--brand); font-weight: 800; text-decoration: none; color: var(--espresso); }
.bundle.dark .foot a { color: var(--lime); }

/* Free PDF */
.free { padding-bottom: 104px; }
.free-box { background: var(--tangerine); border-radius: 14px; padding: clamp(28px, 5vw, 56px); display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.free-cover { flex: 0 1 250px; aspect-ratio: 4 / 5; background: var(--espresso); color: var(--cream); border-radius: 6px; transform: rotate(-4deg); padding: 24px; display: flex; flex-direction: column; justify-content: space-between; margin: 0 auto; }
.free-cover .badge { background: var(--lime); color: var(--espresso); }
.free-cover .title { font-family: var(--brand); font-weight: 900; font-size: 30px; line-height: .95; }
.free-text { flex: 1 1 400px; min-width: 0; }
.free-text .eyebrow { color: var(--espresso); }
.free-text h2 { font-size: clamp(40px, 5vw, 56px); line-height: .98; margin-top: 12px; }
.free-text p { font-size: 17px; max-width: 520px; margin: 18px 0 24px; }
.signup { display: flex; flex-wrap: wrap; gap: 10px; max-width: 560px; }
.signup input { flex: 1 1 240px; min-width: 0; font: inherit; padding: 15px 20px; border-radius: 999px; border: 2px solid var(--espresso); background: var(--cream); color: var(--espresso); }
.signup-note { font-size: 13px; margin-top: 14px; }
.form-msg { font-weight: 700; margin-top: 12px; min-height: 1em; }

/* FAQ */
.faq { max-width: 880px; margin: 0 auto; padding: 0 32px 112px; }
.faq h2 { margin-bottom: 20px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; font-family: var(--brand); font-weight: 800; font-size: 19px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--tangerine); font-size: 26px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 22px; max-width: 700px; }

/* Simple pages (Food, Drinks) */
.page-hero { padding-top: 72px; padding-bottom: 48px; max-width: 820px; }
.page-hero h1 { font-size: clamp(52px, 8vw, 84px); line-height: .95; margin-top: 16px; }
.page-hero h1 span { color: var(--tangerine); }
.page-hero p { font-size: 19px; margin: 24px 0 0; }
.chips-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.chip-static { font-family: var(--brand); font-weight: 800; font-size: 15px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--espresso); }
.coming { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 36px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; margin-bottom: 72px; }
.coming h2 { font-size: 30px; }
.coming p { margin: 8px 0 0; color: var(--muted); max-width: 560px; }
.list-title { font-size: 36px; margin-bottom: 24px; }

/* Footer */
.site-footer { background: var(--espresso); color: var(--cream); margin-top: 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 48px; padding-top: 72px; padding-bottom: 40px; }
.footer-brand { flex: 1 1 320px; }
.footer-brand img { width: 240px; height: auto; }
.footer-brand p { color: var(--line); max-width: 320px; margin: 16px 0 0; }
.footer-col { flex: 1 1 150px; display: flex; flex-direction: column; gap: 10px; }
.footer-col h3 { font-weight: 800; font-size: 16px; color: var(--lime); }
.footer-col a { color: var(--cream); text-decoration: none; }
.footer-col a:hover { color: var(--lime); }
.footer-bottom { border-top: 1px solid #4a3a33; padding-top: 20px; padding-bottom: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--line); }
.footer-bottom a { color: var(--line); }

/* Phones */
@media (max-width: 720px) {
  .wrap, .faq { padding-left: 20px; padding-right: 20px; }
  .topbar { font-size: 10.5px; letter-spacing: .06em; }
  .header-inner { gap: 12px; }
  .logo img { height: 38px; }
  .main-nav { order: 3; width: 100%; justify-content: space-between; }
  .main-nav a { padding: 9px 12px; font-size: 14px; }
  .header-right { gap: 12px; }
  .header-right .about { display: none; }
  .hero { padding-top: 40px; padding-bottom: 64px; gap: 32px; }
  .hero p { font-size: 17px; }
  .sort { margin-left: 0; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .cover .title { font-size: 22px; }
  .card-name { font-size: 16px; }
  .bundle-grid { grid-template-columns: 1fr; }
  .bundle-art img { width: 70px !important; }
}
