:root {
  color-scheme: light;
  --bg: #f4efe7;
  --surface: rgba(255, 252, 247, 0.9);
  --surface-strong: #fffaf3;
  --text: #1f1a17;
  --muted: #665d57;
  --accent: #1d6b57;
  --accent-soft: #d9efe6;
  --danger: #a03d2a;
  --border: rgba(31, 26, 23, 0.12);
  --shadow: 0 20px 45px rgba(53, 34, 17, 0.08);
  --radius: 22px;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(29, 107, 87, 0.15), transparent 35%),
    radial-gradient(circle at top right, rgba(190, 127, 72, 0.12), transparent 28%),
    linear-gradient(180deg, #f7f2eb 0%, #efe5d8 100%);
  color: var(--text);
  min-height: 100vh;
}

button,
input,
select,
textarea {
  font: inherit;
}

.page-shell {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0 64px;
}

.hero {
  padding: 32px;
  margin-bottom: 20px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--accent);
  font-size: 12px;
  margin: 0 0 12px;
}

.hero h1 {
  margin: 0;
  max-width: 12ch;
  line-height: 0.95;
  font-size: clamp(42px, 6vw, 78px);
}

.hero-copy {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.card {
  backdrop-filter: blur(18px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 18px;
}

.grid-two {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
}

input,
select,
textarea,
button {
  border-radius: 16px;
  border: 1px solid var(--border);
}

input,
select,
textarea {
  width: 100%;
  background: var(--surface-strong);
  color: var(--text);
  padding: 12px 14px;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.profile-editor {
  min-height: 320px;
  font-family: "SFMono-Regular", "Menlo", monospace;
  font-size: 13px;
  line-height: 1.5;
}

button {
  background: var(--accent);
  color: white;
  cursor: pointer;
  padding: 12px 18px;
  transition: transform 140ms ease, opacity 140ms ease;
  border: 0;
}

button:hover {
  transform: translateY(-1px);
  opacity: 0.94;
}

button.secondary {
  background: #dfebe5;
  color: #154739;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 16px;
}

.status {
  margin: 0;
  color: var(--muted);
  min-height: 22px;
}

.status[data-error="true"] {
  color: var(--danger);
}

.summary-row {
  margin-top: 12px;
}

.dashboard-output {
  overflow: auto;
  background: #f7f3ee;
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 16px;
  min-height: 220px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.stat-card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 250, 243, 0.95), rgba(241, 232, 221, 0.95));
  border-radius: 18px;
  padding: 16px;
}

.stat-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.stat-card strong {
  font-size: 28px;
}

code {
  font-family: "SFMono-Regular", "Menlo", monospace;
  font-size: 0.92em;
}

@media (max-width: 860px) {
  .grid-two,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .page-shell {
    width: min(100vw - 20px, 1120px);
  }

  .hero {
    padding: 24px 10px;
  }
}
