/* Zircon Tech Consultants — the site's one stylesheet.
   Ivory ground, navy and zircon-blue accents, no decoration beyond the mark
   and a two-colour band. Light/dark follow the system. The palette is also in
   scripts/generate-og-image.sh; change both in the same commit. */

:root {
  --ground: #F6F4EE;
  --surface: #FFFFFF;
  --tint: #E7EEF5;
  --text: #1C2331;
  --muted: #5B6676;
  --navy: #1F3864;
  --blue: #3A8DC5;
  --on-accent: #FFFFFF;

  --maxw: 920px;
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #121821;
    --surface: #1A2230;
    --tint: #243040;
    --text: #EDF0F4;
    --muted: #A3AEBD;
    --navy: #8FBCE6;
    --blue: #6FB3E0;
    --on-accent: #0F1620;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--ground);
  color: var(--text);
  line-height: 1.6;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.caps {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  font-size: 0.72rem;
}

/* The gem mark, recoloured through a mask so it follows the theme. Pages one
   folder down use .subpage: WebKit resolves a mask URL against the document,
   not the stylesheet. */
.mark {
  display: inline-block;
  background-color: currentColor;
  -webkit-mask: url(assets/mark.svg) center / contain no-repeat;
  mask: url(assets/mark.svg) center / contain no-repeat;
}
.subpage .mark { -webkit-mask-image: url(../assets/mark.svg); mask-image: url(../assets/mark.svg); }

/* The band: navy then blue, the one decorative motif */
.band { display: flex; height: 8px; width: 100%; }
.band > span { flex: 1; }
.band .b1 { background: var(--navy); }
.band .b2 { background: var(--blue); }

/* Header */
header.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); }
.brand .mark { width: 30px; height: 30px; }
.brand .name { color: var(--text); }
.nav-links { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }

/* Hero */
.hero { text-align: center; padding: 40px 0 36px; }
.hero .mark { width: 104px; height: 104px; color: var(--navy); margin: 8px auto 26px; }
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.08;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
  font-weight: 700;
}
.hero p.lead {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--muted);
  max-width: 44ch;
  margin: 0 auto 30px;
}
.cta { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cta-note { color: var(--muted); font-size: 0.95rem; max-width: 42ch; margin: 0; }

.btn {
  display: inline-block;
  background: var(--navy);
  color: var(--on-accent);
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.btn:hover { text-decoration: none; filter: brightness(1.1); }

/* Sections */
section { padding: 52px 0; }
section h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); margin: 0 0 8px; }
.eyebrow { color: var(--blue); margin: 0 0 6px; }
.section-intro { color: var(--muted); max-width: 56ch; margin: 0 0 30px; }
.section-intro + .section-intro { margin-top: -14px; }
.prose p { max-width: 64ch; }

.blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.block {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
}
.block h3 { margin: 0 0 8px; font-size: 1.1rem; }
.block p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.block .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--blue); margin-bottom: 14px; }
.block .dot.navy { background: var(--navy); }

/* App cards: the whole card is the link */
.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
a.app {
  display: block;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px;
  color: var(--text);
}
a.app:hover { text-decoration: none; background: var(--tint); }
a.app h3 { margin: 0 0 6px; font-size: 1.15rem; }
a.app .url { color: var(--blue); font-size: 0.9rem; margin: 0 0 10px; }
a.app p { margin: 0; color: var(--muted); font-size: 0.98rem; }

.contact { text-align: center; }
.contact .email { font-size: clamp(1.1rem, 3vw, 1.5rem); font-weight: 700; word-break: break-all; }

/* Footer */
footer { padding: 28px 0 44px; color: var(--muted); font-size: 0.9rem; }
footer .wrap { display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
footer a { color: var(--muted); }

/* 404 */
.missing { text-align: center; padding: 72px 0; }
.missing h1 { font-size: clamp(2rem, 6vw, 3rem); margin: 0 0 12px; }

/* A quiet paragraph after a group of cards or a list */
.aside { color: var(--muted); max-width: 60ch; margin: 26px 0 0; font-size: 0.98rem; }

/* The track record: a plain list, one line per employer */
.track { list-style: none; padding: 0; margin: 0; max-width: 64ch; }
.track li { padding: 10px 0; border-top: 1px solid var(--tint); }
.track li:first-child { border-top: 0; }

/* Subpages: a column of prose */
.prose { padding-top: 32px; padding-bottom: 52px; }
.prose h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); margin: 0 0 4px; }
.prose h2 { font-size: 1.25rem; margin: 32px 0 8px; }
.prose p, .prose li { max-width: 64ch; }
.prose code { font-size: 0.9em; background: var(--tint); padding: 1px 5px; border-radius: 4px; }
.muted { color: var(--muted); }
.callout { background: var(--surface); border-radius: var(--radius); padding: 16px 20px; margin: 18px 0; }
.callout p { margin: 0; }

/* The analytics notice (site/analytics.js builds it) and the privacy page's
   switch. The bar is fixed to the bottom; the script pads the page by its
   height so it never covers the footer. */
.analytics-notice {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 -6px 18px -12px rgba(28, 35, 49, 0.45);
  font-size: 0.9rem;
  line-height: 1.4;
}
.analytics-notice p { margin: 0; max-width: 40rem; }
.analytics-actions { display: flex; gap: 0.5rem; }
.analytics-notice button,
#analytics-switch button {
  font: inherit;
  font-weight: 700;
  line-height: 1.25;
  min-height: 44px;
  padding: 0.4rem 1.1rem;
  border: 0;
  border-radius: 999px;
  background: var(--tint);
  color: var(--text);
  cursor: pointer;
}
.analytics-notice .analytics-ok { background: var(--navy); color: var(--on-accent); }
/* A phone on its side: the text and the buttons share one row so the bar
   keeps under a third of the height, even at the largest text size. */
@media (max-height: 480px) {
  .analytics-notice { flex-wrap: nowrap; padding-top: 0.4rem; padding-bottom: calc(0.4rem + env(safe-area-inset-bottom, 0px)); font-size: 0.8rem; }
  .analytics-notice p { flex: 1 1 auto; }
  .analytics-actions { flex: none; }
}
#analytics-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
#analytics-switch[hidden] { display: none; }
