:root {
  color-scheme: light;
  --gray-50: #ffffff;
  --gray-100: #efefef;
  --gray-200: #d7d7d7;
  --gray-300: #bcbcbc;
  --gray-500: #777777;
  --gray-700: #4d4d4d;
  --gray-800: #202020;
  --gray-900: #111111;
  --bg-base: #f4f2ea;
  --accent: #fbfaf5;
  --ink: var(--gray-800);
  --muted: var(--gray-500);
  --line: rgba(32, 32, 32, 0.18);
  --line-strong: rgba(32, 32, 32, 0.42);
  --paper: #fbfaf5;
  --paper-soft: #f8f6ef;
  --inverse: #111111;
  --inverse-text: var(--bg-base);
  --space-100: 4px;
  --space-200: 8px;
  --space-300: 12px;
  --space-400: 16px;
  --space-500: 24px;
  --space-600: 32px;
  --space-700: 48px;
  --space-800: 64px;
  --space-900: 80px;
  --space-1000: 96px;
  --radius-sm: 4px;
  --radius-lg: 8px;
  --radius-xl: 10px;
  --sans: "Tt Neoris", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Pp Mondwest", "Tt Neoris", Georgia, serif;
  --thin: "Af Another Sans", "Tt Neoris", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, monospace;
}

@font-face {
  font-family: "Pp Mondwest";
  src: local("Pp Mondwest"), local("Pp Mondwest-Regular");
  font-display: swap;
}

@font-face {
  font-family: "Tt Neoris";
  src: local("Tt Neoris"), local("Tt Neoris-Regular");
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: local("Geist Mono"), local("GeistMono-Regular");
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--bg-base);
  color: var(--ink);
  font-family: var(--sans);
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 80px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 80px 100%;
  opacity: 0.42;
}

a {
  color: inherit;
}

button,
textarea {
  font: inherit;
}

button,
.button-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--inverse);
  border-radius: var(--radius-lg);
  background: var(--inverse);
  color: var(--inverse-text);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

button:hover,
.button-link:hover {
  background: transparent;
  color: var(--ink);
}

button:active,
.button-link:active {
  transform: translateY(1px);
}

code,
pre {
  font-family: var(--mono);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 242, 234, 0.92);
  padding: var(--space-400) var(--space-500);
  backdrop-filter: blur(18px);
}

.wordmark,
.top-links a {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
}

.top-links {
  display: flex;
  gap: var(--space-500);
}

.top-links a {
  color: var(--muted);
}

.top-links a:hover {
  color: var(--ink);
}

.view {
  width: min(1040px, calc(100% - 32px));
  min-height: calc(100svh - 70px);
  margin: 0 auto;
  padding: var(--space-900) 0 var(--space-1000);
}

.kicker,
.label,
.rail-label,
.microcopy {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: uppercase;
}

.kicker {
  margin: 0 0 var(--space-500);
  color: var(--muted);
}

h1 {
  margin: 0;
  max-width: 940px;
  font-family: var(--display);
  font-size: 5rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.86;
  text-transform: uppercase;
}

.lede {
  max-width: 760px;
  margin: var(--space-600) 0 0;
  color: var(--gray-700);
  font-family: var(--thin);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.25;
}

.command-stack {
  display: grid;
  gap: var(--space-300);
  margin-top: var(--space-700);
}

.command-row {
  display: flex;
  min-width: 0;
  align-items: stretch;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  background: var(--paper);
  overflow: hidden;
}

.command-row code {
  min-width: 0;
  flex: 1;
  padding: var(--space-400) var(--space-500);
  overflow-x: auto;
  color: var(--ink);
  font-size: 0.9375rem;
  line-height: 1.4;
  white-space: nowrap;
}

.command-row button {
  min-height: auto;
  border-width: 0 0 0 1px;
  border-color: var(--line-strong);
  border-radius: 0;
  padding: 0 var(--space-500);
}

.runline {
  width: fit-content;
  max-width: 100%;
  border-bottom: 1px solid var(--line-strong);
  padding: var(--space-100) 0;
  color: var(--gray-700);
  font-family: var(--mono);
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
}

