/* Everything here reads from tokens.css. No raw colours or fonts below. */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--f-sans);
  font-size: var(--t-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s-3); }

a { color: var(--c-accent); }
a:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; border-radius: 3px; }

/* Keyboard users get a way past the nav. */
.skip {
  position: absolute; left: -9999px;
  background: var(--c-accent); color: var(--c-accent-in);
  padding: var(--s-1) var(--s-2);
}
.skip:focus { left: var(--s-2); top: var(--s-2); z-index: 10; }

h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.15; }

/* --- Text for screen readers only — invisible on screen. --------------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* --- Header ------------------------------------------------------------ */
.site-head { border-bottom: 1px solid var(--c-line); background: var(--c-surface); }
.site-head .wrap {
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3);
  align-items: center; justify-content: space-between;
  padding-top: var(--s-2); padding-bottom: var(--s-2);
}
.brand { font-weight: 700; font-size: var(--t-lg); text-decoration: none; color: var(--c-ink); }
.brand-dot { color: var(--c-accent); }
.site-head nav { display: flex; flex-wrap: wrap; gap: var(--s-3); font-size: var(--t-sm); }
.site-head nav a { text-decoration: none; color: var(--c-muted); }
.site-head nav a:hover,
.site-head nav a[aria-current="page"] { color: var(--c-accent); }

.brand-name {
  font-weight: 700;
  letter-spacing: -0.03em;   /* tightened: reads as a mark, not a sentence */
  white-space: nowrap;       /* never break across lines mid-name */
}

/* In the header the name is the logo, so it carries the accent colour. */
.brand-tld { color: var(--c-accent); }

/* --- Generic section spacing ------------------------------------------- */
.section { padding: var(--s-5) 0; }
.section + .section { border-top: 1px solid var(--c-line); }
.section-title { font-size: var(--t-xl); margin: 0 0 var(--s-3); }

/* --- Hero --------------------------------------------------------------- */
.hero { padding: var(--s-6) 0 var(--s-5); }
.hero h1 { font-size: var(--t-2xl); margin: 0 0 var(--s-3); max-width: 18ch; }
.hero p { font-size: var(--t-lg); color: var(--c-muted); max-width: 46ch; margin: 0 0 var(--s-4); }

.btn {
  display: inline-block;
  background: var(--c-accent); color: var(--c-accent-in);
  text-decoration: none; font-weight: 600;
  padding: 0.7rem 1.4rem; border-radius: var(--radius);
}
.btn:hover { filter: brightness(1.15); }

/* Cost posture line: reassurance without publishing a rate card. */
.cost-note { font-size: var(--t-sm); color: var(--c-muted); margin-top: var(--s-2); }

/* --- Grids and cards ---------------------------------------------------- */
.grid {
  display: grid; gap: var(--s-2);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}
.card {
  display: block; text-decoration: none; color: inherit;
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--radius); padding: var(--s-3);
}
.card:hover { border-color: var(--c-accent); }
.card h3 { margin: var(--s-1) 0 0; font-size: var(--t-lg); }
.card p { color: var(--c-muted); font-size: var(--t-sm); }
.card-domain { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--c-accent); }
.card-kind { margin: 0.2rem 0 var(--s-1); font-size: var(--t-xs) !important; }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.3rem; padding: 0; margin: var(--s-2) 0 0; }
.tags li {
  font-family: var(--f-mono); font-size: var(--t-xs);
  border: 1px solid var(--c-line); border-radius: 4px; padding: 0.1rem 0.4rem;
}

/* --- Footer ------------------------------------------------------------- */
.site-foot { border-top: 1px solid var(--c-line); background: var(--c-surface); }
.site-foot .wrap { padding-top: var(--s-4); padding-bottom: var(--s-4); }
.foot-lead { font-size: var(--t-xl); margin: 0 0 var(--s-3); }
.fine { color: var(--c-muted); font-size: var(--t-xs); margin-top: var(--s-4); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
