@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&display=swap");

:root {
  --bg: #fff;
  --fg: #111;
  --accent: #276848;
  --accent-soft: #e8f2ed;
  --muted: #777;
  --line: #ddd;
  --panel: #f7f8f7;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.55 "Space Grotesk", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Helvetica", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

header, main, footer {
  max-width: 920px;
  margin: auto;
  padding: 24px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

header > a {
  font-weight: 800;
  color: var(--fg);
  text-decoration: none;
}

nav a, a { color: var(--accent); }
main { min-height: 70vh; }

.site-header { border-bottom: 0; padding-bottom: 10px; }
.site-home { max-width: 760px; padding-top: 10px; }
.site-home h1 { font-size: 3.6rem; line-height: 1.05; margin: .2em 0 .45em; font-weight: 800; color: var(--accent); }
.site-home h2 { font-size: 1.8rem; margin: 1.6em 0 .35em; }
.site-home h4 { font-size: 1rem; margin: 2em 0 .5em; }
.site-home p { margin: .85em 0; }
.site-home section { margin: 28px 0; }
.event-list { list-style: none; margin: 0; padding: 0; }
.event-list li { margin: 10px 0; }
.event-list time { display: inline-block; min-width: 104px; color: var(--muted); }
.event-list span { font-weight: 700; }

.hero { padding: 72px 0; }
.hero h1 { font-size: clamp(3rem, 8vw, 6rem); line-height: .95; margin: .2em 0; }
.hero > p { max-width: 700px; font-size: 1.2rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--accent); margin: 0 0 6px; }

.button, button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: 0;
  padding: 12px 18px;
  border-radius: 4px;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.button.secondary { background: #eef3f0; color: var(--accent); border: 1px solid #cbd8d1; }
form { max-width: 700px; }
label { display: block; font-weight: 700; margin: 20px 0; }
label span { font-weight: 400; color: var(--muted); }
input, textarea, select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border: 1px solid #aaa;
  border-radius: 3px;
  font: inherit;
  background: #fff;
}
.check { display: flex; gap: 10px; align-items: center; }
.check input { width: auto; margin: 0; }
.inline { margin: 0; }
.error { background: #fee; padding: 12px; border-left: 4px solid #a00; }
.split { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .82rem; color: var(--muted); font-weight: 700; text-transform: uppercase; }
dt { font-weight: 700; margin-top: 12px; }
.pre { white-space: pre-wrap; }
.muted { color: var(--muted); }
code { background: #eee; padding: 2px 5px; border-radius: 3px; }

.proposal-page { --paper: #fff; --ink: #111; background: var(--bg); color: var(--fg); }
.proposal-header, .proposal, .proposal-footer { max-width: 1180px; }
.proposal-header { border: 0; }
.proposal-header a { color: var(--fg); }
.proposal-header > a { color: var(--accent); }
.proposal {
  display: grid;
  grid-template-columns: minmax(260px, .82fr) minmax(360px, 1.18fr);
  gap: 34px;
  align-items: stretch;
  min-height: calc(100vh - 48px);
  padding-top: 24px;
}
.proposal-intro {
  background: var(--accent);
  color: var(--bg);
  min-height: calc(100vh - 96px);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.proposal-intro .eyebrow { color: var(--accent); }
.proposal-intro h1 { font-size: clamp(3rem, 7vw, 5.8rem); line-height: .92; margin: 20px 0 24px; max-width: 720px; }
.proposal-intro .lede { font-size: 1.2rem; max-width: 520px; color: #fff; }
.signal-board { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 38px; max-width: 380px; }
.signal-board span { background: #1d1d1d; color: #fff; padding: 12px 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.proposal-form-shell { background: var(--paper); padding: 28px; }
.form-head { display: flex; justify-content: space-between; gap: 22px; align-items: flex-start; padding-bottom: 18px; margin-bottom: 18px; }
.form-head h2 { font-size: 2rem; line-height: 1.1; margin: 0; }
.form-head p { max-width: 230px; margin: 0; color: var(--muted); }
.form-head img { height:4rem; }
.proposal-form { max-width: none; }
.proposal-form label { margin: 18px 0; color: var(--ink); }
.proposal-form input, .proposal-form textarea { border: 2px solid var(--fg); border-radius: 0; background: #fff; padding: 13px 14px; }
.proposal-form input:focus, .proposal-form textarea:focus { outline: 3px solid var(--accent); outline-offset: 2px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.format-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; border: 0; margin: 22px 0 4px; padding: 0; }
.consent-picker { grid-template-columns: repeat(4, 1fr); }
.first-time-picker { grid-template-columns: repeat(2, 1fr); max-width: 360px; }
.format-picker legend { font-weight: 800; margin-bottom: 8px; }
.format-picker label { margin: 0; }
.format-picker input { position: absolute; opacity: 0; pointer-events: none; }
.format-picker span { display: block; text-align: center; border: 2px solid var(--fg); background: #fff; color: var(--ink); padding: 12px; font-weight: 800; }
.format-picker input:checked + span { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: inset 0 -4px 0 #111; }
.first-talk { min-height: 52px; border: 2px solid var(--fg); background: #fff; padding: 12px 14px; }
.submit-row { display: flex; gap: 18px; align-items: center; margin-top: 20px; }
.submit-row button { background: var(--accent); color: #fff; border: 2px solid var(--fg); border-radius: 0; box-shadow: 5px 5px 0 var(--fg); }
.submit-row p { margin: 0; color: var(--muted); max-width: 280px; }
.proposal-footer { color: var(--muted); }

.admin { max-width: 1180px; }
.admin-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.admin-head h1 { margin: 0; font-size: 2.1rem; line-height: 1.1; }
.status-tabs { display: flex; gap: 6px; overflow: auto; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.status-tabs a { display: flex; gap: 7px; align-items: center; padding: 10px 12px; color: var(--fg); text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap; }
.status-tabs a.active { border-color: var(--accent); font-weight: 800; }
.status-tabs span { background: var(--panel); color: var(--muted); border-radius: 999px; padding: 1px 7px; font-size: .82rem; }
.filters { max-width: none; display: grid; grid-template-columns: minmax(220px, 1fr) 120px 180px auto auto auto; gap: 12px; align-items: end; background: var(--panel); border: 1px solid var(--line); padding: 14px; margin-bottom: 18px; }
.filters label { margin: 0; }
.table-wrap { overflow: auto; border: 1px solid var(--line); }
.admin-table { min-width: 960px; }
.title-link { font-weight: 800; color: var(--fg); }
.status { display: inline-block; border: 1px solid #cbd8d1; background: var(--accent-soft); color: #18452f; border-radius: 999px; padding: 2px 9px; font-size: .88rem; font-weight: 800; }
.status.large { font-size: 1rem; padding: 5px 12px; }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); margin-bottom: 24px; }
.summary-grid div { padding: 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.summary-grid strong, .summary-grid span { display: block; }
.summary-grid strong { font-size: .82rem; text-transform: uppercase; color: var(--muted); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 34px; }
.detail h2 { margin-top: 30px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.detail h3 { margin-top: 22px; }
.score-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.score-grid label { margin: 0; }
.review, .history li { border-bottom: 1px solid var(--line); padding: 12px 0; }
.review p { margin: .45rem 0; }
.history { padding-left: 22px; }
.history span { display: block; color: var(--muted); font-size: .9rem; }

@media (max-width: 850px) {
  header, main, footer { padding: 18px; }
  .proposal { display: block; }
  .proposal-intro { min-height: auto; padding: 22px; margin-bottom: 20px; }
  .proposal-form-shell { padding: 20px; }
  .form-head { display: block; }
  .field-row, .format-picker, .consent-picker, .first-time-picker { grid-template-columns: 1fr; max-width: none; }
  .admin-head { display: block; }
  .filters { grid-template-columns: 1fr; }
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: 1fr; }
  .score-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 40px 0; }
}

@media (max-width: 650px) {
  table { font-size: .9rem; }
  .site-home h1 { font-size: 2.6rem; }
  .event-list time { display: block; }
  .proposal-intro h1 { font-size: 2.7rem; }
  .signal-board { grid-template-columns: 1fr; }
  .submit-row { display: block; }
  .submit-row p { margin-top: 14px; }
  .summary-grid { grid-template-columns: 1fr; }
  .score-grid { grid-template-columns: 1fr; }
}
