/* ==========================================================================
   Layout — the chrome shared by every page: page gutters, the sticky black
   header with its navigation and mobile menu, inner-page headers, and the
   footer.
   ========================================================================== */

/* Page gutters ------------------------------------------------------------ */

.container {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 56px);
}

/* Header and navigation --------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.site-header :focus-visible {
  outline-color: var(--focus-on-dark);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 80px;
}

/* The logo is white and red on black, so it sits flush on the header. */
.brand {
  flex-shrink: 0;
}

.brand img {
  width: 180px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.site-nav a {
  position: relative;
  padding-block: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover {
  color: var(--pink);
}

/* Red underline for the current page. Red on black is 3.4:1, which clears
   the 3:1 floor for state indicators (WCAG 1.4.11). */
.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 200ms ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* Shown only on narrow screens; see the media query below. */
.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 14px;
  border: 2px solid var(--red);
  border-radius: 10px;
  background: transparent;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Three bars drawn from one element and its two pseudo-elements. */
.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.menu-toggle-bars {
  position: relative;
}

.menu-toggle-bars::before,
.menu-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle-bars::before {
  top: -6px;
}

.menu-toggle-bars::after {
  top: 6px;
}

@media (max-width: 860px) {
  .site-header-inner {
    min-height: 68px;
  }

  .brand img {
    width: 140px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  /* The navigation drops down below the header when nav-menu.js opens it. */
  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px clamp(16px, 4vw, 56px) 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    background: var(--ink);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding-block: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 1.1rem;
  }

  .site-nav a::after {
    right: auto;
    bottom: 10px;
    width: 32px;
  }
}

/* Inner-page header ------------------------------------------------------- */
/* The pale pink wash that opens the gallery, contact, and policy pages. */

.page-wash {
  padding-block: clamp(36px, 6vw, 64px) clamp(56px, 8vw, 96px);
  background: linear-gradient(180deg, #e6bcbc 0, #f4e6e6 360px, var(--paper) 760px);
}

.page-header {
  margin-bottom: clamp(28px, 4vw, 44px);
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
}

.page-header p {
  max-width: 620px;
  margin-top: 10px;
  font-size: 1.1rem;
}

/* Footer ------------------------------------------------------------------ */

.site-footer {
  padding-top: clamp(40px, 6vw, 64px);
  background: var(--ink);
  color: #dddddd;
}

.site-footer :focus-visible {
  outline-color: var(--focus-on-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 36px;
  padding-bottom: 44px;
}

.footer-brand img {
  width: 170px;
  margin-bottom: 16px;
}

.footer-brand p {
  max-width: 280px;
  font-size: 0.95rem;
}

.site-footer h2 {
  margin-bottom: 16px;
  color: var(--paper);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer ul {
  display: grid;
  gap: 10px;
}

.site-footer a {
  text-underline-offset: 4px;
}

.site-footer a:not(:hover) {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--paper);
}

.site-footer address {
  margin-bottom: 10px;
  font-style: normal;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.875rem;
}

.footer-meta ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 420px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Reduced motion ---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .site-nav a::after {
    transition: none;
  }
}
