/* Site header, mobile menu and footer, shared by every page (home, guides, links).
   The markup comes from make-pages.mjs (siteHeader / siteFooter), so change it there. */
.wrap { width: 100%; max-width: 1480px; margin-inline: auto; padding-inline: clamp(20px, 4vw, 64px); box-sizing: border-box; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 60; padding: 8px 12px; border-radius: 5px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 650; }
.skip:focus { top: 10px; }

/* header */
.topbar { position: sticky; top: 0; z-index: 40; background: rgb(248 246 241 / .92); border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: saturate(1.3) blur(10px); backdrop-filter: saturate(1.3) blur(10px); transition: border-color .2s; }
.topbar.scrolled { border-bottom-color: var(--rule); }
.topbar-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; color: var(--ink); line-height: 1; }
.brand .avatar { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: #ded6cd; flex-shrink: 0; display: grid; place-items: center; }
.brand .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand b { display: block; font: italic 800 25px/.85 'Barlow Condensed', Impact, sans-serif; letter-spacing: -.04em; padding-right: .1em; }
.brand small { display: block; margin-top: 4px; font-size: 11.5px; font-weight: 500; color: var(--secondary); }
.topnav { display: flex; align-items: center; gap: 24px; font-size: 13.5px; font-weight: 600; }
.topnav a { position: relative; padding: 6px 0; color: var(--ink); }
.topnav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .2s cubic-bezier(.2,.7,.2,1); }
.topnav a:hover::after, .topnav a[aria-current]::after { transform: scaleX(1); }
.topnav a[aria-current] { color: var(--accent); }
.top-cta { display: inline-flex; align-items: center; gap: 12px; min-height: 38px; padding: 8px 14px; border-radius: 5px;
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 650; white-space: nowrap; transition: background-color .16s; }
.top-cta:hover { background: #483839; }
.top-cta .arrow { font-size: 16px; line-height: 1; transition: transform .16s; }
.top-cta:hover .arrow { transform: translateX(3px); }
.menu-btn { display: none; align-items: center; gap: 8px; min-height: 38px; padding: 6px 2px 6px 8px; font-size: 13px; font-weight: 650; color: var(--ink); background: none; border: 0; cursor: pointer; }
.menu-btn i { position: relative; display: block; width: 18px; height: 1.5px; background: currentColor; transition: background-color .15s; }
.menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: currentColor; transition: transform .2s; }
.menu-btn i::before { top: -5px; } .menu-btn i::after { top: 5px; }
.menu-btn[aria-expanded=true] i { background: transparent; }
.menu-btn[aria-expanded=true] i::before { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded=true] i::after { transform: translateY(-5px) rotate(-45deg); }

/* footer */
.site-foot { border-top: 1px solid var(--rule); background: #f1ede6; color: var(--secondary); font-size: 13px; padding: clamp(44px, 5vw, 68px) 0 26px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)); gap: 32px clamp(24px, 4vw, 64px); }
.foot-mark { display: block; font: italic 800 clamp(44px, 4.4vw, 64px)/.85 'Barlow Condensed', Impact, sans-serif; letter-spacing: -.045em; color: var(--ink); padding-right: .1em; }
.site-foot .foot-brand p { margin: 14px 0 0; max-width: 34ch; font-size: 14px; line-height: 1.55; }
.foot-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 16px; }
.foot-contact :is(a, button) { padding: 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); background: none; border: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #a59c94; }
.foot-contact :is(a, button):hover { color: var(--accent); }
.site-foot nav h2 { margin: 0 0 12px; font-family: inherit; font-size: 12px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--ink); }
.site-foot nav a { display: block; width: fit-content; max-width: 100%; padding: 4px 0; line-height: 1.4; color: var(--secondary); }
.site-foot nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: clamp(36px, 4vw, 56px); padding-top: 18px; border-top: 1px solid var(--rule); font-size: 12px; }
.foot-bottom a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1120px) {
  .topbar-in { gap: 16px; }
  .menu-btn { display: inline-flex; }
  .topnav { position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 6px clamp(20px, 4vw, 64px) 18px; background: var(--paper); border-bottom: 1px solid var(--rule); box-shadow: 0 18px 30px -24px #2a242440; font-size: 17px; }
  .topnav.open { display: flex; }
  .topnav a { padding: 13px 0; border-bottom: 1px solid var(--rule); }
  .topnav a::after { display: none; }
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 570px) {
  .topbar-in { height: 60px; }
  .brand small { display: none; }
  .top-cta { padding: 7px 11px; font-size: 12px; } .top-cta .arrow { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 380px) { .brand b { font-size: 21px; } .brand .avatar { width: 30px; height: 30px; } }
@media (prefers-reduced-motion: no-preference) { .topnav.open { animation: menu-in .2s ease-out both; } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
