/* Values live in DESIGN.md. Fraunces and Source Serif 4 are SIL Open Font License. */

@font-face {
  font-family: Fraunces;
  src: url("/assets/fonts/fraunces-opsz.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/source-serif-4-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/source-serif-4-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: oklch(0.955 0.012 95);
  --ink: oklch(0.26 0.03 160);
  --muted: oklch(0.45 0.025 140);
  --slip: oklch(0.985 0.006 95);
  --slip-hover: oklch(0.96 0.012 95);
  --band: oklch(0.22 0.028 165);
  --link: oklch(0.38 0.055 162);
  --link-down: oklch(0.32 0.045 162);
  --measure: 64ch;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2.5rem;
  --space-7: 4rem;
  --font-display: Fraunces, Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --font-body: "Source Serif 4", Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --font-ui: system-ui, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

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

html {
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.55;
  overflow-wrap: break-word;
}

body[data-type="trust"] {
  background: var(--slip);
}

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

.band :focus-visible {
  outline-color: var(--slip);
}

::selection {
  background: var(--link);
  color: var(--slip);
}

.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
  background: var(--slip);
  color: var(--ink);
  font-family: var(--font-ui);
}

.skip-link:focus,
.skip-link:focus-visible {
  position: fixed;
  z-index: 5;
  top: var(--space-3);
  left: var(--space-3);
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  padding: 0.65rem 0.9rem;
  white-space: normal;
}

.band {
  background: var(--band);
  color: var(--bg);
}

header.band::after {
  content: "";
  display: block;
  height: 7px;
  background:
    linear-gradient(var(--band), var(--band)) 0 0 / 100% 1px no-repeat,
    linear-gradient(var(--band), var(--band)) 0 100% / 100% 2px no-repeat;
  background-color: var(--bg);
}

.band-inner {
  padding: 0.85rem 1rem 0.9rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  max-width: 100%;
  min-height: 44px;
  color: var(--bg);
  text-decoration: none;
}

.logo {
  width: 2.5rem;
  height: auto;
  flex: none;
  background: var(--slip);
}

.wordmark {
  display: block;
  max-width: 100%;
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 48, "wght" 650;
}

.brand:hover .wordmark,
.brand:active .wordmark {
  color: var(--slip);
}

.nav-wide {
  display: none;
}

.nav-narrow {
  display: block;
  margin-top: var(--space-3);
}

.band-static .nav-wide {
  display: block;
}

nav[aria-label="Primary"] > ul,
nav[aria-label="Primary"] ul ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav[aria-label="Primary"] > ul > li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

nav[aria-label="Primary"] {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.3;
  letter-spacing: 0.03em;
}

nav[aria-label="Primary"] a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0.35rem 0.7rem;
  color: var(--bg);
  background: transparent;
  text-decoration: none;
}

nav[aria-label="Primary"] li > span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.45rem;
  color: var(--bg);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-narrow summary {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
  width: auto;
  min-height: 44px;
  padding: 0.35rem 0;
  border: 0;
  border-bottom: 1px solid var(--slip);
  color: var(--bg);
  background: transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  list-style: none;
}

.nav-narrow summary::-webkit-details-marker {
  display: none;
}

.nav-narrow summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.nav-narrow[open] summary {
  background: transparent;
  color: var(--slip);
}

.nav-narrow[open] summary::after {
  content: "\2013";
}

.nav-narrow nav[aria-label="Primary"] {
  padding-top: var(--space-2);
}

.nav-narrow nav[aria-label="Primary"] > ul,
.nav-narrow nav[aria-label="Primary"] ul ul,
.nav-narrow nav[aria-label="Primary"] > ul > li {
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}

.nav-narrow nav[aria-label="Primary"] a {
  width: 100%;
  justify-content: flex-start;
}

.band a {
  color: var(--bg);
  background: transparent;
}

.band a:hover,
.band a:active {
  color: var(--slip);
  background: transparent;
}

nav[aria-label="Primary"] a[aria-current="page"] {
  color: var(--bg);
  background: transparent;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
  text-decoration-color: var(--slip);
}

nav[aria-label="Primary"] a[aria-current="page"]:hover,
nav[aria-label="Primary"] a[aria-current="page"]:active {
  color: var(--slip);
  background: transparent;
}

