/* EMUNIVA public site — static, no trackers, no cookies. */
:root {
  --bg: #f8f7f4;
  --text: #1b1c1f;
  --muted: #4a4a4a;
  --primary: #3f38c7;
  --primary-fill: #4a43d4;
  --card: #ffffff;
  --danger: #9b1c2c;
  --border: rgba(27, 28, 31, 0.12);
  --banner: #fff4d6;
  --banner-border: #c08a12;
  --focus: #3f38c7;
  --max: 42rem;
}

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

html {
  font-size: 112.5%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  line-height: 1.65;
}

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

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 10;
  background: var(--primary-fill);
  color: #fff;
  padding: 0.5rem 0.85rem;
  border-radius: 0.4rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--card);
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
}

.brand-meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-top: 0.7rem;
}

.nav a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.draft-banner {
  background: var(--banner);
  border-bottom: 1px solid var(--banner-border);
  padding: 0.75rem 0;
  color: var(--text);
}

.draft-banner strong {
  display: block;
}

main {
  padding: 1.75rem 0 3rem;
}

h1,
h2,
h3 {
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 1.85rem;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.6rem;
}

h3 {
  font-size: 1.05rem;
  margin: 1.4rem 0 0.4rem;
}

p,
li {
  color: var(--text);
}

.lede {
  font-size: 1.05rem;
  color: var(--muted);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.1rem 1.15rem;
  margin: 1rem 0;
}

ul {
  padding-left: 1.2rem;
}

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

.manual {
  display: inline-block;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.92em;
  background: #efeefe;
  color: #2b267a;
  padding: 0.05em 0.35em;
  border-radius: 0.3rem;
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #2b267a;
  color: #fff;
  padding: 0.12rem 0.4rem;
  border-radius: 0.25rem;
  vertical-align: middle;
}

.blocker {
  border: 2px solid var(--danger);
  background: #fff5f5;
  border-radius: 0.85rem;
  padding: 1rem 1.1rem;
  margin: 1.25rem 0;
}

.blocker h2 {
  margin-top: 0;
  color: var(--danger);
}

label {
  display: block;
  font-weight: 650;
  margin: 1rem 0 0.35rem;
}

input,
textarea,
select {
  width: 100%;
  font: inherit;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  background: #fff;
  color: var(--text);
  min-height: 44px;
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

.hint {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0.25rem 0 0;
}

.actions {
  margin-top: 1.25rem;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
}

button[disabled] {
  background: #c8c6e6;
  color: #3f3f4a;
  cursor: not-allowed;
}

.button-primary {
  background: var(--primary-fill);
  color: #fff;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}

@media (max-width: 40rem) {
  html {
    font-size: 100%;
  }
}
