/*
 * Suis-je cité ? : main stylesheet.
 *
 * Art direction: a printed edition. Warm paper, blue-black ink, a highlighter yellow that marks what is
 * cited, and a halftone dot that comes from the logo. Hairline rules, a ruler under the header,
 * crop marks around the form. Fonts are self-hosted: Fraunces for headings, Schibsted Grotesk for
 * text, DM Mono for labels and figures.
 */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("/fonts/dm-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("/fonts/dm-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
/* Metric-matched fallbacks: the page does not jump when the web fonts arrive. */
@font-face {
  font-family: "Fraunces Fallback";
  src: local("Georgia");
  size-adjust: 118.74%;
  ascent-override: 82.36%;
  descent-override: 21.48%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Schibsted Fallback";
  src: local("Arial");
  size-adjust: 105.69%;
  ascent-override: 92.4%;
  descent-override: 24.39%;
  line-gap-override: 0%;
}

:root {
  --serif: "Fraunces", "Fraunces Fallback", Georgia, "Times New Roman", serif;
  --sans: "Schibsted Grotesk", "Schibsted Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  color-scheme: only light;
  --paper: #f4eee0;
  --paper-2: #ebe3d0;
  --card: #fbf8f0;
  --ink: #12141f;
  --ink-2: #4b4d5c;
  --rule: rgb(18 20 31 / 0.16);
  --rule-strong: rgb(18 20 31 / 0.85);
  --blue: #2233dd;
  --hl: #ffdc3c;
  --on-hl: #12141f;
  --red: #c42d17;
  --q: var(--blue);
  --arrow: var(--hl);
  --grain: url("/img/grain-light.svg");

  --gutter: clamp(18px, 4vw, 44px);
  --maxw: 1180px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--paper) var(--grain);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--hl); color: var(--on-hl); }

[hidden] { display: none !important; }

img, svg { max-width: 100%; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }

/* Links: ink-blue, marked with the highlighter on hover. */
a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  transition: background-color 0.15s, color 0.15s, text-decoration-color 0.15s;
}
a:hover {
  background: var(--hl);
  color: var(--on-hl);
  text-decoration-color: currentColor;
}
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -5rem;
  z-index: 50;
  padding: 0.8rem 1.1rem;
  background: var(--ink);
  color: var(--paper);
  font: 500 0.8rem/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
}
.skip:focus { top: 0.8rem; background: var(--ink); color: var(--paper); }

/* Headings */
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h3 { font-size: 1.35rem; font-weight: 650; line-height: 1.2; }
p, ul, ol { margin: 0 0 1.1em; }
p { text-wrap: pretty; }
strong { font-weight: 650; }
em {
  font-style: normal;
  font-weight: 560;
  background: linear-gradient(transparent 60%, color-mix(in srgb, var(--hl) 78%, transparent) 0);
  padding-inline: 0.08em;
}
code, kbd {
  font: 500 0.88em var(--mono);
  background: var(--paper-2);
  padding: 0.12em 0.4em;
  border-radius: 2px;
}
pre {
  margin: 1.4rem 0;
  padding: 1.1rem 1.3rem;
  overflow-x: auto;
  background: var(--ink);
  color: var(--paper);
  font: 400 0.9rem/1.65 var(--mono);
  border-radius: 2px;
}
pre code { background: none; padding: 0; color: inherit; font-size: inherit; }

/* The logotype, live text. The highlighter stroke sits behind "cité". */
.logo {
  font: 740 1.7rem/1 var(--serif);
  letter-spacing: -0.025em;
  white-space: nowrap;
}
.hl {
  position: relative;
  display: inline-block;
  isolation: isolate;
  padding-inline: 0.06em;
  color: var(--on-hl);
  line-height: 1;
  white-space: nowrap;
}
.hl::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 -0.1em -0.06em;
  background: var(--hl);
  clip-path: polygon(0 5%, 97% 0, 100% 96%, 3% 100%);
  transform: rotate(-1.6deg);
  transform-origin: 40% 50%;
}
.q { color: var(--q); margin-left: 0.16em; }

