/* /Volumes/data/webapp/static/style.css */
:root {
  --paper: #faf7f1;
  --ink: #23272b;
  --muted: #6b7178;
  --accent: #b4552d;
  --accent-dark: #93431f;
  --card: #ffffff;
  --line: #e5dfd4;
  --good: #3d7a52;
  --warn: #c07f1f;
  --bad: #a93b2a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.65;
}

.wrap { max-width: 680px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }

header.site { padding: 1.25rem 0 0; }
header.site a { color: var(--ink); text-decoration: none; font-weight: bold; letter-spacing: 0.02em; }
header.site .brand small { display: block; color: var(--muted); font-size: 0.8rem; font-weight: normal; }

h1 { font-size: 2.1rem; line-height: 1.2; margin: 2rem 0 1rem; }
h2 { font-size: 1.4rem; margin: 2rem 0 0.75rem; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
p { margin: 0 0 1rem; }
em { font-style: italic; }

a { color: var(--accent-dark); }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.85rem 1.6rem;
  font-family: inherit;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--accent-dark); }
.btn.secondary { background: transparent; color: var(--accent-dark); border: 1.5px solid var(--accent); }
.btn.big { font-size: 1.2rem; padding: 1rem 2rem; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; margin: 1.25rem 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 1.25rem 1rem; text-align: center; }
.stat-num { display: block; font-size: 1.9rem; font-weight: bold; color: var(--accent-dark); line-height: 1.1; margin-bottom: 0.35rem; }
.stat-lbl { display: block; font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.dash-recent { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.dash-recent th { text-align: left; color: var(--muted); font-weight: normal; border-bottom: 1px solid var(--line); padding: 0.35rem 0.5rem; }
.dash-recent td { padding: 0.35rem 0.5rem; border-bottom: 1px solid var(--line); }
@media (max-width: 480px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }

.btn.sm { padding: 0.45rem 0.9rem; font-size: 0.9rem; }

.share-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.muted { color: var(--muted); font-size: 0.9rem; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.5rem;
  margin: 1.25rem 0;
}

/* Quiz */
.progress { height: 6px; background: var(--line); border-radius: 3px; margin: 1.5rem 0; overflow: hidden; }
.progress > div { height: 100%; background: var(--accent); border-radius: 3px; transition: width 0.25s ease; }
.q-text { font-size: 1.35rem; line-height: 1.4; margin: 1.5rem 0; min-height: 4.2rem; }
.opt {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  margin: 0.6rem 0;
  font-family: inherit;
  font-size: 1.02rem;
  cursor: pointer;
}
.opt:hover { border-color: var(--accent); }
.backlink { background: none; border: none; color: var(--muted); font-family: inherit; font-size: 0.9rem; cursor: pointer; padding: 0.5rem 0; }

/* Result */
.verdict-band { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.85rem; color: var(--muted); }
.verdict { font-size: 2.4rem; line-height: 1.15; margin: 0.25rem 0 0.5rem; }
.score-row { display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 1rem; }
.score-num { font-size: 3.2rem; font-weight: bold; color: var(--accent-dark); }
.dim { margin: 0.9rem 0; }
.dim .bar { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; margin-top: 0.25rem; }
.dim .bar > div { height: 100%; border-radius: 4px; }
.dim .label { display: flex; justify-content: space-between; font-size: 0.92rem; }
.fill-low { background: var(--good); }
.fill-mid { background: var(--warn); }
.fill-high { background: var(--bad); }

input[type="email"] {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  width: 100%;
  margin-bottom: 0.75rem;
  background: #fff;
}

.report-body h1 { font-size: 1.9rem; }
.report-body h2 { border-bottom: 1px solid var(--line); padding-bottom: 0.3rem; }
.report-body ul, .report-body ol { margin: 0 0 1rem 1.4rem; }

footer.site { margin-top: 4rem; border-top: 1px solid var(--line); padding-top: 1.25rem; font-size: 0.85rem; color: var(--muted); }
footer.site a { color: var(--muted); }

@media (max-width: 480px) {
  body { font-size: 16.5px; }
  h1 { font-size: 1.7rem; }
  .verdict { font-size: 1.9rem; }
}
