/* Optic Holdings LLC — shared styles. Static, no build step, no external requests. */

:root {
  --bg: #ffffff;
  --fg: #1c1c1e;
  --muted: #5a5a5f;
  --rule: #e2e2e6;
  --accent: #1f4f8b;
  --box: #f6f7f9;
  --warn-bg: #fff4e5;
  --warn-rule: #b8791a;
  --warn-fg: #6b4405;
  --maxw: 46rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131316;
    --fg: #ececef;
    --muted: #a2a2a9;
    --rule: #2c2c31;
    --accent: #7fb0ea;
    --box: #1c1c21;
    --warn-bg: #2e2313;
    --warn-rule: #c9932f;
    --warn-fg: #f0d49a;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }

header.site {
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2.5rem;
  padding-bottom: 1.25rem;
}

header.site .name {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--fg);
}

nav { margin-top: 0.85rem; display: flex; flex-wrap: wrap; gap: 1.1rem; }
nav a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
nav a:hover, nav a:focus { color: var(--accent); text-decoration: underline; }
nav a[aria-current="page"] { color: var(--fg); font-weight: 600; }

h1 { font-size: 1.6rem; line-height: 1.3; margin: 0 0 1.25rem; }
h2 { font-size: 1.12rem; margin: 2.25rem 0 0.6rem; }
h3 { font-size: 1rem; margin: 1.5rem 0 0.4rem; }
p, li { color: var(--fg); }
a { color: var(--accent); }

.lede { font-size: 1.05rem; color: var(--muted); margin-bottom: 2rem; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }

address {
  font-style: normal;
  background: var(--box);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1rem 1.15rem;
  line-height: 1.55;
}

.box {
  background: var(--box);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1rem 1.15rem;
  margin: 1.25rem 0;
}

blockquote {
  margin: 1rem 0;
  padding: 0.75rem 1.15rem;
  border-left: 3px solid var(--accent);
  background: var(--box);
  border-radius: 0 8px 8px 0;
}
blockquote p { margin: 0.35rem 0; }

/* Pre-publication gate. Must be gone before DNS cutover. */
.draft {
  background: var(--warn-bg);
  border: 2px dashed var(--warn-rule);
  color: var(--warn-fg);
  border-radius: 8px;
  padding: 1rem 1.15rem;
  margin: 1.5rem 0;
}
.draft strong { display: block; margin-bottom: 0.4rem; letter-spacing: 0.02em; }

/* Opt-in form */
form.optin {
  background: var(--box);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1.25rem 1.35rem 1.35rem;
  margin: 1.25rem 0 2rem;
}

form.optin .field { display: block; font-weight: 600; margin-bottom: 0.4rem; }

form.optin input[type="tel"] {
  width: 100%;
  max-width: 22rem;
  padding: 0.6rem 0.7rem;
  font: inherit;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 6px;
}
form.optin input[type="tel"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

form.optin .consent {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin: 1.1rem 0;
  font-size: 0.9rem;
  line-height: 1.55;
  cursor: pointer;
}
form.optin .consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.18rem;
  accent-color: var(--accent);
}

form.optin button {
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0.6rem 1.4rem;
  cursor: pointer;
}
form.optin button:hover { filter: brightness(1.08); }
form.optin button:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
form.optin p.small { margin-bottom: 0; }

/* Honeypot — off-screen for people, present in the DOM for bots. Never display:none;
   some bots skip hidden fields, which defeats the point. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: 0.94rem; }
th, td { text-align: left; padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 600; width: 34%; }

code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; }

footer.site {
  border-top: 1px solid var(--rule);
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}
footer.site .legal { font-weight: 600; color: var(--fg); }
footer.site p { margin: 0.3rem 0; }
