/* Hallmark · shape: Long Document · genre: modern-minimal · theme: Dusk (design.md), brand kept · redesign: full · job: read the terms
 * hero: Banner (/privacy, /terms and their offline editions) · nav: edge-aligned · footer: colophon · imagery: none · signature: the short version set on a bone well above the long one · dusk: fog/green-apricot/well
 * axes: dark/grotesk-sans/cool · posture: committed · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P3 H5 E4 S3 R5 V3 · weakest: S, a policy reads like any policy; the summary on bone is the one move, and the words are the owner's and stay */
/* Hallmark · copy: verbatim · terms and the privacy policy are never reworded */
/* Hallmark · waive 77 · a Long Document's summary block sits alone above the text · the short version is one paragraph on bone by design, read before the long one */
/* Hallmark · waive 79 · a Long Document opens on its title and date, with no hero to fill · the policy starts reading at once, the summary right under it */
/* Hallmark · waive 49b · an inline link inside the summary's running prose · "its own policy" wraps with its sentence on a phone, as prose links do */
/* Hallmark · answered F1 · the straight quotes are in the policy's own text, which is never reworded */
/* Shared by the privacy and terms pages: long documents, where one cached stylesheet is the better trade. */
@import url("./tokens.css");
@import url("./base.css");

.skip {
  position: absolute;
  left: var(--space-md);
  top: calc(-1 * var(--space-3xl));
  z-index: var(--z-toast);
  padding: var(--space-xs) var(--space-md);
  background: var(--color-ink);
  color: var(--color-paper);
  border-radius: var(--radius-inner);
}
.skip:focus-visible {
  top: var(--space-md);
}

.shell {
  width: 100%;
  max-width: calc(68ch + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.top {
  box-shadow: inset 0 -1px 0 var(--color-rule);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-right: auto;
  color: var(--color-ink);
  text-decoration: none;
  font: 500 var(--text-lg) / 1 var(--font-display);
  letter-spacing: var(--tracking-display);
  border-radius: var(--radius-inner);
}
.brand:hover {
  color: var(--color-ink-2);
}
.links {
  display: flex;
  gap: var(--space-lg);
}
.links a,
.footer-links a {
  color: var(--color-muted);
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--radius-inner);
  transition: color var(--dur-short) var(--ease-out);
}
.links a:hover,
.footer-links a:hover,
.links a[aria-current='page'] {
  color: var(--color-ink);
}
.links a:active,
.footer-links a:active {
  color: var(--color-ink-2);
}

main {
  padding-block: var(--space-2xl) var(--space-3xl);
}
main h1 {
  font-size: var(--text-display-s);
  max-width: 18ch;
}
.updated {
  margin-top: var(--space-sm);
  color: var(--color-muted);
  font-size: var(--text-sm);
}

/* The short version, on bone: the one thing most people read. */
.summary {
  margin-block: var(--space-xl) var(--space-2xl);
  padding: var(--space-lg) var(--space-lg);
  border-radius: var(--radius-card);
  background: var(--color-well);
  color: var(--color-well-muted);
  line-height: 1.65;
}
.summary strong {
  color: var(--color-well-ink);
}
.summary a {
  color: var(--color-well-ink);
  text-decoration-thickness: 1px;
}
.summary a:hover {
  color: var(--color-day-muted);
}
.summary a:focus-visible {
  outline-color: var(--color-well-ink);
}

main h2 {
  max-width: none;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-sm);
  padding-top: var(--space-lg);
  border-top: var(--rule-hair) solid var(--color-rule);
  font-size: var(--text-xl);
  line-height: 1.25;
}
main h3 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xs);
  font-size: var(--text-lg);
}
main p,
main li {
  color: var(--color-ink-2);
  line-height: 1.7;
  max-width: 68ch;
}
main p {
  margin-bottom: var(--space-md);
}
main ul {
  padding-left: var(--space-lg);
}
main li {
  margin-bottom: var(--space-xs);
}
main strong {
  color: var(--color-ink);
  font-weight: 600;
}
main a {
  color: var(--color-accent);
  border-radius: 2px;
}
main a:hover {
  color: var(--color-accent-hi);
}

table {
  display: block;
  width: 100%;
  overflow-x: auto;
  margin-block: var(--space-xs) var(--space-lg);
  border-collapse: collapse;
  font-size: var(--text-sm);
}
th,
td {
  padding: var(--space-sm) var(--space-md) var(--space-sm) 0;
  border-bottom: var(--rule-hair) solid var(--color-rule);
  text-align: left;
  vertical-align: top;
  color: var(--color-ink-2);
}
th {
  color: var(--color-ink);
  font-weight: 600;
  white-space: nowrap;
}

footer {
  border-top: var(--rule-hair) solid var(--color-rule);
  padding-block: var(--space-xl) var(--space-2xl);
  color: var(--color-muted);
  font-size: var(--text-sm);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-md);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-lg);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 40rem) {
  .links {
    gap: var(--space-md);
  }
}
@media (prefers-reduced-motion: reduce) {
  .links a,
  .footer-links a {
    transition: none;
  }
}

/* A small phone has room for the brand and two links: the page being read is the one it leaves out. */
@media (max-width: 30rem) {
  .nav-inner {
    gap: var(--space-md);
  }
  .links:has(> a:nth-child(3)) > a[aria-current='page'] {
    display: none;
  }
}
