/* WordToBrain design system — paper white, ink, focus-letter red */

:root {
  --bg: #ffffff;
  --ink: #1c1c22;
  --muted: #6b6b76;
  --accent: #c0392b;
  --accent-soft: #e2564a;
  --accent-wash: #fdf1ef;
  --hairline: #e5e5ea;
  --radius: 14px;
  --max-w: 880px;
}

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

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

body {
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: var(--accent);
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

h1 {
  font-size: clamp(1.9rem, 5.5vw, 2.7rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h2 {
  font-size: 1.35rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.05rem;
}

.focus {
  color: var(--accent);
}

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

/* Header bar */

.site-header {
  border-bottom: 1px solid var(--hairline);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.brand a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* Language toggle pill */

.lang {
  display: inline-flex;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
}

.lang button {
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 5px 13px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
}

.btn.ghost {
  border-color: var(--hairline);
  color: var(--muted);
}

.btn.ghost:hover {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

/* Status chips and soon-badges */

.chip {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-wash);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.badge.soon {
  border: 1.5px dashed var(--accent-soft);
  color: var(--accent);
  background: var(--accent-wash);
}

/* Cards */

.card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 22px;
}

a.card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

a.card:hover {
  border-color: var(--accent-soft);
  box-shadow: 0 4px 18px rgba(28, 28, 34, 0.06);
  text-decoration: none;
}

.card.dashed {
  border-style: dashed;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--hairline);
  margin-top: 72px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 26px;
  padding-bottom: 26px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
