:root {
  --canvas: #f5f3eb;
  --canvas-deep: #ece9dc;
  --paper: #fffcf5;
  --ink: #152e25;
  --ink-soft: #314b41;
  --muted: #5b6e63;
  --line: #dfe3d6;
  --line-strong: #c8cec0;
  --forest: #18392e;
  --forest-lo: #122c23;
  --on-forest: #fffdf6;
  --sage-soft: #edf2e6;
  --gold: #e4bd7d;
  --amber-ink: #7a4f0c;
  --amber-bg: #f6e7c8;
  --error: #9f3e34;
  --error-bg: #fae6e1;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #111b17;
    --canvas-deep: #17241f;
    --paper: #192822;
    --ink: #f3efe4;
    --ink-soft: #d5ddd6;
    --muted: #98aba0;
    --line: #283c33;
    --line-strong: #375045;
    --forest: #e4bd7d;
    --forest-lo: #122920;
    --on-forest: #152e25;
    --sage-soft: #1d3128;
    --gold: #e4bd7d;
    --amber-ink: #f4c77b;
    --amber-bg: #3b2c12;
    --error: #f28b80;
    --error-bg: #3e201c;
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--forest);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.topbar {
  background: var(--forest-lo);
  color: #fffdf6;
  border-bottom: 1px solid rgba(228, 189, 125, 0.28);
}

.topbar-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fffdf6;
  text-decoration: none;
  font-family: "Iowan Old Style", Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.4px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(228, 189, 125, 0.45);
  background: rgba(255, 253, 246, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.nav-links a {
  color: rgba(255, 253, 246, 0.86);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 10px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: rgba(255, 253, 246, 0.12);
  color: #fffdf6;
}

.main {
  max-width: 780px;
  margin: 0 auto;
  padding: 28px 20px 56px;
  display: grid;
  gap: 18px;
}

.hero-card,
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
}

.hero-card {
  display: grid;
  gap: 10px;
}

h1,
h2 {
  font-family: "Iowan Old Style", Georgia, "Times New Roman", serif;
  color: var(--forest);
  margin: 0;
  font-weight: 600;
}

h1 {
  font-size: 32px;
  line-height: 1.18;
}

h2 {
  font-size: 20px;
  line-height: 1.28;
  margin-bottom: 8px;
}

p {
  margin: 0 0 10px;
  color: var(--ink-soft);
}

p:last-child {
  margin-bottom: 0;
}

ul {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--ink-soft);
}

li + li {
  margin-top: 6px;
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--sage-soft);
  color: var(--forest);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-gold {
  background: var(--gold);
  color: #152e25;
}

.btn-forest {
  background: var(--forest);
  color: var(--on-forest);
}

.btn-outline {
  background: var(--canvas);
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-danger {
  background: var(--error-bg);
  border-color: var(--error);
  color: var(--error);
}

.form-stack {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.field input {
  min-height: 46px;
  padding: 10px 13px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--canvas);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--canvas);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.check-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--error);
}

.status-box {
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
}

.status-box.ok {
  background: var(--sage-soft);
  color: var(--forest);
}

.status-box.warn {
  background: var(--amber-bg);
  color: var(--amber-ink);
}

.status-box.err {
  background: var(--error-bg);
  border-color: var(--error);
  color: var(--error);
}

.footer {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px 36px;
  color: var(--muted);
  font-size: 13px;
}
