/* Beacon Peak - one stylesheet, no framework, no webfonts.
   Five pages do not need a build pipeline, and a reviewer loading the site on a phone in
   a parking lot should not be waiting on a font CDN. */

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --fg: #1a1917;
  --muted: #57544d;
  --rule: #e4dfd6;
  --accent: #9a3412;
  --accent-soft: #f6ede6;
  --focus: #1d4ed8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16151a;
    --surface: #1e1d24;
    --fg: #eceaf1;
    --muted: #a5a2ae;
    --rule: #2f2d38;
    --accent: #f0a05a;
    --accent-soft: #241f22;
    --focus: #93b8ff;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  padding: 0.5rem 0.75rem;
  background: var(--surface);
  border: 2px solid var(--focus);
  border-radius: 4px;
}

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

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

/* --- frame --- */

.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
}

.site-header > div,
main,
.site-footer > div {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-header > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-decoration: none;
}
.wordmark img { display: block; width: 26px; height: 26px; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin-left: auto;
  font-size: 0.95rem;
}
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--fg); text-decoration: underline; }

main {
  padding-top: 2.5rem;
  padding-bottom: 3.5rem;
}

.site-footer {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.92rem;
}
.site-footer > div { padding-top: 1.5rem; padding-bottom: 2.5rem; }
.site-footer ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin: 0 0 0.75rem;
  padding: 0;
}
.site-footer a { color: var(--muted); }
.site-footer p { margin: 0.35rem 0; }

/* --- type --- */

h1 {
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}
h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 2.25rem 0 0.6rem;
}
h3 {
  font-size: 1.02rem;
  margin: 1.5rem 0 0.4rem;
}
p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.35rem; }
li { margin-bottom: 0.35rem; }

.lede {
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--fg);
}
.meta { color: var(--muted); font-size: 0.92rem; }

/* --- blocks --- */

.callout {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  padding: 1rem 1.15rem;
  margin: 1.5rem 0;
}
.callout > :last-child { margin-bottom: 0; }
.callout h2, .callout h3 { margin-top: 0; }

.disclosures {
  background: var(--accent-soft);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1rem 1.15rem 1rem 1.15rem;
  margin: 1.5rem 0;
}
.disclosures h2 { margin-top: 0; font-size: 1.05rem; }
.disclosures ul { margin-bottom: 0; }

.sample {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  margin: 1rem 0;
  font-size: 0.98rem;
}

.cta {
  display: inline-block;
  margin: 0.5rem 0 1rem;
  padding: 0.7rem 1.3rem;
  background: var(--accent);
  color: var(--bg);
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
}
.cta:hover { text-decoration: underline; }

/* --- form --- */

/* Off screen rather than display:none, which some automated submitters skip. */
.decoy {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  margin: 0 0 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--accent);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  background: var(--accent-soft);
}

.join-form {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.field .hint {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}
.field input {
  width: 100%;
  padding: 0.6rem 0.7rem;
  font: inherit;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 5px;
}

.consent {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.9rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  margin-bottom: 1.1rem;
}
.consent input {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.22rem;
}
.consent label { font-size: 0.97rem; }

button[type="submit"] {
  font: inherit;
  font-weight: 600;
  padding: 0.7rem 1.3rem;
  color: var(--bg);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 6px;
  cursor: pointer;
}
button[type="submit"]:hover { filter: brightness(1.08); }

@media (max-width: 34rem) {
  h1 { font-size: 1.7rem; }
  .lede { font-size: 1.1rem; }
  main { padding-top: 1.75rem; }
}