.nav-narrow summary:hover,
.nav-narrow summary:active {
  color: var(--slip);
  background: transparent;
}

.nav-narrow[open] summary:hover,
.nav-narrow[open] summary:active {
  color: var(--slip);
  background: transparent;
}

main {
  width: 100%;
  padding: 1.25rem 1rem var(--space-7);
}

.essay {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.75rem;
  align-items: baseline;
  min-width: 0;
  max-width: var(--measure);
}

.byline,
.dateline {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant: small-caps;
  line-height: 1.4;
  letter-spacing: 0.06em;
}

.byline::after {
  content: "·";
  margin-left: 0.75rem;
  color: var(--muted);
  font-weight: 400;
}

.essay:not(:has(.dateline time)) .byline::after {
  content: none;
}

.dateline {
  color: var(--muted);
}

.essay > article {
  flex: 1 0 100%;
  margin-top: var(--space-4);
}

.dateline:not(:has(time)) {
  display: none;
}

.byline a {
  color: var(--ink);
  font-weight: 650;
  text-decoration-line: underline;
  text-decoration-thickness: 0.12em;
  text-decoration-color: var(--link);
  text-underline-offset: 0.18em;
}

.byline a:hover,
.byline a:active {
  background: transparent;
  color: var(--link-down);
  text-decoration-thickness: 0.14em;
}

nav[aria-label="Breadcrumb"] {
  width: min(100%, 72rem);
  margin: 0 auto var(--space-4);
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

nav[aria-label="Breadcrumb"] ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav[aria-label="Breadcrumb"] a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--link);
  text-decoration-line: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

nav[aria-label="Breadcrumb"] a:hover,
nav[aria-label="Breadcrumb"] a:active {
  color: var(--link-down);
  text-decoration-thickness: 0.14em;
}

nav[aria-label="Breadcrumb"] li + li::before {
  content: "/";
  color: var(--muted);
}

.sheet {
  display: grid;
  gap: var(--space-5);
  width: min(100%, 72rem);
  margin-inline: auto;
}

.sheet:not(:has(.toc-slot a)) {
  width: min(100%, var(--measure));
}

.sheet > * {
  min-width: 0;
}

.toc-slot:not(:has(a)) {
  display: none;
}

