/* apasventures.com: a quiet company page. Ink on paper, one teal accent. */
:root {
  --paper: #f6f7f9;
  --sheet: #ffffff;
  --ink: #12203a;
  --ink-2: #3a4a66;
  --muted: #5f6d85;
  --rule: #dce1ea;
  --accent: #157a6e;
  --accent-ink: #0f5f56;
  --accent-soft: #e3f1ee;
  --on-accent: #ffffff;
  --bad: #b3261e;

  --display: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --body: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --page: 1080px;
  --r: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0d1524; --sheet: #131d30; --ink: #e7edf6; --ink-2: #b6c2d5; --muted: #8a98ae;
    --rule: #26324a; --accent: #4cc0ae; --accent-ink: #7ad6c7; --accent-soft: #10342f; --on-accent: #0d1524;
    --bad: #ff8a80;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0d1524; --sheet: #131d30; --ink: #e7edf6; --ink-2: #b6c2d5; --muted: #8a98ae;
  --rule: #26324a; --accent: #4cc0ae; --accent-ink: #7ad6c7; --accent-soft: #10342f; --on-accent: #0d1524;
  --bad: #ff8a80;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--body);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.wrap { max-width: var(--page); margin: 0 auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--accent-ink); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--sheet); padding: 8px 12px; z-index: 10; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 32px; height: 32px; }
.brand .word { font-family: var(--display); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; }
.links { display: flex; gap: 4px 20px; flex-wrap: wrap; }
.links a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 0.95rem; padding: 4px 0; }
.links a:hover, .links a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }

/* sections */
.label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 14px; }
.hero { padding: 72px 0 56px; max-width: 760px; }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); line-height: 1.08; }
.lead { font-size: 1.15rem; color: var(--ink-2); margin-top: 18px; max-width: 64ch; }
.actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.page-head { padding: 56px 0 32px; max-width: 760px; }
.page-head h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); line-height: 1.12; }
.band { padding: 48px 0; border-top: 1px solid var(--rule); }
.band > h2, .split h2 { font-size: 1.9rem; margin-bottom: 20px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 24px 56px; }
.tagline { font-family: var(--display); font-size: 1.3rem; line-height: 1.35; color: var(--accent-ink); }

/* buttons */
.btn { display: inline-block; padding: 11px 20px; border-radius: 999px; border: 1px solid var(--rule); background: var(--sheet); color: var(--ink); font: 600 0.95rem var(--body); text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--ink-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn:disabled { opacity: 0.6; cursor: default; }

/* sites */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; gap: 10px; padding: 24px; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.plain-card:hover { border-color: var(--rule); transform: none; }
.card .who { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.card h3 { font-size: 1.5rem; }
.card p { color: var(--ink-2); flex: 1; }
.card .go { font-weight: 600; color: var(--accent-ink); }

/* text */
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 14px; }
.prose h2 { font-size: 1.35rem; margin: 28px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose { max-width: 70ch; color: var(--ink-2); }
.addr { padding: 14px 18px; background: var(--sheet); border: 1px solid var(--rule); border-left: 3px solid var(--accent); border-radius: 6px; color: var(--ink); line-height: 1.55; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; }
.ticks li { position: relative; padding-left: 28px; margin: 8px 0; color: var(--ink); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 0.45em; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.plain { padding-left: 18px; margin: 10px 0 0; }
.plain li { margin: 6px 0; }

/* form */
.form { display: grid; gap: 16px; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r); padding: 24px; align-self: start; }
.form .row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.form .opt { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea { font: 400 1rem var(--body); color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; padding: 10px 12px; width: 100%; }
.form textarea { resize: vertical; }
.form .trap { position: absolute; left: -9999px; }
.form button { justify-self: start; }
.form-msg { padding: 10px 14px; border-radius: 6px; }
.form-msg.ok { background: var(--accent-soft); color: var(--accent-ink); }
.form-msg.err { color: var(--bad); border: 1px solid currentColor; }
.split .side { order: 2; }

/* engines, agents, videos */
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 12px 40px; flex-wrap: wrap; margin-bottom: 24px; }
.head-row h2 { font-size: 1.9rem; margin: 0; }
.head-row .aside { max-width: 52ch; color: var(--ink-2); }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile { padding: 20px; background: var(--sheet); border: 1px solid var(--rule); border-top: 3px solid var(--accent); border-radius: var(--r); display: flex; flex-direction: column; gap: 6px; }
.tile .name { font-family: var(--display); font-size: 1.45rem; font-weight: 600; color: var(--accent-ink); line-height: 1.1; }
.tile b { font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.tile p { color: var(--ink-2); font-size: 0.95rem; }
.cards + .cards { margin-top: 20px; }
#agents .cards { row-gap: 20px; }
.feature { margin: 0 0 24px; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; }
.feature video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.feature figcaption { padding: 14px 18px; color: var(--ink-2); }
.feature figcaption b { color: var(--ink); }
.clips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.clips figure { margin: 0; background: #fff; border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; }
.clips video { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.clips figcaption { padding: 10px 12px; font-size: 0.85rem; color: #3a4a66; background: var(--sheet); color: var(--ink-2); border-top: 1px solid var(--rule); }
.card a { position: relative; z-index: 1; }
@media (max-width: 960px) { .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .clips { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .grid4 { grid-template-columns: 1fr; } .clips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* footer */
footer { border-top: 1px solid var(--rule); margin-top: 32px; padding: 32px 0 40px; font-size: 0.92rem; color: var(--muted); }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; }
footer .cols > div { display: flex; flex-direction: column; gap: 6px; }
footer b { color: var(--ink); }
footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; }
footer .legal { margin-top: 24px; }

@media (max-width: 820px) {
  .cards { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 40px; }
  footer .cols { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .form .row.two { grid-template-columns: 1fr; }
  .form { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
  .card:hover { transform: none; }
}
