/* ==========================================================
   astonQ — site stylesheet
   Colors follow the Onyx & Brass guideline (v1.0).
   Change look-and-feel through the tokens in :root only.
   ========================================================== */

/* ---------- Web font (self-hosted, headings only) ---------- */
@font-face {
  font-family: "Source Serif 4";
  src: url("assets/fonts/source-serif-4-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  /* Colors */
  --onyx: #0F1012;
  --surface-1: #1A1C1F;
  --surface-2: #22252A;
  --line: #2A2D31;
  --line-strong: #3A3D42;
  --ivory: #EDEAE3;
  --silver: #9EA3A8;
  --muted: #8B8E93;
  --brass: #B8975A;
  --brass-hover: #C9A86B;
  --brass-light: #D6BE8A;

  --bg: var(--onyx);
  --bg-card: var(--surface-1);
  --border: var(--line);
  --text: var(--ivory);
  --text-2: var(--silver);
  --text-3: var(--muted);
  --accent: var(--brass);
  --accent-hover: var(--brass-hover);
  --on-accent: var(--onyx);

  /* Typography */
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-12: 0.75rem;
  --fs-14: 0.875rem;
  --fs-16: 1rem;
  --fs-18: 1.125rem;
  --fs-22: 1.375rem;
  --fs-28: 1.75rem;
  --fs-36: 2.25rem;
  --fs-48: 3rem;
  --fs-hero: clamp(2.5rem, 7vw, 4.5rem);

  /* Spacing */
  --sp-4: 0.25rem;
  --sp-8: 0.5rem;
  --sp-12: 0.75rem;
  --sp-16: 1rem;
  --sp-24: 1.5rem;
  --sp-32: 2rem;
  --sp-48: 3rem;
  --sp-64: 4rem;
  --sp-96: 6rem;

  /* Shape */
  --radius: 4px;
  --max-width: 1200px;
  --gutter: 1.25rem;
  --header-h: 4rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-16);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
}

p, ul, ol { margin: 0; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 150ms ease;
}
a:hover { color: var(--brass-light); text-decoration: underline; text-underline-offset: 0.2em; }

:focus-visible {
  outline: 2px solid var(--brass-light);
  outline-offset: 2px;
  border-radius: 2px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: var(--sp-16);
  top: -100px;
  background: var(--accent);
  color: var(--on-accent);
  padding: var(--sp-8) var(--sp-16);
  z-index: 100;
}
.skip-link:focus { top: var(--sp-16); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-16);
}
.wordmark {
  font-family: var(--font-serif);
  font-size: var(--fs-22);
  color: var(--text);
  letter-spacing: 0.01em;
}
.wordmark span { color: var(--accent); }
.wordmark:hover { color: var(--text); text-decoration: none; }

.nav-list {
  list-style: none;
  padding: 0;
  display: flex;
  gap: var(--sp-16);
}
.nav-list a {
  color: var(--text-2);
  font-size: var(--fs-14);
}
.nav-list a:hover { color: var(--text); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  padding: var(--sp-64) 0 var(--sp-48);
}
.eyebrow,
.section-label {
  font-size: var(--fs-12);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-24);
}
.hero h1 {
  font-size: var(--fs-hero);
  max-width: 24ch;
}
.lead {
  margin-top: var(--sp-24);
  font-size: var(--fs-18);
  color: var(--text-2);
  max-width: 56ch;
}

.button {
  display: inline-block;
  margin-top: var(--sp-32);
  padding: var(--sp-12) var(--sp-24);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  font-size: var(--fs-14);
  border-radius: var(--radius);
  transition: background-color 150ms ease;
}
.button:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
  text-decoration: none;
}

/* Measurement scale motif: hairline ticks with one brass mark */
.scale {
  position: relative;
  margin-top: var(--sp-64);
  height: 24px;
  border-bottom: 1px solid var(--line-strong);
  background-image:
    repeating-linear-gradient(to right, var(--line-strong) 0 1px, transparent 1px 100%),
    repeating-linear-gradient(to right, var(--line) 0 1px, transparent 1px 100%);
  background-size: 96px 24px, 12px 10px;
  background-position: 0 0, 0 14px;
  background-repeat: repeat-x;
}
.scale::after {
  content: "";
  position: absolute;
  left: 61.8%;
  bottom: 0;
  width: 2px;
  height: 32px;
  background: var(--accent);
}

/* ---------- Sections ---------- */
.section {
  padding: var(--sp-64) 0;
  border-top: 1px solid var(--border);
}
.section h2 {
  font-size: var(--fs-28);
}
.section-text {
  margin-top: var(--sp-16);
  line-height: 1.65;
  color: var(--text-2);
  font-size: var(--fs-18);
  max-width: 48ch;
}

/* About keywords */
.keywords {
  list-style: none;
  padding: 0;
  margin-top: var(--sp-48);
  display: grid;
  gap: var(--sp-32);
}
.keywords li {
  padding-top: var(--sp-16);
  position: relative;
}
.keywords h3 {
  font-size: var(--fs-22);
}
.keywords p,
.card p {
  margin-top: var(--sp-8);
  color: var(--text-2);
  font-size: var(--fs-16);
}
.keywords li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 1px;
  background: var(--accent);
}

/* Offering cards */
.cards {
  list-style: none;
  padding: 0;
  margin-top: var(--sp-32);
  display: grid;
  gap: var(--sp-16);
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-24);
  min-height: 9rem;
  display: flex;
  flex-direction: column;
}
.card-num {
  font-family: var(--font-serif);
  color: var(--accent);
  font-size: var(--fs-16);
}
.card h3 {
  font-size: var(--fs-22);
  margin-top: var(--sp-32);
}

/* Contact */
.email {
  margin-top: var(--sp-8);
  font-family: var(--font-serif);
  font-size: var(--fs-28);
  overflow-wrap: anywhere;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--sp-32) 0 var(--sp-48);
}
.footer-note {
  color: var(--text-3);
  font-size: var(--fs-14);
  max-width: 70ch;
}
.footer-copy {
  margin-top: var(--sp-16);
  color: var(--text-3);
  font-size: var(--fs-12);
}

/* ---------- Larger screens ---------- */
@media (min-width: 720px) {
  :root { --gutter: 2rem; }
  .nav-list { gap: var(--sp-32); }
  .hero { padding: var(--sp-96) 0 var(--sp-64); }
  .section { padding: var(--sp-96) 0; }
  .section h2 { font-size: var(--fs-36); }
  .keywords { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(3, 1fr); gap: var(--sp-24); }
  .card { min-height: 12rem; padding: var(--sp-32); }
  .email { font-size: var(--fs-36); }
}
