/* TDSignal LLC
   PLACEHOLDERS
   CONTACT_EMAIL: tdsignal@yahoo.com
   BUSINESS_ADDRESS: replace the visible BUSINESS_ADDRESS text. Do not invent an address.
   DOMAIN: not set. Links are root-relative.
   Font: Atkinson Hyperlegible, © Braille Institute of America, SIL OFL 1.1.
   See /fonts/OFL.txt
*/

@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2");
}

:root {
  --night: #14202c;
  --night-2: #243246;
  --cream: #f3efe4;
  --card: #fffdf8;
  --ink: #1b1712;
  --ink-soft: #3c362f;
  --line: #ddd4c4;
  --brass: #c4841d;
  --brass-bright: #e0a31a;
  --brass-deep: #6a3d08;
  --brass-soft: #fff6e8;
  --link: #14345c;
  --paper-shadow: 0 10px 28px rgba(20, 32, 44, 0.06);
  --focus: #6a3d08;
  --berry: #8d3a46;
  --text: 1.3125rem;
  --text-sm: 1.1875rem;
  color-scheme: light;
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--ink);
  font-family: "Atkinson Hyperlegible", "Segoe UI", "Noto Sans", sans-serif;
  font-size: var(--text);
  line-height: 1.6;
}

main {
  flex: 1;
}

h1,
h2,
h3,
p,
li,
dd,
dt {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  line-height: 1.2;
  text-wrap: balance;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.16em;
}

a:hover {
  color: #0c2344;
}

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

::selection {
  background: #f2c14e;
  color: var(--night);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 5;
  background: #fff;
  color: var(--night);
  font-weight: 700;
  font-size: 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
}

.skip:focus {
  top: 1rem;
}

.wrap {
  width: min(100% - 2.5rem, 72rem);
  margin-inline: auto;
}

.site-header {
  background: var(--night);
  color: #f6f1e6;
  border-bottom: 5px solid var(--brass-bright);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #f6f1e6;
  font-weight: 700;
  font-size: 1.5rem;
  min-height: 48px;
  text-decoration-color: #f2c14e;
}

.brand:hover {
  color: #fff;
}

.mark {
  width: 48px;
  height: 32px;
  flex: none;
}

.mark rect {
  fill: #f2c14e;
}

.mark rect:nth-child(even) {
  fill: #ffe7ad;
}

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

.nav-button {
  display: none;
  cursor: pointer;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border: 3px solid #f6f1e6;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.25rem;
  color: #f6f1e6;
}

.nav-toggle:focus-visible + .nav-button {
  outline: 3px solid #f2c14e;
  outline-offset: 3px;
}

.nav-toggle:checked + .nav-button .when-closed,
.nav-toggle:not(:checked) + .nav-button .when-open {
  display: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.35rem;
  align-items: center;
}

.nav a {
  color: #f6f1e6;
  font-weight: 700;
  font-size: 1.25rem;
  padding: 0.4rem 0.55rem;
  border-radius: 10px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  text-decoration-color: #f2c14e;
}

.nav a:hover {
  color: #fff;
  background: var(--night-2);
}

.nav a[aria-current="page"] {
  background: var(--night-2);
  text-decoration-thickness: 3px;
}

.hero {
  display: grid;
  gap: 1.75rem;
  padding: 2.4rem 0 0.5rem;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.6rem, 5vw, 4.35rem);
  letter-spacing: 0;
}

.mission {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 2.5vw, 2.15rem);
  line-height: 1.3;
  font-weight: 700;
  max-width: 18em;
  text-wrap: balance;
}

.lede {
  font-size: 1.3125rem;
  max-width: 40rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.25rem 0 0.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.7rem 1.15rem;
  background: var(--night);
  color: #f6f1e6;
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  border: 3px solid var(--night);
  border-radius: 12px;
  text-align: center;
}

.button:hover {
  background: var(--night-2);
  color: #fff;
  border-color: var(--night-2);
}

.button:focus-visible {
  outline-color: var(--brass-bright);
}

.button.secondary {
  background: transparent;
  color: var(--night);
}

.button.secondary:hover {
  background: #efe6d4;
  color: var(--night);
  border-color: var(--night);
}

.button.light {
  background: #f2c14e;
  color: #1a1408;
  border-color: #f2c14e;
}

.button.light:hover {
  background: #ffd56a;
  color: #1a1408;
  border-color: #ffd56a;
}

.button.secondary.on-dark {
  color: #f6f1e6;
  border-color: #f6f1e6;
  background: transparent;
}

.button.secondary.on-dark:hover {
  background: var(--night-2);
  color: #fff;
  border-color: #f6f1e6;
}

.org-card,
.facts,
.callout,
.disclaimer,
.app-card {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--paper-shadow);
}

.org-card,
.facts {
  padding: 1.25rem 1.3rem 1.15rem;
}

.org-card h2,
.facts h2 {
  margin: 0 0 0.35rem;
  font-size: 1.75rem;
}

.org-card dl > div,
.facts dl > div {
  display: grid;
  grid-template-columns: minmax(7.5rem, 10.5rem) minmax(0, 1fr);
  gap: 0.35rem 0.85rem;
  padding: 0.7rem 0;
  border-top: 2px solid var(--line);
}

.org-card dl > div:first-of-type,
.facts dl > div:first-of-type {
  border-top: 0;
}

dt {
  font-weight: 700;
}

dd {
  margin: 0;
}

.org-card dd p,
.facts dd p {
  margin: 0 0 0.45rem;
}

