/* Everitt Ventures design system (owner direction, 2026-11-26, shared with the EverittOS app):
   Manrope only, monochrome with an Everitt navy accent, square corners, hairline dividers.
   The font is served from this site, never from a third-party font host (SIL Open Font License,
   assets/fonts/OFL-Manrope.txt). Only the weights 400 (reading), 500 (headings, labels, buttons,
   navigation) and 600 (sparingly: key headings and figures) are used. */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../assets/fonts/manrope-variable.woff2') format('woff2');
}

:root {
  /* Typography: the single source of truth for type. Every page loads this file first; page styles
     consume these tokens instead of hard-coding families, weights, sizes or tracking. */
  --type-sans: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* Legacy token name kept so every older stylesheet follows the one family. It renders Manrope. */
  --type-serif: var(--type-sans);

  /* Weights: 400 reading, 500 headings, labels, buttons and navigation, 600 for emphasis and figures. */
  --type-weight-display: 500;
  --type-weight-body: 400;
  --type-weight-emphasis: 500;
  --type-weight-strong: 600;

  /* Display sizes: fluid, capped, tuned for 375-430px phones first. */
  --type-size-hero: clamp(2.1rem, 1.35rem + 3.4vw, 4rem);
  --type-size-page-title: clamp(2rem, 1.45rem + 2.5vw, 3.25rem);
  --type-size-section: clamp(1.55rem, 1.2rem + 1.5vw, 2.35rem);
  --type-size-list: clamp(1.2rem, 1.05rem + .65vw, 1.55rem);
  --type-size-card: clamp(1.3rem, 1.1rem + .8vw, 1.75rem);
  --type-size-subhead: clamp(1.1rem, 1.04rem + .25vw, 1.25rem);

  /* Text sizes. */
  --type-size-body: 1.0625rem;
  --type-size-small: .9375rem;
  --type-size-label: .875rem;
  --type-size-nav: .9375rem;

  /* Line heights. */
  --type-leading-display: 1.08;
  --type-leading-heading: 1.2;
  --type-leading-body: 1.65;

  /* Letter spacing. */
  --type-track-display: -0.025em;
  --type-track-heading: -0.012em;
  --type-track-label: .02em;

  --font-display: var(--type-sans);
  --font-body: var(--type-sans);
  --font-sans: var(--type-sans);

  /* Palette: about 90% monochrome, 10% Everitt navy (the same values as the EverittOS app).
     White page, #F5F5F5 used sparingly for secondary surfaces, #171717 text, neutral gray hairlines,
     navy #223C4D only for the logo, primary buttons and key accents. No warm, beige or blue-tinted
     surfaces, no gradients and no heavy shadows. Every text token meets WCAG AA on white and #F5F5F5. */
  --ev-white: #FFFFFF;
  --ev-surface: #F5F5F5;
  --ev-navy: #223C4D;
  --ev-navy-deep: #1B3140;
  --ev-text: #171717;
  --ev-text-secondary: #404040;
  --ev-muted: #5C5C5C;
  --ev-line: #E5E5E5;
  --ev-line-strong: #C7C7C7;
  /* Form field borders: neutral gray with 3:1 contrast on white so fields stay visible. */
  --ev-control-border: #8C8C8C;
  --ev-on-navy: #FFFFFF;

  /* Older token names, mapped onto the palette so every stylesheet follows it. */
  --soft-white: var(--ev-white);
  --white: var(--ev-white);
  --bg-cool: var(--ev-surface);
  --slate-deep: var(--ev-text);
  --slate: var(--ev-navy);
  --steel: var(--ev-muted);
  --blue-accent: var(--ev-line-strong);
  --blue-light: var(--ev-line);
  --charcoal: var(--ev-text);
  --text-muted: var(--ev-muted);
  --text-light: rgba(255, 255, 255, 0.9);
  --line: var(--ev-line);
  --line-light: rgba(255, 255, 255, 0.24);

  --ivory: var(--soft-white);
  --warm-white: var(--bg-cool);
  --warm-white-legacy: var(--bg-cool);
  --stone: var(--line);
  --muted-bronze: var(--steel);
  --taupe: var(--text-muted);
  --clay: var(--blue-accent);

  /* Shared photo treatment for every Everitt Ventures site, the same as the EverittOS app: natural
     light kept, warm tones pulled to neutral, a little contrast. Original files are never edited. */
  --ev-photo-filter: grayscale(.3) saturate(.72) contrast(1.04) brightness(1.01);

  /* Layout */
  --ev-header-height: 72px;
  --ev-gutter: clamp(1.5rem, 6vw, 5rem);
}

