/* Shared chrome for every direction. Each direction sets --bg, --ink and friends. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --pad: clamp(16px, 4vw, 56px);
  --bar-h: 72px;
  --ui: ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
html { height: 100%; }
body { min-height: 100%; }
html { overscroll-behavior: none; background: var(--bg); }
body {
  background: var(--bg);
  color: var(--ink);
  /* No overflow: hidden here: on iOS it keeps the page from running behind Safari's toolbars. Everything
     on the page is fixed, so there is nothing to scroll anyway. */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: var(--ui);
}

/* The area the name fills: the viewport minus padding and the bottom bar. */
/* Safe areas (notch, rounded corners, home bar, iPhone Duo's button column): the art runs under them, the
   type and the bar stay clear. Each edge keeps the page margin, or the system's inset where that is larger,
   plus the button column on that side (--col-l / --col-r, set in index.html). */
:root {
  --safe-t: max(var(--pad-top, var(--pad)), env(safe-area-inset-top, 0px));
  --safe-r: calc(max(var(--pad), env(safe-area-inset-right, 0px)) + var(--col-r, 0px));
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: calc(max(var(--pad), env(safe-area-inset-left, 0px)) + var(--col-l, 0px));
}
.stage {
  position: fixed;
  inset: 0;
  padding: var(--safe-t) var(--safe-r) calc(var(--pad-bottom, var(--pad)) + var(--bar-h) + var(--safe-b)) var(--safe-l);
  touch-action: none;
}
.ft {
  position: absolute;
  inset: 0;
  font-weight: 700;
  font-synthesis: none;
  text-rendering: geometricPrecision;
  font-kerning: none;
}
/* no-JS fallback: plain heading, sized to the viewport */
.ft { display: flex; align-items: center; font-size: 22vw; line-height: .9; }
.js .ft { display: block; font-size: initial; line-height: initial; opacity: 0; transition: opacity .9s ease; }
.js .ft.ready { opacity: 1; }
.ft-line { position: absolute; left: 0; top: 0; white-space: nowrap; line-height: 1; transform-origin: 0 0; }
.ft-in { display: inline-block; }
@media (prefers-reduced-motion: reduce) { .js .ft { transition: none; } }

/* Bottom bar: one tiny sentence, a few icon buttons. */
.bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: calc(var(--bar-h) + var(--safe-b));
  padding: 0 calc(var(--safe-r) - 10px) var(--safe-b) var(--safe-l);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 10;
}
.tag {
  font: 500 clamp(10px, 1vw, 12px)/1.35 var(--ui);
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;  /* the tagline breaks only where the markup says */
}
.socials { display: flex; gap: 2px; }
.socials a {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: inherit;
  opacity: .8;
  transition: opacity .2s, transform .2s, background-color .2s;
}
.socials a:hover { opacity: 1; background: color-mix(in srgb, currentColor 12%, transparent); transform: translateY(-1px); }
.socials a:focus-visible { opacity: 1; outline: 2px solid currentColor; outline-offset: 0; }
.socials svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 560px) {
  :root { --bar-h: 104px; }
  .bar { flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; padding: 0 var(--safe-r) var(--safe-b) var(--safe-l); }
  .tag { max-width: none; }
  .socials { margin-left: -10px; }
}
@media (max-height: 420px) and (orientation: landscape) { :root { --bar-h: 56px; } }
