/* DualGoals – shared styles.
   Recreates the former WordPress/Bricks layout. Root font size is 62.5%,
   so 1rem = 10px, and the fluid clamp() tokens below are taken 1:1 from Bricks. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Colors */
  --text-primary: #141414;
  --text-secondary: #595959;
  --background: #f8f9fa;
  --surface: #ffffff;
  --border-color: rgba(0, 0, 0, 0.05);
  --menu-background: #23282d;

  /* Type scale */
  --heading-s: clamp(1.07rem, calc(0.0024074074074074076 * (100vw - 36rem) + 1.07rem), 1.33rem);
  --heading-m: clamp(1.6rem, calc(0.003703703703703703 * (100vw - 36rem) + 1.6rem), 2rem);
  --heading-xl: clamp(3.6rem, calc(0.008333333333333333 * (100vw - 36rem) + 3.6rem), 4.5rem);
  --heading-2xl: clamp(5.4rem, calc(0.012499999999999997 * (100vw - 36rem) + 5.4rem), 6.75rem);
  --text-s: clamp(1.28rem, calc(0.0029629629629629637 * (100vw - 36rem) + 1.28rem), 1.6rem);
  --text-m: clamp(1.6rem, calc(0.003703703703703703 * (100vw - 36rem) + 1.6rem), 2rem);
  --text-xl: clamp(2.5rem, calc(0.005833333333333333 * (100vw - 36rem) + 2.5rem), 3.13rem);
  --text-fluid-s: clamp(1.28rem, calc(0.0007299270072992707 * (100vw - 32rem) + 1.28rem), 1.35rem);

  /* Spacing */
  --space-card: 32px;
  --space-container-2xs: clamp(0.82rem, calc(0.0018518518518518526 * (100vw - 36rem) + 0.82rem), 1.02rem);
  --space-section-s: clamp(0.96rem, calc(0.0014814814814814827 * (100vw - 36rem) + 0.96rem), 1.12rem);
  --space-section-m: clamp(1.6rem, calc(0.003703703703703703 * (100vw - 36rem) + 1.6rem), 2rem);
  --space-section-l: clamp(2.67rem, calc(0.008240740740740741 * (100vw - 36rem) + 2.67rem), 3.56rem);
  --space-section-xl: clamp(4.45rem, calc(0.017314814814814814 * (100vw - 36rem) + 4.45rem), 6.32rem);
  --space-fluid-m: clamp(1.6rem, calc(0.0035714285714285704 * (100vw - 32rem) + 1.6rem), 2rem);
  --space-fluid-l: clamp(2rem, calc(0.005982142857142857 * (100vw - 32rem) + 2rem), 2.67rem);
  --space-fluid-xl: clamp(2.5rem, calc(0.009374999999999998 * (100vw - 32rem) + 2.5rem), 3.55rem);
  --content-gap: var(--space-fluid-m);
  --grid-gap: var(--space-fluid-l);

  --container-width: 1100px;
}

/* Base */

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

html {
  font-size: 62.5%;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background-color: var(--surface);
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0 auto;
  font-family: "Inter", -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: var(--text-m);
  font-style: normal;
  line-height: 1.7;
  color: var(--text-secondary);
  text-align: left;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-size: var(--heading-m);
  font-weight: 600;
  font-style: normal;
  line-height: 1.4;
  color: var(--text-primary);
  text-align: left;
  text-rendering: optimizeLegibility;
}

:where(p) {
  margin-block: 0 1.2em;
}

:where(p:last-of-type) {
  margin-block-end: 0;
}

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

img {
  max-width: 100%;
  height: auto;
  border-style: none;
  vertical-align: middle;
}

figure {
  margin: 0;
}

table {
  width: 100%;
}

button {
  padding: 0;
  border: none;
  font-family: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: auto;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 1px;
  height: 1px;
  padding: 5px 10px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  font-weight: 700;
  color: #fff;
  background: #000;
  border-bottom-right-radius: 8px;
}

.skip-link:focus {
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* Layout primitives */

.section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-inline: auto;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: var(--container-width);
  max-width: 100%;
  margin-inline: auto;
}

.block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

@media (max-width: 991px) {
  .section,
  .page-content {
    padding-inline: var(--space-section-m);
  }
}

@media (max-width: 767px) {
  .section,
  .container,
  .block {
    flex-wrap: wrap;
  }
}

#content {
  position: relative;
  flex: 1;
  width: 100%;
}

/* Header */

.site-header {
  position: relative;
  width: 100%;
}

.site-header .section {
  padding-block: var(--space-fluid-m);
  background-color: var(--surface);
}

.header-inner {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-s);
  color: var(--text-secondary);
}

.logo {
  display: block;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
}

.logo img {
  display: block;
  width: auto;
  height: var(--space-fluid-xl);
}

.nav-menu {
  position: relative;
  font-size: var(--text-s);
  color: var(--text-secondary);
}

.nav-menu ul {
  display: flex;
  gap: var(--content-gap);
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: inherit;
}