/* Header and ruler */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--paper) 93%, transparent);
  -webkit-backdrop-filter: saturate(1.3) blur(10px);
  backdrop-filter: saturate(1.3) blur(10px);
}
.bar {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 36px);
  min-height: 68px;
}
.brand { margin-right: auto; color: var(--ink); text-decoration: none; line-height: 1; }
.brand:hover { background: none; color: var(--ink); }
.menu {
  display: flex;
  gap: clamp(14px, 2.6vw, 30px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.menu li { margin: 0; }
.menu a {
  display: block;
  padding: 0.5rem 0;
  color: var(--ink);
  font: 500 0.76rem/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  background: linear-gradient(var(--hl), var(--hl)) 0 100% / 100% 0 no-repeat;
  transition: background-size 0.18s, color 0.15s;
}
.menu a:hover,
.menu a[aria-current="page"] { background-size: 100% 42%; color: var(--on-hl); }
.menu a[aria-current="page"] { color: var(--ink); }

.ruler {
  height: 11px;
  color: var(--ink);
  opacity: 0.75;
  background:
    repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 8px) 0 0 / 100% 4px no-repeat,
    repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 40px) 0 0 / 100% 8px no-repeat,
    linear-gradient(currentColor 0 0) 0 0 / 100% 1.5px no-repeat;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.05rem 1.4rem;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  background: var(--ink);
  color: var(--paper);
  font: 500 0.8rem/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.08s;
}
.btn::after {
  content: "\00bb";
  color: var(--arrow);
  font-size: 1.25em;
  line-height: 0.7;
  transition: transform 0.2s;
}
.btn:hover { background: var(--blue); border-color: var(--blue); color: var(--paper); }
.btn:hover::after { transform: translateX(4px); color: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.55; cursor: wait; }
.btn-small { padding: 0.72rem 1rem; font-size: 0.72rem; }
.btn-mail { text-transform: none; letter-spacing: 0.02em; font-size: 0.95rem; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost::after { content: none; }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* Breadcrumb and page heads */
.breadcrumb {
  margin: 1.6rem 0 0;
  color: var(--ink-2);
  font: 500 0.7rem/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0; padding: 0; list-style: none; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.3rem; }
.breadcrumb a { color: var(--ink-2); }
.breadcrumb a:hover { color: var(--on-hl); }

main .wrap > h1,
main .doc-main > h1,
.result-head h1 {
  margin: 1.2rem 0 1.5rem;
  max-width: 20ch;
  font-size: clamp(2.3rem, 1.2rem + 4.6vw, 4.4rem);
  font-weight: 760;
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.lede { max-width: 56ch; color: var(--ink-2); font-size: 1.15rem; line-height: 1.55; }
.byline {
  margin: 0 0 2.4rem;
  color: var(--ink-2);
  font: 400 0.8rem/1.6 var(--mono);
  letter-spacing: 0.02em;
}
.byline a { color: var(--ink); font-weight: 500; }
.byline time { white-space: nowrap; }

.nw { white-space: nowrap; }

/* Long reading */
.prose { max-width: 68ch; }
.prose h2 {
  margin: 3.4rem 0 1rem;
  font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.35rem);
  font-weight: 720;
}
.prose h2::before {
  content: "";
  display: block;
  width: 2.4rem;
  height: 0.5rem;
  margin-bottom: 0.9rem;
  background: var(--hl);
  transform: skewX(-24deg);
  transform-origin: left bottom;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 2.2rem 0 0.6rem; }
.prose ul:not([class]) { padding: 0; list-style: none; }
.prose ul:not([class]) > li { position: relative; margin-bottom: 0.55rem; padding-left: 1.6rem; }
.prose ul:not([class]) > li::before {
  content: "\00bb";
  position: absolute;
  left: 0;
  top: -0.05em;
  color: var(--blue);
  font-weight: 700;
}
.prose ol:not([class]) { padding: 0; list-style: none; counter-reset: n; }
.prose ol:not([class]) > li { position: relative; margin-bottom: 0.7rem; padding-left: 2.6rem; counter-increment: n; }
.prose ol:not([class]) > li::before {
  content: counter(n, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.32em;
  color: var(--blue);
  font: 500 0.78rem/1 var(--mono);
}
blockquote {
  margin: 2rem 0;
  padding: 0.2rem 0 0.2rem 1.5rem;
  border-left: 3px solid var(--hl);
  font: 500 1.3rem/1.4 var(--serif);
}
.callout {
  margin: 2rem 0;
  padding: 1.2rem 1.5rem;
  border-left: 6px solid var(--hl);
  background: color-mix(in srgb, var(--hl) 20%, var(--paper));
}
.callout p:last-child { margin-bottom: 0; }

.table-wrap {
  margin: 1.8rem 0;
  overflow-x: auto;
  border-block: 1.5px solid var(--ink);
}
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th {
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid var(--rule-strong);
  color: var(--ink-2);
  font: 500 0.7rem/1.2 var(--mono);
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
td { padding: 0.85rem 0.9rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }

/* Table of contents beside long pages */
.toc { display: none; }
.toc-title {
  margin: 0 0 0.9rem;
  color: var(--ink-2);
  font: 500 0.7rem/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: t; }
.toc li { margin: 0; counter-increment: t; }
.toc a {
  display: grid;
  grid-template-columns: 2.1rem minmax(0, 1fr);
  padding: 0.55rem 0;
  border-top: 1px solid var(--rule);
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.3;
  text-decoration: none;
}
.toc a::before {
  content: counter(t, decimal-leading-zero);
  align-self: start;
  width: fit-content;
  padding: 0.12rem 0.25rem;
  color: var(--blue);
  font: 500 0.7rem/1.2 var(--mono);
}
.toc a:hover { background: none; color: var(--blue); }
.toc a[aria-current="location"] { font-weight: 650; }
.toc a[aria-current="location"]::before { background: var(--hl); color: var(--on-hl); }

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 2rem;
  padding: clamp(1.6rem, 4.5vw, 4rem) 0 clamp(0.5rem, 2vw, 1.5rem);
}
.hero-copy { min-width: 0; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.5rem;
  color: var(--ink-2);
  font: 500 0.74rem/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 0.62rem;
  height: 0.62rem;
  background: var(--hl);
  outline: 1.5px solid var(--ink);
}
.hero h1 { margin: 0 0 1.5rem; font-weight: 760; letter-spacing: -0.03em; }
.h1-brand {
  display: block;
  font-size: clamp(3.3rem, 1rem + 10.6vw, 9.2rem);
  line-height: 0.92;
  white-space: nowrap;
}
.h1-sub {
  display: block;
  max-width: 24ch;
  margin-top: 1.2rem;
  font: 520 clamp(1.4rem, 1rem + 1.5vw, 2.05rem)/1.15 var(--serif);
  letter-spacing: -0.015em;
}
.hero .lede { margin-bottom: 0; }
.hero-art {
  position: absolute;
  z-index: -1;
  top: 8.5rem;
  right: -8vw;
  width: min(38vw, 220px);
  opacity: 0.14;
  pointer-events: none;
}
.hero-art img { display: block; width: 100%; height: auto; }

.analyse {
  position: relative;
  max-width: 46rem;
  margin: 2.4rem 0 0;
  padding: clamp(1.1rem, 2.4vw, 1.7rem);
  border: 1.5px solid var(--ink);
  background: var(--card);
}
/* Crop marks around the form, like a printer's registration marks. */
.analyse::before,
.analyse::after {
  content: "";
  position: absolute;
  inset: -13px;
  pointer-events: none;
}
.analyse::before {
  background:
    linear-gradient(var(--ink) 0 0) 0 0 / 15px 1px no-repeat,
    linear-gradient(var(--ink) 0 0) 0 0 / 1px 15px no-repeat,
    linear-gradient(var(--ink) 0 0) 100% 100% / 15px 1px no-repeat,
    linear-gradient(var(--ink) 0 0) 100% 100% / 1px 15px no-repeat;
}
.analyse::after {
  background:
    linear-gradient(var(--ink) 0 0) 100% 0 / 15px 1px no-repeat,
    linear-gradient(var(--ink) 0 0) 100% 0 / 1px 15px no-repeat,
    linear-gradient(var(--ink) 0 0) 0 100% / 15px 1px no-repeat,
    linear-gradient(var(--ink) 0 0) 0 100% / 1px 15px no-repeat;
}
.analyse label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--ink-2);
  font: 500 0.72rem/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.field { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: stretch; }
.field input[type="text"],
.field input[type="url"],
.field input[type="password"] {
  flex: 1 1 17rem;
  min-width: 0;
  padding: 0.9rem 0.1rem;
  border: 0;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font: 500 1.05rem/1.2 var(--mono);
  transition: background-color 0.15s, padding 0.15s, border-color 0.15s;
}
.field input::placeholder { color: var(--ink-2); opacity: 0.8; }
.field input:focus {
  padding-inline: 0.6rem;
  border-bottom-color: var(--blue);
  background: color-mix(in srgb, var(--hl) 55%, transparent);
}
.hint { margin: 1.1rem 0 0; color: var(--ink-2); font-size: 0.92rem; }
.access { margin-top: 1.1rem; }
.notice {
  margin: 1rem 0 0;
  padding: 0.8rem 1rem;
  border-left: 4px solid var(--blue);
  background: var(--paper-2);
}
.notice.error {
  border-left-color: var(--red);
  background: color-mix(in srgb, var(--red) 12%, var(--paper));
}
.notice[hidden] { display: none; }

/* The readout: one real analysis, 30 expressions by 3 passes. */
.readout {
  position: relative;
  margin: clamp(2rem, 4vw, 3.4rem) 0 0;
  padding-top: 1.1rem;
  border-top: 1.5px solid var(--ink);
}
.readout-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
  margin-bottom: 1.2rem;
}
.readout-head h2 { font-size: 1.5rem; letter-spacing: -0.015em; }
.readout-head p {
  margin: 0;
  align-self: center;
  color: var(--ink-2);
  font: 500 0.72rem/1.3 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.readout-plot { position: relative; container-type: inline-size; }
.rd { display: block; width: 100%; height: auto; overflow: visible; animation: reveal 1.5s 0.5s cubic-bezier(0.3, 0.6, 0.2, 1) backwards; }
.rd-c { fill: var(--blue); }
.rd-l { fill: none; stroke: var(--blue); stroke-width: 1.7; }
.rd-a { fill: var(--ink); opacity: 0.32; }
.rd-n { fill: none; stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 2 2; }
.scan {
  position: absolute;
  top: -0.45rem;
  bottom: -0.45rem;
  left: 0;
  width: 3px;
  background: var(--hl);
  box-shadow: 0 0 0 1px var(--ink);
  opacity: 0;
  animation: sweep 1.5s 0.5s cubic-bezier(0.3, 0.6, 0.2, 1) both;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
  font: 500 0.7rem/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.legend li { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0; }
.legend i { display: inline-block; width: 0.8rem; height: 0.8rem; }
.legend .c i { background: var(--blue); }
.legend .l i { border: 1.7px solid var(--blue); }
.legend .a i { width: 0.34rem; height: 0.34rem; margin: 0 0.23rem; background: var(--ink); opacity: 0.32; }
.legend .n i { border: 1px dashed var(--ink-2); }
.readout figcaption { max-width: 64ch; margin-top: 1rem; color: var(--ink-2); font-size: 0.95rem; }

/* Home sections: a label on the left, the matter on the right. */
.block {
  display: grid;
  gap: 1.4rem 3rem;
  margin-top: clamp(3.2rem, 7vw, 6.5rem);
  padding-top: 1.3rem;
  border-top: 1.5px solid var(--ink);
}
.block > h2 {
  font-size: clamp(1.9rem, 1.2rem + 2.2vw, 2.9rem);
  font-weight: 740;
  letter-spacing: -0.025em;
}
.block-body { min-width: 0; }
.block-body > :last-child { margin-bottom: 0; }
.features, .steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0 2rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}
.steps { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0 1.6rem; }
.features { counter-reset: f; }
.features li {
  counter-increment: f;
  margin: 0;
  padding: 1.1rem 0 1.7rem;
  border-top: 1px solid var(--rule-strong);
}
.features li::before {
  content: counter(f, decimal-leading-zero);
  display: block;
  margin-bottom: 0.8rem;
  color: var(--blue);
  font: 500 0.78rem/1 var(--mono);
  letter-spacing: 0.08em;
}
.features h3, .steps h3 { margin-bottom: 0.5rem; }
.features p, .steps p { margin: 0; color: var(--ink-2); }
.steps { counter-reset: s; }
.steps li {
  counter-increment: s;
  margin: 0;
  padding: 0 0 1.5rem;
}
.steps li::before {
  content: counter(s);
  display: block;
  margin-bottom: 0.9rem;
  color: var(--hl);
  font: 800 5.6rem/0.85 var(--serif);
  -webkit-text-stroke: 1.5px var(--ink);
  paint-order: stroke fill;
}

.faq { margin: 0; }
.faq details { border-top: 1px solid var(--rule-strong); }
.faq details:last-child { border-bottom: 1px solid var(--rule-strong); }
.faq summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem 0;
  cursor: pointer;
  list-style: none;
  font: 640 1.2rem/1.25 var(--serif);
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 0.9rem;
  height: 0.9rem;
  background:
    linear-gradient(currentColor 0 0) center / 100% 2px no-repeat,
    linear-gradient(currentColor 0 0) center / 2px 100% no-repeat;
  transition: transform 0.25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p { max-width: 62ch; margin: 0; padding: 0 0 1.4rem; color: var(--ink-2); }

/* Author */
.author-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: center;
  margin: 4.5rem 0 0;
  padding: 1.5rem;
  border: 1.5px solid var(--ink);
  background: var(--card);
}
.author-box h2 { margin: 0 0 0.4rem; font-size: 1.6rem; }
.author-box p { margin: 0 0 0.5rem; }
.author-box p:last-child { margin-bottom: 0; }
.duo {
  display: block;
  flex: none;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 50%;
  background: var(--hl);
  line-height: 0;
}
.duo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: grayscale(1) contrast(1.15);
  mix-blend-mode: multiply;
}
.author-box .duo { width: 104px; }
.profile {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  margin: 0 0 1rem;
}
.profile .duo { width: 220px; }
.links { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.links li { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 1.6rem; padding: 0; list-style: none; }
.chips li {
  margin: 0;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font: 500 0.72rem/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Guides index */
.guides { margin: 2rem 0 0; padding: 0; list-style: none; counter-reset: g; }
.guides li { margin: 0; }
.guides a.card {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule-strong);
  color: inherit;
  text-decoration: none;
  counter-increment: g;
}
.guides li:last-child a.card { border-bottom: 1px solid var(--rule-strong); }
.guides a.card::before {
  content: counter(g, decimal-leading-zero);
  padding-top: 0.55rem;
  color: var(--blue);
  font: 500 0.78rem/1 var(--mono);
  letter-spacing: 0.08em;
}
.guides a.card:hover { background: none; color: inherit; }
.guides .card h2 {
  display: inline;
  margin: 0;
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
  font-weight: 700;
  background: linear-gradient(var(--hl), var(--hl)) 0 88% / 0 38% no-repeat;
  transition: background-size 0.25s;
}
.guides a.card:hover h2 { background-size: 100% 38%; }
.guides .card p { margin: 0.5rem 0 0; grid-column: 2; color: var(--ink-2); }
.guides .card > h2 { grid-column: 2; }

/* Result page */
.result-head { margin: 0 0 0.5rem; }
.result-head .lede { margin: 0; overflow-wrap: anywhere; }
.share { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; margin: 1.2rem 0 1.8rem; }
.share label { flex: 1 1 100%; color: var(--ink-2); font: 500 0.72rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; }
.share input {
  flex: 1 1 18rem;
  min-width: 0;
  padding: 0.7rem 0.8rem;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  background: var(--card);
  color: var(--ink);
  font: 400 0.9rem/1.2 var(--mono);
}
.status-box {
  margin: 1.4rem 0;
  padding: 1.1rem 1.3rem;
  border: 1.5px solid var(--ink);
  background: var(--card);
}
.status-box p { margin: 0; }
.status-box ul { margin: 0.7rem 0 0; padding-left: 1.2rem; }
.error-text { color: var(--red); }

/* Footer: a deeper sheet of the same paper, under a highlighter rule. */
.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: clamp(4rem, 9vw, 8rem);
  border-top: 6px solid var(--hl);
  background: var(--paper-2);
  color: var(--ink);
  font-size: 0.95rem;
}
.site-footer .ruler { position: absolute; inset: 0 0 auto; opacity: 0.35; }
.footer-top { position: relative; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem); }
.footer-logo { margin: 0 0 1.9rem; font: 740 clamp(2.8rem, 1rem + 8vw, 7rem)/1 var(--serif); letter-spacing: -0.03em; }
.footer-tag { max-width: 34ch; margin: 0; color: var(--ink-2); font-size: 1.05rem; }
.footer-art {
  position: absolute;
  z-index: -1;
  top: 1.6rem;
  right: 0;
  width: min(26vw, 200px);
  height: auto;
  opacity: 0.92;
  pointer-events: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 2rem;
  padding: 1.6rem 0 0;
  border-top: 1px solid var(--rule-strong);
}
.footer-title {
  margin: 0 0 0.8rem;
  color: var(--ink-2);
  font: 500 0.7rem/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: 0 0 0.45rem; }
