/* transposer.io: the Digital Forge family's public type (Mona Sans for headlines and text, Literata
   for long reading, Big Shoulders for the wordmark), with Transposer's own warm neutrals, cobalt and
   wordmark (docs/design/2026-11-02-design-system.md). Cobalt is for the one main action and keyboard
   focus only, besides the wordmark. Fonts are served from this site; nothing is fetched from anywhere
   else. */

@font-face {
  font-family: "Mona Sans";
  src: url("fonts/mona-sans-latin-wdth-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("fonts/literata-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Big Shoulders";
  src: url("fonts/big-shoulders-latin-opsz-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Tokens: the app's page layer (paper in light, charcoal in dark) and its control layer for the
   header (stone in light, graphite in dark), as in desktop/src/styles/tokens.css. */
:root {
  color-scheme: light dark;

  --bg: #faf9f6;
  --card: #ffffff;
  --line: #ddd8cf;
  --hair: #ece8e1;
  --head: #141414;
  --tx: #2a2826;
  --mut: #655f57;

  --acc: #2864bd;
  --acc-hover: #1e4f98;
  --acc-press: #153b74;
  --on-acc: #ffffff;
  --ring: #2864bd;

  --strip-bg: #f4f3ef;
  --strip-line: #d9d5cd;
  --strip-head: #141414;

  --f-sans: "Mona Sans", system-ui, "Segoe UI", sans-serif;
  --f-read: "Literata", Georgia, "Times New Roman", serif;
  --f-wm: "Big Shoulders", "Arial Narrow", sans-serif;

  --ease: cubic-bezier(0.2, 0, 0, 1);
  --gutter: 24px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111214;
    --card: #17181b;
    --line: #2a2d32;
    --hair: #212328;
    --head: #eceae6;
    --tx: #d3d0ca;
    --mut: #8a8d94;

    --acc: #4d84d5;
    --acc-hover: #79a3e1;
    --acc-press: #9cbcea;
    --on-acc: #141414;
    --ring: #4d84d5;

    --strip-bg: #17181a;
    --strip-line: #2a2c30;
    --strip-head: #eeece7;
  }
}

@media (max-width: 480px) {
  :root {
    --gutter: 16px;
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--tx);
  font: 400 1rem/1.6 var(--f-sans);
  font-stretch: 100%;
  overflow-wrap: break-word;
}

main {
  flex: 1;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--head);
  font-family: var(--f-sans);
  font-weight: 600;
}

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

/* Links are ink, underlined: cobalt is kept for the main action and focus. */
a {
  color: var(--head);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover {
  text-decoration-thickness: 2px;
}

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

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

/* Skip link: off screen until it has focus. */
.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 8px 12px;
  background: var(--bg);
  color: var(--head);
  border: 1px solid var(--line);
  border-radius: 2px;
}
.skip:focus {
  top: 8px;
}

/* ------------------------------------------------------------ header: the strip */
.strip {
  background: var(--strip-bg);
  border-bottom: 1px solid var(--strip-line);
}
.strip .wrap {
  display: flex;
  align-items: center;
  min-height: 56px;
}

/* The wordmark: a cobalt square, TRANSPOSER in Big Shoulders 800, a cobalt cursor bar. Never under
   24 px. */
.wm {
  display: inline-flex;
  align-items: baseline;
  font: 800 24px/1 var(--f-wm);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--strip-head);
  text-decoration: none;
  white-space: nowrap;
}
.wm::before {
  content: "";
  width: 0.5em;
  height: 0.5em;
  margin-right: 0.18em;
  align-self: center;
  background: var(--acc);
}
.wm .cur {
  display: inline-block;
  width: 0.42em;
  height: 0.09em;
  margin-left: 0.08em;
  background: var(--acc);
}

/* ------------------------------------------------------------ homepage */
.intro {
  padding-block: 72px 56px;
}
.intro h1 {
  font-size: clamp(2.5rem, 1.7rem + 3.6vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}
.lede {
  margin-top: 20px;
  max-width: 30em;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--head);
}
.lede + p {
  margin-top: 8px;
  max-width: 34em;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 32px;
}
.status {
  flex-basis: 100%;
  font-weight: 600;
  color: var(--head);
}
.note {
  color: var(--mut);
  font-size: 0.875rem;
}

