/* Hallmark · macrostructure: 14 Narrative Workflow · pages: / and /en/ */
/* Hallmark · macrostructure: 02 Long Document · pages: /confidentialite, /conditions, /en/privacy, /en/terms */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  /* Neutrals lean toward the pale green of columnar ledger paper. */
  --page: oklch(0.93 0.012 150);
  --card: oklch(0.98 0.006 150);
  --ink: oklch(0.21 0.012 150);
  --ink-soft: oklch(0.4 0.012 150);
  --rule: oklch(0.8 0.012 150);
  --rule-strong: oklch(0.21 0.012 150);
  --accent: oklch(0.42 0.075 158);

  --display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --text: "Source Serif 4", Georgia, "Times New Roman", serif;

  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --s9: 96px;

  --wrap: 72rem;
  --measure: 62ch;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

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

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.6;
  font-size-adjust: from-font;
  font-optical-sizing: auto;
  font-variant-numeric: lining-nums;
}

p,
li,
blockquote {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-stretch: 112%;
  text-wrap: balance;
  margin: 0;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 150ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  a:hover {
    color: var(--ink);
  }
}
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--s5);
}

.skip {
  position: absolute;
  left: var(--s4);
  top: -100px;
  background: var(--card);
  color: var(--ink);
  padding: var(--s2) var(--s3);
}
.skip:focus {
  top: var(--s4);
}

/* Header and footer, shared by every page. */

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
  padding-block: var(--s5);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}
.brand img {
  width: 28px;
  height: 28px;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s2) var(--s5);
  font-family: var(--display);
  font-size: 0.9375rem;
}
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
}
.site-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
}

.site-foot {
  margin-top: var(--s9);
  border-top: 1px solid var(--rule);
  padding-block: var(--s6) var(--s7);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s4) var(--s6);
  font-family: var(--display);
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.site-foot p {
  margin: 0;
}
.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s5);
}
.site-foot a {
  color: var(--ink-soft);
}

/* Home: a numbered process timeline. */

.intro {
  padding-block: var(--s8) var(--s7);
}
.stage-index {
  margin: 0 0 var(--s6);
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s5);
  font-family: var(--display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.stage-index span {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  margin-right: var(--s1);
}
.intro h1 {
  font-size: clamp(2.5rem, 1.4rem + 4.4vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 750;
  max-width: 17ch;
}
.lede {
  margin: var(--s6) 0 0;
  max-width: var(--measure);
  font-size: clamp(1.1875rem, 1.1rem + 0.35vw, 1.375rem);
  line-height: 1.55;
}
.status {
  margin: var(--s5) 0 0;
  font-family: var(--display);
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.stages {
  margin: 0;
  padding: 0;
  list-style: none;
}
.stage {
  display: grid;
  grid-template-columns: minmax(0, 11rem) minmax(0, 1fr) minmax(0, 24rem);
  gap: var(--s5) var(--s7);
  align-items: start;
  border-top: 3px solid var(--rule-strong);
  padding-block: var(--s6) var(--s8);
}
.stage-num {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(3rem, 2rem + 3.6vw, 5rem);
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.stage-body h2 {
  font-size: clamp(1.5rem, 1.25rem + 0.9vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 700;
}
.stage-body p {
  margin: var(--s4) 0 0;
  max-width: 52ch;
}

/* The small ledger artifact beside each stage. */
.artifact {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: var(--s4) var(--s5);
  font-family: var(--display);
  font-size: 0.875rem;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
.artifact .cap {
  display: block;
  margin-bottom: var(--s2);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.artifact dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s1) var(--s4);
}
.artifact dt {
  color: var(--ink-soft);
}
.artifact dd {
  margin: 0;
  text-align: right;
}
.artifact .sum {
  margin-top: var(--s3);
  padding-top: var(--s3);
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  gap: var(--s4);
  font-weight: 700;
}
.artifact ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.artifact li + li {
  margin-top: var(--s1);
}
.artifact .path {
  margin: 0;
  word-break: break-word;
}
.doc code {
  font-family: var(--display);
  font-size: 0.9em;
}
.artifact .actions {
  margin-top: var(--s4);
  display: flex;
  justify-content: flex-end;
  gap: var(--s2);
}
.artifact .btn {
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: var(--s1) var(--s3);
  color: var(--ink-soft);
}
.artifact .btn-primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--card);
}

.closing {
  border-top: 3px solid var(--rule-strong);
  padding-top: var(--s6);
  display: grid;
  grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
  gap: var(--s5) var(--s7);
}
.closing h2 {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-stretch: 100%;
  padding-top: var(--s1);
}
.closing p {
  margin: 0 0 var(--s4);
  max-width: var(--measure);
}

@media (max-width: 60rem) {
  .stage {
    grid-template-columns: minmax(0, 7rem) minmax(0, 1fr);
  }
  .artifact {
    grid-column: 2;
  }
}
@media (max-width: 40rem) {
  .site-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .stage,
  .closing {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s4);
  }
  .artifact {
    grid-column: auto;
  }
  .stage {
    padding-block: var(--s5) var(--s7);
  }
}

/* Legal pages: one column of prose, heads inline with the text. */

.doc {
  max-width: var(--measure);
  margin-inline: auto;
  padding-top: var(--s7);
}
.doc h1 {
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 750;
}
.doc .updated {
  margin: var(--s3) 0 var(--s7);
  font-family: var(--display);
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.doc p,
.doc li {
  line-height: 1.7;
}
.doc p {
  margin: 0 0 var(--s4);
}
.doc .lede {
  margin: 0 0 var(--s6);
  font-size: 1.25rem;
  line-height: 1.6;
}
.doc h2 {
  margin: var(--s7) 0 var(--s3);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-stretch: 100%;
}
.doc ul {
  margin: 0 0 var(--s4);
  padding-left: 1.2em;
}
.doc li + li {
  margin-top: var(--s2);
}
.doc blockquote {
  margin: var(--s5) 0;
  padding: var(--s4) var(--s5);
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 10px;
}
.doc blockquote p:last-child {
  margin-bottom: 0;
}

.notfound {
  padding-block: var(--s9);
  max-width: var(--measure);
}
.notfound h1 {
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  line-height: 1.08;
}
.notfound p {
  margin-top: var(--s4);
}
