/* fightingform.tech: the landing page and the policy pages share this one file.
   No web fonts, no scripts, no remote assets; CSP style-src 'self'. */
:root {
  color-scheme: light dark;
  --ink: #0a0a0a;
  --paper: #ffffff;
  --surface: #f6f6f4;
  --fog: #5d626a;
  --line: #e4e6e9;
  --shard: #ff4b3e;
  --shard-ink: #c4302a; /* Darker red provides AA text contrast on light backgrounds. */
  --measure: 47rem;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f4f5f6;
    --paper: #0a0a0a;
    --surface: #141618;
    --fog: #a2a8b0;
    --line: #26292d;
    --shard-ink: #ff4b3e;
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--ink);
  text-decoration-color: var(--shard);
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.22em;
}

a:hover,
a:focus-visible {
  color: var(--shard-ink);
}

a:focus-visible,
.page-contents summary:focus-visible {
  border-radius: 0.15rem;
  outline: 0.18rem solid var(--shard);
  outline-offset: 0.25rem;
}

.skip-link {
  left: 1rem;
  position: fixed;
  top: 1rem;
  transform: translateY(-220%);
  z-index: 10;
}

.skip-link:focus {
  background: var(--shard);
  color: #0a0a0a;
  padding: 0.65rem 0.85rem;
  transform: translateY(0);
}

.site-header,
.site-footer,
main {
  margin-inline: auto;
  max-width: var(--measure);
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.landing .site-header,
.landing .site-footer,
.landing main {
  max-width: 64rem;
}

.site-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding-block: 1.6rem;
}

.wordmark {
  align-items: center;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 0.6rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.mark {
  border-radius: 22%;
  box-shadow: 0 0 0 0.5px rgb(10 10 10 / 0.12);
  flex: none;
  height: 40px;
  min-height: 24px;
  min-width: 24px;
  overflow: hidden;
  width: 40px;
}

.mark img {
  border-radius: 22%;
  display: block;
  height: 40px;
  width: 40px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  font-size: 0.86rem;
  gap: 1.1rem;
}

.site-nav a[aria-current="page"] {
  color: var(--shard-ink);
  text-decoration: none;
}

.hero {
  border-top: 1px solid var(--line);
  padding-block: clamp(4rem, 12vw, 7rem) clamp(3.5rem, 10vw, 6rem);
}

.hero-mark {
  display: block;
}

.hero-mark img {
  border-radius: 22%;
  box-shadow: 0 0 0 0.5px rgb(10 10 10 / 0.12);
  display: block;
  height: 72px;
  margin-bottom: 1.5rem;
  width: 72px;
}

.eyebrow {
  color: var(--shard-ink);
  font-size: 0.75rem;
  font-weight: 760;
  letter-spacing: 0.15em;
  margin: 0 0 1.1rem;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.13;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.55rem, 10vw, 5.5rem);
  font-weight: 860;
  letter-spacing: -0.045em;
  margin: 0;
  max-width: 12ch;
}

.landing h1 {
  font-size: clamp(3rem, 11vw, 6.5rem);
  font-weight: 900;
  isolation: isolate;
  letter-spacing: -0.035em;
  line-height: 0.95;
  max-width: 12ch;
  position: relative;
  width: fit-content;
}

.landing h1::before {
  background:
    radial-gradient(ellipse at 48% 85%, rgb(255 75 62 / 0.14), transparent 70%),
    radial-gradient(ellipse at 32% 35%, rgb(255 75 62 / 0.08), transparent 72%),
    linear-gradient(100deg, transparent, rgb(255 75 62 / 0.06) 18% 80%, transparent);
  bottom: -0.06em;
  clip-path: polygon(0 28%, 7% 17%, 18% 21%, 32% 8%, 48% 15%, 64% 5%,
    79% 18%, 94% 12%, 100% 39%, 96% 70%, 84% 79%, 71% 73%, 53% 92%,
    36% 81%, 20% 94%, 7% 76%, 2% 57%);
  content: "";
  height: 0.85em;
  left: -0.12em;
  pointer-events: none;
  position: absolute;
  width: calc(100% + 0.5em);
  z-index: -1;
}

