/* Tell website. Colours, type and highlighter from the Tell design system (brand chart 5, "The website"). */

@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url(/fonts/rubik-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url(/fonts/archivo-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/ibm-plex-mono-500-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/ibm-plex-mono-600-latin.woff2) format('woff2');
}

:root {
  --ink: #141413;
  --ink-2: #2E2D29;
  --ink-soft: #57544D;
  --paper: #FBFAF6;
  --paper-2: #F4F2EC;
  --line: #E6E2D8;
  --yellow: #FFE81A;
  --on-ink: #F7F3EE;
  --on-ink-soft: #C9C4BA;
  --on-ink-mute: #A8A49C;
  --sans: 'Rubik', 'Helvetica Neue', Arial, sans-serif;
  --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--ink); }
a:hover { color: var(--ink-soft); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
[style*="#FFE81A"] :focus-visible, .on-yellow :focus-visible { outline-color: var(--ink); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* The highlighter: a real marker stroke behind the true part. */
.hl {
  background-image: url(/assets/highlighter-long-yellow.png);
  background-size: 100% 88%;
  background-position: center 62%;
  background-repeat: no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 4px;
  margin: 0 -2px;
}
.hlbar {
  background-image: url(/assets/highlighter-med-yellow.png);
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  padding: 12px 18px; border-radius: 30px; background: var(--yellow); color: var(--ink);
  font-weight: 800; text-decoration: none;
}
.skip:focus { top: 16px; }

/* Homepage: the desktop board from 1100px up, the mobile board below. */
.v-mob { display: none; }
.hero-frame { position: relative; max-width: 1440px; height: 100%; margin: 0 auto; }
@media (max-width: 1099px) {
  .v-desk { display: none; }
  .v-mob { display: block; }
  /* Tablets: keep the phone column readable instead of stretching it. */
  .v-mob section, .v-mob footer, .v-mob header > nav {
    padding-left: max(20px, calc((100% - 640px) / 2)) !important;
    padding-right: max(20px, calc((100% - 640px) / 2)) !important;
  }
}
@media (min-width: 1441px) {
  .v-desk > div > section, .v-desk > div > footer {
    padding-left: max(120px, calc((100% - 1200px) / 2)) !important;
    padding-right: max(120px, calc((100% - 1200px) / 2)) !important;
  }
}

/* Inner pages: privacy, terms, ideas. */
.page-nav {
  background: var(--ink);
  padding: 20px max(20px, calc((100% - 1200px) / 2));
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.page-nav .links { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: flex-end; }
.page-nav .links a { font-size: 15px; font-weight: 600; color: var(--on-ink); text-decoration: none; }
.page-nav .links a:hover { color: var(--on-ink-soft); }
@media (max-width: 640px) { .page-nav .links a:not(.home) { display: none; } }

.page-head { background: var(--ink); color: var(--on-ink); padding: 72px max(20px, calc((100% - 1200px) / 2)) 88px; }
.eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-ink-mute); }
.page-head h1 {
  margin: 0; font-family: var(--display); font-weight: 900; letter-spacing: -0.052em; line-height: 0.93;
  font-size: clamp(52px, 9vw, 112px); color: var(--on-ink);
}
.page-head .hl { color: var(--ink); }
.page-head .lede { margin: 26px 0 0; max-width: 680px; font-size: clamp(17px, 2vw, 20px); line-height: 1.5; font-weight: 500; color: var(--on-ink-soft); }
.page-head .meta { margin: 18px 0 0; font-size: 14px; font-weight: 500; color: var(--on-ink-mute); }

.prose { background: var(--paper); padding: 72px max(20px, calc((100% - 760px) / 2)) 96px; color: var(--ink-2); font-size: 17px; line-height: 1.65; }
.prose section + section { margin-top: 56px; }
.prose h2 { margin: 0 0 16px; font-family: var(--display); font-weight: 900; letter-spacing: -0.04em; line-height: 1; font-size: clamp(30px, 4vw, 40px); color: var(--ink); }
.prose h3 { margin: 28px 0 10px; font-size: 18px; font-weight: 800; color: var(--ink); }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 14px; padding-left: 22px; }
.prose li { margin: 0 0 8px; }
.prose li::marker { color: var(--ink-soft); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--ink); font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--yellow); }
.prose a:hover { color: var(--ink-soft); }
.prose .fine { text-transform: uppercase; font-size: 12px; line-height: 1.6; letter-spacing: 0.04em; }
.prose .table-wrap { overflow-x: auto; margin: 0 0 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.prose table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 15px; line-height: 1.5; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.prose tr:last-child td { border-bottom: 0; }
.prose th { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); background: var(--paper-2); }
.prose .toc { margin: 0 0 56px; padding: 22px 24px; border-radius: 24px; background: var(--paper-2); }
.prose .toc p { margin: 0 0 8px; font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.prose .toc ol { margin: 0; padding-left: 22px; columns: 2 240px; column-gap: 32px; font-size: 15px; }
.prose .toc li { margin: 0 0 6px; break-inside: avoid; }
.prose .toc a { text-decoration: none; font-weight: 600; }
.prose .toc a:hover { text-decoration: underline; }

.site-foot { background: var(--ink); color: var(--on-ink-mute); padding: 56px max(20px, calc((100% - 1200px) / 2)) 48px; }
.site-foot .row { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.site-foot .tag { margin: 14px 0 0; font-size: 15px; line-height: 1.5; font-weight: 500; }
.site-foot nav { display: flex; gap: 64px; flex-wrap: wrap; }
.site-foot nav div { display: flex; flex-direction: column; gap: 10px; }
.site-foot nav p { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.site-foot nav a { font-size: 15px; font-weight: 600; color: var(--on-ink); text-decoration: none; }
.site-foot nav a:hover { color: var(--on-ink-soft); }
.site-foot .legal { margin: 36px 0 0; font-size: 13px; line-height: 1.5; font-weight: 500; color: #8C887F; }

/* The wordmark: "tell." on two crossed marker strokes. */
.wordmark { position: relative; display: inline-block; flex-shrink: 0; width: 78.7px; height: 38.7px; text-decoration: none; }
.wordmark .strokes { position: absolute; inset: 0; isolation: isolate; }
.wordmark .s1 { position: absolute; left: 0; top: 0; width: 72.5px; height: 20.2px; transform: rotate(2.4deg); }
.wordmark .s2 { position: absolute; left: 5px; top: 14.3px; width: 73.7px; height: 24.4px; transform: rotate(-1.6deg); mix-blend-mode: multiply; }
.wordmark .s1 > span, .wordmark .s2 > span { position: absolute; inset: 0; }
.wordmark .word { position: absolute; left: 7.8px; top: 4px; font-family: var(--display); font-size: 36px; line-height: 1; font-weight: 900; letter-spacing: -0.065em; color: var(--ink); white-space: nowrap; }
