/* Source of truth: shared/css/site.css. Copied into each site by scripts/sync-shared.sh. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/inter-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/inter-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
}

:root {
  --ink: #1f1f1f;
  --paper: #faf8f4;
  --sand: #f2eee6;
  --tide: #0e6b63;
  --tide-dark: #0a4f49;
  --foam: #e6f2ef;
  --sea-glass: #7fd1c4;
  --slate: #5b6168;
  --body: #3a3f44;
  --white: #ffffff;

  --font-display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --max: 1120px;
  --gutter: 24px;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
main {
  flex: 1 0 auto;
}
h1,
h2,
h3,
p,
ul {
  margin: 0;
}
ul {
  padding: 0;
  list-style: none;
}
img,
svg {
  display: block;
}

/* Type */
h1,
h2,
h3 {
  color: var(--ink);
  font-family: var(--font-display);
  overflow-wrap: break-word;
}
h1 {
  font-weight: 800;
  font-size: clamp(2.25rem, 1.2rem + 5.2vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.05em;
}
h2 {
  font-weight: 800;
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}
h3 {
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.eyebrow {
  color: var(--tide);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.accent {
  color: var(--tide);
}

/* Links and focus */
a {
  color: var(--tide);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}
a:hover {
  color: var(--tide-dark);
}
:focus-visible {
  outline: 3px solid var(--tide);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}

/* Layout */
.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section {
  padding: clamp(56px, 8vw, 96px) 0;
}
.section--sand {
  background: var(--sand);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.section-head {
  display: grid;
  gap: 12px;
  max-width: 40rem;
  margin-bottom: clamp(32px, 5vw, 48px);
}

/* Header */
.site-header {
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
}
.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  color: var(--ink);
  text-decoration: none;
}
.brand img {
  height: 24px;
  width: auto;
}
.tag {
  display: inline-block;
  padding: 3px 7px 2px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.header-email {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-size: 0.9375rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* Hero */
.hero {
  padding: clamp(56px, 10vw, 120px) 0 clamp(64px, 10vw, 120px);
}
.hero-inner {
  display: grid;
  justify-items: start;
  gap: 24px;
  animation: rise 800ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero h1 {
  max-width: 15ch;
}
.lead {
  max-width: 38rem;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  line-height: 1.55;
}
.hero .btn {
  margin-top: 8px;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
}

/* Badge */
.badge {
  display: inline-block;
  padding: 6px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--sea-glass);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}
.badge--white {
  background: var(--white);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 52px;
  padding: 12px 24px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition:
    transform 150ms ease-out,
    box-shadow 150ms ease-out,
    background-color 150ms ease-out;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 4px 6px 0 var(--ink);
}
.btn:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--ink);
}
.btn--tide {
  background: var(--tide);
  color: var(--white);
}
.btn--tide:hover {
  background: var(--tide-dark);
  color: var(--white);
}
.btn--white {
  background: var(--white);
  color: var(--tide);
}
.btn--white:hover {
  background: var(--foam);
  color: var(--tide-dark);
}

/* Cards */
.card {
  padding: 28px;
  border: 2px solid var(--ink);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 6px 6px 0 var(--ink);
}
.card--foam {
  background: var(--foam);
}
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.card-grid .card {
  display: grid;
  align-content: start;
  gap: 12px;
}
.icon-tile {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: var(--foam);
  color: var(--tide);
}
.icon-tile svg {
  width: 24px;
  height: 24px;
}
@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .card-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Breachway Digital: two cards side by side */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.split .card {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 14px;
  padding: clamp(28px, 4vw, 40px);
}
.split .btn,
.split .text-link {
  margin-top: 8px;
}
@media (min-width: 768px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-weight: 600;
}

/* Closing band (gobreachway) */
.band {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 7vw, 80px) clamp(20px, 6vw, 72px) clamp(112px, 12vw, 152px);
  border: 2px solid var(--ink);
  border-radius: 28px;
  background: var(--tide);
  box-shadow: 10px 10px 0 var(--ink);
  color: var(--white);
}
.band-inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: start;
  gap: 16px;
}
.band h2 {
  color: var(--white);
}
.band p {
  max-width: 34rem;
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
}
.band .btn {
  margin-top: 12px;
}
.band :focus-visible {
  outline-color: var(--white);
}
.waves {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 96px;
  pointer-events: none;
}
.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 140%;
  height: 100%;
  animation: drift 16s ease-in-out infinite alternate;
}
.wave--front {
  height: 72%;
  animation-duration: 22s;
  animation-direction: alternate-reverse;
}
@keyframes drift {
  to {
    transform: translateX(-28.5%);
  }
}

/* Footer */
.site-footer {
  border-top: 2px solid var(--ink);
  padding: 32px 0 40px;
  color: var(--slate);
  font-size: 0.9375rem;
}
.site-footer .container {
  display: grid;
  gap: 10px;
}
.site-footer img {
  height: 22px;
  width: auto;
  margin-bottom: 6px;
}

/* 404 */
.not-found {
  display: grid;
  justify-items: start;
  gap: 24px;
}

/* Legal drafts */
.legal {
  display: grid;
  gap: 24px;
  max-width: 48rem;
}

@media (min-width: 640px) {
  .brand img {
    height: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .btn:hover {
    transform: none;
  }
}
