/* refluxai.com - shared base: tokens, reset, masthead, article typography, footer imprint */

:root {
  color-scheme: only light;
  --ink: #14191f;
  --ink-soft: #2b333b;
  --muted: #4f5a65;
  --teal: #0a6b8e;
  --teal-deep: #064d66;
  --tint: #eef6f9;
  --line: #d5dde2;
  --rule: #111111;
  --btn: #2563eb;
  --btn-hover: #1d4ed8;
  --font: "Source Sans 3", "Source Sans Pro", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px;
}

@media (min-width: 480px) {
  :root { --gutter: 24px; }
}

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

html {
  background-color: #ffffff;
  color: #14191f;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #ffffff;
  color: #14191f;
  font-family: var(--font);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  line-height: 1.6;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
  flex: 1 0 auto;
  background-color: #ffffff;
  color: #14191f;
}

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

a {
  color: var(--teal);
  text-underline-offset: 0.16em;
  transition: color 0.15s ease;
}

a:hover { color: var(--teal-deep); }

:focus-visible {
  outline: 3px solid #0b1f2a;
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- utility layer ---------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 20;
  padding: 12px 16px;
  background-color: #ffffff;
  color: #14191f;
  font-weight: 700;
}

.skip:focus { left: 8px; top: 8px; }

.wrap {
  width: 100%;
  max-width: 784px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--wide { max-width: 1048px; }

.mt-0 { margin-top: 0; }

/* ---------- masthead ---------- */

.masthead {
  background-color: #ffffff;
  color: #14191f;
  border-bottom: 1px solid var(--rule);
}

.masthead__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 12px;
  width: 100%;
  max-width: 1048px;
  min-height: 68px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0b1f2a;
  text-decoration: none;
}

.brand:hover { color: var(--teal-deep); }

.tag {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 4px;
  background-color: #e3f0f5;
  color: #064d66;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid #c3cfd6;
  border-radius: 8px;
  background-color: #ffffff;
  color: #14191f;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.nav-toggle:hover { background-color: var(--tint); border-color: var(--teal); }

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background-color: #14191f;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background-color: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

.js .nav-toggle { display: inline-flex; }

.nav {
  flex: 0 0 100%;
  order: 5;
  background-color: #ffffff;
}

.nav-list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0 0 8px;
  list-style: none;
}

.js .nav-list { display: none; }
.js .nav-list.is-open { display: flex; }

.nav-list a,
.nav__back {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--teal);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav-list li + li a { border-top: 1px solid var(--line); }

.nav-list a:hover,
.nav__back:hover { color: var(--teal-deep); text-decoration: underline; }

/* masthead on pages without a section nav (about, legal) */
.masthead__bar--simple { justify-content: space-between; }
.masthead__bar--simple .nav-simple { margin-left: auto; }

@media (min-width: 768px) {
  .masthead__bar { column-gap: 16px; }
}

@media (min-width: 1024px) {
  .masthead__bar { flex-wrap: nowrap; min-height: 94px; }
  .js .nav-toggle { display: none; }
  .nav { flex: 0 1 auto; order: 0; margin-left: auto; }
  .nav-list,
  .js .nav-list { display: flex; flex-direction: row; gap: 28px; padding: 0; }
  .nav-list li + li a { border-top: 0; }
  .nav-list a { white-space: nowrap; }
}

/* ---------- article typography (shared with legal pages) ---------- */

h1 {
  margin: 0 0 1.1rem;
  color: #0b0f14;
  font-size: clamp(1.5rem, 1.06rem + 1.9vw, 2.25rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: 0.002em;
  text-transform: uppercase;
}

h2 {
  margin: 2.25rem 0 0.9rem;
  color: #0b0f14;
  font-size: clamp(1.3125rem, 1.15rem + 0.65vw, 1.625rem);
  font-weight: 700;
  line-height: 1.22;
}

p { margin: 0 0 1.1rem; }

.points {
  margin: 1rem 0 1.25rem;
  padding-left: 1.25rem;
}

.points li { margin-bottom: 0.8rem; padding-left: 0.25rem; }
.points li::marker { color: var(--teal); }

/* ---------- footer imprint ---------- */

.page-end {
  flex-shrink: 0;
  padding: 2.5rem max(var(--gutter), calc((100% - 736px) / 2)) 3rem;
  background-color: #ffffff;
  color: #4f5a65;
  font-size: 0.8125rem;
  line-height: 1.6;
}

.page-end__contact-info p {
  margin: 0 0 1.25rem;
  background-color: #ffffff;
  color: #3d4650;
}

.page-end__contact-info strong { color: #14191f; }

.page-end__page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin: 0 0 1rem;
  background-color: #ffffff;
}

.page-end__page-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--teal);
  font-weight: 600;
  text-decoration: underline;
}

.page-end__page-links a:hover { color: var(--teal-deep); }

.about-line {
  margin: 0;
  background-color: #ffffff;
  color: #4f5a65;
}
