/* base.css — design tokens, reset, typography, form primitives.
   Edit the tokens below to re-skin a project. */

:root {
  --bg: #f8f8f6;
  --surface: #efefeb;
  --ink: #1f2328;
  --ink-soft: #5b6470;
  --line: rgba(31, 35, 40, 0.14);
  --line-strong: rgba(31, 35, 40, 0.3);
  --accent: #2f5d8a;
  --accent-dark: #1f4468;
  --danger: #a33a2a;
  --success: #2f6b3f;

  --font-body: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: var(--font-body);

  --radius: 8px;
  --radius-lg: 12px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0;
  color: var(--ink);
}

h1 { font-size: 28px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }

p {
  margin: 0;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font-family: var(--font-body);
}

/* Keyboard focus visibility — keep this. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

/* Form primitives */

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 0.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
}

.button {
  display: inline-block;
  padding: 10px 16px;
  border: none;
  border-radius: var(--radius);
  background: var(--accent-dark);
  color: var(--bg);
  font-size: 14px;
  cursor: pointer;
}

.button:hover {
  background: var(--accent);
  text-decoration: none;
}

.button--block {
  width: 100%;
}

.button--quiet {
  background: transparent;
  color: var(--ink-soft);
  border: 0.5px solid var(--line-strong);
  padding: 6px 12px;
  font-size: 12px;
}

.button--quiet:hover {
  background: var(--surface);
  color: var(--ink);
}

.notice {
  font-size: 13px;
  border-radius: var(--radius);
  padding: 10px 12px;
  margin-bottom: 16px;
  border: 0.5px solid var(--line-strong);
  background: var(--surface);
  word-break: break-word;
}

.notice--error {
  color: var(--danger);
  border-color: rgba(163, 58, 42, 0.3);
  background: rgba(163, 58, 42, 0.08);
}

.notice--success {
  color: var(--success);
  border-color: rgba(47, 107, 63, 0.3);
  background: rgba(47, 107, 63, 0.08);
}