/* UsualShift — site styles
   Layout: one centered column (max 1080px). Black-and-white brand, the mark is the only ornament. */

@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/figtree-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/plexmono-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/plexmono-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --paper: #f4f4f2;
  --ink: #111111;
  --muted: #6c6c67;
  --line: rgba(17, 17, 17, 0.12);
  --soft: #e9e9e6;
  --font-display: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  /* mark geometry: --cap is the font's cap height (refined by the intro script), --u one drawing unit */
  --cap: 0.7;
  --u: calc(var(--cap) * 1em / 231);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e0e0d;
    --ink: #f1f1ee;
    --muted: #9a9a95;
    --line: rgba(241, 241, 238, 0.14);
    --soft: #1c1c1b;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-display);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html.has-intro { overflow: hidden; }
img, svg { max-width: 100%; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; }

.site { min-height: 100vh; display: flex; flex-direction: column; }
.inner {
  width: 100%; max-width: 1080px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
main { flex: 1; }

/* ---------- lockup (mark + name), built in em so big and small versions match ---------- */
.lockup {
  display: inline-block;
  white-space: nowrap;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  color: inherit;
  text-decoration: none;
}
.slot {
  display: inline-block; position: relative; vertical-align: baseline;
  width: calc(336 * var(--u)); height: calc(231 * var(--u));
  margin-right: 0.28em;
}
.mark {
  position: absolute; left: 0; bottom: 0;
  width: calc(336 * var(--u)); height: calc(331 * var(--u));
  max-width: none; /* the slot is narrower than the mark during the intro */
  overflow: visible;
  transform: translateY(calc(50 * var(--u)));
}
.words { display: inline-grid; vertical-align: baseline; overflow: hidden; padding-block: 0.12em; margin-block: -0.12em; }
.w { grid-area: 1 / 1; justify-self: start; white-space: nowrap; }
.ch { display: inline-block; }

/* ---------- header ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 24px; }
.top .lockup { font-size: 22px; }
.top ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; font-size: 15px; font-weight: 500; }
.top ul a { color: var(--muted); text-decoration: none; }
.top ul a:hover { color: var(--ink); }
@media (max-width: 560px) {
  .top .lockup { font-size: 20px; }
  .top ul { gap: 16px; }
  .top ul li.opt { display: none; }
}

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 20px;
}
h1, h2, h3 { font-weight: 800; letter-spacing: -0.035em; text-wrap: balance; margin: 0; }
.display { font-size: clamp(46px, 9vw, 112px); line-height: 0.96; letter-spacing: -0.048em; }
.display .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.display .line > span { display: inline-block; }
h2.section { font-size: clamp(32px, 5vw, 52px); line-height: 1.02; }
.lede { max-width: 44ch; margin: 28px 0 0; font-size: clamp(18px, 2.1vw, 21px); line-height: 1.55; color: var(--muted); }
.muted { color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 15px var(--font-display);
  padding: 13px 20px; border-radius: 999px; text-decoration: none;
  border: 1px solid var(--line); color: var(--ink); background: transparent;
  transition: background 0.2s, border-color 0.2s;
}
.btn:hover { border-color: var(--ink); }
.btn.solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* ---------- home sections ---------- */
.hero { padding-block: clamp(56px, 11vw, 140px) clamp(64px, 10vw, 120px); }
.band { border-top: 1px solid var(--line); padding-block: clamp(64px, 9vw, 112px); }
.band-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px 48px; align-items: end; }
.band-head p { margin: 0; color: var(--muted); max-width: 46ch; }
@media (max-width: 760px) { .band-head { grid-template-columns: 1fr; } }

