/* ============================================================
   Honest SEO — stylesheet
   Design system:
   - Colours:  ink (text), paper (background), navy (header/footer),
               emerald (verified/valid accent), amber (secondary accent)
   - Type:     IBM Plex Mono (headings, brand, structured-data snippets),
               IBM Plex Sans (body/UI), Spectral (plain-English demo text)
   - Shape:    hard black borders/shadows, single cut corners (varying by
               component) — a spec-sheet-meets-Y2K-brutalist feel
   - Fonts:    self-hosted, see /fonts and the @font-face block below
   ============================================================ */

@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/spectral-500.woff2") format("woff2");
}
@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/spectral-600.woff2") format("woff2");
}
@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/spectral-700.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-500.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-600.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-600.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-700.woff2") format("woff2");
}

:root {
  --ink: #1c1e21;
  --muted: #5b6570;
  --paper: #fbfaf8;
  --panel: #ffffff;
  --navy: #142433;
  --navy-ink: #dfe6ec;
  --emerald: #1f7a5c;
  --emerald-dark: #17614a;
  --amber: #e7b33e;
  --line: #dcd7cd;
  --line-dark: #2b3a49;
  --edge: #000000;

  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --max: 1080px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--mono);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; }

a { color: var(--emerald-dark); }
a:hover { color: var(--emerald); }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.measure {
  max-width: 62ch;
}

/* ---------- Skip link / focus ---------- */

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 2px;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--navy);
  color: var(--navy-ink);
  border-bottom: 3px solid var(--edge);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  font-family: var(--mono);
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand span {
  color: var(--amber);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-dark);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.9rem;
  padding: 6px 12px;
  cursor: pointer;
}

.nav-toggle::before { content: "[ "; color: var(--amber); }
.nav-toggle::after { content: " ]"; color: var(--amber); }

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-family: var(--mono);
  color: var(--navy-ink);
  text-decoration: none;
  font-size: 0.92rem;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.site-nav a::before { content: "[ "; color: var(--amber); }
.site-nav a::after { content: " ]"; color: var(--amber); }

.site-nav a:hover,
.site-nav a.current {
  color: #fff;
  border-bottom-color: var(--amber);
}

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 64px;
  border-bottom: 3px solid var(--edge);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.eyebrow-plain {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--amber);
  border: 2px solid var(--edge);
  padding: 4px 10px;
  margin-bottom: 16px;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 46ch;
}

/* EXPERIMENT — homepage hero in amber, for preview only */
.page-home .hero {
  background: var(--amber);
}
.page-home .hero .eyebrow-plain {
  background: var(--navy);
  color: var(--amber);
}
.page-home .hero p.lead {
  color: #3d3210;
}

/* ---------- Cut-corner components ----------
   A plain CSS border can't follow a clip-path's diagonal — border-width
   only ever draws along a box's original four straight edges. So instead
   the element's own background IS the border colour (clipped to the cut
   shape), and an inset ::before, 2px smaller and clipped to the same
   shape, sits on top as the fill — the 2px gap reads as a border that
   correctly traces the diagonal. box-shadow already follows clip-path
   natively, so the offset "stamp" shadow stays a normal property.
   The cut corner/size varies by component so it reads as a deliberate
   kit of parts rather than one shape stamped everywhere. */

.demo-card,
.grid-3 > div,
.contact-card,
.status-box {
  position: relative;
  z-index: 0;
  background: var(--edge);
}

.demo-card::before,
.grid-3 > div::before,
.contact-card::before,
.status-box::before {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: -1;
  background: var(--fill, var(--panel));
}

/* the demo card is the site's signature element: a distinct two-corner
   cut (top-right + bottom-left) instead of the single-corner cut
   everything else uses */
.demo-card {
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  box-shadow: 4px 4px 0 var(--edge);
}
.demo-card::before {
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.demo-row {
  padding: 20px 22px;
}

.demo-row + .demo-row {
  border-top: 1px dashed var(--line);
}

.demo-label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--navy);
  padding: 3px 8px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.demo-plain {
  font-family: var(--serif);
  font-size: 1.05rem;
}

.demo-code {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--emerald-dark);
  white-space: pre-wrap;
  margin: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  position: relative;
  z-index: 0;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  text-decoration: none;
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: -1;
  background: var(--fill);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}

.btn:active {
  transform: translate(4px, 4px);
  box-shadow: none !important;
}

.btn-primary {
  background: var(--edge);
  box-shadow: 4px 4px 0 var(--edge);
  --fill: var(--emerald);
  color: #fff;
}
.btn-primary:hover { --fill: var(--emerald-dark); }

