/* ============ onemosquito.ai — design tokens ============ */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem;
  --space-4: 1rem; --space-6: 1.5rem; --space-8: 2rem;
  --space-10: 2.5rem; --space-12: 3rem; --space-16: 4rem;
  --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  --font-display: 'Zodiak', Georgia, serif;
  --font-body: 'Satoshi', -apple-system, sans-serif;
}

:root, [data-theme="light"] {
  --bg: oklch(0.975 0.006 85);          /* off-white */
  --bg-raised: oklch(0.99 0.004 85);
  --ink: oklch(0.28 0.06 265);          /* deep navy */
  --ink-strong: oklch(0.22 0.07 265);
  --ink-soft: oklch(0.45 0.04 265);
  --accent: oklch(0.64 0.19 27);        /* coral */
  --line: oklch(0.88 0.01 85);
}

[data-theme="dark"] {
  --bg: oklch(0.21 0.045 265);
  --bg-raised: oklch(0.25 0.05 265);
  --ink: oklch(0.93 0.01 85);
  --ink-strong: oklch(0.97 0.008 85);
  --ink-soft: oklch(0.72 0.02 265);
  --accent: oklch(0.7 0.18 27);
  --line: oklch(0.32 0.04 265);
}

/* ============ base ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  transition: background 0.3s ease, color 0.3s ease;
}
img { max-width: 100%; height: auto; display: block; }
.accent { color: var(--accent); }

/* dark mode: recolor the navy PNG mark to ivory via filter-free approach — use drop shadow trick avoided; simple opacity works since navy on dark is low-contrast, so invert lightness */
[data-theme="dark"] .brand-mark,
[data-theme="dark"] .hero-mark img {
  filter: invert(0.92) hue-rotate(180deg) saturate(2.4);
}

/* ============ header ============ */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-4) clamp(var(--space-4), 5vw, var(--space-16));
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in oklch, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; color: var(--ink-strong); }
.brand-mark { width: 34px; height: 34px; object-fit: contain; }
.brand-word { font-weight: 700; font-size: var(--text-sm); letter-spacing: 0.01em; }
.site-nav { display: flex; align-items: center; gap: clamp(var(--space-3), 2.5vw, var(--space-8)); }
.site-nav a {
  color: var(--ink-soft); text-decoration: none;
  font-size: var(--text-sm); font-weight: 500;
  transition: color 0.2s ease;
}
.site-nav a:hover { color: var(--accent); }
.nav-cta { color: var(--accent) !important; font-weight: 700 !important; }
#theme-toggle {
  background: none; border: 1px solid var(--line); border-radius: 50%;
  width: 34px; height: 34px; display: grid; place-items: center;
  color: var(--ink-soft); cursor: pointer; transition: color .2s, border-color .2s;
}
#theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
:root .icon-moon, [data-theme="light"] .icon-moon { display: none; }
[data-theme="dark"] .icon-moon { display: block; }
[data-theme="dark"] .icon-sun { display: none; }

/* ============ hero ============ */
.hero {
  min-height: 82vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  padding: clamp(var(--space-16), 10vw, var(--space-32)) clamp(var(--space-4), 6vw, var(--space-16)) var(--space-8);
}
.hero-kicker {
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: var(--space-6);
}
.hero-headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-2xl);
  line-height: 1.18;
  color: var(--ink-strong);
  max-width: 22ch;
}
.hero-headline em { font-style: italic; color: var(--accent); }
.hero-sub {
  margin-top: var(--space-6);
  font-size: var(--text-lg);
  color: var(--ink-strong);
  font-weight: 700;
}
.hero-sub2 {
  margin-top: var(--space-2);
  font-size: var(--text-base);
  color: var(--ink-soft);
  font-weight: 500;
}
.hero-mark { margin-top: var(--space-10); }
.hero-mark img { width: clamp(220px, 32vw, 360px); }

/* ============ sections shared ============ */
section { padding-block: clamp(var(--space-16), 8vw, var(--space-24)); }
.section-no {
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.18em;
  color: var(--accent);
}
h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--ink-strong);
  margin-top: var(--space-2);
}

/* ============ story ============ */
.story { border-top: 1px solid var(--line); }
.story-grid {
  display: grid; grid-template-columns: 1fr 2fr;
  gap: clamp(var(--space-8), 6vw, var(--space-20));
  max-width: 1100px; margin-inline: auto;
  padding-inline: clamp(var(--space-4), 6vw, var(--space-16));
}
.story-body .lede {
  font-size: var(--text-lg); font-weight: 500; color: var(--ink-strong);
  margin-bottom: var(--space-6);
}
.story-body p + p { margin-top: var(--space-4); }
.story-body { max-width: 62ch; }

/* ============ pull quote ============ */
.pullquote {
  background: var(--ink-strong);
  padding-block: clamp(var(--space-16), 9vw, var(--space-24));
}
[data-theme="dark"] .pullquote { background: var(--bg-raised); }
.pullquote blockquote p {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  text-align: center;
  color: oklch(0.97 0.008 85);
  line-height: 1.1;
  padding-inline: var(--space-4);
}

/* ============ work ============ */
.section-head {
  max-width: 1100px; margin-inline: auto;
  padding-inline: clamp(var(--space-4), 6vw, var(--space-16));
  margin-bottom: var(--space-12);
}
.work-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  max-width: 1100px; margin-inline: auto;
  padding-inline: clamp(var(--space-4), 6vw, var(--space-16));
}
.work-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: var(--space-8);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.work-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.work-card h3 {
  font-size: var(--text-lg); font-weight: 700; color: var(--ink-strong);
  margin-bottom: var(--space-3);
}
.work-card p { font-size: var(--text-base); color: var(--ink-soft); }

/* ============ reach ============ */
.reach { border-top: 1px solid var(--line); }
.reach-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.reach-body a:hover { text-decoration-thickness: 2px; }

.reach-body {
  max-width: 1100px; margin-inline: auto;
  padding-inline: clamp(var(--space-4), 6vw, var(--space-16));
}
.reach-body p {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink-strong);
  max-width: 30ch;
}

/* ============ contact ============ */
.contact {
  text-align: center;
  border-top: 1px solid var(--line);
}
.contact h2 { margin-bottom: var(--space-3); }
.contact p { color: var(--ink-soft); margin-bottom: var(--space-6); }
.contact-link {
  display: inline-block;
  font-size: var(--text-lg); font-weight: 700;
  color: var(--accent); text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  transition: opacity 0.2s ease;
}
.contact-link:hover { opacity: 0.75; }

/* ============ footer ============ */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  max-width: 1100px; margin-inline: auto;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-2);
  padding: var(--space-6) clamp(var(--space-4), 6vw, var(--space-16));
  font-size: var(--text-xs); color: var(--ink-soft);
}
.footer-motto { font-style: italic; }

/* ============ responsive ============ */
@media (max-width: 800px) {
  .story-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .work-grid { grid-template-columns: 1fr; }
  .br-wide { display: none; }
  .site-nav a:not(.nav-cta) { display: none; }
  .hero { min-height: 70vh; }
}
