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

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

body {
  margin: 0;
  font-family: var(--f-text);
  font-size: var(--fs-body);
  line-height: var(--lh-text);
  color: var(--c-ink);
  background: var(--c-bone);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.shell {
  width: 100%;
  max-width: var(--w-page);
  margin-inline: auto;
  padding-inline: var(--sp-4);
}

@media (min-width: 768px) { .shell { padding-inline: var(--sp-6); } }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.875rem 1.75rem;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 0.9375rem;
  white-space: nowrap;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--accent { background: var(--c-accent); color: var(--c-on-accent); }
.btn--accent:hover { background: var(--c-accent-hot); }

.btn--ghost {
  border: 1px solid var(--c-line);
  background: var(--c-glass);
  color: var(--c-ink);
}

.btn--ghost:hover { border-color: var(--c-brand); }

.btn--sm { padding: 0.625rem 1.125rem; font-size: 0.875rem; }

.plate {
  background: var(--c-glass);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--r-md);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-plate);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
