* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(101, 129, 169, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(101, 129, 169, 0.08) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.46), transparent 92%);
  opacity: 0.35;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: var(--title-1);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.025em;
}

h2 {
  font-size: var(--title-2);
  font-weight: 750;
  line-height: 1.24;
  letter-spacing: -0.015em;
}

h3,
h4,
strong {
  line-height: 1.3;
}

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

form,
.field,
.checkboxes,
.task-list,
.flow-groups,
.stack {
  display: grid;
  gap: var(--space-4);
}

.field label,
label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: #556987;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

input[type="file"],
input[type="text"],
input[type="number"],
input[type="password"],
select,
input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.48);
}

button {
  border: 0;
  border-radius: 999px;
  min-height: 44px;
  padding: 11px 18px;
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

a.primary,
a.secondary {
  min-height: 44px;
}

.primary {
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--line);
}

.meta,
.subtle,
.empty,
.flow-group-note,
.hero p {
  color: var(--muted);
}

.meta {
  font-size: var(--text-sm);
  line-height: 1.6;
}

.subtle {
  font-size: var(--text-sm);
}
