/* Hidden Layer brand system. Page-specific layout remains inline. */

:root {
  --hl-paper: #f3f1ec;
  --hl-ink: #111111;
  --hl-orange: #ff6a00;
  --hl-violet: #6b39ff;
  --hl-coral: #ff5a4e;
  --hl-gold: #c9a24a;
  --hl-line: rgba(17, 17, 17, .18);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-synthesis: none;
}

::selection {
  background: var(--hl-orange);
  color: var(--hl-ink);
}

a,
button,
input,
select {
  -webkit-tap-highlight-color: rgba(16, 17, 22, .14);
}

h1,
h2 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.site-header {
  min-height: 68px;
  padding: 24px 5vw;
  background: var(--paper, var(--hl-paper));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 32px;
  font-size: 19px;
  line-height: 1;
  letter-spacing: -.025em;
  text-transform: none;
}

.brand-mark {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
}

.brand-name {
  white-space: nowrap;
}

nav {
  gap: 24px;
}

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.site-header a,
footer a,
.text-link,
button {
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.site-header a:hover,
footer a:hover,
.text-link:hover {
  color: var(--brand-hover, var(--hl-orange));
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--hl-violet);
  outline-offset: 4px;
}

.eyebrow {
  margin-top: 0;
  margin-bottom: 22px;
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: .23em;
}

.text-link {
  font-size: 14px;
}

footer {
  min-height: 68px;
  padding: 26px 5vw;
  font-size: 11px;
  letter-spacing: .12em;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  line-height: 1;
  letter-spacing: -.015em;
  text-transform: none;
}