.nav-menu li a {
  display: flex;
  width: 100%;
}

.menu-toggle {
  display: none;
  position: relative;
  width: 20px;
  min-width: 12px;
  height: 16px;
  color: #000;
  background-color: transparent;
}

.menu-toggle span {
  position: absolute;
  right: 0;
  display: block;
  width: 20px;
  min-width: 12px;
  height: 2px;
  background-color: currentColor;
  transition: all 0.1s;
}

.menu-toggle .bar-top { top: 0; }
.menu-toggle .bar-center { top: 7px; }
.menu-toggle .bar-bottom { top: 14px; }

.mobile-menu {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  width: 300px;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  color: #fff;
  background-color: var(--menu-background);
  visibility: hidden;
  transform: translateX(-100%);
  transition-duration: 0.2s;
  transition-property: opacity, transform, visibility;
}

.mobile-menu ul {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-menu li a {
  display: block;
  width: 100%;
  padding: 0 30px;
  line-height: 60px;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
}

.nav-menu.is-open .menu-toggle {
  z-index: 1000;
}

.nav-menu.is-open .menu-toggle .bar-top {
  top: 50%;
  transform: rotate(45deg);
}

.nav-menu.is-open .menu-toggle .bar-center {
  opacity: 0;
}

.nav-menu.is-open .menu-toggle .bar-bottom {
  top: 50%;
  transform: rotate(-45deg);
}

.nav-menu.is-open .mobile-menu {
  visibility: visible;
  transform: translateX(0);
}

.nav-menu.is-open .mobile-menu-overlay {
  z-index: 998;
  opacity: 1;
  visibility: visible;
}

@media (max-width: 767px) {
  .nav-menu .desktop-menu {
    display: none;
  }

  .menu-toggle {
    display: block;
  }
}

/* Home: hero */

.hero {
  position: relative;
  justify-content: center;
  min-height: 100vh;
}

.hero-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: var(--grid-gap);
}

.hero-content {
  row-gap: var(--content-gap);
}

.hero-title {
  font-size: var(--heading-2xl);
  font-weight: 700;
  line-height: 100%;
  letter-spacing: -1.8px;
  color: var(--text-primary);
}

.hero-lede {
  max-width: 65ch;
  font-size: var(--text-xl);
  color: var(--text-secondary);
}

.hero-media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: calc(50% - (var(--grid-gap) / 2));
}

.hero-media figure {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: scale-down;
}

@media (max-width: 767px) {
  .hero {
    min-height: unset;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-lede {
    max-width: 45ch;
  }

  .hero-media {
    position: static;
    width: 100%;
    height: unset;
  }

  .hero-media figure,
  .hero-media img {
    height: auto;
  }
}

/* Subpages: title + rich text */

.page-title {
  margin-block: var(--space-section-xl);
  font-size: var(--heading-xl);
}

.rich-text {
  width: 100%;
}

/* Footer */

.site-footer {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  margin-top: auto;
}

.site-footer > .section {
  padding-top: var(--space-section-xl);
  background-color: var(--surface);
}

.footer-columns {
  flex-direction: row;
  align-items: flex-start;
}

.footer-logo {
  display: block;
  max-width: 120px;
  margin-bottom: var(--space-section-s);
}

.footer-lede {
  max-width: 45ch;
  font-size: var(--text-s);
  color: var(--text-secondary);
}

.footer-heading {
  margin-bottom: var(--space-section-m);
  font-size: var(--heading-s);
  color: var(--text-primary);
}

.social-links {
  flex-direction: row;
  gap: var(--space-container-2xs);
}

.social-links a {
  display: block;
}

.social-icon {
  display: block;
  padding: var(--space-container-2xs);
  font-size: 20px;
  line-height: 1;
  background-color: var(--background);
  border-radius: 9999px;
}

.social-icon svg {
  display: block;
  width: 0.875em;
  height: 1em;
  fill: currentColor;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-s);
  color: var(--text-secondary);
}

.subfooter {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: var(--grid-gap);
  margin-top: var(--space-section-m);
  margin-bottom: var(--space-section-xl);
  padding-top: var(--space-card);
  font-size: var(--text-fluid-s);
  border-top: 1px solid var(--border-color);
}

.subfooter p {
  margin: 0;
}

.subfooter-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--content-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.subfooter-nav a,
.subfooter-nav button {
  display: inline-flex;
  align-items: center;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  background: none;
}

@media (max-width: 767px) {
  .footer-columns {
    row-gap: var(--space-section-l);
  }

  .subfooter {
    flex-wrap: wrap;
    flex-direction: column;
    align-items: flex-start;
  }

  .subfooter-nav {
    order: -1;
  }
}

@media (max-width: 478px) {
  .subfooter-nav ul {
    flex-direction: column;
  }
}

/* 404 */

.not-found .page-title {
  margin-bottom: var(--space-section-m);
}

.not-found .rich-text {
  margin-bottom: var(--space-section-xl);
}
