/* ═══════════════════════════════════════════════════════════════════════
   sykesystem.com · Site stylesheet
   Version 1.0 · 2026-08-17
   
   Structure:
   1. Design tokens (:root variables) — change here, everything follows
   2. Reset + base typography
   3. Layout containers
   4. Site nav
   5. Site footer
   6. Buttons and links
   7. Utility helpers
   8. Responsive breakpoints
   
   All pages link this file. Page-specific styles live in each page's
   own <style> block, using the tokens defined here.
   ═══════════════════════════════════════════════════════════════════════ */


/* ───────────────────────────────────────────────
   1. Design tokens
   ─────────────────────────────────────────────── */
:root {

  /* Color palette */
  --paper:       #FAFAF7;   /* Body background, off-white with warmth */
  --card:        #FFFFFF;   /* Card/surface, pure white on paper */
  --ink:         #141821;   /* Primary text, near-black with blue undertone */
  --ink-mid:     #3A4050;   /* Secondary text, nav labels */
  --ink-soft:    #6B7280;   /* Tertiary text, captions, meta */
  --navy:        #152947;   /* Accent, primary CTAs, brand color */
  --navy-dk:     #0D1A32;   /* Navy hover state, deeper accent */
  --navy-soft:   rgba(21, 41, 71, 0.08);  /* Navy tint for backgrounds */
  --rule:        #E5E5E0;   /* Borders, dividers, hairlines */
  --footer-bg:   #0D1420;   /* Footer background, near-black */

  /* Depth / shadows */
  --shadow-sm:   0 1px 3px rgba(20, 24, 33, 0.06);
  --shadow-md:   0 4px 16px rgba(20, 24, 33, 0.08);
  --shadow-lg:   0 8px 32px rgba(20, 24, 33, 0.12);
  --shadow-nav:  0 2px 8px rgba(21, 41, 71, 0.20);

  /* Typography */
  --serif:       'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:        'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* Font sizes (fluid via clamp for responsive scaling) */
  --fs-h1:       clamp(2.2rem, 5vw, 3.4rem);
  --fs-h2:       clamp(1.6rem, 3.5vw, 2.2rem);
  --fs-h3:       clamp(1.2rem, 2.5vw, 1.45rem);
  --fs-h4:       1.1rem;
  --fs-body:     1.02rem;
  --fs-small:    0.9rem;
  --fs-caption:  0.78rem;
  --fs-eyebrow:  0.68rem;

  /* Spacing scale (8px grid) */
  --space-1:     4px;
  --space-2:     8px;
  --space-3:     12px;
  --space-4:     16px;
  --space-5:     24px;
  --space-6:     32px;
  --space-7:     48px;
  --space-8:     64px;
  --space-9:     96px;
  --space-10:    128px;

  /* Layout widths */
  --content-max: 720px;   /* Reading width for prose */
  --page-max:    960px;   /* Full-page container max */
  --nav-max:     1080px;  /* Nav can span slightly wider */

  /* Motion */
  --t-fast:      0.15s ease;
  --t-med:       0.2s ease;
  --t-slow:      0.3s ease;

  /* Border radius */
  --radius-sm:   3px;
  --radius-md:   4px;
  --radius-lg:   8px;

}


/* ───────────────────────────────────────────────
   2. Reset + base typography
   ─────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Heading defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.005em;
}

h1 { font-size: var(--fs-h1); margin-bottom: var(--space-4); }
h2 { font-size: var(--fs-h2); margin-bottom: var(--space-4); }
h3 { font-size: var(--fs-h3); margin-bottom: var(--space-3); }
h4 { font-size: var(--fs-h4); margin-bottom: var(--space-2); }

h2 em, h3 em { font-style: italic; }

p {
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

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

a {
  color: inherit;
  text-decoration: none;
}

a.text-link {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--t-med);
}

a.text-link:hover { color: var(--navy-dk); }

strong { font-weight: 700; }
em { font-style: italic; }

/* Eyebrow (small-caps section label) */
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-mid);
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.eyebrow-light { color: rgba(255, 255, 255, 0.55); }