.toc-slot {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.toc-slot ul,
.toc-slot ol {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc-slot a {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 0.35rem 0 0.35rem 0.75rem;
  border: 0;
  border-left: 1px solid var(--muted);
  color: var(--ink);
  background: transparent;
  text-decoration: none;
}

.toc-slot a:hover,
.toc-slot a:active {
  background: transparent;
  color: var(--link-down);
  border-left-color: var(--band);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.15em;
}

article {
  max-width: var(--measure);
}

article h1,
main > h1 {
  margin: 0.15rem 0 var(--space-4);
  font-family: var(--font-display);
  font-weight: 620;
  font-size: clamp(2.4rem, 1.55rem + 2.6vw, 4.3rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 80, "wght" 620;
  text-wrap: balance;
}

article h2 {
  margin: var(--space-6) 0 var(--space-3);
  font-weight: 600;
  font-size: clamp(1.55rem, 1.3rem + 0.8vw, 2.05rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

article h2::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 0.45rem;
  background: var(--band);
}

article h3 {
  margin: 1.6rem 0 var(--space-2);
  font-weight: 600;
  font-size: clamp(1.25rem, 1.15rem + 0.3vw, 1.45rem);
  line-height: 1.25;
  text-wrap: balance;
}

article p {
  margin: 0 0 var(--space-4);
  text-wrap: pretty;
}

article a {
  color: var(--link);
  text-decoration-line: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

article a:hover,
article a:active {
  background: transparent;
  color: var(--link-down);
  text-decoration-thickness: 0.14em;
}

article a:visited {
  color: var(--link);
}

article a:visited:hover,
article a:visited:active {
  color: var(--link-down);
}

/* One loud action at the opening of the front page: the reader who came
   for the address should not have to hunt the nav for it. */
article .hero-cta {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.65rem 1.35rem;
  background: var(--band);
  color: var(--slip);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}

article .hero-cta:visited,
article .hero-cta:hover,
article .hero-cta:active,
article .hero-cta:visited:hover,
article .hero-cta:visited:active {
  background: var(--link);
  color: var(--slip);
  text-decoration: none;
}

article strong {
  font-weight: 600;
}

code {
  font-family: var(--font-mono);
  font-size: 0.82em;
  overflow-wrap: anywhere;
  background: var(--slip);
  color: var(--ink);
  padding: 0.08em 0.28em;
}

article table {
  width: 100%;
  margin: 1.25rem 0 var(--space-5);
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.4;
}

article caption {
  caption-side: top;
  padding: 0 0 0.6rem;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9375rem;
  text-align: left;
}

article th,
article td {
  padding: 0.65rem 0.7rem;
  vertical-align: top;
  text-align: left;
  background: transparent;
  color: var(--ink);
  border-bottom: 1px solid var(--muted);
  overflow-wrap: anywhere;
}

article th:first-child,
article td:first-child {
  width: 34%;
}

article thead th {
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant: small-caps;
  letter-spacing: 0.04em;
  text-transform: none;
  border-bottom: 1px solid var(--band);
}

article tbody tr:hover th,
article tbody tr:hover td {
  background: var(--slip-hover);
  color: var(--ink);
}

article table code {
  background: transparent;
  padding: 0;
}

/* The mirror table is the link page's payload: its addresses read large
   enough to find on a skim, in a label column kept narrow. */
article table.mirrors th:first-child,
article table.mirrors td:first-child {
  width: 22%;
}

article table.mirrors code {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
}

article dl {
  margin: 1.25rem 0 var(--space-5);
  padding: 0.35rem 0 0.5rem;
  background: transparent;
  color: var(--ink);
}

article dt {
  margin-top: 0.85rem;
  font-weight: 600;
}

article dd {
  margin: 0.25rem 0 0;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--muted);
}

article ol {
  margin: 1rem 0 var(--space-5);
  padding: 0;
  list-style: none;
  counter-reset: step;
}

article ol > li {
  position: relative;
  margin: 0 0 1.15rem;
  padding-left: 2rem;
  text-wrap: pretty;
}

article ol > li::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  left: 0;
  top: 0.05rem;
  color: var(--link);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 620;
  line-height: 1.2;
  font-variation-settings: "opsz" 36, "wght" 620;
}

article ul {
  margin: 0.6rem 0 1.2rem;
  padding-left: 1.15rem;
}

article ul > li + li,
article ol > li + li {
  margin-top: 0.35rem;
}

article ul > li::marker {
  color: var(--link);
}

article aside[role="note"] {
  margin: 1.25rem 0 var(--space-5);
  padding: 0.15rem 0 0.15rem 1rem;
  background: transparent;
  color: var(--ink);
  border-left: 3px solid var(--band);
}

article aside[role="note"] p {
  margin: 0;
}

article aside[role="note"] strong {
  color: inherit;
}

article aside:has(> h2) {
  margin: 1.25rem 0 var(--space-5);
  padding: 0.2rem 0 0.2rem 1rem;
  background: transparent;
  color: var(--ink);
  border-left: 3px solid var(--band);
}

article aside:has(> h2) > h2 {
  margin-top: 0.8rem;
}

article aside:has(> h2) > h2::after {
  display: none;
}

main > h1 {
  width: min(100%, var(--measure));
  margin-inline: auto;
}

main > p {
  width: min(100%, var(--measure));
  margin-inline: auto;
}

main > p a {
  color: var(--link);
  text-decoration-line: underline;
  text-underline-offset: 0.18em;
}

main > p a:hover,
main > p a:active {
  background: transparent;
  color: var(--link-down);
  text-decoration-thickness: 0.14em;
}

footer.band {
  padding: var(--space-6) 1rem 2.5rem;
}

footer nav[aria-label="Footer"] {
  display: grid;
  gap: var(--space-5);
  width: min(100%, 68rem);
  margin: 0 auto;
}

.foot-label {
  margin: 0 0 var(--space-1);
  color: var(--bg);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

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

footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-right: 0.4rem;
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.colophon {
  width: min(100%, 68rem);
  margin: var(--space-5) auto 0;
  color: var(--bg);
  font-family: var(--font-ui);
  font-size: 0.875rem;
  line-height: 1.4;
}

body[data-page="home"] footer a[href="/"],
body[data-page="link"] footer a[href="/link"],
body[data-page="review"] footer a[href="/review"],
body[data-page="how-to-access"] footer a[href="/how-to-access"],
body[data-page="pgp-and-2fa"] footer a[href="/pgp-and-2fa"],
body[data-page="escrow-and-disputes"] footer a[href="/escrow-and-disputes"],
body[data-page="payments"] footer a[href="/payments"],
body[data-page="vendors"] footer a[href="/vendors"],
body[data-page="safety"] footer a[href="/safety"],
body[data-page="about"] footer a[href="/about"],
body[data-page="privacy"] footer a[href="/privacy"],
body[data-page="disclaimer"] footer a[href="/disclaimer"],
body[data-page="contact"] footer a[href="/contact"] {
  color: var(--bg);
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

body[data-page="home"] footer a[href="/"]:hover,
body[data-page="home"] footer a[href="/"]:active,
body[data-page="link"] footer a[href="/link"]:hover,
body[data-page="link"] footer a[href="/link"]:active,
body[data-page="review"] footer a[href="/review"]:hover,
body[data-page="review"] footer a[href="/review"]:active,
body[data-page="how-to-access"] footer a[href="/how-to-access"]:hover,
body[data-page="how-to-access"] footer a[href="/how-to-access"]:active,
body[data-page="pgp-and-2fa"] footer a[href="/pgp-and-2fa"]:hover,
body[data-page="pgp-and-2fa"] footer a[href="/pgp-and-2fa"]:active,
body[data-page="escrow-and-disputes"] footer a[href="/escrow-and-disputes"]:hover,
body[data-page="escrow-and-disputes"] footer a[href="/escrow-and-disputes"]:active,
body[data-page="payments"] footer a[href="/payments"]:hover,
body[data-page="payments"] footer a[href="/payments"]:active,
body[data-page="vendors"] footer a[href="/vendors"]:hover,
body[data-page="vendors"] footer a[href="/vendors"]:active,
body[data-page="safety"] footer a[href="/safety"]:hover,
body[data-page="safety"] footer a[href="/safety"]:active,
body[data-page="about"] footer a[href="/about"]:hover,
body[data-page="about"] footer a[href="/about"]:active,
body[data-page="privacy"] footer a[href="/privacy"]:hover,
body[data-page="privacy"] footer a[href="/privacy"]:active,
body[data-page="disclaimer"] footer a[href="/disclaimer"]:hover,
body[data-page="disclaimer"] footer a[href="/disclaimer"]:active,
body[data-page="contact"] footer a[href="/contact"]:hover,
body[data-page="contact"] footer a[href="/contact"]:active {
  color: var(--slip);
  background: transparent;
}

body[data-type="trust"] article h1 {
  font-size: clamp(2.2rem, 1.4rem + 2vw, 3.4rem);
}

body[data-type="trust"] main {
  padding-top: var(--space-6);
}

@media (max-width: 559px) {
  article th,
  article td {
    padding: 0.45rem 0.4rem;
    font-size: 0.8125rem;
  }

  article table.mirrors code {
    font-size: 0.875rem;
  }

}

@media (min-width: 720px) {
  .band-inner,
  main,
  footer.band {
    padding-inline: 1.5rem;
  }

  article dl {
    display: grid;
    grid-template-columns: minmax(8.5rem, 14rem) minmax(0, 1fr);
    column-gap: 1.25rem;
    padding-inline: 1rem;
  }

  article dt,
  article dd {
    margin: 0;
    padding-block: 0.85rem;
    border-bottom: 1px solid var(--muted);
  }

  footer nav[aria-label="Footer"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 600px) {
  .sheet:has(.toc-slot a) {
    grid-template-columns: minmax(10.5rem, 15rem) minmax(0, var(--measure));
    justify-content: center;
    align-items: start;
    column-gap: 1.75rem;
  }

  .toc-slot ul,
  .toc-slot ol {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
  }

  .toc-slot a {
    width: 100%;
  }

  .toc-slot {
    position: sticky;
    top: var(--space-4);
  }
}

@media (min-width: 1080px) {
  .nav-wide {
    display: block;
    margin-top: var(--space-2);
  }

  .nav-narrow {
    display: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  @view-transition {
    navigation: auto;
  }

  .nav-narrow[open] nav[aria-label="Primary"] {
    transition: opacity 160ms ease, transform 160ms ease;
    @starting-style {
      opacity: 0;
      transform: translateY(-4px);
    }
  }
}