.site-footer a { color: var(--ink); }
.site-footer a:hover { background: var(--hl); color: var(--on-hl); }
.site-footer p { margin: 0 0 0.6rem; }
.legal-line { margin: 2.2rem 0 0; padding: 1.2rem 0 1.8rem; border-top: 1px solid var(--rule); color: var(--ink-2); font-size: 0.85rem; }

@keyframes reveal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes sweep {
  0% { opacity: 1; transform: translateX(0); }
  92% { opacity: 1; }
  100% { opacity: 0; transform: translateX(100cqw); }
}
@keyframes swipe {
  from { transform: rotate(-1.6deg) scaleX(0); }
  to { transform: rotate(-1.6deg) scaleX(1); }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.hero .hl::before { transform-origin: left center; animation: swipe 0.8s 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; }
.hero-copy > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
.hero-copy > h1 { animation: none; }
.hero-copy > :nth-child(2) { animation-delay: 0.05s; }
.hero-copy > :nth-child(3) { animation-delay: 0.12s; }
.hero-copy > :nth-child(4) { animation-delay: 0.2s; }

@media (min-width: 1120px) {
  .doc { display: grid; grid-template-columns: minmax(0, 1fr) 15rem; gap: 4.5rem; align-items: start; }
  .toc { display: block; position: sticky; top: 7rem; margin-top: 3.4rem; }
}

@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.75fr); align-items: center; gap: 3rem; }
  .hero-art { position: static; z-index: auto; width: auto; opacity: 1; }
  .hero-art img { width: min(100%, 360px); margin-left: auto; animation: rise 0.9s 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
  .block { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .block > h2 { position: sticky; top: 6.5rem; align-self: start; }
}

/* Tables of the content: on a phone, each row becomes a small card whose cells carry their column label. */
@media (max-width: 640px) {
  .table-wrap { overflow: visible; border-block: 0; }
  .table-wrap table,
  .table-wrap tbody,
  .table-wrap tr,
  .table-wrap td { display: block; width: 100%; }
  .table-wrap thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .table-wrap tr { padding: 1rem 0; border-top: 1.5px solid var(--ink); }
  .table-wrap tr:last-child { border-bottom: 1.5px solid var(--ink); }
  .table-wrap td { padding: 0.35rem 0; border: 0; }
  .table-wrap td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.15rem;
    color: var(--ink-2);
    font: 500 0.66rem/1.2 var(--mono);
    text-transform: uppercase;
    letter-spacing: 0.09em;
  }
}

@media (max-width: 720px) {
  .footer-art { top: 2rem; width: min(30vw, 130px); opacity: 0.5; }
  .bar { min-height: 60px; }
  .logo { font-size: 1.4rem; }
  .bar > .btn { display: none; }
  .menu li:nth-child(3) { display: none; }
  .author-box { grid-template-columns: 1fr; }
  .profile { grid-template-columns: 1fr; }
  .profile .duo { width: 160px; }
  .analyse::before, .analyse::after { inset: -9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Print: always the light edition, whatever the screen preference, without the chrome of the site. */
@media print {
  :root {
    color-scheme: light;
    --paper: #fff;
    --paper-2: #f2f2f2;
    --card: #fff;
    --ink: #000;
    --ink-2: #333;
    --rule: rgb(0 0 0 / 0.2);
    --rule-strong: rgb(0 0 0 / 0.8);
    --blue: #1a28b8;
    --red: #b02311;
    --hl: #ffe27a;
  }
  .site-header, .site-footer, .skip, .share, .hero-art, .scan, .toc { display: none; }
  body { background: #fff; color: #000; }
  a { color: #000; }
}