.btn-secondary {
  background: var(--navy);
  box-shadow: 4px 4px 0 var(--navy);
  --fill: var(--paper);
  color: var(--navy);
}
.btn-secondary:hover { --fill: var(--navy); color: #fff; }

.btn-on-dark {
  background: var(--amber);
  box-shadow: 4px 4px 0 var(--amber);
  --fill: var(--navy);
  color: #fff;
}
.btn-on-dark:hover { --fill: var(--amber); color: var(--navy); }

/* ---------- Sections ---------- */

section {
  padding: 64px 0;
}

section.alt {
  background: var(--panel);
  border-top: 3px solid var(--edge);
  border-bottom: 3px solid var(--edge);
}

.section-head {
  max-width: 60ch;
  margin-bottom: 40px;
}

.section-head p {
  color: var(--muted);
}

/* Three-up grid used for "why it matters" and services teaser */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-3 > div {
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  box-shadow: 4px 4px 0 var(--edge);
  padding: 28px 26px;
}

.grid-3 > div::before {
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}

.grid-3 h3 {
  margin-bottom: 10px;
}

.grid-3 p:last-child { margin-bottom: 0; }

/* colour-blocked badges, alternating by position within each three-up
   grid — amber / emerald / navy, echoing the reference sites' colour
   bands. Small badges like these read better square than cut. */
.grid-3 .tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-block;
  padding: 3px 8px;
  margin-bottom: 14px;
  border: 2px solid var(--edge);
  background: var(--amber);
  color: var(--navy);
}

.grid-3 > div:nth-child(3n+2) .tag {
  background: var(--emerald);
  color: #fff;
}

.grid-3 > div:nth-child(3n+3) .tag {
  background: var(--navy);
  color: var(--amber);
}

/* Services list (fuller detail on services page) */

.service {
  border-top: 1px solid var(--edge);
  padding: 36px 0;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
}

.service:last-child { border-bottom: 1px solid var(--edge); }

.service h3 { margin-bottom: 4px; }

.service .price-note {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
}

.service ul {
  margin: 14px 0 0;
  padding-left: 1.1em;
  color: var(--muted);
}

/* Process steps (a real sequence, so numbering is warranted) */

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step {
  position: relative;
  padding-top: 8px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--mono);
  font-size: 1.6rem;
  color: var(--amber);
  display: block;
  margin-bottom: 10px;
}

/* About page */

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.pull-note {
  border-left: 3px solid var(--emerald);
  padding: 4px 0 4px 20px;
  color: var(--muted);
  font-style: italic;
}

/* Contact page */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.contact-card {
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  box-shadow: 4px 4px 0 var(--edge);
  padding: 30px;
}

.contact-card::before {
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}

.contact-card dt {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-top: 18px;
}

.contact-card dt:first-child { margin-top: 0; }

.contact-card dd {
  margin: 4px 0 0;
  font-size: 1.05rem;
}

.note-box {
  border: 1px dashed var(--edge);
  padding: 16px 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* CTA band */

.cta-band {
  background: var(--navy);
  color: var(--navy-ink);
  text-align: left;
}

.cta-band h2 { color: #fff; }
.cta-band p { color: var(--navy-ink); }

/* Showcase section — a featured module (e.g. homepage "Schema types"),
   set apart from the plain/alt rhythm of ordinary content sections with
   its own ground colour. Amber, not navy or emerald — it's the accent
   already doing the "2000s/brutalist" signalling everywhere else on the
   site (eyebrow badges, bracket nav, step numbers), so a solid amber
   band reads as more of that same language, not a fourth new colour.
   Cards inside stay white via the cut-corner fill. */

section.showcase {
  background: var(--amber);
  border-top: 3px solid var(--edge);
  border-bottom: 3px solid var(--edge);
}

section.showcase h2 { color: var(--navy); }
section.showcase .section-head p { color: #3d3210; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: var(--navy-ink);
  border-top: 3px solid var(--edge);
  padding: 40px 0 32px;
  font-size: 0.92rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-grid a {
  color: var(--navy-ink);
}

.footer-grid a:hover { color: #fff; }

.footer-nav ul {
  list-style: none;
  display: flex;
  gap: 4px 16px;
  padding: 0;
  margin: 0 0 12px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-family: var(--mono);
  font-size: 0.85rem;
}

.footer-nav a::before { content: "* "; color: var(--amber); }

/* Schema-status module: a boxed "meta" reading, cut at the top-left —
   mirrored from the content cards' top-right cut, marking it out as a
   different kind of module (status, not content). */
.status-box {
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%, 0 14px);
  box-shadow: 4px 4px 0 var(--edge);
  padding: 14px 18px;
  font-family: var(--mono);
  font-size: 0.82rem;
}

.status-box::before {
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%, 0 14px);
}

.status-box .status-title {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 2px var(--edge);
}

.status-box .fine {
  color: var(--muted);
  font-size: 0.76rem;
  margin-top: 6px;
}

.copyright {
  color: #8a97a3;
  margin-top: 18px;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero .container,
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .steps {
    grid-template-columns: 1fr;
  }

  .service {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    width: 100%;
  }

  .site-nav.open {
    display: block;
  }

  .site-header .container {
    flex-wrap: wrap;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding-top: 12px;
  }

  .site-nav li {
    border-top: 1px solid var(--line-dark);
  }

  .site-nav a {
    display: block;
    padding: 12px 0;
  }
}