/* Form controls and buttons use the page font, never the browser's system font. */
button,
input,
select,
textarea {
  font-family: inherit;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ev-white);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: var(--type-weight-body);
  font-synthesis: none;
  background: var(--ev-white);
  color: var(--ev-text);
  line-height: var(--type-leading-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: var(--type-weight-display);
  letter-spacing: var(--type-track-display);
  color: var(--ev-text);
  line-height: var(--type-leading-display);
  margin: 0;
}

/* <strong> inside headings and list labels keeps the heading weight. */
h1 strong,
h2 strong,
h3 strong {
  font-weight: inherit;
}

strong,
b {
  font-weight: var(--type-weight-strong);
}

p {
  margin: 0;
}

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

img {
  width: 100%;
  display: block;
}

/* Header: white bar, the navy E on the left, links on the right that collapse to a "Menu" button
   on phones, one hairline below. */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--ev-header-height);
  padding: .75rem var(--ev-gutter);
  background: var(--ev-white);
  border-bottom: 1px solid var(--ev-line);
}

.site-nav .nav-logo {
  display: inline-flex;
  align-items: center;
}

.site-nav .nav-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  opacity: 1;
}

.site-nav-brand {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: var(--type-weight-display);
  letter-spacing: 0;
  color: var(--ev-text);
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.4vw, 2.5rem);
}

.site-nav-links a {
  font-family: var(--font-display);
  font-size: var(--type-size-nav);
  font-weight: var(--type-weight-display);
  letter-spacing: .01em;
  text-transform: none;
  color: var(--ev-text);
  text-shadow: none;
  text-underline-offset: .4em;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease;
}

.site-nav-links a:hover,
.site-nav-links a.active {
  color: var(--ev-navy);
  text-decoration: underline;
}

.nav-toggle {
  display: none;
  min-height: 44px;
  background: transparent;
  border: 1px solid var(--ev-text);
  border-radius: 0;
  padding: 0.45rem 1rem;
  font-family: var(--font-display);
  font-size: var(--type-size-nav);
  font-weight: var(--type-weight-display);
  letter-spacing: .01em;
  text-transform: none;
  color: var(--ev-text);
  cursor: pointer;
}

.site-nav a:focus-visible,
.site-nav button:focus-visible {
  outline: 2px solid var(--ev-navy);
  outline-offset: 3px;
}

/* Buttons: one rectangular system. Navy primary, hairline secondary. */
.luxury-btn,
.luxury-btn-outline,
.hero-contact,
.chapter-link,
.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  font-family: var(--font-display);
  font-size: var(--type-size-small);
  font-weight: var(--type-weight-display);
  letter-spacing: .01em;
  line-height: 1.2;
  text-transform: none;
  border-radius: 0;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.luxury-btn,
.hero-contact {
  padding: 0.85rem 1.5rem;
  color: var(--ev-on-navy);
  background: var(--ev-navy);
  border: 1px solid var(--ev-navy);
}

.luxury-btn-outline {
  padding: 0.85rem 1.5rem;
  color: var(--ev-text);
  background: transparent;
  border: 1px solid var(--ev-text);
}

.luxury-btn:hover,
.hero-contact:hover {
  background: var(--ev-navy-deep);
  border-color: var(--ev-navy-deep);
}

.luxury-btn-outline:hover {
  background: var(--ev-surface);
}

.chapter-link:hover,
.contact-link:hover {
  color: var(--ev-navy);
}

.luxury-btn:focus-visible,
.luxury-btn-outline:focus-visible,
.hero-contact:focus-visible {
  outline: 2px solid var(--ev-navy);
  outline-offset: 3px;
}