.straight-flow {
  display: grid;
  gap: var(--space-700);
  margin-top: var(--space-800);
}

.flow-block {
  border-top: 1px solid var(--line-strong);
  padding-top: var(--space-500);
  scroll-margin-top: 92px;
}

.flow-block h2 {
  margin: 0 0 var(--space-400);
  font-family: var(--display);
  font-size: 2.625rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.95;
  text-transform: uppercase;
}

.flow-block p {
  max-width: 780px;
  margin: 0;
  color: var(--gray-700);
  font-size: 1rem;
  line-height: 1.5;
}

.flow-block p + p {
  margin-top: var(--space-300);
}

.method-list {
  display: grid;
  gap: var(--space-300);
  margin: var(--space-500) 0 0;
  padding: 0;
  list-style: none;
}

.method-list li {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: var(--space-400);
  border-top: 1px solid var(--line);
  padding-top: var(--space-400);
  color: var(--gray-700);
  line-height: 1.45;
}

.method-list span {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 600;
}

.share-tools {
  display: grid;
  gap: var(--space-400);
  margin-top: var(--space-500);
}

.label {
  color: var(--ink);
}

textarea {
  width: 100%;
  min-height: 210px;
  resize: vertical;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  background: var(--paper);
  color: var(--ink);
  padding: var(--space-500);
  font-family: var(--mono);
  font-size: 0.9375rem;
  line-height: 1.55;
  outline: none;
}

textarea:focus {
  border-color: var(--inverse);
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-300);
}

.share-actions button,
.share-actions .button-link {
  padding: 0 var(--space-500);
}

.rendered-output {
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--paper-soft);
  padding: var(--space-400);
  color: var(--gray-700);
  font-family: var(--mono);
  font-size: 0.875rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.muted {
  color: var(--muted);
}

.share-preview {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  background: var(--paper);
}

.tweet-wall {
  display: grid;
  gap: var(--space-400);
  margin-top: var(--space-500);
}

.fame-form {
  display: grid;
  gap: var(--space-300);
  margin-top: var(--space-500);
}

.fame-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-300);
}

.fame-row input {
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  background: var(--paper);
  color: var(--ink);
  padding: 0 var(--space-400);
  font-family: var(--mono);
  font-size: 0.9375rem;
  outline: none;
}

.fame-row input:focus {
  border-color: var(--inverse);
}

.fame-status {
  min-height: 1.4em;
  color: var(--gray-700);
  font-family: var(--mono);
  font-size: 0.8125rem;
}

.tweet-empty {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--paper-soft);
  padding: var(--space-500);
  color: var(--gray-700);
  font-size: 1rem;
  line-height: 1.5;
}

.tweet-slot {
  width: min(560px, 100%);
}

.tweet-fallback {
  display: inline-block;
  border-bottom: 1px solid currentColor;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}

.fineprint {
  margin-top: var(--space-700);
  border-top: 1px solid var(--line);
  padding-top: var(--space-400);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.5;
}

@media (min-width: 760px) {
  .topbar {
    padding: var(--space-400) var(--space-700);
  }

  .view {
    padding-top: var(--space-1000);
  }

  h1 {
    font-size: 8.5rem;
  }

  .lede {
    font-size: 1.7rem;
  }

  .flow-block h2 {
    font-size: 3.6rem;
  }
}

@media (min-width: 1080px) {
  h1 {
    font-size: 10.25rem;
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    gap: var(--space-300);
    padding: var(--space-300) var(--space-400);
  }

  .top-links {
    gap: var(--space-300);
  }

  .top-links a {
    font-size: 0.75rem;
  }

  .view {
    width: min(100% - 24px, 1040px);
    padding: var(--space-700) 0 var(--space-800);
  }

  h1 {
    font-size: 4.45rem;
  }

  .lede {
    font-size: 1.25rem;
  }

  .command-row {
    display: grid;
  }

  .command-row button {
    min-height: 44px;
    border-width: 1px 0 0;
  }

  .command-row code {
    overflow-x: visible;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .method-list li {
    grid-template-columns: 1fr;
    gap: var(--space-200);
  }

  .flow-block h2 {
    font-size: 2.25rem;
  }
}
