/*
 * burchx.com styles. No build step: this file is served from /assets/ under a
 * content-hashed name (site.<hash>.css) with a one-year immutable cache.
 * After editing, rename it to the new hash and update the <link> in every page
 * (see README.md).
 */

/* ---------- Tokens ---------- */

:root {
  color-scheme: light dark;

  --amber: #ffb224;
  --ink: #17130b;

  --bg: #fbf8f2;
  --surface: #ffffff;
  --surface-2: #f5efe3;
  --text: #17130b;
  --muted: #5e5545;
  --border: #e8e0d0;
  --link: #8a5800;
  --link-hover: #17130b;
  --focus: #17130b;
  --highlight: rgb(255 178 36 / 0.55);
  --mark-opacity: 0.18;
  --shadow: 0 1px 2px rgb(23 19 11 / 0.05), 0 12px 32px -12px rgb(23 19 11 / 0.12);

  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --radius: 14px;
  --wrap: 72rem;
  --gutter: 1.25rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17130b;
    --surface: #1f1a11;
    --surface-2: #272015;
    --text: #f4eee2;
    --muted: #b8ad99;
    --border: #3a3123;
    --link: #ffb224;
    --link-hover: #ffd27a;
    --focus: #ffb224;
    --highlight: rgb(255 178 36 / 0.34);
    --mark-opacity: 0.09;
    --shadow: none;
  }
}

@media (min-width: 40rem) {
  :root {
    --gutter: 2rem;
  }
}

/* ---------- Base ---------- */

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

p,
ul,
ol,
dl,
blockquote,
figure {
  margin: 0;
}

p {
  text-wrap: pretty;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--link);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover {
  color: var(--link-hover);
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--amber);
  color: var(--ink);
}

address {
  font-style: normal;
}

strong {
  font-weight: 650;
}

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

.nowrap {
  white-space: nowrap;
}

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

/* ---------- Skip link ---------- */

.skip {
  position: absolute;
  left: 1rem;
  top: 0.75rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  background: var(--amber);
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
  color: var(--ink);
}

.skip:focus-visible {
  outline-color: var(--ink);
}

/* ---------- Header ---------- */

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 750;
  font-size: 1.1875rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

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

.brand-icon {
  width: 2rem;
  height: 2rem;
  flex: none;
}

.site-nav a {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 550;
  text-decoration: none;
}

