/* Anti Market — reset, typography, layout. Mobile-first (390px). */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

input, select, textarea {
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.75rem;
  width: 100%;
}
input:focus-visible, select:focus-visible, textarea:focus-visible,
button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: var(--leading-tight);
  letter-spacing: -0.01em;
}
h1 { font-size: var(--text-2xl); }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

main { flex: 1; padding-block: var(--space-5) var(--space-7); }

.muted { color: var(--muted); }
.price { font-variant-numeric: tabular-nums; }

/* single soft page-load reveal (section 12) */
@media (prefers-reduced-motion: no-preference) {
  main { animation: am-appear 400ms ease both; }
  @keyframes am-appear { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* header / footer */
.site-header {
  border-bottom: var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 3.5rem;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.logo .counter { color: var(--muted); font-size: var(--text-sm); margin-left: 0.5rem; }
.site-nav { display: flex; gap: var(--space-2) var(--space-3); align-items: center; font-size: var(--text-sm); flex-wrap: wrap; justify-content: flex-end; }
.site-nav a { white-space: nowrap; }
@media (max-width: 480px) { .site-nav { font-size: var(--text-xs); } }
.site-nav a { color: var(--muted); transition: color var(--transition); }
.site-nav a:hover { color: var(--ink); text-decoration: none; }

.site-footer {
  border-top: var(--border);
  padding-block: var(--space-5);
  font-size: var(--text-sm);
  color: var(--muted);
}
.site-footer .container { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-4); align-items: center; }
.site-footer .sig { margin-left: auto; font-variant-numeric: tabular-nums; }

/* brand signature */
.counter-mark {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
