/* Touchmark Labs — site styles */
:root {
  --bg: #fbfaf7;
  --bg-alt: #f1efe9;
  --surface: #ffffff;
  --ink: #15202b;
  --ink-soft: #4b5563;
  --ink-mute: #6b7280;
  --line: #e4e1d9;
  --accent: #1d6a85;
  --accent-ink: #164f63;
  --accent-soft: #e3f0f4;
  --radius: 14px;
  --max: 1080px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1720;
    --bg-alt: #141f2a;
    --surface: #182431;
    --ink: #eef2f5;
    --ink-soft: #b8c2cc;
    --ink-mute: #8b97a3;
    --line: #26323f;
    --accent: #6cc0dc;
    --accent-ink: #9ad6ea;
    --accent-soft: #1b3440;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 650; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip {
  position: absolute; left: -999px; top: 8px; background: var(--surface); color: var(--ink);
  padding: 8px 12px; border-radius: 8px; z-index: 10;
}
.skip:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--ink-soft); font-weight: 500; font-size: 0.95rem; white-space: nowrap; }
.nav a:hover { color: var(--ink); text-decoration: none; }
@media (max-width: 560px) { .nav { gap: 14px; } .nav a { font-size: 0.9rem; } .nav .hide-sm { display: none; } }

/* Hero */
.hero { padding: clamp(56px, 10vw, 120px) 0 clamp(48px, 8vw, 96px); }
.hero .wrap { max-width: 820px; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent-soft); padding: 5px 10px; border-radius: 999px; margin-bottom: 20px;
}
.lede { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--ink-soft); max-width: 640px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px;
  font-weight: 600; border: 1px solid transparent; transition: transform 0.12s ease, background 0.12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
@media (prefers-color-scheme: dark) { .btn-primary { color: #0f1720; } .btn-primary:hover { color: #0f1720; } }
.btn-ghost { color: var(--ink); border-color: var(--line); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink-mute); }

/* Sections */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head p { color: var(--ink-soft); }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px;
}
.card .icon {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 16px;
}
.card .icon svg { width: 22px; height: 22px; }
.card p { color: var(--ink-soft); margin: 0; }

.principles { display: grid; gap: 28px 40px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); counter-reset: p; }
.principle { position: relative; padding-left: 52px; }
.principle::before {
  counter-increment: p; content: counter(p, decimal-leading-zero);
  position: absolute; left: 0; top: 2px; font-weight: 700; font-size: 0.9rem; color: var(--accent);
  font-variant-numeric: tabular-nums; letter-spacing: 0.04em;
}
.principle p { color: var(--ink-soft); margin: 0; }

.work { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.work .card { border-left: 4px solid var(--accent); }
.tag { display: inline-block; font-size: 0.78rem; font-weight: 600; color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }

/* Contact */
.contact .wrap { max-width: 720px; text-align: center; }
.contact .lede { margin-left: auto; margin-right: auto; }
.contact .actions { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 0.9rem; color: var(--ink-mute); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.site-footer a { color: var(--ink-mute); }
.site-footer a:hover { color: var(--ink); }

/* Prose pages (privacy, 404) */
.prose { max-width: 720px; padding: clamp(40px, 6vw, 72px) 20px; margin: 0 auto; }
.prose h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.prose h2 { font-size: 1.3rem; margin-top: 2em; }
.prose p, .prose li { color: var(--ink-soft); }
.prose .meta { color: var(--ink-mute); font-size: 0.9rem; }
