/* KartKoot's website: the app's light palette and type (src/ui/theme.ts). Plain HTML + CSS, no JS framework, so pages load instantly. */
:root {
  --bg: #F5F4F1; --surface: #FFFFFF; --surface2: #EFEDE8; --line: #E5E2DB; --text: #151412; --muted: #6E6A63;
  --gold: #B07D2B; --gold-soft: #FBF1DE; --gold-deep: #8A6220; --gold-light: #E3B868; --gold-line: #EBDCBF;
  --green: #1F8A4C; --green-soft: #EAF6EF;
  --store-one: #E8762C; --store-two: #7B3FE4; /* the two grocery apps on the home page, named only "Store 1" and "Store 2" */
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 500 16px/1.6 Manrope, system-ui, sans-serif; }
/* Shared frame: every page has the same fixed top bar and footer (1120 px); long text reads in a 720 px column. */
main { max-width: 720px; margin: 0 auto; padding: 108px 16px 72px; }
.site-bar { position: fixed; inset: 0 0 auto; z-index: 20; background: rgba(245, 244, 241, .86); backdrop-filter: saturate(1.4) blur(10px); }
.site-bar-inner, .site-footer-inner { max-width: 1120px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-bar-inner { height: 60px; }
h1, h2, .lead { text-wrap: balance; }
p, li { text-wrap: pretty; }
.keep-together { white-space: nowrap; }
.wordmark { font: 600 26px/1 Fraunces, Georgia, serif; color: var(--text); text-decoration: none; letter-spacing: -0.4px; }
.wordmark img { display: block; height: 24px; width: auto; }
nav a { color: var(--muted); font-weight: 700; font-size: 14px; text-decoration: none; margin-left: 16px; }
nav a:hover, a:hover { color: var(--gold); }
h1 { font: 600 40px/1.1 Fraunces, Georgia, serif; letter-spacing: -0.8px; margin: 0 0 12px; }
h2 { font: 600 22px/1.3 Fraunces, Georgia, serif; margin: 36px 0 8px; }
p, li { color: var(--text); }
.lead { color: var(--muted); font-size: 18px; margin: 0 0 32px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin: 16px 0; }
.button { display: inline-block; background: var(--text); color: #fff; font-weight: 700; padding: 14px 22px; border-radius: 14px; text-decoration: none; }
.button:hover { color: #fff; opacity: 0.9; }
a { color: var(--gold); }
.muted { color: var(--muted); font-size: 14px; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; padding: 36px 0 40px; }
.site-footer a { color: var(--muted); }
.footer-app { display: flex; align-items: center; gap: 16px; }
.footer-app p { margin: 2px 0 0; color: var(--muted); }
.footer-app p a { color: var(--gold); }
.app-icon { width: 56px; height: 56px; border-radius: 14px; flex: none; border: 1px solid rgba(21, 20, 18, .07); box-shadow: 0 4px 5px rgba(95, 109, 119, .04), 0 10px 15px rgba(95, 109, 119, .06); }
.footer-title { display: block; font: 600 22px/1.2 Fraunces, Georgia, serif; letter-spacing: -0.3px; color: var(--text); }
.site-footer-inner { align-items: flex-start; }
.footer-info { text-align: right; }
.footer-info nav { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.footer-info nav a { margin: 0; }
.menu-toggle { display: none; }
@media (max-width: 760px) {
  /* Footer on a phone: the app block stays on the left; the links sit in one centred row with © centred under them. */
  .site-footer-inner { flex-direction: column; align-items: flex-start; gap: 28px; }
  .footer-info { align-self: stretch; text-align: center; }
  .footer-info nav { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }

  /* Top bar on a phone: a head script and nav.js add .menu-ready, so without JavaScript the three links stay inline in the bar.
     With it, the links fold into a card that drops from the menu button, over a faint dim. */
  .menu-ready .menu-toggle { display: block; position: relative; width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .menu-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--text); transition: top .3s cubic-bezier(.22, .8, .3, 1), transform .3s cubic-bezier(.22, .8, .3, 1); }
  .menu-toggle span:first-child { top: 16px; }
  .menu-toggle span:last-child { top: 26px; }
  .menu-open .menu-toggle span:first-child { top: 21px; transform: rotate(45deg); }
  .menu-open .menu-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

  .menu-ready .site-bar::before { content: ''; position: absolute; top: 100%; left: 0; width: 100%; height: 100svh; background: rgba(21, 20, 18, .22); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
  .menu-ready.menu-open .site-bar::before { opacity: 1; visibility: visible; transition-delay: 0s; }
  .menu-ready .site-bar-inner > nav { position: absolute; top: calc(100% + 8px); left: clamp(16px, 4vw, 40px); right: clamp(16px, 4vw, 40px); display: flex; flex-direction: column; padding: 6px 4px;
    background: var(--bg); border: 1px solid var(--line); border-radius: 20px;
    box-shadow: 0 4px 5px rgba(95, 109, 119, .04), 0 10px 15px rgba(95, 109, 119, .04), 0 40px 50px rgba(95, 109, 119, .10);
    opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.97); transform-origin: top right;
    transition: opacity .25s, transform .3s cubic-bezier(.22, .8, .3, 1), visibility 0s .3s; }
  .menu-ready.menu-open .site-bar-inner > nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .menu-ready .site-bar-inner > nav a { margin: 0; padding: 15px 16px; font-size: 16px; color: var(--text); }
  .menu-ready .site-bar-inner > nav a + a { border-top: 1px solid var(--line); }
}
.menu-settling .menu-toggle span, .menu-settling .site-bar::before, .menu-settling .site-bar-inner > nav { transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .menu-toggle span, .menu-ready .site-bar::before, .menu-ready .site-bar-inner > nav { transition-duration: .01ms; transition-delay: 0s; }
}
