:root {
  color-scheme: light;
  --bg: #f7f3eb;
  --card: #fffdf8;
  --ink: #172033;
  --muted: #667085;
  --line: #e4dccf;
  --accent: #14213d;
  --accent-2: #b8792c;
  --danger: #b42318;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #fff7e8, var(--bg) 45%, #f3efe7);
  color: var(--ink);
}
main { width: min(1120px, calc(100% - 32px)); margin: 36px auto; }
.hero { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.eyebrow { color: var(--accent-2); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 800; }
h1 { font-size: clamp(36px, 8vw, 76px); line-height: .92; margin: 0 0 10px; font-family: Georgia, serif; }
h2 { margin-top: 0; }
.card, .link-card {
  background: color-mix(in srgb, var(--card) 94%, white);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 18px 60px rgba(35, 27, 12, .08);
  padding: 22px;
  margin-bottom: 18px;
}
.hidden { display: none !important; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
label { display: grid; gap: 6px; font-weight: 700; color: #344054; }
input {
  width: 100%; padding: 12px 13px; border: 1px solid #d0d5dd; border-radius: 12px;
  background: white; font: inherit;
}
button, .actions a {
  appearance: none; border: 0; border-radius: 999px; padding: 11px 16px; background: var(--accent);
  color: white; font-weight: 800; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center;
}
.ghost { background: transparent; color: var(--accent); border: 1px solid var(--line); }
.row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.links { display: grid; gap: 16px; }
.link-card { display: grid; grid-template-columns: 1fr 230px; gap: 18px; align-items: start; }
.link-card h3 { margin: 0 0 8px; font-size: 24px; }
p { color: var(--muted); }
a { color: var(--accent); }
code { background: #f2eee7; padding: 3px 6px; border-radius: 6px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.actions button { background: #344054; }
.actions button.danger { background: var(--danger); }
button:disabled { cursor: wait; opacity: .65; }
.stats { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); align-items: center; }
.stats img { grid-column: 1 / -1; width: 100%; background: white; border: 1px solid var(--line); border-radius: 16px; padding: 10px; }
.stats div { background: #f7f3eb; border-radius: 16px; padding: 12px; }
.stats strong { display: block; font-size: 28px; }
.stats span { color: var(--muted); font-size: 13px; }
.message { min-height: 24px; font-weight: 700; }
.message.error { color: var(--danger); }
.empty { padding: 16px; border: 1px dashed var(--line); border-radius: 14px; }
@media (max-width: 760px) {
  .grid, .link-card { grid-template-columns: 1fr; }
  .hero { flex-direction: column; }
}