/* the name: U, turned, S */
.name-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.glyph-card {
  border: 1px solid var(--line); border-radius: 20px;
  padding: 28px 20px 22px; display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.glyph-card svg { width: min(120px, 60%); height: auto; aspect-ratio: 1; }
.glyph-card svg g { transition: transform 0.9s cubic-bezier(0.83, 0, 0.17, 1); transform-box: view-box; transform-origin: 0 0; /* (0,0) is the mark's center */ }
.glyph-card svg g.s { transform: rotate(90deg); }
.glyph-card:hover svg g.turn { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) { .glyph-card svg g { transition: none; } }
.glyph-card p { margin: 0; text-align: center; font-size: 15px; line-height: 1.45; }
.glyph-card b { display: block; font-size: 22px; letter-spacing: -0.03em; }
.glyph-card span { color: var(--muted); }
@media (max-width: 640px) { .name-row { grid-template-columns: 1fr; } .glyph-card { flex-direction: row; justify-content: flex-start; } .glyph-card svg { width: 64px; } .glyph-card p { text-align: left; } }

.principles { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.principles li { padding: 28px 28px 30px 0; border-bottom: 1px solid var(--line); }
.principles li:nth-child(odd) { padding-right: 40px; }
.principles h3 { font-size: 22px; margin-bottom: 8px; }
.principles p { margin: 0; color: var(--muted); max-width: 40ch; }
@media (max-width: 700px) { .principles { grid-template-columns: 1fr; } }

.coming {
  margin-top: 40px; border: 1px dashed var(--line); border-radius: 20px;
  padding: 28px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between;
}
.coming p { margin: 0; max-width: 52ch; }
.platforms { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { font: 500 12px var(--font-mono); letter-spacing: 0.06em; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }

.contact-mail { display: inline-block; margin-top: 36px; font-size: clamp(30px, 6vw, 68px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; text-decoration: none; border-bottom: 2px solid var(--ink); word-break: break-word; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 48px 0 0; }
.facts div { min-width: 0; }
.facts dt { font: 500 12px var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.facts dd { margin: 0; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }

/* ---------- document pages (support, privacy, terms, legal) ---------- */
.doc { padding-block: clamp(40px, 7vw, 88px) 96px; }
.doc header { margin-bottom: 40px; }
.doc h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.02; }
.doc .updated { margin-top: 16px; font: 500 13px var(--font-mono); color: var(--muted); }
.prose { max-width: 68ch; }
.prose h2 { font-size: 26px; margin: 48px 0 12px; }
.prose h3 { font-size: 19px; margin: 28px 0 8px; letter-spacing: -0.02em; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--muted); }
.prose .note { border-left: 2px solid var(--ink); padding: 4px 0 4px 18px; margin: 24px 0; }
.kv { display: grid; grid-template-columns: minmax(0, 13em) minmax(0, 1fr); border-top: 1px solid var(--line); margin: 8px 0 24px; }
.kv dt, .kv dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--muted); padding-right: 16px; }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; } .kv dt { border-bottom: 0; padding-bottom: 0; } }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.toc a { display: inline-block; font-size: 14px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.toc a:hover { border-color: var(--ink); }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }
.lang-switch { font-size: 14px; color: var(--muted); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding-block: 56px 40px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot .lockup { font-size: 20px; }
.foot address { font-style: normal; color: var(--muted); margin-top: 18px; line-height: 1.6; }
.foot h2 { font: 500 12px var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot ul a { text-decoration: none; }
.foot ul a:hover { text-decoration: underline; }
.foot-base { margin-top: 48px; color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- intro (home page, first visit only; shown only while the script plays it) ---------- */
.curtain, .stage { position: fixed; inset: 0; display: none; }
html.has-intro .curtain, html.has-intro .stage { display: flex; }
.curtain { z-index: 50; background: var(--ink); }
/* white + difference: the logo always shows in the opposite color of what's behind it */
.stage {
  z-index: 51; flex-direction: column; align-items: center; justify-content: center; gap: 0.9em;
  mix-blend-mode: difference; color: #fff; pointer-events: none;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.stage .lockup { font-size: clamp(40px, 11vw, 116px); transform-origin: 0 0; }
.caption { display: grid; font: 500 13px var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.62; text-align: center; margin: 0; }
.caption span { grid-area: 1 / 1; opacity: 0; }
.caption b { font-family: var(--font-display); font-weight: 800; font-size: 1.2em; letter-spacing: 0; }
.skip-intro {
  position: fixed; z-index: 52; display: none;
  right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  font: 500 12px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase;
  background: transparent; color: var(--paper); border: 1px solid currentColor; border-radius: 999px;
  padding: 8px 14px; cursor: pointer; opacity: 0.7;
}
html.has-intro .skip-intro { display: block; }