/* ───────────────────────────────────────────────
   3. Layout containers
   ─────────────────────────────────────────────── */
.container {
  width: 90%;
  max-width: var(--page-max);
  margin-left: auto;
  margin-right: auto;
}

.container-narrow {
  width: 90%;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
}

main {
  flex: 1;
  padding: var(--space-8) 0;
}

section {
  padding: var(--space-7) 0;
}

section + section {
  border-top: 1px solid var(--rule);
}


/* ───────────────────────────────────────────────
   4. Site nav
   ─────────────────────────────────────────────── */
.site-nav {
  background: rgba(250, 250, 247, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  padding: var(--space-4) 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav-inner {
  width: 90%;
  max-width: var(--nav-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.site-nav-brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0;
  transition: color var(--t-med);
}

.site-nav-brand:hover { color: var(--navy-dk); }

.site-nav-links {
  display: flex;
  gap: var(--space-6);
  align-items: center;
  list-style: none;
}

.site-nav-links a {
  font-family: var(--sans);
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mid);
  transition: color var(--t-med);
  padding: var(--space-2) 0;
  position: relative;
}

.site-nav-links a:hover { color: var(--navy); }

.site-nav-links a.is-active {
  color: var(--navy);
}

.site-nav-links a.is-active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--navy);
}


/* ───────────────────────────────────────────────
   5. Site footer
   ─────────────────────────────────────────────── */
.site-footer {
  background: var(--footer-bg);
  padding: var(--space-8) var(--space-4);
  text-align: center;
  margin-top: auto;
}

.site-footer-inner {
  max-width: var(--page-max);
  margin: 0 auto;
}

.site-footer-brand {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-1);
  letter-spacing: 0;
}

.site-footer-tag {
  font-size: var(--fs-caption);
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
  font-weight: 700;
}

.site-footer-meta {
  font-size: var(--fs-caption);
  color: rgba(255, 255, 255, 0.42);
  letter-spacing: 0.04em;
  line-height: 1.7;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--t-med);
}

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


/* ───────────────────────────────────────────────
   6. Buttons
   ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: all var(--t-med);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}

.btn svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-nav);
}

.btn-primary:hover {
  background: var(--navy-dk);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(21, 41, 71, 0.30);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}

.btn-secondary:hover {
  background: var(--navy);
  color: #fff;
}

.btn-tertiary {
  background: transparent;
  color: var(--navy);
  padding: 12px 0;
  letter-spacing: 0.14em;
}

.btn-tertiary:hover { color: var(--navy-dk); }

/* Button groupings */
.btn-row {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  align-items: center;
}


/* ───────────────────────────────────────────────
   7. Utility helpers
   ─────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-soft { color: var(--ink-soft); }
.text-mid { color: var(--ink-mid); }
.text-navy { color: var(--navy); }

.mb-0 { margin-bottom: 0; }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-7 { margin-bottom: var(--space-7); }

.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-7 { margin-top: var(--space-7); }

.hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: var(--space-6) 0;
}


/* ───────────────────────────────────────────────
   8. Responsive breakpoints
   ─────────────────────────────────────────────── */

/* Tablet and below */
@media (max-width: 900px) {
  main { padding: var(--space-7) 0; }
  section { padding: var(--space-6) 0; }
  .site-nav-links { gap: var(--space-5); }
}

/* Mobile */
@media (max-width: 640px) {
  main { padding: var(--space-6) 0; }
  section { padding: var(--space-5) 0; }

  .site-nav { padding: var(--space-3) 0; }
  .site-nav-brand { font-size: 1.15rem; }
  .site-nav-links { gap: var(--space-4); }
  .site-nav-links a {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
  }

  .btn { padding: 12px 22px; font-size: 0.7rem; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { justify-content: center; }
}

/* Narrow mobile - hide nav links, brand only */
@media (max-width: 460px) {
  .site-nav-links { display: none; }
  /* NOTE: When we add nav-hamburger.js, uncomment the toggle below */
  /* .site-nav-toggle { display: block; } */
}
