@font-face { font-family: "Factory 1982"; src: url("/factory-1982.otf"); }
@font-face { font-family: "Avenir Medium"; src: url("/avenir-medium.woff2"); }
:root {
  --heading: "Factory 1982", sans-serif;
  --body: "Avenir Medium", sans-serif;
  --navy: #0E2B69;
  --ivory: #f4f2eb;
  --silver: #DEDDD1;
  --gutter: clamp(24px, 5vw, 112px);
  --inset-left: max(var(--gutter), env(safe-area-inset-left));
  --inset-right: max(var(--gutter), env(safe-area-inset-right));
  --vertical-inset: clamp(24px, 5dvh, 64px);
  --footer-inset: max(clamp(8px, 1.4dvh, 16px), env(safe-area-inset-bottom));
  --action-size: clamp(15px, 1.3vw, 19px);
  --body-size: 16px;
  --credit-size: clamp(13px, 1vw, 15px);
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  color-scheme: dark;
  color: var(--ivory);
  background: var(--navy);
  font: 500 var(--body-size)/1.5 var(--body);
}
* { box-sizing: border-box; }
body, h1, h2, p { margin: 0; }
a, button, input { color: inherit; }
a { text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; text-underline-offset: .16em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--ivory); outline-offset: 3px; }
.scene {
  position: relative;
  isolation: isolate;
  background: var(--navy);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(min-content, 1fr) auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding-inline: var(--inset-left) var(--inset-right);
  padding-top: max(var(--vertical-inset), env(safe-area-inset-top));
  padding-bottom: var(--footer-inset);
}
.plate {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--plate-position, center);
}
@media (max-aspect-ratio: 1/1) {
  :root { --plate-position: 48% center; }
}
.scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 82% 38% at 13% 0%, rgb(22 42 61 / 72%), transparent 92%);
}
.signature { align-self: start; }
.signature img {
  display: block;
  width: min(50%, 1120px);
  height: auto;
}
.footer {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content minmax(0, 1fr);
  grid-template-areas: "signup credits contact";
  align-items: center;
  gap: 0 28px;
  padding-block: var(--space-2) 2px;
}
.footer::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: -80px calc(-1 * var(--inset-right)) calc(-1 * var(--footer-inset)) calc(-1 * var(--inset-left));
  background: linear-gradient(to bottom, transparent 0, rgb(26 40 47 / 74%) 80px, rgb(26 40 47 / 89%) 100%);
}
.action-title {
  font: 400 var(--action-size)/1.25 var(--heading);
  font-synthesis: none;
}
.signup { grid-area: signup; justify-self: start; min-width: 0; max-width: 100%; }
.signup-opener {
  padding: 0;
  min-height: 44px;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  text-wrap: balance;
  cursor: pointer;
}
.signup-opener:hover { text-decoration: underline; text-underline-offset: .18em; }
.signup-fallback { display: none; }
.credits { grid-area: credits; text-align: center; color: var(--ivory); }
.contact {
  grid-area: contact;
  justify-self: end;
  display: flex;
  align-items: center;
  min-height: 44px;
  text-align: right;
}
.entry[popover] {
  position: fixed;
  inset: auto auto max(112px, 15dvh) var(--inset-left);
  margin: 0;
  width: min(335px, calc(100vw - 2 * var(--gutter)));
  max-height: 60dvh;
  padding: 16px 18px;
  color: var(--ivory);
  background: #2F2F2F;
  border: 1px solid #777777;
}
.entry[popover]::backdrop { background: transparent; }
@supports not selector(:popover-open) {
  .signup-opener { display: none; }
  .signup-fallback { display: block; }
  .entry[popover] { position: static; width: 100%; padding: 0; background: transparent; border: 0; }
}
.line {
  display: flex;
  align-items: stretch;
  contain: inline-size;
  border-bottom: 1px solid rgb(244 242 235 / 64%);
}
.line:focus-within { border-bottom-color: var(--ivory); }
.line input, .line button {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  font: inherit;
}
.line input { flex: 1; min-width: 0; }
.line input::placeholder { opacity: 1; color: var(--ivory); }
.line button {
  display: grid;
  place-items: center end;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
}
.line button svg { display: block; width: 20px; height: 20px; }
.line button:hover { color: var(--silver); }
.line button:disabled { opacity: .6; }
.status { contain: inline-size; margin-top: var(--space-1); }
.status:empty, #signup-complete { display: none; }
#signup-complete:target { display: block; }
.location, .imprint { font-size: var(--credit-size); line-height: 1.5; }
.location a { color: var(--ivory); }
.imprint { font-feature-settings: "rlig" 0; }
@media (min-width: 681px) and (max-width: 960px) {
  .footer { column-gap: 12px; }
}
@media (max-width: 680px), (max-width: 960px) and (max-height: 480px) and (pointer: coarse) {
  :root { --action-size: 16px; --credit-size: 13px; }
  .signature img { width: 100%; }
  .footer {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    grid-template-areas: "signup contact" "credits credits";
    gap: var(--space-2) 18px;
  }
}
@media (max-height: 480px) {
  :root { --vertical-inset: 12px; }
}
@media (pointer: coarse), (max-width: 680px) {
  :root {
    --art-bleed: 0px;
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: pinch-zoom;
    background: #414f58 url("/homepage/ascending-daylight.webp") var(--plate-position, center) / cover no-repeat;
  }
  .scene {
    /* The artwork spans the bleed. Keep all controls inside the usable viewport. */
    background: transparent;
    min-height: 0;
    height: calc(100vh + 2 * var(--art-bleed));
    height: calc(100dvh + 2 * var(--art-bleed));
    padding-top: calc(var(--art-bleed) + max(var(--vertical-inset), env(safe-area-inset-top)));
    padding-bottom: calc(var(--art-bleed) + var(--footer-inset));
  }
  .footer::before {
    bottom: calc(-1 * (var(--footer-inset) + var(--art-bleed)));
  }
}
