@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

/*
  The palette is the product. YuSub exists to colour-code a subscription list, so the
  accent is not one hue but the set of label colours the app ships with. Reducing them to a
  single brand colour would contradict the thing being sold.

  No red anywhere: YouTube's mark is red, and both Google's branding guidelines and App
  Review guideline 5.2.1 treat a red play-button palette as trading on it.
*/
:root {
  --ink: #0e1116;
  --ink-raised: #161b23;
  --ink-line: #242c37;
  --text: #e9ecf1;
  --text-dim: #8b94a3;
  --text-faint: #5b6472;

  --label-sky: #7dd3fc;
  --label-mint: #86efac;
  --label-amber: #fcd34d;
  --label-violet: #c4b5fd;

  --measure: 62ch;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --shell: 68rem;

  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--label-sky);
  outline-offset: 3px;
  border-radius: 2px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- masthead ---------- */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}

/* Three stacked label bars — the app's own visual grammar, at wordmark scale. */
.wordmark::before {
  content: "";
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 3px;
  background:
    linear-gradient(var(--label-sky) 0 33%, transparent 33% 100%),
    linear-gradient(transparent 0 39%, var(--label-mint) 39% 61%, transparent 61% 100%),
    linear-gradient(transparent 0 67%, var(--label-amber) 67% 100%);
  transform: translateY(1px);
}

.masthead nav {
  display: flex;
  align-items: center;
  gap: clamp(0.875rem, 3vw, 1.75rem);
  font-size: 0.875rem;
  color: var(--text-dim);
}

.masthead nav a {
  text-decoration: none;
}

.masthead nav a:hover {
  color: var(--text);
}

/* ---------- shared type ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 1.25rem;
}

h1,
h2,
h3 {
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-wrap: balance;
  margin: 0;
}

h1 {
  font-size: clamp(2.5rem, 7.5vw, 4.5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
}

h3 {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1rem;
  max-width: var(--measure);
}

.lede {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--text-dim);
  line-height: 1.6;
}

/* ---------- buttons ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.375rem;
  border-radius: 8px;
  border: 1px solid var(--ink-line);
  background: var(--text);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button[aria-disabled="true"] {
  background: transparent;
  color: var(--text-dim);
  cursor: default;
}

.button[aria-disabled="true"]:hover {
  transform: none;
}

.button-quiet {
  background: transparent;
  color: var(--text);
  border-color: var(--ink-line);
}

.note {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--text-faint);
}

/* ---------- sections ---------- */

section {
  padding-block: clamp(3.5rem, 9vw, 7rem);
  border-top: 1px solid var(--ink-line);
}

section:first-of-type {
  border-top: 0;
}

/* ---------- prose pages ---------- */

.prose {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  border-top: 1px solid var(--ink-line);
}

.prose h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin-bottom: 0.75rem;
}

.prose h2 {
  font-size: 1.3125rem;
  margin-top: 2.75rem;
  margin-bottom: 0.75rem;
}

.prose p,
.prose li {
  color: var(--text-dim);
  max-width: var(--measure);
}

.prose ul {
  padding-left: 1.125rem;
  margin: 0 0 1rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose a {
  color: var(--label-sky);
  text-underline-offset: 3px;
}

.updated {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--text-faint);
  margin-bottom: 2.5rem;
}

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--ink-line);
  padding-block: 2.5rem 3.5rem;
  color: var(--text-faint);
  font-size: 0.875rem;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.5rem;
}

footer a {
  text-decoration: none;
}

footer a:hover {
  color: var(--text);
}

.disclaimer {
  max-width: var(--measure);
  line-height: 1.55;
  font-size: 0.8125rem;
}
