:root {
  --bg: #f6f1e7;
  --bg-warm: #fef6ec;
  --bg-cool: #e8f4f5;
  --ink: #1f1a16;
  --muted: #5f5b57;
  --accent: #0f766e;
  --accent-2: #b45309;
  --surface: #ffffff;
  --surface-alt: #fbf7f1;
  --border: #e3d6c6;
  --code-bg: #1f2933;
  --code-ink: #f5f2ea;
  --shadow: 0 16px 40px rgba(31, 26, 22, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", "Palatino", "Book Antiqua", serif;
  line-height: 1.65;
  background:
    radial-gradient(1200px 600px at -10% -10%, var(--bg-warm) 0%, transparent 60%),
    radial-gradient(1000px 520px at 110% 0%, var(--bg-cool) 0%, transparent 55%),
    linear-gradient(135deg, #f6f1e7 0%, #f2ebe1 100%);
}

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

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: stretch;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-family: "Avenir Next", "Futura", "Gill Sans", "Trebuchet MS", sans-serif;
  font-size: 2.4rem;
  margin: 0 0 8px;
}

.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--accent-2);
  font-weight: 700;
}

.hero .lead {
  color: var(--muted);
  font-size: 1.02rem;
  margin: 8px 0 0;
}

.hero-card {
  background: var(--surface-alt);
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 18px 20px;
}

.hero-card h2 {
  font-family: "Avenir Next", "Futura", "Gill Sans", "Trebuchet MS", sans-serif;
  font-size: 1.1rem;
  margin: 0 0 8px;
}

.hero-card p {
  margin: 0 0 8px;
  color: var(--muted);
}

.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 16px;
}

.subnav a {
  text-decoration: none;
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.9rem;
}

.subnav a.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.section-title {
  font-family: "Avenir Next", "Futura", "Gill Sans", "Trebuchet MS", sans-serif;
  font-size: 1.5rem;
  margin: 28px 0 12px;
}

.doc-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px 22px;
  margin: 18px 0;
  box-shadow: 0 10px 24px rgba(31, 26, 22, 0.06);
}

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

.method {
  font-family: "Avenir Next", "Futura", "Gill Sans", "Trebuchet MS", sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}

.method.get { background: #d8f3e7; color: #0f5132; }
.method.post { background: #ffe7c2; color: #7c3f00; }
.method.put { background: #e2e8f0; color: #334155; }
.method.patch { background: #dce9ff; color: #1d4ed8; }
.method.delete { background: #ffe0e0; color: #7f1d1d; }
.method.all { background: #f1e7ff; color: #5b21b6; }

.path {
  font-family: "SFMono-Regular", "Menlo", "Monaco", "Consolas", "Liberation Mono", "Courier New", monospace;
  font-size: 0.95rem;
  color: var(--accent-2);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
}

.pill {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  font-size: 0.82rem;
  color: var(--muted);
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 6px;
  font-size: 0.95rem;
}

.table th,
.table td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.table th {
  background: #f8f1e6;
  font-weight: 600;
}

.code {
  background: var(--code-bg);
  color: var(--code-ink);
  padding: 12px 14px;
  border-radius: 12px;
  font-family: "SFMono-Regular", "Menlo", "Monaco", "Consolas", "Liberation Mono", "Courier New", monospace;
  font-size: 0.9rem;
  overflow-x: auto;
}

.note {
  background: #e7f6f3;
  border-left: 4px solid var(--accent);
  padding: 10px 14px;
  border-radius: 12px;
  color: #115e59;
  margin-top: 10px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 12px 24px rgba(31, 26, 22, 0.08);
}

.card h3 {
  margin: 0 0 6px;
  font-family: "Avenir Next", "Futura", "Gill Sans", "Trebuchet MS", sans-serif;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.footer {
  margin-top: 32px;
  color: var(--muted);
  font-size: 0.9rem;
}

.reveal {
  animation: rise 0.5s ease both;
  animation-delay: var(--delay, 0s);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
  }
}