h2 {
  font-size: clamp(1.45rem, 4vw, 2rem);
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
}

h3 {
  font-size: 1rem;
  margin: 2rem 0 0.35rem;
}

.lede {
  color: var(--fog);
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  margin: 1.5rem 0 0;
  max-width: 39rem;
}

.hero-subline {
  color: var(--ink);
  font-size: clamp(1.2rem, 2.8vw, 1.6rem);
  margin-top: 1.25rem;
  max-width: 30ch;
}

.meta {
  color: var(--fog);
  font-size: 0.82rem;
  margin-top: 1.8rem;
}

section {
  border-top: 1px solid var(--line);
  padding-block: clamp(2.4rem, 7vw, 4rem);
}

p,
li,
dd {
  max-width: 43rem;
}

p,
ul,
ol,
dl {
  margin-block: 0.8rem 0;
}

ul,
ol {
  padding-left: 1.35rem;
}

li + li {
  margin-top: 0.55rem;
}

.facts {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
}

.fact {
  border-left: 1px solid var(--line);
  padding: 0.25rem 1rem 0.4rem;
}

.fact:first-child {
  border-left: 0;
  padding-left: 0;
}

.fact strong,
.fact span {
  display: block;
}

.fact strong {
  color: var(--shard-ink);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fact span {
  color: var(--fog);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.quick-answers dt {
  font-weight: 700;
}

.quick-answers dd {
  margin: 0 0 0.9rem;
}

.cta {
  align-items: center;
  background: var(--ink);
  border-radius: 999px;
  color: var(--paper);
  display: inline-flex;
  min-height: 44px;
  padding: 0.65rem 1rem;
  text-decoration: none;
}

.cta:hover,
.cta:focus-visible {
  border-radius: 999px;
  color: var(--paper);
  outline: 0.18rem solid var(--shard);
  outline-offset: 0.25rem;
}

.visually-hidden {
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.contact-list {
  display: grid;
  grid-template-columns: minmax(7rem, 10rem) 1fr;
  margin-top: 1.4rem;
}

.contact-list dt,
.contact-list dd {
  border-top: 1px solid var(--line);
  margin: 0;
  padding-block: 0.9rem;
}

.contact-list dt {
  color: var(--fog);
  padding-right: 1rem;
}

.callout {
  border-left: 0.22rem solid var(--shard);
  margin-top: 1.6rem;
  padding: 0.2rem 0 0.2rem 1rem;
}

/* Policy/support navigation and decorative section paint. The landing page and
   the 404 page keep their existing presentation (the latter has no h2). */
body:not(.landing) main h2 {
  isolation: isolate;
  max-width: 100%;
  position: relative;
  scroll-margin-top: 1.5rem;
  width: fit-content;
}

body:not(.landing) main h2::before {
  /* Day: diffuse pigment, a pooled wet edge, and a thin underlying wash.
     Maximum combined shard coverage: 1 - .86 * .92 * .94 = .256272. */
  background:
    radial-gradient(ellipse at 48% 85%, rgb(255 75 62 / 0.14), transparent 70%),
    radial-gradient(ellipse at 32% 35%, rgb(255 75 62 / 0.08), transparent 72%),
    linear-gradient(100deg, transparent, rgb(255 75 62 / 0.06) 18% 80%, transparent);
  bottom: -0.06em;
  clip-path: polygon(0 28%, 7% 17%, 18% 21%, 32% 8%, 48% 15%, 64% 5%,
    79% 18%, 94% 12%, 100% 39%, 96% 70%, 84% 79%, 71% 73%, 53% 92%,
    36% 81%, 20% 94%, 7% 76%, 2% 57%);
  content: "";
  height: 0.85em;
  left: -0.12em;
  pointer-events: none;
  position: absolute;
  width: calc(100% + 0.5em);
  z-index: -1;
}

@media (prefers-color-scheme: dark) {
  .mark {
    box-shadow: 0 0 0 0.5px rgb(244 245 246 / 0.12);
  }

  .hero-mark img {
    box-shadow: 0 0 0 0.5px rgb(244 245 246 / 0.12);
  }

  .landing h1::before {
    background:
      repeating-linear-gradient(174deg, transparent 0 2px,
        rgb(255 75 62 / 0.22) 2px 3px, transparent 3px 6px),
      repeating-linear-gradient(7deg, rgb(255 75 62 / 0.12) 0 1px,
        transparent 1px 4px);
  }

  body:not(.landing) main h2::before {
    /* Night: two broken hatch passes in the same outline; bare slate shows
       between strokes. Maximum combined coverage: 1 - .78 * .88 = .3136. */
    background:
      repeating-linear-gradient(174deg, transparent 0 2px,
        rgb(255 75 62 / 0.22) 2px 3px, transparent 3px 6px),
      repeating-linear-gradient(7deg, rgb(255 75 62 / 0.12) 0 1px,
        transparent 1px 4px);
  }
}

.page-contents {
  border-top: 1px solid var(--line);
  padding-block: 1.25rem 2rem;
}

.page-contents summary {
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  min-height: 24px;
  padding-block: 0.2rem;
}

.page-contents ol {
  column-gap: 2rem;
  font-size: 0.88rem;
  margin-top: 0.85rem;
}

.page-contents li {
  break-inside: avoid;
  margin-bottom: 0.3rem;
}

.page-contents li + li {
  margin-top: 0;
}

.page-contents a {
  display: block;
  min-height: 24px;
  overflow-wrap: anywhere;
  padding-block: 0.15rem;
}

body:not(.landing) .site-footer nav {
  flex-wrap: wrap;
}

body:not(.landing) .site-footer a {
  min-height: 24px;
  overflow-wrap: anywhere;
}

@media (min-width: 52rem) {
  .page-contents ol {
    columns: 2;
  }
}

@media (forced-colors: active) {
  .landing h1::before {
    background: none;
  }

  body:not(.landing) main h2::before {
    background: none;
  }
}

/* Landing page */

.actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.4rem;
  margin-top: 2.4rem;
}

.status {
  color: var(--ink);
  margin: 0;
}

.features {
  display: grid;
  gap: 1.6rem 2.4rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.features li {
  border-top: 0.2rem solid var(--shard);
  margin: 0;
  max-width: none;
  padding-top: 1rem;
}

.features h3 {
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
}

.features p {
  color: var(--fog);
  font-size: 0.95rem;
  margin: 0;
}

.platforms {
  color: var(--fog);
  font-size: 0.95rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--fog);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.82rem;
  gap: 0.6rem 1.4rem;
  justify-content: space-between;
  padding-block: 1.8rem 2.8rem;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: 1.1rem;
}

.site-footer a {
  color: var(--fog);
}

@media (max-width: 52rem) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 39rem) {
  .mark,
  .mark img {
    height: 36px;
    width: 36px;
  }

  .hero-mark img {
    height: 56px;
    width: 56px;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.7rem;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .fact,
  .fact:first-child {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 0.8rem 0;
  }

  .contact-list {
    grid-template-columns: 1fr;
  }

  .contact-list dt {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .contact-list dd {
    border-top: 0;
    overflow-wrap: anywhere;
    padding-top: 0.2rem;
  }
}

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

@media (prefers-contrast: more) {
  :root {
    --fog: #2e3238;
    --line: #8a9096;
  }
}

@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
  :root {
    --fog: #d5d8d6;
    --line: #747a7c;
  }
}
