:root {
  color-scheme: light;
  --bg: #f5f1e8;
  --surface: #fffdf8;
  --border: #d7c9af;
  --text: #1f1a14;
  --muted: #6c5e4d;
  --accent: #0d5c63;
  --accent-strong: #084c61;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at top left, rgba(13, 92, 99, 0.12), transparent 28%),
    linear-gradient(180deg, #f9f5ec 0%, var(--bg) 100%);
  color: var(--text);
}

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--muted);
}

h1,
h2,
h3 {
  margin-top: 0;
}

.nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 12px;
}

.nav a,
a {
  color: var(--accent-strong);
}

.card {
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 14px 30px rgba(31, 26, 20, 0.08);
}

.actions,
.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.actions-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: white;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}

.button-secondary {
  background: #8a6f47;
}

input {
  width: min(420px, 100%);
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  background: white;
}

label {
  display: flex;
  width: min(420px, 100%);
  flex-direction: column;
  gap: 6px;
}

.error {
  border: 1px solid #c75146;
  border-radius: 10px;
  padding: 12px;
  background: #fff2f0;
  color: #7d1d16;
}

pre {
  overflow-x: auto;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fcfaf5;
}

@media (max-width: 720px) {
  .page-header {
    flex-direction: column;
  }
}
