/* satinata — calm, typography-led, dark */

:root {
  --bg: #141816;
  --bg-elev: #1a1f1c;
  --bg-card: #1e2521;
  --text: #e8ebe6;
  --text-muted: #9aa39a;
  --accent: #a8c4a0;
  --accent-soft: #7a9474;
  --border: #2a322c;
  --focus: #c5d9be;
  --max: 42rem;
  --wide: 58rem;
  --font: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --space: clamp(1rem, 2.5vw, 1.75rem);
  --radius: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: clamp(1.05rem, 0.4vw + 1rem, 1.175rem);
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, #243028 0%, transparent 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #111;
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: var(--space);
  top: var(--space);
}

.wrap {
  width: min(100% - 2 * var(--space), var(--wide));
  margin-inline: auto;
}

.site-header {
  padding: calc(var(--space) * 1.5) 0 var(--space);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-elev) 80%, transparent);
  backdrop-filter: blur(8px);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.wordmark {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--text);
  text-transform: lowercase;
}

.wordmark:hover,
.wordmark:focus-visible {
  color: var(--accent);
}

.tagline {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

.hero {
  padding: calc(var(--space) * 2.5) 0 calc(var(--space) * 2);
  max-width: min(100% - 2 * var(--space), var(--max));
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-weight: 500;
  font-size: clamp(1.85rem, 1.2vw + 1.5rem, 2.45rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.lede {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05em;
}

.lede strong {
  color: var(--accent);
  font-weight: 600;
}

section {
  padding: calc(var(--space) * 1.75) 0;
}

section + section {
  border-top: 1px solid var(--border);
}

h2 {
  font-weight: 500;
  font-size: clamp(1.35rem, 0.6vw + 1.15rem, 1.65rem);
  margin: 0 0 1rem;
  letter-spacing: -0.015em;
}

.section-intro {
  margin: -0.25rem 0 1.5rem;
  color: var(--text-muted);
  max-width: var(--max);
}

.etym-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  margin-bottom: 1.25rem;
}

.etym-card,
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}

.etym-card h3 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--accent);
  font-weight: 500;
}

.etym-card .lang {
  margin: 0.15rem 0 0.65rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.etym-card p:last-child,
.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98em;
}

.etym-join {
  max-width: var(--max);
  margin: 0;
  color: var(--text-muted);
}

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

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

.card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.08rem;
  font-weight: 600;
  font-family: var(--sans);
  letter-spacing: -0.01em;
}

.about p {
  max-width: var(--max);
  margin: 0;
  color: var(--text-muted);
}

.about strong {
  color: var(--text);
}

.site-footer {
  margin-top: calc(var(--space) * 2);
  padding: calc(var(--space) * 1.75) 0 calc(var(--space) * 2);
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.footer-brand {
  margin: 0;
  font-family: var(--sans);
  letter-spacing: 0.02em;
}

.footer-abuse,
.footer-note {
  margin: 0;
  color: var(--text-muted);
}

.footer-abuse a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.footer-abuse a:hover,
.footer-abuse a:focus-visible {
  color: var(--focus);
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
