/* Southpoint Research. System fonts, one accent colour (teal), no external assets. */

:root {
  --ink: #1b2629;
  --muted: #4b5a5e;
  --paper: #fbfbf8;
  --panel: #ffffff;
  --line: #d6dddc;
  --accent: #0b6e69;
  --accent-dark: #07504c;
  --accent-tint: #e7f2f1;
  --focus: #0b6e69;
  --error: #a3261b;
  --radius: 6px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { color: var(--accent-dark); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--panel);
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.wrap { max-width: 60rem; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 44rem; }

/* Header and footer */

.site-header {
  background: var(--panel);
  border-top: 4px solid var(--accent);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: 0.01em;
}
.brand img { width: 34px; height: 34px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.site-nav a { color: var(--ink); text-decoration: none; padding: 0.25rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 0.95rem;
}
.site-footer .wrap { padding-top: 1.5rem; padding-bottom: 2rem; }
.site-footer p { margin: 0.3rem 0; }

/* Content */

main { display: block; padding-top: 2.5rem; }

h1, h2, h3 { font-family: var(--serif); font-weight: normal; line-height: 1.25; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 1rem; }
h2 { font-size: 1.5rem; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.2rem; margin: 1.75rem 0 0.5rem; }

.lede { font-size: 1.2rem; color: var(--muted); max-width: 40rem; }
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.panel > :first-child { margin-top: 0; }
.panel > :last-child { margin-bottom: 0; }

.notice {
  background: var(--accent-tint);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.notice > :first-child { margin-top: 0; }
.notice > :last-child { margin-bottom: 0; }

.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }

.button {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.65rem 1.4rem;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #ffffff; }

dl.contact { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1.25rem; }
dl.contact dt { font-weight: 600; }
dl.contact dd { margin: 0; }
@media (max-width: 30rem) {
  dl.contact { grid-template-columns: 1fr; }
  dl.contact dd { margin-bottom: 0.5rem; }
}

/* Survey form */

.survey-section h2 {
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.3rem;
}

fieldset.q {
  margin: 0 0 1.25rem;
  padding: 1rem 1.25rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  min-width: 0;
}
fieldset.q legend {
  font-weight: 600;
  padding: 0 0.35rem;
  margin-left: -0.35rem;
  max-width: 100%;
}
.qnum { color: var(--accent); margin-right: 0.35rem; }

.opt {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0.4rem 0;
}
.opt input[type="checkbox"], .opt input[type="radio"] {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.25rem 0 0;
  flex: none;
  accent-color: var(--accent);
}
.opt label { cursor: pointer; }
.opt label span { display: inline-block; }
.opt label span::first-letter { text-transform: uppercase; }

.scale { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }

.subfield { margin: 0.2rem 0 0.6rem 1.75rem; }
.subfield label { display: block; font-size: 0.92rem; color: var(--muted); }
.field { margin: 0.6rem 0; }
.field label { display: block; font-weight: 600; font-size: 0.95rem; }

input[type="text"], input[type="email"] {
  width: 100%;
  max-width: 28rem;
  font: inherit;
  padding: 0.45rem 0.6rem;
  border: 1px solid #7a8a8d;
  border-radius: 4px;
  background: #ffffff;
  color: var(--ink);
}
.subfield input[type="text"] { max-width: 22rem; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.submit-row { margin-top: 1.5rem; }

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

@media (prefers-reduced-motion: no-preference) {
  a, .button { transition: color 0.15s, background-color 0.15s, border-color 0.15s; }
}

@media print {
  .site-nav, .skip { display: none; }
  body { background: #ffffff; }
}
