/* Global application foundation.
   Page-specific components belong in their own stylesheet. */

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

:root {
  --page-background: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --text-muted: #334155;
  --border: #cbd5e1;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --focus-ring: #4da3ff;
  --danger: #b91c1c;
  --warning: #b45309;
  --success: #15803d;
  --info: #1d4ed8;
}

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--page-background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

h1,
h2,
h3 {
  margin: 0 0 16px;
  color: var(--text);
  line-height: 1.25;
}

h1 {
  font-size: 1.5rem;
  font-weight: 700;
}

h2 {
  font-size: 1.25rem;
  font-weight: 650;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

p {
  margin: 0 0 16px;
}

a {
  color: var(--accent);
}

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

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

.notices {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 16px 0;
}

.notice {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-muted);
}

.notice + .notice {
  margin-top: 12px;
}

.notice-error {
  border-left-color: var(--danger);
}

.notice-warning {
  border-left-color: var(--warning);
}

.notice-success {
  border-left-color: var(--success);
}

.notice-info {
  border-left-color: var(--info);
}

.test-banner {
  width: 100%;
  padding: 10px 16px;
  background: #7c2d12;
  color: #fff7ed;
  font-size: 14px;
  text-align: center;
}

.test-banner a {
  color: inherit;
  text-decoration: underline;
}

@media (max-width: 560px) {
  main {
    padding: 16px 12px 32px;
  }

  .notices {
    padding: 12px 12px 0;
  }
}
