/* The Meitheal: base styles. Load after tokens.css. */

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

body {
  margin: 0;
  background: var(--limewash);
  color: var(--granite);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--granite);
  margin: 0 0 var(--space-2);
}
h1 { font-size: var(--text-h1); line-height: 1.15; letter-spacing: -0.8px; }
h2 { font-size: var(--text-h2); line-height: 1.3; letter-spacing: -0.3px; }

p { margin: 0 0 var(--space-2); }

a { color: var(--moss); text-underline-offset: 3px; }
a:hover { color: var(--moss-deep); }

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

.wordmark {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-wordmark);
  line-height: 1;
  letter-spacing: -1px;
  color: var(--granite);
}

.tagline {
  font-size: var(--text-tagline);
  font-weight: 500;
  line-height: 1.4;
  color: var(--stone);
}

.small { font-size: var(--text-small); line-height: 1.5; color: var(--stone); }

.label {
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--stone);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 var(--space-3);
  border: none;
  border-radius: var(--radius-sm);
  background: var(--moss);
  color: var(--surface);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--moss-deep); color: var(--surface); }

input, select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--granite);
  font: inherit;
}
input[type="checkbox"], input[type="radio"] { accent-color: var(--moss); }
::placeholder { color: var(--stone); opacity: 1; }
select option { background: var(--surface); color: var(--granite); }
label { display: block; font-weight: 600; margin-bottom: var(--space-1); }

@media (max-width: 600px) {
  h1 { font-size: 28px; }
  .wordmark { font-size: 40px; }
  .card { padding: var(--space-3); }
}
