/* Twizt launch site: what every page shares. Tokens, type, the top bar, the
   call to action, the footer. No third-party anything: fonts are served from
   here (static/fonts, all under the SIL Open Font License). */

@font-face {
  font-family: 'Geist';
  src: url('/fonts/geist-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('/fonts/geist-mono-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* The logo's lettering, and so every headline's. */
@font-face {
  font-family: 'Big Shoulders Display';
  src: url('/fonts/big-shoulders-display-latin-900-normal.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f5f0e1;
  --paper-2: #ece5d1;
  --paper-3: #dfd6bd;
  --ink: #0a0a0a;
  --ink-2: #3b3932;
  --ink-3: #6b6759;
  --lemon: #f4c430;
  --lemon-2: #ffd95a;
  --lemon-deep: #c99a06;
  --leaf: #7cc46a;
  --leaf-deep: #2c6e2f;
  --night: #0a0a0a;
  --night-2: #151513;
  --night-3: #201f1c;
  --night-line: #2e2d28;
  --bone: #f5f0e1;
  --bone-2: #b9b4a4;
  --red: #e5604a;

  --display: 'Big Shoulders Display', Impact, 'Arial Narrow', sans-serif;
  /* A parallelogram at the Z's lean, for buttons, chips and labels. */
  --lean: polygon(var(--cut, 12px) 0, 100% 0, calc(100% - var(--cut, 12px)) 100%, 0 100%);
  --text: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 22px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  /* The slant of the Z in the logo. */
  --slant: -37.9deg;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--lemon); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--lemon); color: var(--ink); }

.wrap, .container { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--lemon); color: var(--ink); padding: 10px 16px; border-radius: 0; font-weight: 600; }
.skip-link:focus { top: 12px; }

/* The wordmark: TWI, the Z mark, T. */
.wordmark { display: inline-flex; align-items: center; gap: 0.06em; font-family: 'Big Shoulders Display', Impact, sans-serif; font-weight: 900; font-size: 30px; line-height: 1; letter-spacing: 0.01em; text-decoration: none; color: var(--bone); }
.wordmark__z { height: 0.72em; width: auto; margin-inline: 0.03em; }

/* The top bar: a black slab cut at the Z's lean. It floats over the page, steps
   aside while you scroll down and comes back when you scroll up. */
.bar { position: fixed; inset: 14px 0 auto 0; z-index: 50; padding-inline: var(--gutter); pointer-events: none; transition: transform 0.45s var(--ease); }
.bar.is-away { transform: translateY(-140%); }
.bar__inner { --cut: 22px; pointer-events: auto; max-width: var(--wrap); margin-inline: auto; display: flex; align-items: center; gap: 20px; height: 60px; padding: 0 22px 0 40px; background: var(--ink); color: var(--bone); clip-path: var(--lean); }
.bar__nav { margin-left: auto; }
.bar__nav ul { display: flex; gap: 2px; }
.bar__nav a { --cut: 8px; display: block; padding: 8px 16px; font-family: var(--display); font-weight: 900; font-size: 17px; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; color: var(--bone-2); clip-path: var(--lean); transition: color 0.15s, background 0.15s; }
.bar__nav a:hover, .bar__nav a[aria-current] { color: var(--ink); background: var(--lemon); }
@media (max-width: 860px) {
  .bar__wide { display: none; }
}
@media (max-width: 560px) {
  .bar__inner { --cut: 14px; gap: 8px; padding: 0 16px 0 26px; }
  .bar .cta span { display: none; }
  .bar .cta { padding: 0; width: 46px; justify-content: center; }
}

/* The scroll's progress, as a lemon line along the top edge. */
.progress { position: fixed; inset: 0 0 auto 0; z-index: 60; height: 5px; background: var(--lemon); transform: scaleX(0); transform-origin: left; pointer-events: none; }

/* The call to action: a slab cut at the Z's lean. "Soon" is a statement, not a button. */
.cta { --cut: 10px; display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 24px 0 20px; background: var(--lemon); color: var(--ink); font-family: var(--display); font-weight: 900; font-size: 18px; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; white-space: nowrap; clip-path: var(--lean); }
a.cta { transition: transform 0.2s var(--ease), background 0.2s; }
a.cta:hover { background: var(--lemon-2); transform: translate(2px, -2px); }
.cta__icon { flex: none; }
/* Read out, not shown. */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cta--hero, .cta--end { --cut: 16px; height: 66px; padding: 0 40px 0 32px; font-size: 26px; }
.cta--hero { background: var(--ink); color: var(--paper); }
.cta--hero .cta__icon { color: var(--lemon); }
a.cta--hero:hover { background: var(--night-3); }
.cta--foot { margin-top: 20px; }

/* Footer */
.foot { background: var(--night); color: var(--bone-2); padding: 72px 0 36px; font-size: 15px; }
.foot a { color: var(--bone); text-decoration-color: var(--night-line); }
.foot a:hover { text-decoration-color: var(--lemon); }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 48px; }
.foot h2 { font-family: var(--display); font-weight: 900; font-size: 20px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lemon); margin-bottom: 16px; }
.foot li { margin-bottom: 8px; }
.wordmark--foot { font-size: 44px; margin-bottom: 14px; }
.tmdb { margin-top: 24px; display: grid; gap: 10px; font-size: 13px; max-width: 34ch; }
.foot__base { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--night-line); display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: 13px; }
@media (max-width: 860px) {
  .foot__grid { grid-template-columns: 1fr; gap: 36px; }
}

/* Things that arrive as you reach them. Only when scripts run, and never for
   people who asked for less motion. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--delay, 0s); }
  .js [data-rise].is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

.foot__note { margin-top: 12px; max-width: 40ch; font-size: 13.5px; line-height: 1.5; }
.foot__note strong { color: var(--bone); }
