/* The header and footer every page shares (partials/*.html, stamped by scripts/sync-header.mjs).
   Colours are spelled out: pages load different stylesheets with different variables. */
/* A page lines the header up with its own content by setting --header-max (the inner width)
   and --header-pad (the side padding) on body; the defaults suit 1120px content columns. */
.main-header { position: sticky; top: 0; z-index: 100; padding: 0 var(--header-pad, 24px); background: #faf7f2; border-bottom: 1px solid #e0d7ce; }
.mh-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: var(--header-max, 1120px); height: 76px; margin: 0 auto; }
.mh-logo { display: inline-flex; flex: none; }
.mh-logo img, .mf-logo img { display: block; width: 131px; height: 24px; }
.mh-links { display: flex; align-items: center; gap: 26px; }
.mh-links a, .mh-mobile a { color: #392b31; font: 500 14px/1.2 Arial, Helvetica, sans-serif; text-decoration: none; }
.mh-links a { display: inline-flex; align-items: center; min-height: 44px; }
.mh-links a:hover, .mh-links a[aria-current="page"] { color: #a85439; }
.main-header .mh-app, .mh-mobile .mh-app { justify-content: center; padding: 0 18px; border-radius: 999px; background: #a85439; color: #fffaf4; font-weight: 600; }
.main-header .mh-app:hover { background: #90442e; color: #fffaf4; }
.mh-menu, .mh-close { width: 44px; height: 44px; padding: 10px; border: 0; background: none; color: #392b31; cursor: pointer; }
.mh-menu { display: none; }
.mh-menu[hidden], .mh-mobile[hidden] { display: none !important; }
.mh-mobile { position: fixed; inset: 0; z-index: 300; display: flex; justify-content: flex-end; background: rgba(57, 43, 49, .3); }
.mh-mobile-inner { display: flex; flex-direction: column; gap: 2px; width: min(320px, 88vw); height: 100%; padding: 12px 24px; overflow-y: auto; overscroll-behavior: contain; background: #faf7f2; border-left: 1px solid #e0d7ce; }
.mh-close { align-self: flex-end; }
.mh-mobile a { display: flex; align-items: center; min-height: 48px; font-size: 17px; }
.mh-mobile .mh-app { min-height: 48px; margin-top: 14px; }
@media (max-width: 800px) {
  :root { --header-pad: 20px; }
  .mh-inner { height: 64px; }
  .mh-links { display: none; }
  .mh-menu { display: block; }
  /* Without navigation.js the links wrap under the logo instead of disappearing. */
  html:not(.nav-ready) .mh-inner { flex-wrap: wrap; height: auto; padding: 12px 0; }
  html:not(.nav-ready) .mh-links { display: flex; flex-wrap: wrap; gap: 0 18px; }
}

.main-footer { padding: 48px 24px 28px; background: #392b31; color: #e1d5d3; font: 14px/1.6 Arial, Helvetica, sans-serif; text-align: left; }
.mf-inner { max-width: 1120px; margin: 0 auto; }
.mf-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; padding-bottom: 32px; border-bottom: 1px solid #665157; }
.mf-brand p { max-width: 300px; margin: 14px 0 0; color: #c6b4b5; font-size: 13px; }
.mf-col { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.main-footer .mf-head { margin: 0 0 8px; color: #e1d5d3; font: 600 11px/1.4 Arial, Helvetica, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.mf-col a { display: inline-flex; align-items: center; min-height: 32px; color: #e1d5d3; font-size: 13px; text-decoration: none; }
.mf-col a:hover { color: #fffaf4; text-decoration: underline; }
.main-footer a:focus-visible { outline: 2px solid #fffaf4; outline-offset: 3px; }
.main-footer .mf-bottom { margin: 0; padding-top: 20px; color: #c6b4b5; font-size: 12px; text-align: center; }
@media (max-width: 900px) {
  .mf-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mf-brand { grid-column: 1 / -1; }
}

/* "Get the app" (app-preview.js): the app's screens, then both stores. */
.app-preview { width: min(420px, 100vw); max-width: 100vw; max-height: 100dvh; margin: auto auto 0; padding: 18px 20px 22px; border: 0; border-radius: 20px 20px 0 0; background: #faf7f2; color: #392b31; text-align: center; font-family: Arial, Helvetica, sans-serif; }
@media (min-width: 700px) { .app-preview { margin: auto; border-radius: 20px; } }
.app-preview::backdrop { background: rgba(36, 26, 46, .55); }
.app-preview-close { position: absolute; top: 6px; right: 8px; width: 44px; height: 44px; border: 0; background: none; color: #6b6162; font-size: 26px; cursor: pointer; }
.app-preview-stage { position: relative; height: min(58vh, 520px); margin-top: 18px; }
.app-slide { position: absolute; inset: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 14px; justify-items: center; margin: 0; opacity: 0; transition: opacity .7s ease; }
.app-slide[data-on] { opacity: 1; }
.app-slide img { height: 100%; max-width: 100%; object-fit: contain; border-radius: 22px; box-shadow: 0 12px 32px rgba(36, 26, 46, .2); }
.app-slide figcaption { display: grid; gap: 2px; color: #6b6162; font-size: 14px; }
.app-slide figcaption strong { color: #392b31; font: 400 22px/1.2 'DM Serif Display', Georgia, serif; }
.app-preview-dots { display: flex; justify-content: center; margin: 10px 0 14px; }
.app-preview-dots button { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; }
.app-preview-dots button::before { content: ''; width: 8px; height: 8px; border-radius: 4px; background: #bfb1a7; transition: width .3s ease, background-color .3s ease; }
.app-preview-dots button[aria-current]::before { width: 22px; background: #392b31; }
.app-preview-stores { display: grid; gap: 8px; }
.app-preview .app-preview-play { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 999px; background: #a85439; color: #fffaf4; font: 600 14px Arial, Helvetica, sans-serif; text-decoration: none; }
.app-preview .app-preview-play:hover { background: #90442e; }
@media (prefers-reduced-motion: reduce) { .app-slide, .app-preview-dots button::before { transition: none; } }