.section-eyebrow {
  font-family: var(--font-display);
  font-size: var(--type-size-label);
  font-weight: var(--type-weight-display);
  letter-spacing: var(--type-track-label);
  text-transform: none;
  color: var(--ev-muted);
}

.glass-panel {
  background: transparent;
  border: 1px solid var(--line);
}

.section-white,
.section-glass {
  background: var(--ev-white);
}

.section-slate {
  background: var(--ev-surface);
  color: var(--ev-text);
}

.section-slate h1,
.section-slate h2,
.section-slate h3 {
  color: var(--ev-text);
}

.list-footer,
.platforms-footer {
  background: var(--bg-cool);
  border-top: 1px solid var(--line);
  padding: 2.75rem var(--ev-gutter);
  font-family: var(--font-display);
  font-size: var(--type-size-small);
  font-weight: var(--type-weight-body);
  letter-spacing: 0;
  text-transform: none;
  color: var(--steel);
}

.page-pad {
  padding-top: calc(var(--ev-header-height) + 1.5rem);
}

/* Phones: slightly larger reading text with comfortable leading (owner direction, 2026-11-26). */
@media (max-width: 768px) {
  :root {
    --type-size-body: 1.125rem;
    --type-size-small: 1rem;
  }

  body {
    font-size: 1.0625rem;
    line-height: 1.65;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .site-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ev-white);
    border-bottom: 1px solid var(--ev-line);
    padding: 0;
  }

  .site-nav-links.open {
    display: flex;
  }

  .site-nav-links a {
    padding: 1rem var(--ev-gutter);
    border-top: 1px solid var(--ev-line);
  }
}


/* Site footer: the one shared footer on every page.
   Markup is generated from scripts/site-footer.js (npm run footer); all footer
   styling lives in this block. Light neutral #F5F5F5 band with a hairline above; links, icons and
   copyright in the muted gray, hover in the text color. */
.site-footer {
  background: var(--bg-cool);
  border-top: 1px solid var(--line);
  padding: 2.75rem 6vw;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.55;
  text-transform: none;
  text-align: center;
  color: var(--steel);
}
.site-footer-social {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 0 1rem;
  margin: 0 auto 1.25rem;
}
/* One centered row at every width: each icon keeps a 44px touch area and the row only
   narrows the space between icons on small phones (no wrapping, no smaller icons). */
.site-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 44px;
  min-width: 36px;
  min-height: 44px;
  color: var(--ev-text-secondary);
  font-size: 1.05rem;
  transition: color 0.2s ease;
}
.site-footer-social a:hover {
  color: var(--slate-deep);
}
/* Inline SVG glyphs from scripts/site-footer.js, drawn in currentColor (no icon font). */
.site-footer-social .social-icon {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
}
.footer-legal-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.25rem 1.5rem;
  max-width: 52rem;
  margin: 0 auto;
}
.site-footer .footer-legal-links a,
.site-footer .footer-legal-links button,
.site-footer .footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: inherit;
  letter-spacing: inherit;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease;
  color: var(--steel);
}
.site-footer .footer-legal-links a:hover,
.site-footer .footer-legal-links button:hover,
.site-footer .footer-links a:hover {
  color: var(--slate-deep);
}
.site-footer .footer-legal,
.site-footer .footer-support,
.site-footer .footer-disclaimer {
  max-width: 42rem;
  margin: 1.1rem auto 0;
  font-family: inherit;
  font-size: inherit;
  line-height: 1.55;
  color: var(--text-muted);
}
.site-footer .footer-support a {
  color: var(--slate-deep);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.site-footer .footer-brand {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--steel);
}
.site-footer a:focus-visible,
.site-footer button:focus-visible {
  outline: 2px solid var(--slate-deep);
  outline-offset: 3px;
}
@media (max-width: 768px) {
  .site-footer {
    padding: 2.25rem 6vw;
  }
  .site-footer-social {
    gap: 0;
    margin-bottom: 1rem;
  }
  .footer-legal-links,
  .footer-links {
    gap: 0 1.15rem;
  }
}
