/* The homepage's header and footer for the inner pages (2026-10-11).
   Values copied from site.css + illustrated.css (the homepage's own sheets)
   and scoped to .site-header / .site-footer, so nothing else on checkout,
   welcome, account or the legal pages changes. Those pages style the bare
   header/nav/footer tags and some of the same class names (.nav-links,
   .footer-brand, .footer-bottom, .wrap) in their own CSS; the extra
   .site-header / .site-footer prefix here outranks those, and the resets
   undo what would otherwise leak in. Change the homepage header? Change this. */

.site-header, .site-footer {
  --ink: #1b1a17; --paper: #fbfaf7; --brass: #c58a3c; --muted: #5f5c56;
  --line: #e4dfd5; --butter: #f5d188; --butter-ink: #a5380b;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
.site-header *, .site-footer * { box-sizing: border-box; }
.site-header a, .site-footer a { color: inherit; text-decoration: none; }

/* ---- header: the floating pill ---- */
.site-header {
  position: sticky; top: 12px; z-index: 80;
  width: min(1240px, calc(100% - 40px)); max-width: none; margin: 12px auto 0; padding: 0;
  border: 1.5px solid var(--ink); border-radius: 999px;
  background: #fbfaf7f0; box-shadow: 4px 4px 0 var(--ink);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: none; }
.site-header.nav-hidden { transform: translateY(calc(-100% - 20px)); }
.site-header .nav {
  display: flex; align-items: center; justify-content: space-between; gap: 35px;
  height: 66px; width: auto; max-width: none; margin: 0; padding: 0 10px 0 22px;
}
.site-header .brand, .site-footer .brand {
  display: inline-flex; gap: 11px; align-items: center;
  font-size: 24px; font-weight: 700; letter-spacing: -1.1px; white-space: nowrap; color: var(--ink);
}
.site-header .brand-light, .site-footer .brand-light { font-weight: 400; }
.site-header .brand-dot, .site-footer .brand-dot { color: var(--brass); }
.site-header .brand-mark, .site-footer .brand-mark { width: 36px; height: 26px; color: var(--brass); flex-shrink: 0; }
.site-header .nav-links { display: flex; gap: 29px; align-items: center; }
.site-header .nav-links > a:not(.button) {
  font-size: 14px; font-weight: 500; color: var(--ink); white-space: nowrap; padding: 0;
}
.site-header .nav-links > a:not(.button):hover,
.site-header .nav-links > a[aria-current="page"] { color: var(--butter-ink); }
.site-header .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 16px;
  min-height: 42px; padding: 12px 18px; border-radius: 8px;
  border: 1.5px solid var(--ink); background: var(--ink); color: #fff;
  font-size: 14px; font-weight: 600; line-height: 1.2; white-space: nowrap;
  box-shadow: 3px 3px 0 var(--ink); transition: transform .15s, box-shadow .15s;
}
.site-header .button:hover { background: #000; transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.site-header .button:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.site-header .button span[aria-hidden] { font-size: 20px; font-weight: 400; line-height: 1; transition: transform .2s; }
.site-header .button:hover span[aria-hidden] { transform: translate(2px, -2px); }
.site-header .menu-toggle {
  display: none; background: transparent; color: inherit; cursor: pointer; font: inherit;
}

@media (max-width: 1150px) {
  .site-header .nav { gap: 20px; }
  .site-header .nav-links { gap: 16px; }
  .site-header .brand { font-size: 22px; }
}
@media (max-width: 950px) {
  .site-header .brand { font-size: 20px; }
  .site-header .brand-mark { width: 29px; }
}
@media (max-width: 760px) {
  .site-header { top: 10px; width: calc(100% - 20px); margin-top: 10px; }
  .site-header .nav { height: 60px; padding: 0 8px 0 16px; }
  .site-header .brand { font-size: 24px; }
  .site-header .brand-mark { width: 34px; }
  .site-header .menu-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    padding: 12px; min-width: 44px; min-height: 44px;
    border: 1.5px solid var(--ink); border-radius: 999px;
  }
  .site-header .menu-toggle span { display: block; height: 1px; width: 19px; background: var(--ink); transition: transform .2s; }
  .site-header .menu-toggle[aria-expanded=true] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .site-header .menu-toggle[aria-expanded=true] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .site-header .nav-links {
    display: none; position: absolute; top: 68px; left: -1.5px; right: -1.5px;
    flex-direction: column; gap: 0; align-items: stretch; padding: 17px 20px 23px;
    background: #fbfaf7; border: 1.5px solid var(--ink); border-radius: 20px; box-shadow: 4px 4px 0 var(--ink);
  }
  .site-header .nav-links.is-open { display: flex; }
  .site-header .nav-links > a:not(.button) { font-size: 14px; padding: 14px 2px; }
  .site-header .button { margin-top: 10px; min-height: 46px; justify-content: space-between; padding-inline: 17px; }
}

/* ---- footer ---- */
.site-footer {
  padding: 62px 0 env(safe-area-inset-bottom); margin: 0;
  border-top: 1.5px solid var(--ink); background: var(--paper);
}
.site-footer .wrap { width: min(1240px, calc(100% - 112px)); max-width: none; margin-inline: auto; padding-left: 0; padding-right: 0; }
.site-footer .footer-main { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 30px; padding-bottom: 52px; }
.site-footer .footer-brand p { font-size: 14px; margin: 18px 0 0; max-width: none; color: var(--muted); }
.site-footer .footer-column { display: flex; flex-direction: column; align-items: start; gap: 12px; font-size: 14px; color: var(--muted); }
.site-footer .footer-column > strong { font-size: 12px; line-height: 1.6; letter-spacing: .06em; font-weight: 600; color: var(--muted); margin: 6px 0 8px; }
.site-footer .footer-column a:hover { color: var(--butter-ink); }
.site-footer .footer-column .footer-book {
  display: flex; justify-content: space-between; align-items: center; gap: 27px;
  color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 10px; font-size: 14px;
}
.site-footer .footer-book > span { font-size: 16px; }
.site-footer .footer-column > span { font-size: 13px; line-height: 1.6; color: var(--muted); }
.site-footer .footer-bottom {
  display: flex; justify-content: space-between; gap: 20px; padding: 22px 0 24px;
  border-top: 1px solid var(--line); font-size: 13px; line-height: 1.6; color: var(--muted);
}
.site-footer .footer-bottom span { font-family: inherit; font-size: inherit; color: inherit; letter-spacing: normal; text-transform: none; }
.site-footer .footer-bottom > div { display: flex; gap: 24px; }
.site-footer .footer-bottom a { font-size: 13px; }
.site-footer .footer-bottom a:hover { text-decoration: underline; }

@media (max-width: 1150px) { .site-footer .wrap { width: calc(100% - 72px); } }
@media (max-width: 950px) { .site-footer .wrap { width: calc(100% - 48px); } .site-footer .footer-main { gap: 20px; } }
@media (max-width: 760px) {
  .site-footer { padding-top: 42px; }
  .site-footer .wrap { width: calc(100% - 40px); }
  .site-footer .footer-main { grid-template-columns: repeat(2, 1fr); gap: 31px 24px; padding-bottom: 37px; }
  .site-footer .footer-bottom { flex-direction: column; gap: 14px; }
  .site-footer .footer-bottom > div { flex-wrap: wrap; gap: 12px 20px; }
}
@media (max-width: 370px) { .site-footer .wrap { width: calc(100% - 32px); } }
@media print { .site-header { position: static; } .site-header .menu-toggle, .site-header .button { display: none; } }
