* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

html {
  font-size: 16px;
  scroll-padding-top: 5rem;
}

:root {
  --c-ink: #0f0f0f;
  --c-panel: #161616;
  --c-raised: #1d1d1d;
  --c-gold: #d4a82e;
  --c-gold-hi: #ffcd46;
  --c-cream: #f4ead2;
  --c-text: #ffffff;
  --c-soft: #cccccc;
  --c-muted: #999999;
  --c-copper: #9a5b2c;
  --c-line: rgba(212, 168, 46, 0.24);
  --c-error: #ff8a7a;
  --c-ok: #9fd39a;
}

body {
  position: relative;
  font-family: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  color: var(--c-soft);
  background: var(--c-ink);
  padding-bottom: 6rem;
}

[hidden] {
  display: none !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, 'Palatino Linotype', 'Book Antiqua', serif;
  line-height: 1.2;
  font-weight: 600;
  color: var(--c-cream);
}

h1 {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 2.5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.2rem, 1rem + 0.8vw, 1.5rem);
  font-weight: 600;
}

h4 {
  font-size: 1.25rem;
  font-weight: 500;
}

p {
  font-size: 1rem;
  line-height: 1.7;
}

a {
  color: var(--c-gold-hi);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}

ul, ol {
  padding-left: 1.25rem;
}

table {
  border-collapse: collapse;
  width: 100%;
}

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

.content {
  margin-top: 1rem;
  font-size: 1.1rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  background: var(--c-cream);
  color: var(--c-ink);
  border: 2px solid var(--c-cream);
  border-radius: 8px;
  padding: .8rem 1.7rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--c-ink);
  color: var(--c-cream);
  text-decoration: none;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  background: transparent;
  color: var(--c-gold-hi);
  border: 2px solid var(--c-gold);
  border-radius: 8px;
  padding: .8rem 1.7rem;
  font-weight: 600;
  line-height: 1.2;
}

.btn-ghost:hover {
  background: var(--c-gold);
  color: var(--c-ink);
  text-decoration: none;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-weight: 600;
  color: var(--c-cream);
  font-size: 0.95rem;
}

.form-input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.75rem 1rem;
  font: inherit;
  color: var(--c-text);
  background: var(--c-ink);
  border: 1px solid var(--c-line);
  border-radius: 8px;
}

.form-input:focus {
  border-color: var(--c-gold-hi);
}

textarea.form-input {
  resize: vertical;
  min-height: 7rem;
}

.form-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  font-size: 0.92rem;
  line-height: 1.5;
}

.form-check input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  accent-color: var(--c-gold);
}

.form-error {
  color: var(--c-error);
  font-weight: 600;
}
