:root {
  --sans: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow-sm: 0 1px 2px rgba(20, 18, 14, 0.04), 0 10px 32px rgba(20, 18, 14, 0.05);
  --shadow-lg: 0 24px 80px rgba(20, 18, 14, 0.10);
}

[data-theme="dark"] {
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.18), 0 12px 36px rgba(0, 0, 0, 0.18);
  --shadow-lg: 0 28px 90px rgba(0, 0, 0, 0.34);
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}

button, input, textarea, select { font-family: var(--sans); }

.hero h1, .section-head h2, .project h3, .journal-row h3,
.team-member h3, .ideas-success-card h3, .about-text, .logo, h1, h2, h3 {
  text-wrap: balance;
}

p { text-wrap: pretty; }

a, button, input, textarea, select { -webkit-tap-highlight-color: transparent; }

:where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 70%, transparent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-180%);
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--bg);
  background: var(--ink);
  font: 600 12px/1 var(--sans);
  text-decoration: none;
  transition: transform 0.2s ease;
}

.skip-link:focus { transform: translateY(0); }

body > nav { padding: 18px 0; }
.nav-links { font-weight: 600; }
.nav-links a.active, .nav-links a[aria-current="page"] { color: var(--ink); }

.hero-sub p, .hero-lede, .project p, .journal-row p, .ideas-intro,
.footer-brand p, .post-body, .message .body { font-family: var(--sans); }

.hero-sub p, .hero-lede {
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.65;
}

.projects-grid, .team-member, .ideas-form, .ideas-success-card, .card, .panel {
  box-shadow: var(--shadow-sm);
}

.project { isolation: isolate; }
.project::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 52%);
  transition: opacity 0.45s ease;
}
.project:hover::after { opacity: 1; }

.ideas-submit, .reply-form button, .ideas-success-actions a, .ideas-tg-cta a,
button:not(.theme-toggle):not(.lang-toggle):not(.tab-btn) {
  min-height: 44px;
  font-weight: 600;
}

.ideas-form input[type="text"], .ideas-form input[type="email"],
.ideas-form textarea, .reply-form textarea {
  font-family: var(--sans);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
}

.choice span {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.035em;
}

.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 52px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--line);
  box-shadow: var(--shadow-lg);
}

.promise-item {
  min-height: 138px;
  padding: 28px;
  background: color-mix(in srgb, var(--bg-card) 94%, transparent);
}

.promise-item strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(25px, 3vw, 38px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1;
}

.promise-item span {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.45;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .nav-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .nav-links {
    width: 100%;
    gap: 22px;
    overflow-x: auto;
    padding: 2px 2px 7px;
    scrollbar-width: none;
    white-space: nowrap;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a[href="/hire"] { order: -1; }
}

@media (max-width: 720px) {
  .promise-grid { grid-template-columns: 1fr; margin-top: 36px; }
  .promise-item { min-height: 0; padding: 22px 24px; }
  .ideas-form { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
