:root {
  color-scheme: light;
  --bg: #f8f2e7;
  --surface: #fffaf1;
  --ink: #26180f;
  --muted: #6f5b49;
  --walnut: #4a2f1a;
  --gold: #7d5a21;
  --border: #eadfcf;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  line-height: 1.65;
}

.page {
  width: min(760px, calc(100% - 32px));
  margin: 48px auto;
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(74, 47, 26, 0.08);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-family:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2 {
  color: var(--walnut);
  line-height: 1.15;
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(2.2rem, 8vw, 4rem);
}

h2 {
  margin: 32px 0 8px;
  font-size: 1.35rem;
}

p {
  margin: 0 0 16px;
  font-size: 1.04rem;
}

.updated {
  color: var(--muted);
  font-family:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 0.95rem;
}

a {
  color: var(--walnut);
  font-weight: 700;
}

.creator-page {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 56px;
  font-family:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.creator-hero {
  padding: 32px 0 18px;
}

.creator-hero h1 {
  max-width: 760px;
  margin: 0 0 12px;
  color: var(--walnut);
  font-family:
    ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: 3.2rem;
  line-height: 1.05;
}

.creator-hero p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.tool-panel,
.stats-bar,
.hook-card {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 14px 42px rgba(74, 47, 26, 0.07);
}

.tool-panel {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 18px;
  border-radius: 14px;
}

.search-row {
  display: grid;
  gap: 8px;
}

.search-label,
.filter-grid label {
  color: var(--walnut);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-input,
.filter-grid select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

.search-input {
  padding: 12px 14px;
  font-size: 1rem;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.filter-grid label {
  display: grid;
  gap: 6px;
}

.filter-grid select {
  padding: 0 10px;
}

.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.quick-filters button,
.card-actions button {
  min-height: 38px;
  border: 1px solid #d5c3ac;
  border-radius: 8px;
  background: #fffdf8;
  color: var(--walnut);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.quick-filters button {
  padding: 0 12px;
}

.quick-filters button:hover,
.card-actions button:hover {
  background: #f1e4d1;
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
  padding: 14px 18px;
  border-radius: 14px;
}

.stats-bar div {
  display: grid;
  gap: 2px;
}

.stats-bar strong {
  color: var(--walnut);
  font-size: 1.35rem;
}

.stats-bar span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.result-list {
  display: grid;
  gap: 14px;
}

.hook-card {
  padding: 22px;
  border-radius: 14px;
}

.hook-meta,
.score-row,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hook-meta span,
.score-row span {
  border-radius: 999px;
  background: #f2e7d8;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  padding: 8px 10px;
}

.hook-card h2 {
  margin: 14px 0 12px;
  color: var(--ink);
  font-family:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 1.28rem;
  line-height: 1.35;
}

.hook-card blockquote {
  margin: 0;
  padding: 14px 16px;
  border-left: 4px solid #9c7a3d;
  background: #fbf4e9;
  color: #3f3023;
  line-height: 1.55;
}

.score-row {
  margin-top: 14px;
}

.card-actions {
  margin-top: 14px;
}

.card-actions button {
  padding: 0 12px;
}

.empty-state {
  padding: 28px;
  border: 1px dashed #cbb99f;
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 640px) {
  .page {
    width: 100%;
    margin: 0;
    padding: 28px 20px;
    border-width: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .creator-page {
    width: 100%;
    margin: 0;
    padding: 0 14px 28px;
  }

  .creator-hero {
    padding-top: 24px;
  }

  .creator-hero h1 {
    font-size: 2.35rem;
  }

  .tool-panel {
    border-radius: 10px;
  }

  .filter-grid,
  .stats-bar {
    grid-template-columns: 1fr;
  }

  .hook-card {
    padding: 18px;
    border-radius: 10px;
  }
}
