/* =========================================================
   core/base.css
   ---------------------------------------------------------
   Global reset, base typography and site container defaults.
   ========================================================= */

/* =========================================================
   2) GLOBAL RESET & BASE
   --------------------------------------------------------- */

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.site-container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space-l);
}

main.site-container {
  padding-top: var(--space-m);
  padding-bottom: var(--space-m);
}

.site-header {
  margin-bottom: var(--space-m);
}

.site-footer {
  margin-top: var(--space-m);
  padding: var(--space-l) 0;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
  text-decoration: underline;
}

input[type="date"],
input[type="time"],
input[type="text"],
input[type="search"],
select,
textarea,
button {
  font: inherit;
}

input[type="date"],
input[type="search"] {
  font-size: 16px; /* avoid iOS zoom */
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Autofill cleanup */
input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--card) inset;
  -webkit-text-fill-color: var(--text);
}