.footer-brand .brand-mark {
  width: 25px;
  height: 25px;
  flex-basis: 25px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.footer-links a,
footer > a {
  text-decoration: none;
}

.footer-separator {
  opacity: .55;
}

/* Shared layout for content pages. Error pages retain their styles. */
.site-page {
  --line: var(--hl-line);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

.site-page [hidden] { display: none !important; }
.site-page .skip-link { position: absolute; top: -100px; left: 16px; z-index: 1100; padding: 12px; background: var(--hl-paper); color: var(--hl-ink); }
.site-page .skip-link:focus { top: 12px; }
.site-page :is(h1, h2) { line-height: 1.04; }
.site-page :is(p, h1, h2, h3, a) { overflow-wrap: break-word; }
.site-page .eyebrow { font-size: 12px; line-height: 1.5; letter-spacing: .14em; }
.site-page .site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 24px;
  min-height: 76px;
  padding: 16px 5vw;
  background: var(--hl-paper);
  color: var(--hl-ink);
  border-bottom: 1px solid var(--hl-line);
}
.site-page .site-header a,
.site-page footer a { text-decoration: none; }
.site-page .brand { font-size: 19px; letter-spacing: -.025em; flex-shrink: 0; }
.site-page .brand-mark { width: 31px; height: 31px; flex-basis: 31px; }
.site-page .site-header .desktop-nav { display: flex; align-items: center; flex-wrap: nowrap; gap: 24px; margin-left: auto; }
.site-page .site-header nav a { min-height: 44px; font-size: 12px; letter-spacing: .09em; line-height: 1.4; }
.site-page .desktop-nav .nav-book { border-bottom: 1px solid currentColor; }
.site-page .site-header a:hover { color: #914000; }
.site-page .mobile-menu { display: none; }
.site-page summary:focus-visible { outline: 3px solid var(--hl-violet); outline-offset: 4px; }
.site-page [tabindex="0"]:focus-visible { outline: 3px solid var(--hl-violet); outline-offset: -3px; }

/* Text underlines follow each line instead of drawing a box under the link. */
.site-page .text-link {
  max-width: 100%;
  border-bottom: 0;
  font-size: 16px;
  line-height: 1.6;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .25em;
  text-decoration-skip-ink: auto;
}
.site-page .text-link:hover { color: #914000; }
.site-home :is(.hero, .projection) .text-link:hover { color: #ffc49a; }
.site-home .inquiry .text-link:hover { color: #111; }
.site-story :is(.live-hook, .live-section, .dark-section) .text-link:hover { color: #ffe2bd; }
.site-page :is(.actions, .fieldwork-links, .project-links, .ending-links) .text-link,
.site-page .offer .text-link,
.site-page .about-copy > .text-link,
.site-page .archive-next > .text-link {
  display: inline-block;
  min-height: 44px;
  padding: 8px 0;
}
.site-page .button { max-width: 100%; text-align: center; line-height: 1.5; }
.site-page :is(input, select, textarea) { font-size: 16px; }

.site-page footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 32px;
  min-height: 92px;
  padding: 24px 5vw;
  border-top: 1px solid var(--hl-line);
  background: var(--hl-paper);
  color: var(--hl-ink);
  letter-spacing: normal;
  text-transform: none;
}
.site-page footer .footer-brand { min-height: 44px; font-size: 16px; }
.site-page footer .brand-mark { width: 25px; height: 25px; flex-basis: 25px; }
.site-page footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 24px;
  min-width: 0;
  margin-left: auto;
}
.site-page footer .footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  line-height: 1.5;
  white-space: nowrap;
}
.site-page footer a:hover { color: #914000; }

.site-home .section { padding-block: 80px; }
.site-home :is(.about-copy, .tour-story-copy, .experiment-copy) > p:last-child { margin-bottom: 0; }
.site-home .about-copy { padding: 0; }
.site-home .fieldwork-experiment {
  grid-template-areas: "media heading" "media copy";
  grid-template-rows: auto auto;
  gap: 20px 40px;
  padding-top: 40px;
}
.site-home .experiment-heading { grid-area: heading; align-self: end; }
.site-home .experiment-heading h3 { margin-bottom: 0; }
.site-home .experiment-copy { grid-area: copy; align-self: start; }
.site-home .fieldwork-experiment .projection-media { grid-area: media; }
.site-home .fieldwork { padding-bottom: 48px; }
.site-home .follow { padding-top: 48px; }
.site-home .submit-status:empty { min-height: 0; margin: 0; }
.site-home #signup-form { scroll-margin-top: 24px; }

.site-archive .archive-intro { padding-block: 64px; }
.site-archive .completed-work { padding-block: 64px; }
.site-archive .archive-next { padding-block: 32px 48px; }
.site-archive .archive-intro h1,
.site-story .project-hero h1,
.site-frames .archive-hero h1 { font-size: clamp(48px, 8vw, 112px); }
.site-story :is(.live-hook, .story, .dark-section, .continuation, .live-section) { padding-block: 80px; }
.site-story .project-hero { padding-block: 64px; }
.site-story .project-nav { display: flex; flex-wrap: wrap; gap: 0 24px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--hl-line); }
.site-story .project-nav a { min-height: 44px; font-size: 14px; letter-spacing: normal; text-transform: none; text-decoration: underline; text-underline-offset: .25em; }
.site-story .story .gallery-hint { margin: 24px 0 0; font-size: 14px; color: var(--muted); letter-spacing: normal; text-transform: none; }
.site-story .swipe-hint { display: none; }
.site-archive figcaption,
.site-story :is(figcaption, .project-meta, .history-note h3, .step-number, .live-camera-status, .live-hook-caption, .gallery-hint, .current-facts span),
.site-frames :is(.index-field label, .frame figcaption) {
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .08em;
}
.site-story .sources { padding-block: 32px; font-size: 14px; }
.site-story .sources p { margin: 0; }
.site-story .project-meta { flex-wrap: wrap; }
.site-story .archive-link { display: inline-block; padding: 14px 20px; border: 1px solid #fffe; text-align: center; letter-spacing: .04em; }
.site-story .continuation .accent { color: #6b5222; }
.site-story .ending { padding-block: 64px 48px; }
.site-story .sticky-live-button { font-size: 14px; letter-spacing: .04em; }
.site-frames .archive-lead { font-size: clamp(18px, 2vw, 24px); margin-top: 24px; }
.site-frames .archive-controls { align-items: center; font-size: 12px; letter-spacing: .08em; }
.site-frames .archive-controls .text-link { letter-spacing: normal; text-transform: none; }
.site-frames .index-field { min-width: 0; }
.site-frames .index-field select { min-height: 48px; font-size: 16px; }
.site-frames :is(.hour-nav button, #load-more-button) {
  min-height: 44px;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: normal;
  text-transform: none;
}
.site-frames .hour-nav button:disabled { opacity: .55; }
.site-frames .period-summary { font-size: 14px; }
.site-frames .frame-download { font-size: 14px; letter-spacing: normal; text-transform: none; }
.site-frames .archive-grid:empty { padding: 0; }

@media (max-width: 900px) {
  .site-page .site-header { min-height: 60px; padding: 8px 5vw; gap: 16px; }
  .site-page .brand { min-height: 44px; font-size: 17px; gap: 8px; }
  .site-page .brand-mark { width: 27px; height: 27px; flex-basis: 27px; }
  .site-page .site-header .desktop-nav { display: none; }
  .site-page .mobile-menu { position: relative; display: block; margin-left: auto; }
  .site-page .mobile-menu summary {
    display: flex; align-items: center; min-height: 44px; padding: 8px 0 8px 12px;
    font-size: 14px; line-height: 1.4; letter-spacing: .06em; text-transform: uppercase;
    list-style: none; cursor: pointer;
  }
  .site-page .mobile-menu summary::-webkit-details-marker { display: none; }
  .site-page .mobile-menu summary::after { content: "+"; margin-left: 8px; font-size: 20px; }
  .site-page .mobile-menu[open] summary::after { content: "×"; }
  .site-page .site-header .mobile-nav {
    position: absolute; top: calc(100% + 8px); right: 0; z-index: 1001;
    display: flex; flex-direction: column; align-items: stretch; flex-wrap: nowrap;
    gap: 0; width: min(280px, 90vw); min-width: 0; max-height: 70vh; overflow-y: auto;
    padding: 8px; background: var(--hl-paper); color: var(--hl-ink);
    border: 1px solid var(--hl-line); box-shadow: 0 12px 30px #1112;
  }
  .site-page .site-header .mobile-nav a {
    display: flex; padding: 12px; font-size: 14px; letter-spacing: .04em; white-space: normal;
  }
  .site-page .site-header .mobile-nav a:hover { background: #e7e3db; color: #111; }
  .site-frames .archive-index { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .site-frames .hour-nav { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .site-page footer { flex-direction: column; gap: 8px; padding: 24px 5vw; }
  .site-page footer .footer-links { width: 100%; margin-left: 0; }
  .site-home .section { padding-block: 48px; }
  .site-home .fieldwork-grid { gap: 32px; }
  .site-home .fieldwork-experiment {
    grid-template-columns: minmax(0, 1fr); grid-template-rows: auto;
    grid-template-areas: "heading" "media" "copy"; gap: 20px; padding-top: 32px;
  }
  .site-home .fieldwork { padding-bottom: 32px; }
  .site-home .follow { padding-top: 32px; gap: 40px; }
  .site-home .follow .signup { padding-top: 32px; border-top: 1px solid var(--hl-line); }
  .site-home .fieldwork-card .eyebrow { margin-bottom: 12px; }
  .site-home .hero h1 { font-size: clamp(48px, 13vw, 76px); }
  .site-archive :is(.archive-intro, .completed-work) { padding-block: 48px; }
  .site-archive .archive-next { padding-block: 28px 40px; }
  .site-archive .archive-intro h1,
  .site-story .project-hero h1,
  .site-frames .archive-hero h1 { font-size: clamp(48px, 12vw, 68px); }
  .site-archive .project-copy h2 { font-size: clamp(38px, 9vw, 62px); }
  .site-story :is(.live-hook, .story, .dark-section, .continuation, .timeline-break, .live-section) { padding-block: 48px; }
  .site-story .project-hero { padding-block: 40px; }
  .site-story .ending { padding-block: 48px 40px; }
  .site-story .live-camera-status { align-items: start; }
  .site-story .swipe-hint { display: inline; }
  .site-story .project-nav { gap: 0 20px; }
  .site-frames .archive-hero { padding-block: 40px; }
  .site-frames .archive-controls { flex-direction: column; align-items: start; gap: 12px; }
}

@media (max-width: 480px) {
  .site-frames .archive-index { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .site-frames .hour-nav button { flex: 1; }
  .site-frames .archive-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .site-home .actions { gap: 12px 20px; }
  .site-home .offer { column-gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 52px;
    padding: 4px 5vw;
    flex-wrap: wrap;
    gap: 0 16px;
  }

  .site-header nav {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .brand {
    min-height: 44px;
    gap: 8px;
    font-size: 16px;
  }

  .brand-mark {
    width: 27px;
    height: 27px;
    flex-basis: 27px;
  }

  nav {
    gap: 10px;
  }

  nav a {
    min-height: 44px;
    font-size: 9px;
  }

  .footer-links {
    gap: 14px;
  }
}
