/* ListingRadius. TRG design language: navy ink, warm off-white ground, a
   single gold accent, Manrope self hosted. No external assets, no CDN, no
   gradients. Spacing is generous on purpose: this is a tool someone reads
   carefully before pressing a button that mails thousands of people. */

@font-face {
  font-family: "Manrope";
  src: url("/fonts/Manrope-latin.var.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-display: swap;
  font-style: normal;
}

:root {
  --ink: #0b1f3a;
  --ink-soft: #47566d;
  --ink-faint: #7c879a;
  --ground: #f7f5f0;
  --surface: #ffffff;
  --line: #dcd7cd;
  --line-soft: #ebe7df;
  --gold: #b8965a;
  --ok: #2c6e49;
  --warn: #9a3412;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(11, 31, 58, 0.06), 0 8px 24px rgba(11, 31, 58, 0.05);
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--ground);
  color: var(--ink);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--gold); }

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 12px;
}

h1 { font-size: 30px; }
h2 { font-size: 20px; margin-top: 40px; }
h3 { font-size: 16px; margin-top: 28px; }

p { margin: 0 0 16px; max-width: 68ch; }

.small { font-size: 13px; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }

/* -- masthead and navigation ---------------------------------------------- */

.masthead {
  background: var(--ink);
  color: var(--ground);
  padding: 18px 32px;
}

.masthead .inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.wordmark {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.02em;
  color: var(--ground);
  text-decoration: none;
}

.wordmark span { color: var(--gold); }

.masthead nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.masthead nav a {
  color: rgba(247, 245, 240, 0.78);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}

.masthead nav a:hover { color: var(--ground); }
.masthead nav a.on { color: var(--ground); border-bottom-color: var(--gold); }

.masthead .who { font-size: 13px; color: rgba(247, 245, 240, 0.62); }

/* -- layout ---------------------------------------------------------------- */

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 32px 96px;
}

main.narrow { max-width: 760px; }

.lede {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 62ch;
  margin-bottom: 40px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

/* -- statistics ------------------------------------------------------------ */

.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.stat .label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 700;
  margin-bottom: 8px;
}

.stat .value {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat .note { font-size: 13px; color: var(--ink-soft); margin-top: 8px; }

.headline-stat { border-left: 4px solid var(--gold); }

/* -- tables ---------------------------------------------------------------- */

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th, td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

th {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 700;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

td.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.empty td { color: var(--ink-faint); font-style: italic; }

/* -- forms ----------------------------------------------------------------- */

.field { margin-bottom: 18px; }

.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="search"],
input[type="file"],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

textarea { min-height: 150px; resize: vertical; }

.headshot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.headshot img {
  width: 64px;
  height: 64px;
  border-radius: 32px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--surface);
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
}

.check input { margin-top: 4px; }
.check label { font-weight: 500; margin: 0; }

button, .btn {
  display: inline-block;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--ground);
  cursor: pointer;
  text-decoration: none;
}

button:hover, .btn:hover { background: #123055; color: var(--ground); }

button.secondary, .btn.secondary {
  background: transparent;
  color: var(--ink);
}

button.secondary:hover, .btn.secondary:hover { background: var(--line-soft); color: var(--ink); }

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

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

/* -- messages and flags ---------------------------------------------------- */

.note {
  background: #fdf6e6;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 14px;
}

.msg { font-size: 14px; min-height: 20px; margin-top: 12px; }
.msg.error { color: var(--warn); }
.msg.ok { color: var(--ok); }

.flag-ok { color: var(--ok); font-weight: 700; }
.flag-review { color: var(--warn); font-weight: 700; }
.flag-neutral { color: var(--ink-faint); font-weight: 400; }

.findings { margin: 12px 0 0; padding-left: 20px; font-size: 14px; }
.findings li { margin-bottom: 6px; }

.hidden { display: none; }

/* -- footer ---------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 64px;
  padding: 32px;
  font-size: 13px;
  color: var(--ink-soft);
}

.site-footer .inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.site-footer a { color: var(--ink-soft); }

@media (max-width: 640px) {
  main { padding: 32px 20px 64px; }
  .masthead { padding: 16px 20px; }
  h1 { font-size: 25px; }
}
