/* TuckJoy site shell: every static page (web/site/) loads /design.css first (the fonts, colours,
   scales and element styles the app shares, web/app/styles/design.css), then this: the header,
   the footer and the shared controls. */


/* The header is sticky, so an in-page link (/#how) would land its heading under it. */
html { scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 30; padding: 8px 12px; background: var(--surface); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* ---------------- shell ---------------- */

.topbar {
  height: 72px; display: flex; align-items: center; gap: 24px;
  padding: 0 48px; border-bottom: 1px solid var(--line);
  /* frosted, so the paper and its blooms carry on under the bar rather than stopping at it */
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 20;
}

/* The shipped wordmark, drawn inline with its two themed colours as variables, so "tuck"
   is white in dark mode exactly as brand/logo-dark.svg draws it. */
.brand { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.brand .logomark { display: block; height: 34px; width: auto; }

.sitenav {
  display: flex; align-items: center; gap: 32px; margin: 0 auto;
  font-size: 15px; font-weight: 500; min-width: 0;
}
.sitenav a { color: var(--ink); text-decoration: none; white-space: nowrap; }
.sitenav a:hover { color: var(--accent); }


@media (max-width: 1440px) { .topbar { padding: 0 28px; } }
@media (max-width: 1100px) {
  .topbar { padding: 0 20px; gap: 14px; }
  .sitenav { gap: 20px; font-size: 14px; }
}
/* On a phone the section menu will not fit beside the wordmark and the invitation, and a
   menu that runs off the edge behind a button is worse than no menu. The footer carries
   every link, so the header keeps the two things that matter: who this is, and the way in. */
@media (max-width: 860px) {
  .sitenav { display: none; }
  .topbar .tj-new { margin-left: auto; }
}
@media (max-width: 720px) {
  .topbar { height: 60px; padding: 0 12px; gap: 10px; }
}

/* ---------------- primitives ---------------- */

.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent);
}

/* .btn and .btn.primary are the one button (design.css). */

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 600; border: 1px solid var(--line);
  background: var(--accent-tint); color: var(--accent-dark);
}
.tag.warn { background: var(--warn-soft); color: var(--warn); }

.note { font-size: 13px; line-height: 1.5; color: var(--muted); }

/* ---------------- footer ---------------- */

.sitefoot { padding: 56px 0 40px; border-top: 1px solid var(--line); }
.sitefoot > .inner { width: min(1200px, 100% - 96px); margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }
.sitefoot .top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.sitefoot .about { display: flex; flex-direction: column; gap: 12px; max-width: 320px; }
.sitefoot .about .logomark { height: 30px; width: auto; align-self: flex-start; }
.sitefoot .cols { display: flex; gap: 80px; flex-wrap: wrap; }
.sitefoot .cols > nav { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.sitefoot .cols h3 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.sitefoot .cols a { color: var(--muted); text-decoration: none; }
.sitefoot .cols a:hover { color: var(--ink); }
.sitefoot .legal {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted);
}
@media (max-width: 1080px) { .sitefoot > .inner { width: calc(100% - 56px); } }
@media (max-width: 760px) {
  .sitefoot > .inner { width: calc(100% - 32px); }
  .sitefoot .cols { gap: 36px; }
}

/* ---- the dark footer: the bar's one flat warm dark (design.css --bar), both themes. ---- */
.sitefoot { --bar-dim: rgba(246, 241, 232, .8); position: relative; color: var(--cream); border-top: 0; background: var(--bar); }
.sitefoot .about { --logo-ink: #fff; --logo-star: #fff; }
.sitefoot .note { color: var(--bar-dim); }
.sitefoot .cols h3 { color: var(--cream); }
.sitefoot .cols a { color: var(--bar-dim); }
.sitefoot .cols a:hover { color: var(--cream); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; }
.sitefoot a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.sitefoot .legal { border-top-color: rgba(255, 255, 255, .16); color: var(--bar-dim); }

/* Price figures wait for prices.js (price-wait.js adds the class; no script, no class). */
.prices-wait [data-pack] { visibility: hidden; }
