/* The standard wedding header, isolated from the guide's directory styles.
   Menu behavior is shared with the other pages through app.js. */
:root { --header-height: 74px; }
body.menu-open { overflow: hidden; }
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  height: var(--header-height);
  padding: 8px 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border: 0;
  background: var(--ivory);
  box-shadow: 0 3px 16px #2f597210;
  line-height: 1.8;
  z-index: 1000;
}
.site-header a { text-decoration: none; }
.site-header .brand { width: 64px; min-width: 64px; height: 54px; flex-shrink: 0; }
.site-header .brand img { width: 100%; height: 100%; object-fit: contain; }
.desktop-nav { display: flex; gap: clamp(16px, 2vw, 28px); align-items: center; }
.desktop-nav a { font-size: 13px; padding: 12px 0; border-bottom: 1px solid transparent; white-space: nowrap; }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.header-actions { display: flex; gap: 12px; align-items: center; }
.header-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 7px 14px;
  border: 1px solid var(--ink);
  border-radius: 5px;
  background: var(--ink);
  color: var(--ivory);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .6px;
  transition: background .2s, transform .2s;
}
.header-actions .button:hover { background: var(--dark); border-color: var(--dark); }
.header-actions .button:active { transform: scale(.98); transition: transform 90ms ease-out; }
.menu-button { display: none; flex-shrink: 0; width: 44px; height: 44px; padding: 10px; background: none; border: 0; border-radius: 0; }
.menu-button:active { background: var(--blue-wash); }
.menu-button span { display: block; width: 24px; height: 1px; background: var(--ink); margin: 7px 0; transition: transform .2s; }
.menu-button[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-height: calc(100dvh - var(--header-height));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px 7% max(24px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  background: var(--ivory);
  box-shadow: 0 12px 20px #2f597212;
}
.mobile-menu a { font-family: var(--serif); font-size: 29px; line-height: 1.6; min-height: 48px; padding: 5px 0; }
.mobile-menu a[aria-current="page"] { text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 1px; }
.mobile-menu p { margin: 16px 0 0; font-size: 11px; letter-spacing: 1.3px; line-height: 1.8; }
.menu-scrim { position: fixed; inset: var(--header-height) 0 0; z-index: 999; background: #293e4b33; border: 0; border-radius: 0; padding: 0; cursor: default; }
.mobile-menu[hidden], .menu-scrim[hidden] { display: none; }
@media (max-width: 1000px) {
  .desktop-nav { display: none; }
  .menu-button { display: block; }
}
@media (max-width: 800px) {
  :root { --header-height: 66px; }
  .site-header { padding: 7px 22px; }
  .site-header .brand { width: 56px; min-width: 56px; height: 48px; }
  .mobile-menu { padding-inline: 26px; }
}
@media (max-width: 600px) {
  :root { --header-height: 64px; }
  .site-header { padding: 7px 20px; }
  .header-actions { gap: 10px; }
  .header-actions .button { font-size: 12px; }
  .mobile-menu { padding: 18px 26px max(25px, env(safe-area-inset-bottom)); }
  .mobile-menu a { font-size: 28px; min-height: 46px; }
  .mobile-menu p { font-size: 10px; letter-spacing: 1.1px; }
}
@media (max-width: 380px) {
  .site-header { padding: 7px 16px; }
  .header-actions { gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .menu-button span, .header-actions .button { transition: none; }
  .header-actions .button:active { transform: none; }
}
@media (prefers-contrast: more) { .site-header, .mobile-menu { border-bottom: 1px solid var(--ink); } }
@media (forced-colors: active) {
  .site-header, .mobile-menu { background: Canvas; color: CanvasText; border-bottom: 1px solid CanvasText; }
  .header-actions .button { background: ButtonFace; color: ButtonText; border-color: ButtonText; }
  .menu-button span { background: ButtonText; }
}
@media print { .site-header, .menu-scrim { display: none !important; } }
