/* SpriteRelay static site styles. See ../README.md for ownership and editing guidance. */
.container {
      width: min(var(--content), calc(100% - 48px));
      margin-inline: auto;
    }

    .nav {
      position: sticky;
      top: 0;
      z-index: 30;
      border-bottom: 2px solid var(--line);
      background: rgba(248, 247, 242, 0.92);
      backdrop-filter: blur(12px);
    }

    .nav-inner {
      position: relative;
      width: min(var(--content), calc(100% - 48px));
      height: var(--nav-primary-h);
      margin-inline: auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: max-content;
      min-height: 44px;
    }

    .brand strong {
      font-size: clamp(1.35rem, 2.2vw, 1.72rem);
      font-weight: 900;
      letter-spacing: -0.05em;
    }

    .badge {
      display: inline-flex;
      align-items: center;
      min-height: 28px;
      border: 2px solid var(--line);
      border-radius: 999px;
      padding: 4px 10px;
      font-family: "Space Mono", monospace;
      font-size: 0.7rem;
      font-weight: 700;
      line-height: 1;
      text-transform: uppercase;
      background: var(--paper-2);
    }

    .nav-links {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: clamp(4px, 1vw, 14px);
      font-family: "Space Mono", monospace;
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }

    .nav-actions {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 16px;
    }

    .nav-cta {
      flex: 0 0 auto;
    }

    .nav-cta-short {
      display: none;
    }

    .menu-toggle {
      display: none;
      min-width: 44px;
      min-height: 44px;
      border: 2px solid var(--line);
      border-radius: var(--radius);
      padding: 0 12px;
      background: var(--paper-2);
      color: var(--ink);
      font-family: "Space Mono", monospace;
      font-size: 0.68rem;
      font-weight: 700;
      text-transform: uppercase;
      cursor: pointer;
    }

    .nav-links a {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 44px;
      min-height: 44px;
      border-bottom: 2px solid transparent;
      padding: 0 6px;
    }

    .nav-links a:hover,
    .nav-links a[aria-current="page"] {
      border-color: var(--ink);
    }

    .nav-links a[aria-current="page"] {
      background: var(--blue-soft);
    }

    .page-bar {
      border-top: 1px solid rgba(255, 255, 255, .24);
      background: var(--ink);
      color: var(--paper-2);
    }

    .page-bar-inner {
      width: min(var(--content), calc(100% - 48px));
      height: var(--page-bar-h);
      margin-inline: auto;
      display: flex;
      align-items: stretch;
      justify-content: space-between;
      gap: 24px;
    }

    .page-identity {
      display: flex;
      align-items: center;
      flex: 0 0 auto;
      gap: 10px;
      margin: 0;
      color: var(--paper-2);
      font-family: "Space Mono", monospace;
      text-transform: uppercase;
    }

    .page-identity span {
      color: rgba(255, 255, 255, .56);
      font-size: .62rem;
      letter-spacing: .06em;
    }

    .page-identity strong {
      font-size: .76rem;
      letter-spacing: .035em;
    }

    .page-links {
      display: flex;
      align-items: stretch;
      justify-content: flex-end;
      gap: 2px;
      min-width: 0;
      font-family: "Space Mono", monospace;
      font-size: .66rem;
      font-weight: 700;
      letter-spacing: .03em;
      text-transform: uppercase;
    }

    .page-links a {
      display: inline-flex;
      align-items: center;
      min-height: var(--page-bar-h);
      padding-inline: 13px;
      color: rgba(255, 255, 255, .74);
      white-space: nowrap;
    }

    .page-links a:hover,
    .page-links a:focus-visible,
    .page-links a[aria-current="location"] {
      background: var(--signal);
      color: var(--ink);
    }

    .page-meta {
      display: flex;
      align-items: center;
      margin: 0;
      color: rgba(255, 255, 255, .7);
      font-family: "Space Mono", monospace;
      font-size: .68rem;
      font-weight: 700;
      letter-spacing: .04em;
      text-transform: uppercase;
    }

    section {
      position: relative;
      border-bottom: 2px solid var(--line);
      padding: var(--space-section) 0;
      background: var(--paper);
    }

    section.dark {
      background: var(--ink);
      color: var(--paper-2);
    }

    section.white {
      background: var(--paper-2);
    }

    .section-head {
      display: grid;
      grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
      gap: clamp(32px, 4vw, 64px);
      align-items: end;
      margin-bottom: clamp(32px, 4.5vw, 56px);
    }

    .section-head > * { min-width: 0; }

    .section-kicker {
      margin-bottom: 16px;
      font-family: "Space Mono", monospace;
      font-size: 0.78rem;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }

    .section-title {
      margin-bottom: 0;
      max-width: 13ch;
      font-size: clamp(2.65rem, 5.2vw, 5.6rem);
      font-weight: 900;
      letter-spacing: -0.07em;
      line-height: 0.91;
      text-transform: uppercase;
      text-wrap: balance;
    }

    .section-copy {
      width: min(100%, 430px);
      justify-self: end;
      margin-bottom: 0;
      color: var(--muted);
      font-size: clamp(1rem, 1.35vw, 1.16rem);
      line-height: 1.55;
    }

    .skip-link {
      position: fixed;
      top: 8px;
      left: 8px;
      z-index: 100;
      transform: translateY(-150%);
      border: 2px solid var(--ink);
      padding: 10px 14px;
      background: var(--paper-2);
      /* Explicit, because the link keeps its light background on every page:
         inheriting the body colour left it near-invisible on the dark
         `.museum-page` gallery theme. */
      color: var(--ink);
      font-family: "Space Mono", monospace;
      font-weight: 700;
      box-shadow: var(--shadow-sm);
    }

    .skip-link:focus {
      transform: translateY(0);
    }

    .legal {
      padding: 36px 0;
      background: var(--ink);
      color: var(--paper-2);
    }

    .footer-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 24px;
      align-items: center;
    }

    .footer-grid p {
      margin: 0;
      color: rgba(255, 255, 255, 0.68);
      font-family: "Space Mono", monospace;
      font-size: 0.78rem;
      line-height: 1.5;
    }

    .footer-links {
      display: flex;
      gap: 18px;
      font-family: "Space Mono", monospace;
      font-size: 0.72rem;
      font-weight: 700;
      text-transform: uppercase;
    }

    .footer-links a {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 44px;
      min-height: 44px;
    }

    @media (max-width: 1100px) {
      .section-head { grid-template-columns: minmax(0, 1fr); }
      .nav-inner {
        height: var(--nav-primary-h);
        padding: 0;
      }

      /* Without JavaScript a collapsed panel could never be reopened, so the
         links stay in the header and the header grows to fit them. */
      html:not(.js) .nav-inner {
        height: auto;
        flex-wrap: wrap;
        padding-block: 10px;
        row-gap: 4px;
      }

      html:not(.js) .nav-actions {
        flex-wrap: wrap;
        width: 100%;
        gap: 10px 16px;
      }

      html:not(.js) .nav-links {
        flex-wrap: wrap;
        justify-content: flex-start;
        width: 100%;
      }

      .js .nav-links {
        position: absolute;
        top: calc(var(--nav-h) + 2px);
        right: 0;
        z-index: 40;
        display: none;
        width: min(360px, calc(100vw - 40px));
        border: 2px solid var(--line);
        border-radius: var(--radius);
        padding: 10px;
        background: var(--paper-2);
        box-shadow: var(--shadow-sm);
      }

      .js .nav-links.is-open {
        display: grid;
        grid-template-columns: 1fr;
      }

      .nav-links a {
        border: 0;
        min-height: 48px;
        padding: 12px;
      }

      .nav-links a:hover,
      .nav-links a:focus-visible,
      .nav-links a[aria-current="page"] {
        background: var(--paper);
      }

      .js .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
      }

      .section-copy {
        width: auto;
        justify-self: start;
      }

      .page-bar-inner {
        overflow: hidden;
      }

      .page-links {
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
      }

      .page-links::-webkit-scrollbar {
        display: none;
      }
    }

    @media (max-width: 720px) {
      .container,
      .nav-inner,
      .page-bar-inner {
        width: min(100% - 28px, var(--content));
      }

      .footer-grid {
        grid-template-columns: 1fr;
      }

      .footer-links {
        flex-wrap: wrap;
      }
    }

    @media (max-width: 520px) {
      .nav-actions {
        gap: 8px;
      }

      .nav-cta {
        min-height: 44px;
        padding-inline: 9px;
        font-size: 0.62rem;
      }

      .menu-toggle {
        width: 42px;
        flex: 0 0 42px;
        padding: 0;
      }

      .menu-toggle span:last-child {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
      }

      .page-bar-inner {
        width: 100%;
        gap: 0;
      }

      .page-identity {
        border-right: 1px solid rgba(255, 255, 255, .25);
        padding-inline: 14px;
      }

      .page-identity span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
      }

      .page-identity strong {
        font-size: .68rem;
      }

      .page-links a {
        padding-inline: 12px;
      }

      .page-meta {
        padding-inline: 14px;
        font-size: .61rem;
        text-align: right;
      }
    }

    @media (max-width: 360px) {
      .nav-inner {
        gap: 8px;
      }

      .nav-cta-wide {
        display: none;
      }

      .nav-cta-short {
        display: inline;
      }
    }
