/* YOLO Mode Studio — one static stylesheet, no JS. Colors come from logo/gen.mjs. */

@font-face {
  font-family: "JetBrains Mono";
  font-weight: 400;
  font-display: swap;
  src: url("fonts/jetbrains-mono-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-weight: 700;
  font-display: swap;
  src: url("fonts/jetbrains-mono-700-normal.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  --ink: #111110;
  --paper: #f4f4ef;
  --accent: #d2ff3a;

  --bg: var(--paper);
  --fg: var(--ink);
  --muted: #62625a;
  --line: #d6d6cc;

  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--ink);
    --fg: var(--paper);
    --muted: #a0a096;
    --line: #2c2c29;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: var(--muted);
}
a:hover {
  text-decoration-color: currentColor;
}
a:focus-visible {
  outline: 1px solid var(--fg);
  outline-offset: 4px;
}

/* One narrow column; the legal block sits at the bottom of the screen. */
.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(40px, 10vh, 112px) clamp(20px, 5vw, 32px) 32px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Logo: glyphs follow the text color; the cursor is the only accent on the site. */
.logo {
  display: block;
  width: 400px;
  max-width: none;
  height: auto;
  /* centred on every page; the SVG viewBox has 64 of 2669 units of padding on top */
  margin: -10px auto 0;
}
.logo .glyphs {
  fill: currentColor;
}
.logo .caps {
  fill: none;
  stroke: currentColor;
}
.logo .cursor {
  fill: var(--accent);
}

/* The cursor blinks softly: it dims, it never disappears. */
@keyframes cursor-blink {
  from {
    opacity: 1;
  }
  to {
    opacity: 0.25;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .logo .cursor {
    animation: cursor-blink 500ms ease-in-out infinite alternate;
  }
}
.logo-link {
  display: block;
  width: fit-content;
  margin: 0 auto;
}

h1,
h2 {
  margin: 0;
  font: inherit;
}

p {
  margin: 0;
}

/* Home: the slogan sits in the middle of the space below the logo. */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 48px 0;
}

.lede {
  width: 100%;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: center;
}

/* Slogan roulette (slogans.js): the leaving line and the entering one slide left together. */
.lede {
  position: relative;
  overflow: hidden;
}
.lede span {
  display: block;
  transition: transform 700ms cubic-bezier(0.65, 0, 0.35, 1);
}
.lede span + span {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}
.lede .is-entering {
  transform: translateX(100%);
}
.lede .is-leaving {
  transform: translateX(-100%);
}

.foot {
  margin-top: auto;
  padding-top: 48px;
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.75;
  color: var(--muted);
}

.legal {
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 24px;
}
.legal dd {
  margin: 0;
  color: var(--fg);
  overflow-wrap: anywhere;
}

.foot-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
  margin-top: 20px;
}
.foot-line nav {
  display: flex;
  gap: 20px;
}

/* Privacy / Terms / 404 */
.doc {
  margin-top: 64px;
}
.doc h1 {
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.3;
}
.doc .stamp {
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--muted);
}
.doc h2 {
  margin: 2.4em 0 0.5em;
  font-weight: 700;
  font-size: inherit;
}
.doc p {
  margin-bottom: 0.9em;
  overflow-wrap: break-word;
}
.doc .stamp + p {
  margin-top: 32px;
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }
  .logo {
    width: 300px;
    margin: -7px auto 0;
  }
  .lede {
    font-size: 1.25rem;
    min-height: 2.4em;
  }
  .foot {
    padding-top: 64px;
  }
}