.placeholder {
  display: inline-block;
  padding: 0.12rem 0.5rem;
  border: 2px dashed var(--brass-deep);
  background: var(--brass-soft);
  color: var(--brass-deep);
  font-weight: 700;
  border-radius: 8px;
}

.address-note {
  margin: 0.35rem 0 0;
  font-size: 1.1875rem;
}

.section {
  padding: 2.4rem 0 0.25rem;
}

.section h2,
.contact-panel h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 3vw, 2.6rem);
}

.app-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
}

.app-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.3rem 1.25rem 1.25rem;
  border-top: 7px solid var(--brass-bright);
  color: inherit;
  text-decoration: none;
}

.app-card:hover {
  border-color: var(--night);
  border-top-color: var(--brass);
  color: inherit;
}

.app-card h3 {
  margin: 0.2rem 0 0.55rem;
  font-size: 2rem;
}

.app-card p {
  margin: 0.35rem 0;
}

.kicker {
  margin: 0;
  font-weight: 700;
  font-size: 1.1875rem;
  color: var(--brass-deep);
}

.status {
  display: inline-block;
  align-self: flex-start;
  margin: 0.7rem 0 0;
  padding: 0.2rem 0.65rem;
  background: var(--brass-soft);
  color: var(--brass-deep);
  border: 2px solid #b7791f;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.1875rem;
  line-height: 1.4;
}

.app-card .more {
  margin-top: auto;
  padding-top: 1rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.16em;
}

.policy-links {
  margin-top: 1.25rem;
}

.contact-panel {
  background: var(--night);
  color: #f6f1e6;
  border-radius: 18px;
  padding: 1.6rem 1.4rem 1.45rem;
  margin-bottom: 0.5rem;
}

.contact-panel a:not(.button) {
  color: #f6f1e6;
  font-weight: 700;
}

.contact-panel p {
  max-width: 40rem;
}

.page-intro {
  padding: 2.15rem 0 0.25rem;
}

.crumbs {
  margin: 0 0 0.45rem;
  font-weight: 700;
  font-size: 1.1875rem;
}

.page-intro h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
}

.meta-line {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
}

.split {
  display: grid;
  gap: 1.35rem;
  align-items: start;
  padding-bottom: 0.5rem;
}

.measure {
  max-width: 46rem;
}

.prose h2 {
  margin: 2.2rem 0 0.7rem;
  padding-top: 1.1rem;
  border-top: 2px solid var(--line);
  font-size: 1.85rem;
}

.prose h2:first-child,
.callout h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.prose ul,
.prose ol {
  margin: 0 0 1rem;
  padding-left: 1.4rem;
}

.prose li + li {
  margin-top: 0.5rem;
}

.prose li {
  padding-left: 0.2rem;
}

.callout {
  padding: 1.15rem 1.2rem 0.4rem;
  border-color: #e0b15a;
  margin: 0.4rem 0 0.25rem;
}

.callout h2 {
  font-size: 1.7rem;
  margin-bottom: 0.6rem;
}

.disclaimer {
  padding: 1rem 1.15rem 0.25rem;
  border-left: 7px solid var(--berry);
  margin: 1rem 0 1.15rem;
}

.mono {
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", "Liberation Mono", monospace;
  font-size: 1.2rem;
  overflow-wrap: anywhere;
}

.facts .button {
  width: 100%;
  margin-top: 0.85rem;
}

.facts .button + .button {
  margin-top: 0.65rem;
}

.on-this-page {
  margin: 0.25rem 0 0.5rem;
  padding: 0;
  list-style: none;
}

.on-this-page li {
  margin: 0.35rem 0;
}

.site-footer {
  background: var(--night);
  color: #f6f1e6;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  gap: 1.6rem;
  padding-top: 2rem;
  padding-bottom: 1.4rem;
}

.footer-brand {
  margin: 0 0 0.4rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.footer-heading {
  margin: 0 0 0.45rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin: 0.4rem 0;
}

.site-footer a {
  color: #f6f1e6;
  font-size: 1.1875rem;
  text-decoration-color: #f2c14e;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer p {
  font-size: 1.1875rem;
}

.copyright {
  margin: 0;
  padding: 1.15rem 0 1.7rem;
  border-top: 2px solid #314256;
  font-weight: 700;
  font-size: 1.25rem;
}

@media (min-width: 720px) {
  .app-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1.45fr) minmax(16rem, 0.8fr);
  }

  .split .facts {
    grid-column: 2;
    grid-row: 1;
  }

  .split .story {
    grid-column: 1;
    grid-row: 1;
  }
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.9fr);
    align-items: start;
    gap: 2.25rem;
    padding-top: 2.8rem;
  }
}

@media (min-width: 1040px) {
  .app-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

@media (min-width: 860px) {
  .nav-toggle {
    display: none;
  }
}

@media (max-width: 859px) {
  .header-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .nav-button {
    display: inline-flex;
    align-self: flex-start;
  }

  .nav-toggle:not(:checked) ~ .nav {
    display: none;
  }

  .nav-toggle:checked ~ .nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding-top: 0.35rem;
  }

  .nav a {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .org-card dl > div,
  .facts dl > div {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  .button {
    width: 100%;
  }
}

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

@media (prefers-contrast: more) {
  :root {
    --line: #14202c;
  }

  a {
    text-decoration-thickness: 3px;
  }
}

@media print {
  .site-header,
  .skip,
  .actions,
  .site-footer .footer-grid {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }

  .site-footer {
    background: #fff;
    color: #000;
    margin-top: 1rem;
  }

  .copyright {
    border-top: 1px solid #000;
    color: #000;
  }

  a {
    color: #000;
  }
}
