/* --------------------------------------------------------------------------
   Inoetic — shared styles for secondary pages
   (services, about, case studies, insights index + posts)
   The homepage keeps its own inline critical CSS.
   -------------------------------------------------------------------------- */

:root {
  --bg: #030305;
  --text: #f8fafc;
  --text-dim: #94a3b8;
  --accent: #00f0ff;
  --accent-purple: #8b5cf6;
  --border: rgba(255, 255, 255, .1);
  --hairline: rgba(255, 255, 255, .08);
  --surface: rgba(255, 255, 255, .03);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout containers */
.wrap,
.wide {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.prose {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
}

/* Header / footer */
header,
footer {
  padding: 28px 0;
  border-bottom: 1px solid var(--hairline);
}

footer {
  border-top: 1px solid var(--hairline);
  border-bottom: 0;
  color: var(--text-dim);
}

nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.brand {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .12em;
}

.links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

a {
  color: #67e8f9;
}

.links a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color .2s ease;
}

.links a:hover {
  color: #fff;
}

/* Typography */
main {
  padding: 72px 0;
}

.eyebrow {
  color: var(--accent);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
}

.meta {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: .72rem;
  color: var(--text-dim);
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1;
  margin: 18px 0 24px;
  max-width: 900px;
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  line-height: 1.1;
  margin: 56px 0 18px;
}

h3 {
  margin: 0 0 10px;
}

p {
  color: #cbd5e1;
  max-width: 780px;
}

/* Article (long-form) overrides */
.prose h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.1;
  max-width: none;
}

.prose h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin: 40px 0 14px;
}

.prose p,
.prose li {
  max-width: none;
}

.prose li {
  margin-bottom: 8px;
}

.prose .meta {
  margin-top: 12px;
}

/* Cards & grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  padding: 22px;
}

/* Card-as-link variant (insights index) */
a.card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}

a.card:hover {
  border-color: rgba(0, 240, 255, .4);
  transform: translateY(-2px);
}

a.card h2 {
  font-size: 1.25rem;
  margin: 0 0 8px;
  color: #fff;
}

a.card p {
  color: var(--text-dim);
  font-size: .95rem;
}

/* Call to action */
.cta {
  display: inline-flex;
  margin-top: 28px;
  padding: 14px 22px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  background: linear-gradient(135deg, #00f0ff, #8b5cf6);
}

/* Back link (article pages) */
.back {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: .9rem;
}

.back:hover {
  color: #67e8f9;
}

/* Accessible skip link — visually hidden until focused */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 200;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  padding: .75rem 1.25rem;
  border-radius: 100px;
  background: #fff;
  color: #000;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}

@media (max-width: 720px) {
  nav {
    align-items: flex-start;
    flex-direction: column;
  }

  main {
    padding: 48px 0;
  }
}
