/* ============================================================
   Bridge — Captain on the Bridge, Inc.
   Shared stylesheet
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --ink:        #0A0A0A;
  --white:      #FFFFFF;
  --muted:      #6B6B6B;
  --bg-soft:    #F2F2F0;
  --rule:       #D8D8D4;
  --rule-dark:  rgba(255, 255, 255, 0.10);
  --muted-dark: rgba(255, 255, 255, 0.60);

  --font-display: "EB Garamond", Georgia, "Times New Roman", serif;
  --font-sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --maxw:      1200px;
  --gutter:    48px;
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* Photographs render desaturated throughout */
.bw { filter: grayscale(1); }

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: 120px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--ink); color: var(--white); }

/* Two-column editorial grid: label rail + content */
.split {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 72px;
  align-items: start;
}

/* ---------- Typography ---------- */
.eyebrow {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  background: var(--ink);
  margin-bottom: 22px;
}
.section--dark .eyebrow::before { background: var(--white); }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.12;
}
.display em { font-style: italic; }

.h-xl { font-size: clamp(40px, 5.4vw, 68px); }
.h-lg { font-size: clamp(34px, 4vw, 50px); }
.h-md { font-size: clamp(26px, 2.8vw, 38px); }

.lede {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--muted);
}
.lede + .lede { margin-top: 22px; }
.section--dark .lede { color: var(--muted-dark); }

.pull {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  line-height: 1.65;
  color: var(--muted);
  border-left: 1px solid var(--rule);
  padding-left: 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 19px 32px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.btn--solid { background: var(--white); color: var(--ink); }
.btn--solid:hover { background: var(--rule); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: #2b2b2b; }

.btn-link {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: opacity 0.2s;
}
.btn-link:hover { opacity: 0.6; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  :root { --gutter: 28px; }
  .section { padding: 80px 0; }
  .split { grid-template-columns: 1fr; gap: 36px; }
}