/* The one main action: cobalt, 2 px corners, pressed 1 px down. */
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  background: var(--acc);
  color: var(--on-acc);
  font: 600 1rem/1.2 var(--f-sans);
  text-decoration: none;
  border-radius: 2px;
  transition: background-color 120ms var(--ease);
}
.btn:hover {
  background: var(--acc-hover);
}
.btn:active {
  background: var(--acc-press);
  transform: translateY(1px);
}

/* The example: a source and what was extracted from it, on a card. */
.example {
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 2px;
}
.example figcaption {
  color: var(--mut);
  font-size: 0.875rem;
}
.example__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 16px;
}
.example h2 {
  font-size: 0.875rem;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--mut);
}
.example h3 {
  margin-top: 12px;
  font-size: 1rem;
  line-height: 1.3;
}
.example__source {
  margin-top: 8px;
  padding-left: 12px;
  border-left: 2px solid var(--line);
  font-family: var(--f-read);
  font-size: 1rem;
  line-height: 1.6;
}
.example__source p + p {
  margin-top: 6px;
}
.example__source b {
  font-family: var(--f-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--head);
}
.example ul {
  margin-top: 4px;
  padding-left: 1.1em;
  font-family: var(--f-read);
  line-height: 1.6;
}
.example li + li {
  margin-top: 4px;
}

.trust {
  padding-block: 40px 56px;
}
.trust h2 {
  font-size: 1.375rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.trust p {
  margin-top: 12px;
  max-width: 36em;
}

@media (max-width: 600px) {
  .example__body {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------ legal pages: long reading */
.legal {
  padding-block: 56px 64px;
}
.legal h1 {
  font-size: clamp(2.25rem, 1.7rem + 2.4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}
.updated {
  margin-top: 12px;
  color: var(--mut);
  font-size: 0.875rem;
}
.summary {
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 2px;
}
.summary h2 {
  font-size: 1.125rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.summary ul {
  margin-top: 8px;
  padding-left: 1.1em;
}
.summary li + li {
  margin-top: 8px;
}
.summary strong {
  font-weight: 600;
  color: var(--head);
}
.toc {
  margin-top: 24px;
  font-size: 0.9375rem;
}
.toc ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-top: 4px;
  padding: 0;
  list-style: none;
}
.toc a {
  display: inline-block;
  padding-block: 2px;
}
.prose {
  margin-top: 32px;
  font-family: var(--f-read);
  font-size: 1.125rem;
  line-height: 1.7;
}
.prose h2 {
  margin-top: 40px;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
  scroll-margin-top: 16px;
}
.prose h3 {
  margin-top: 24px;
  font-size: 1.125rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.prose p,
.prose ul {
  margin-top: 12px;
}
.prose ul {
  padding-left: 1.25em;
}
.prose li + li {
  margin-top: 8px;
}
.prose strong {
  font-weight: 600;
  color: var(--head);
}

/* ------------------------------------------------------------ footer */
.foot {
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--mut);
}
.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 24px 32px;
}
.foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  padding: 0;
}
.foot a {
  display: inline-block;
  padding-block: 4px;
}

@media (max-width: 480px) {
  .intro {
    padding-block: 48px 40px;
  }
  .lede {
    font-size: 1.125rem;
  }
  .example {
    padding: 16px;
  }
  .summary {
    padding: 16px;
  }
  .legal {
    padding-block: 40px 48px;
  }
  .prose {
    font-size: 1.0625rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
  .btn:active {
    transform: none;
  }
}

/* Forced colors: keep the wordmark's marks and the button visible with system colors. */
@media (forced-colors: active) {
  .wm::before,
  .wm .cur {
    background: CanvasText;
    forced-color-adjust: none;
  }
  .btn {
    border: 1px solid ButtonText;
  }
}
