/* ==========================================================================
   Josh Mountain — stylesheet
   Single file, organised top to bottom:
     1.  Custom properties
     2.  Reset & base
     3.  Typography
     4.  Links & inline code
     5.  Layout / vertical rhythm
     6.  Header, nav & home hero
     7.  Buttons
     8.  Lists & definition lists
     9.  Video embeds
     10. Pricing & CTA spacing
     11. Footer
     12. Responsive (mobile overrides)
   ========================================================================== */


/* ==========================================================================
   1. Custom properties
   ========================================================================== */

:root {
  /* Colour — shared palette with deployvancouver.ca.
     Names on the right are the ones that site uses for the same values. */
  --color-bg:        #0d0d0d;   /* --bg-dark       */
  --color-text:      #ffffff;   /* --text-white    */
  --color-muted:     #888888;   /* --text-slate    */
  --color-accent:    #ccff00;   /* --electric-lime */

  /* Cobalt is the second brand colour. Deliberately unused here: this site
     holds to one accent, on links and the CTA only. Kept so it's one edit
     away if you ever want it. */
  --color-cobalt:    #0047ab;   /* --cobalt-blue   */

  --color-rule:      #242424;   /* hairline dividers */
  --color-code-bg:   #171717;   /* subtle background behind <code> */

  /* Type */
  --font-heading: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* Three sizes across the whole site. Nothing else. */
  --size-heading: 30px;
  --size-body:    17px;
  --size-small:   15px;

  --line-height:  1.65;

  /* Space */
  --space-section: 100px;  /* between major sections */
  --space-para:     32px;  /* between paragraphs */
  --space-tight:    12px;  /* inside a single unit of content */

  /* Measure */
  --content-width: 680px;
  --side-padding:  32px;
}


/* ==========================================================================
   2. Reset & base
   ========================================================================== */

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

html {
  /* Smooth scroll for anchor links — CSS only, no JavaScript. */
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--size-body);
  font-weight: 400;
  line-height: var(--line-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
iframe {
  max-width: 100%;
}


/* ==========================================================================
   3. Typography
   ========================================================================== */

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-size: var(--size-heading);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-para);
  text-wrap: balance;
}

h1 { font-weight: 700; }
h2 { font-weight: 700; }
h3 { font-weight: 600; }

p {
  margin: 0 0 var(--space-para);
}

p:last-child {
  margin-bottom: 0;
}

/* Muted text — the "small" size, used for asides, captions and the footer. */
.small,
footer {
  font-size: var(--size-small);
  color: var(--color-muted);
}

strong {
  font-weight: 600;
  color: var(--color-text);
}


/* ==========================================================================
   4. Links & inline code
   ========================================================================== */

a {
  color: var(--color-accent);
  text-decoration: none;
  /* Dimmed accent underline, brightening to full accent on hover.
     Matches --color-accent; update both together if the accent changes. */
  border-bottom: 1px solid rgba(204, 255, 0, 0.32);
  transition: border-color 120ms ease;
}

a:hover,
a:focus-visible {
  border-bottom-color: var(--color-accent);
}

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

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  font-weight: 400;
  background-color: var(--color-code-bg);
  padding: 0.15em 0.4em;
  border-radius: 2px;
  color: var(--color-text);
  word-break: break-word;
}


/* ==========================================================================
   5. Layout / vertical rhythm
   ========================================================================== */

/* One column, centred, capped at the measure. No sidebars anywhere. */
.wrap {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding-left: var(--side-padding);
  padding-right: var(--side-padding);
}

/* The gap between major sections is the main structural device on the page. */
main > section {
  margin-top: var(--space-section);
}

main > section:first-child {
  margin-top: 0;
}


/* ==========================================================================
   6. Header, nav & home hero
   ========================================================================== */

/* The nav is a short row of text links. It wraps on small screens, which is
   why there is no toggle button and no JavaScript on this site. */

.site-header {
  padding-top: 40px;
  padding-bottom: 40px;
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-tight) 24px;
}

.site-header__name {
  font-family: var(--font-heading);
  font-size: var(--size-body);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text);
  border-bottom: 0;
  margin: 0;
}

a.site-header__name:hover,
a.site-header__name:focus-visible {
  color: var(--color-accent);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: var(--size-small);
}

.site-nav a {
  border-bottom: 0;
  color: var(--color-muted);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--color-accent);
}

/* --- Home hero -----------------------------------------------------------
   The name sits close to the paragraph under it so the fold reads as one
   block of writing rather than a title with body text beneath it. The
   paragraphs themselves are plain — full-strength text, no muted lead. The
   warmth is in the words, so the type stays out of the way. */

.hero h1 {
  margin-bottom: var(--space-tight);
}


/* ==========================================================================
   7. Buttons
   ========================================================================== */

/* The accent colour appears here and on links. Nowhere else. */
.button {
  display: inline-block;
  background-color: var(--color-accent);
  color: var(--color-bg);
  font-family: var(--font-heading);
  font-size: var(--size-body);
  font-weight: 600;
  line-height: 1;
  padding: 16px 26px;
  border: 0;
  border-radius: 2px;
  transition: opacity 120ms ease;
}

.button:hover,
.button:focus-visible {
  opacity: 0.88;
  border-bottom: 0;
  color: var(--color-bg);
}


/* ==========================================================================
   8. Lists & definition lists
   ========================================================================== */

ul {
  margin: 0 0 var(--space-para);
  padding-left: 22px;
}

li {
  margin-bottom: var(--space-tight);
}

li:last-child {
  margin-bottom: 0;
}

li::marker {
  color: var(--color-muted);
}

/* The eight-point checklist: term on its own line, explanation under it.
   A definition list, not a card grid. */
.checklist {
  margin: 0;
}

.checklist dt {
  font-family: var(--font-heading);
  font-size: var(--size-body);
  font-weight: 600;
  margin-bottom: 4px;
}

.checklist dd {
  margin: 0 0 var(--space-para);
  color: var(--color-muted);
}

.checklist dd:last-child {
  margin-bottom: 0;
}


/* ==========================================================================
   9. Video embeds
   ========================================================================== */

.video {
  margin-bottom: var(--space-para);
}

.video:last-child {
  margin-bottom: 0;
}

.video__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: var(--color-code-bg);
  border: 1px solid var(--color-rule);
}

.video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video__caption {
  font-size: var(--size-small);
  color: var(--color-muted);
  margin: var(--space-tight) 0 0;
}


/* ==========================================================================
   10. Pricing & CTA spacing
   ========================================================================== */

.price {
  font-family: var(--font-heading);
  font-size: var(--size-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-tight);
}

.cta-block {
  margin-top: var(--space-para);
}


/* ==========================================================================
   11. Footer
   ========================================================================== */

.site-footer {
  margin-top: var(--space-section);
  padding-top: 40px;
  padding-bottom: 60px;
  border-top: 1px solid var(--color-rule);
}

.site-footer p {
  margin: 0 0 var(--space-tight);
}

.site-footer p:last-child {
  margin-bottom: 0;
}

.site-footer a {
  color: var(--color-muted);
  border-bottom: 0;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--color-accent);
}



/* ==========================================================================
   12. Responsive — mobile overrides
   ========================================================================== */

@media (max-width: 640px) {
  :root {
    --size-heading: 25px;
    --size-body:    16px;
    --size-small:   14px;

    --space-section: 64px;
    --space-para:    28px;
    --side-padding:  24px;
  }

  .site-header {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .site-header__inner {
    gap: 10px 20px;
  }

  .site-nav {
    gap: 16px;
  }

  .button {
    padding: 15px 22px;
  }
}
