/* hostedcafm.com holding page
   Palette: cool plant-room grey, signage green, highlighter yellow for the annotated header. */
:root {
  --bg: #edf1f2;
  --surface: #ffffff;
  --ink: #18262e;
  --muted: #4b5c65;
  --line: #c5d0d5;
  --accent: #0a6b45;
  --accent-ink: #ffffff;
  --mark: #ffe27a;
  --mark-ink: #18262e;
  --warn: #9a3412;
  --warn-bg: #fdf0e7;
  --ok-bg: #e6f3ec;
  --focus: #1d5fd6;

  --sans: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Atkinson Hyperlegible Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --measure: 42rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11181c;
    --surface: #182227;
    --ink: #e4eaec;
    --muted: #9fb0b8;
    --line: #2d3b42;
    --accent: #4cc38a;
    --accent-ink: #0b1a13;
    --mark: #6b5a12;
    --mark-ink: #fff6d1;
    --warn: #f5a97a;
    --warn-bg: #2f1d12;
    --ok-bg: #12291e;
    --focus: #8ab4ff;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

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

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

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

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

.wrap {
  max-width: 64rem;
  margin: 0 auto;
  padding-inline: 1rem;
}
@media (min-width: 40rem) { .wrap { padding-inline: 2rem; } }

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

/* Masthead */
.masthead { border-bottom: 1px solid var(--line); }
.masthead__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.25rem 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.wordmark { font-weight: 700; letter-spacing: -0.01em; }
.owner { color: var(--muted); font-size: 0.9375rem; }

/* Type scale (1.25 ratio) */
h1, h2 { line-height: 1.15; letter-spacing: -0.015em; margin: 0; }
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.05rem); font-weight: 700; max-width: 18ch; }
h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 1.95rem); font-weight: 700; margin-bottom: 0.5rem; }

.lede { max-width: var(--measure); font-size: 1.1875rem; color: var(--muted); margin: 1.25rem 0 0; }
.section-intro { max-width: var(--measure); color: var(--muted); margin: 0 0 1.5rem; }

main > section { padding-top: 3.5rem; padding-bottom: 3.5rem; }
main > section.hero { padding-top: 3rem; }

/* The annotated header: the one bold element on the page */
.specimen {
  margin: 2.5rem 0 0;
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 56rem) {
  .specimen { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
}
.specimen__mail {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 6px solid var(--accent);
  padding: 1.25rem 1.25rem 1.1rem;
  font-family: var(--mono);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.hline {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.5rem;
  padding: 0.45rem 0;
}
.hline + .hline { border-top: 1px dashed var(--line); }
.hkey { color: var(--muted); }
.hval { overflow-wrap: anywhere; }
@media (max-width: 30rem) {
  .hline { grid-template-columns: 1fr; gap: 0; }
}

mark[data-key] {
  background: var(--mark);
  color: var(--mark-ink);
  padding: 0.05em 0.15em;
  border-radius: 2px;
  position: relative;
}
mark[data-key]::after {
  content: attr(data-key);
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 700;
  vertical-align: super;
  margin-left: 0.2em;
  color: var(--accent);
}

.specimen__notes p {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-size: 0.96875rem;
}
.key {
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--mark);
  color: var(--mark-ink);
  font-weight: 700;
  font-size: 0.8125rem;
  margin-top: 0.1rem;
}

/* Bands */
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band--quiet { background: transparent; border-bottom: 0; }

/* Checker */
.checker {
  display: grid;
  gap: 1rem;
  max-width: var(--measure);
}
@media (min-width: 48rem) {
  .checker { grid-template-columns: 1fr 1fr; max-width: none; align-items: start; }
  .checker .btn { grid-column: 1 / -1; justify-self: start; }
}
.field label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.field input {
  width: 100%;
  font: inherit;
  font-family: var(--mono);
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-bottom: 2px solid var(--muted);
  border-radius: 3px;
  padding: 0.65rem 0.75rem;
}
.field input::placeholder { color: var(--muted); opacity: 0.65; }
.hint { margin: 0.35rem 0 0; font-size: 0.875rem; color: var(--muted); }

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  background: var(--accent);
  color: var(--accent-ink);
  border: 2px solid var(--accent);
  border-radius: 3px;
  padding: 0.65rem 1.25rem;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { filter: brightness(1.08); }
.btn--outline { background: transparent; color: var(--accent); }

.result {
  margin-top: 1.75rem;
  max-width: var(--measure);
  border-left: 6px solid var(--accent);
  background: var(--ok-bg);
  padding: 1rem 1.25rem;
}
.result.is-warn { border-left-color: var(--warn); background: var(--warn-bg); }
.result h3 { margin: 0 0 0.35rem; font-size: 1.125rem; }
.result p { margin: 0 0 0.6rem; }
.result p:last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: no-preference) {
  .result:not([hidden]) { animation: settle 220ms ease-out; }
  @keyframes settle { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}

/* Email types */
.types { max-width: var(--measure); border-top: 1px solid var(--line); }
.types details { border-bottom: 1px solid var(--line); }
.types summary {
  cursor: pointer;
  padding: 1rem 0;
  font-weight: 600;
  font-size: 1.125rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.types summary::-webkit-details-marker { display: none; }
.types summary::after { content: "+"; color: var(--accent); font-weight: 700; }
.types details[open] summary::after { content: "−"; }
.types details.is-match summary { color: var(--accent); }
.types dl { margin: 0 0 1.25rem; }
.types dt { font-weight: 600; margin-top: 0.75rem; }
.types dd { margin: 0.15rem 0 0; color: var(--muted); }

/* Rules */
.rules { max-width: var(--measure); padding-left: 1.25rem; margin: 1rem 0 0; }
.rules li { margin-bottom: 0.85rem; }
.rules li::marker { color: var(--accent); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--muted); font-size: 0.9375rem; }
.footer p { max-width: var(--measure); margin: 0 0 0.75rem; }

/* Placeholders to fill before launch (grep: class="todo") */
.todo { background: var(--warn-bg); color: var(--warn); padding: 0 0.2em; border-radius: 2px; }

/* Contact reveal */
.reveal { max-width: var(--measure); }
.turnstile-slot { margin-top: 0.75rem; min-height: 0; }
.reveal-status { margin: 0.5rem 0 0; color: var(--muted); min-height: 1.6em; }
.reveal-out { margin: 0.5rem 0 0; }
.reveal-out .btn { font-family: var(--mono); }