.site-nav a:hover {
  border-color: var(--amber);
  color: var(--text);
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9375rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.75rem 2.25rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-block;
  padding-block: 0.25rem;
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a[aria-current="page"] {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 2px;
}

/* ---------- Shared pieces ---------- */

.eyebrow {
  margin-bottom: 1rem;
  color: var(--link);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  background: var(--amber);
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
  box-shadow: 0 1px 0 rgb(23 19 11 / 0.08);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.button:hover {
  background: #ffc14f;
  color: var(--ink);
  transform: translateY(-1px);
}

.button span {
  transition: transform 0.15s ease;
}

.button:hover span {
  transform: translateX(2px);
}

@media (prefers-reduced-motion: reduce) {
  .button,
  .button span {
    transition: none;
  }

  .button:hover,
  .button:hover span {
    transform: none;
  }
}

/* ---------- Home: hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -3rem;
  bottom: -2.5rem;
  width: 11rem;
  height: 11rem;
  background: url("/brand/bx-mark.svg") center / contain no-repeat;
  opacity: var(--mark-opacity);
  pointer-events: none;
}

.hero .wrap {
  padding-block: 3.5rem 5rem;
}

.hero h1 {
  max-width: 14ch;
  font-size: clamp(2.6rem, 1.6rem + 5vw, 5rem);
  font-weight: 780;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.hl {
  background: linear-gradient(transparent 60%, var(--highlight) 60%, var(--highlight) 90%, transparent 90%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.lede {
  max-width: 38rem;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  line-height: 1.55;
}

.hero .button {
  margin-top: 2.25rem;
}

@media (min-width: 48rem) {
  .hero::before {
    bottom: -3rem;
    width: 14rem;
    height: 14rem;
  }

  .hero .wrap {
    padding-block: 6.5rem 7.5rem;
  }
}

/* Wide screens have room beside the headline for the full-size mark. */
@media (min-width: 75rem) {
  .hero::before {
    top: 50%;
    bottom: auto;
    right: max(-4rem, calc((100vw - 72rem) / 2 - 6rem));
    width: 30rem;
    height: 30rem;
    transform: translateY(-50%);
  }
}

/* ---------- Home: pillars ---------- */

.pillars .wrap {
  padding-block: 1rem 4rem;
}

.section-label {
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pillar-list {
  display: grid;
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.pillar-list li {
  padding: 1.5rem 1.5rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.pillar-num {
  display: block;
  margin-bottom: 1.25rem;
  color: var(--link);
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 600;
}

.pillar-list h3 {
  font-size: 1.375rem;
  font-weight: 720;
}

.pillar-list p {
  margin-top: 0.5rem;
  color: var(--muted);
}

@media (min-width: 48rem) {
  .pillar-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

/* ---------- Home: contact ---------- */

.contact {
  scroll-margin-top: 1.5rem;
}

.contact-card {
  display: grid;
  gap: 2rem;
  padding: 2rem 1.5rem;
  border-radius: calc(var(--radius) + 6px);
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.contact-card h2 {
  font-size: clamp(1.875rem, 1.4rem + 2vw, 2.625rem);
  font-weight: 760;
  letter-spacing: -0.03em;
}

.contact-card > div > p {
  margin-top: 0.75rem;
  max-width: 28rem;
  color: var(--muted);
  font-size: 1.125rem;
}

.contact-details {
  display: grid;
  gap: 1.5rem;
  align-content: start;
}

.contact-details dt {
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-details dd {
  margin: 0;
  font-size: 1.125rem;
}

.contact-email {
  font-weight: 650;
  overflow-wrap: anywhere;
}

@media (min-width: 48rem) {
  .contact-card {
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    padding: 3rem;
  }
}

/* ---------- Document pages (privacy, terms, sms) ---------- */

.page-head {
  padding-block: 3rem 2.5rem;
  border-bottom: 1px solid var(--border);
}

.page-head h1 {
  font-size: clamp(2.25rem, 1.6rem + 3vw, 3.5rem);
  font-weight: 780;
  letter-spacing: -0.03em;
}

.page-head .lede {
  margin-top: 1rem;
}

.updated {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.doc {
  display: grid;
  gap: 2.5rem;
  padding-top: 2.5rem;
}

.toc {
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 0.9375rem;
}

.toc h2 {
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.toc ol {
  display: grid;
  gap: 0.15rem;
  padding: 0;
  list-style: none;
}

.toc a {
  display: block;
  padding-block: 0.2rem;
  color: var(--text);
  text-decoration: none;
}

.toc a:hover {
  color: var(--link);
  text-decoration: underline;
}

@media (min-width: 60rem) {
  .doc {
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: 4rem;
    padding-top: 3rem;
  }

  .toc {
    position: sticky;
    top: 1.5rem;
    align-self: start;
    padding: 0;
    border: 0;
    background: none;
  }

  .toc ol {
    border-left: 1px solid var(--border);
  }

  .toc a {
    margin-left: -1px;
    padding: 0.3rem 0 0.3rem 1rem;
    border-left: 2px solid transparent;
    color: var(--muted);
  }

  .toc a:hover {
    border-left-color: var(--amber);
    color: var(--text);
    text-decoration: none;
  }
}

/* Long-form text */

.prose {
  max-width: 44rem;
  min-width: 0;
}

.prose > * + * {
  margin-top: 1rem;
}

.prose h2 {
  margin-top: 3rem;
  padding-top: 0.25rem;
  font-size: 1.5rem;
  font-weight: 720;
  scroll-margin-top: 1.5rem;
}

.prose > h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 1.75rem;
  font-size: 1.125rem;
  font-weight: 680;
}

.prose h2 + *,
.prose h3 + * {
  margin-top: 0.75rem;
}

.prose ul,
.prose ol {
  display: grid;
  gap: 0.6rem;
  padding-left: 1.25rem;
}

.prose li::marker {
  color: var(--link);
}

.prose code {
  font-family: var(--mono);
  font-size: 0.92em;
}

.callout {
  padding: 1.25rem 1.25rem 1.25rem 1.4rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--amber);
  border-radius: 10px;
  background: var(--surface-2);
}

.callout > * + * {
  margin-top: 0.75rem;
}

.contact-block {
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.contact-block > * + * {
  margin-top: 0.4rem;
}

/* ---------- SMS program page ---------- */

.facts {
  display: grid;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.facts > div {
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--border);
}

.facts > div:first-child {
  border-top: 0;
}

.facts dt {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

@media (min-width: 36rem) {
  .facts > div {
    grid-template-columns: 9rem 1fr;
    gap: 1rem;
    align-items: baseline;
  }
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 0.75rem;
  padding: 0 !important;
  list-style: none;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.75rem;
  min-height: 1.9rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--amber);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 750;
}

.shot {
  margin-top: 1.5rem !important;
}

.shot img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.shot figcaption,
.sample figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.consent {
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--amber);
  border-radius: 10px;
  background: var(--surface-2);
  font-size: 1.0625rem;
}

.sample-screen {
  max-width: 26rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
}

.sample-from {
  margin-bottom: 0.6rem;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
}

.sample-bubble {
  max-width: 85%;
  padding: 0.7rem 0.95rem;
  border-radius: 18px 18px 18px 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.9875rem;
  line-height: 1.45;
}

/* ---------- 404 ---------- */

.notfound .wrap {
  padding-block: 5rem 3rem;
}

.notfound h1 {
  font-size: clamp(2.25rem, 1.6rem + 3vw, 3.5rem);
  font-weight: 780;
  letter-spacing: -0.03em;
}

.notfound .button {
  margin-top: 2rem;
}

/* ---------- Print ---------- */

@media print {
  .skip,
  .site-nav,
  .toc,
  .hero::before {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  a {
    color: inherit;
  }

  .doc {
    display: block;
  }
}
