/* =========================================================================
   accentinformatics.com — shared stylesheet
   =========================================================================
   Brand colours are taken from the company logo: the salmon block (#F4525A)
   and white "greater-than" prompt glyph. The prompt is the organising idea —
   a computing company — so the accent colour and the eyebrow labels lean on
   that terminal feel without turning the whole site into a fake console.

   Fonts are the system UI stack: zero network requests, nothing to license,
   native rendering everywhere. The logo image carries the brand typography
   (Ubuntu + a script face), which is where it actually matters. If you later
   want a distinctive typeface, self-host a .woff2 in assets/fonts/ and swap
   --display / --body below — nothing else needs to change.

   Everything is driven by the custom properties in :root. Change a colour or
   a size there and it updates across every page.
   ========================================================================= */

:root {
  /* ── Palette ─────────────────────────────────────────────────────────── */
  --ink:        #131A22;   /* masthead, footer, headings */
  --ink-2:      #1E2A35;   /* raised surfaces on dark */
  --ink-3:      #2C3A47;   /* hairlines on dark */
  --body-fg:    #3B4855;   /* body copy */
  --muted:      #6B7885;   /* meta / secondary text */
  --salmon:     #F4525A;   /* brand accent */
  --salmon-dk:  #D33E46;   /* accent hover */
  --salmon-lt:  #FDF0F0;   /* accent wash */
  --paper:      #FBFAF9;   /* page background */
  --paper-2:    #F3F0EC;   /* alternating band */
  --line:       #E3DED8;   /* hairlines on light */
  --white:      #FFFFFF;

  /* ── Type ────────────────────────────────────────────────────────────── */
  --display: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --body:    system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono:    ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* ── Rhythm ──────────────────────────────────────────────────────────── */
  --measure: 68ch;
  --shell:   1140px;
  --gap:     clamp(3rem, 7vw, 6rem);
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  background: var(--paper);
  color: var(--body-fg);
  font-family: var(--body);
  font-size: clamp(1rem, .96rem + .2vw, 1.06rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── Layout primitives ──────────────────────────────────────────────────── */
.shell { width: min(100% - 2.5rem, var(--shell)); margin-inline: auto; }
.section { padding-block: var(--gap); }
.section--tint { background: var(--paper-2); border-block: 1px solid var(--line); }
.section--dark { background: var(--ink); color: #B4C0CB; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.prose { max-width: var(--measure); }
.prose p + p { margin-top: 1.1em; }

.skip {
  position: absolute; left: -9999px;
  background: var(--salmon); color: var(--white);
  padding: .75rem 1.25rem; z-index: 100; text-decoration: none;
}
.skip:focus { left: 1rem; top: 1rem; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--salmon);
  outline-offset: 3px;
}

/* ── Typography ─────────────────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.18; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 1.55rem + 2.7vw, 3.4rem); }
h2 { font-size: clamp(1.65rem, 1.3rem + 1.6vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1.06rem + .45vw, 1.4rem); }

/* Small uppercase label above a heading. The ">" is the logo's prompt glyph,
   reused as a typographic motif. */
.eyebrow {
  font-family: var(--mono);
  font-size: .76rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--salmon);
  margin-bottom: .9rem;
}
.eyebrow::before { content: "> "; opacity: .6; }
.section--dark .eyebrow { color: var(--salmon); }

.lede { font-size: clamp(1.08rem, 1rem + .5vw, 1.28rem); color: var(--body-fg); }
.section--dark .lede { color: #C3CEd8; }

a { color: var(--salmon-dk); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--salmon); }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-size: .82rem; font-weight: 650;
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  padding: .95rem 1.9rem; border: 1px solid var(--salmon);
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn--solid { background: var(--salmon); color: var(--white); }
.btn--solid:hover { background: var(--salmon-dk); border-color: var(--salmon-dk); color: var(--white); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.section--dark .btn--ghost { color: var(--white); border-color: rgba(255,255,255,.4); }
.section--dark .btn--ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

/* ── Masthead (dark, carries the white logo) ────────────────────────────── */
.masthead { background: var(--ink); }
.masthead__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-block: 1.1rem; flex-wrap: wrap;
}
.masthead__logo img { width: 210px; height: auto; }
.nav ul { display: flex; gap: clamp(1rem, 2.6vw, 2rem); flex-wrap: wrap; align-items: center; }
.nav a {
  font-size: .82rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; text-decoration: none; color: #C3CED8;
  padding-block: .3rem; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--white); }
.nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--salmon); }

/* Slim contact strip above the nav. */
.topbar { background: var(--ink-2); color: #8E9BA8; font-size: .8rem; }
.topbar ul { display: flex; gap: 1.5rem; flex-wrap: wrap; padding-block: .55rem; }
.topbar a { color: #8E9BA8; text-decoration: none; }
.topbar a:hover { color: var(--white); }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { padding-block: clamp(3.5rem, 9vw, 6.5rem); }
.hero h1 { max-width: 19ch; }
.hero .lede { max-width: 56ch; margin-top: 1.4rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.4rem; }

/* ── Grids and cards ────────────────────────────────────────────────────── */
.grid { display: grid; gap: clamp(1.75rem, 3.5vw, 2.75rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }

.card { background: var(--white); border: 1px solid var(--line); padding: clamp(1.6rem, 3vw, 2.2rem); }
.card h3 { margin-bottom: .7rem; }
.card--plain { background: transparent; border: 0; padding: 0; border-top: 2px solid var(--salmon); padding-top: 1.4rem; }
.section--dark .card { background: var(--ink-2); border-color: var(--ink-3); }

.step__num {
  font-family: var(--mono); font-size: 1.6rem; font-weight: 700;
  color: var(--salmon); line-height: 1; display: block; margin-bottom: .7rem;
}

/* ── Stats ──────────────────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 2rem; }
.stat { text-align: center; }
.stat__num { font-size: clamp(2.3rem, 1.9rem + 2vw, 3.2rem); color: var(--white); line-height: 1; font-weight: 700; letter-spacing: -.03em; }
.stat__label { font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #8E9BA8; margin-top: .65rem; }

/* ── Team ───────────────────────────────────────────────────────────────── */
.person { text-align: center; }
.person img { width: 160px; height: 160px; border-radius: 50%; margin: 0 auto 1.1rem; object-fit: cover; }
.person h3 { margin-bottom: .15rem; }
.person__role { font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--salmon); margin-bottom: .7rem; }

/* ── Article (blog post) ────────────────────────────────────────────────── */
.article { max-width: var(--measure); }
.article h2 { font-size: clamp(1.3rem, 1.15rem + .7vw, 1.65rem); margin: 2.4rem 0 .8rem; }
.article p + p { margin-top: 1.1em; }
.article__meta { font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.5rem; }
.article__note {
  background: var(--salmon-lt); border-left: 3px solid var(--salmon);
  padding: 1rem 1.25rem; margin: 2rem 0; font-size: .95rem; color: #7A3036;
}

/* ── Forms ──────────────────────────────────────────────────────────────── */
.field { margin-bottom: 1.35rem; }
.field label { display: block; font-size: .78rem; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--ink); margin-bottom: .5rem; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: .85rem 1rem; background: var(--white);
  border: 1px solid var(--line); border-radius: 0;
}
.field input:focus, .field textarea:focus { border-color: var(--salmon); }
.field textarea { min-height: 11rem; resize: vertical; }
.req { color: var(--salmon); }

/* Honeypot: a real field humans never see and bots happily fill in. Positioned
   off-screen rather than display:none — some bots skip display:none fields. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { padding: 1rem 1.25rem; margin-bottom: 1.75rem; border-left: 3px solid; }
.notice--ok  { background: #EDF5EE; border-color: #3E7D4B; color: #1F4A29; }
.notice--err { background: #FBEDEA; border-color: #B03A22; color: #7A2415; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer { background: var(--ink); color: #9AA7B4; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; font-size: .93rem; }
.footer h4 { color: var(--white); font-size: .76rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.footer a { color: #C3CED8; text-decoration: none; }
.footer a:hover { color: var(--salmon); text-decoration: underline; }
.footer__grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.footer__grid p { max-width: 38ch; }
.footer li + li { margin-top: .5rem; }
.footer__base { margin-top: 3rem; padding-top: 1.75rem; border-top: 1px solid var(--ink-3); font-size: .84rem; color: #6B7885; }
