@font-face {
  font-family: 'Bitter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/bitter-600-latin.ba19f43b.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bitter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/bitter-600-latin-ext.ca598863.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bitter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/bitter-700-latin.d83c4fdd.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bitter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/bitter-700-latin-ext.6d2763c0.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/karla-400-latin.e77a86a6.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/karla-400-latin-ext.491a2dcc.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/karla-500-latin.5ff68018.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/karla-500-latin-ext.2fbf20c9.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/karla-600-latin.f29a052b.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/karla-600-latin-ext.d4a82b41.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/karla-700-latin.f15ab75b.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/karla-700-latin-ext.fbaeb4a7.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ===========================================================================
   Mobile first. Every rule below is the phone's; a wider screen adds to them
   with min-width, and nothing anywhere unpicks a desktop layout for a phone.
   =========================================================================== */

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

html {
  /* Set per page from the locale manifest; hyphenation needs the real tag, and
     French needs it more than English at a phone's measure. */
  hyphens: auto;
  /* Stop iOS inflating text in landscape, which breaks a measure set in ch. */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--hx-ground, #0a0c10);
  color: var(--hx-ink-ground, #d6d2c9);
  font-family: 'Karla', 'Avenir Next', system-ui, sans-serif;
  font-size: clamp(15px, 13.30px + 0.435vw, 18px);
  line-height: 1.4;
  /* Every number this site prints is a figure in a sentence, and a figure that
     changes width as it changes value is a figure that makes a line jump. */
  font-variant-numeric: tabular-nums;
  /* A long unbroken token - a URL in a legal page - must not push the layout
     wider than the phone. */
  overflow-wrap: break-word;
}

h1, h2, h3 {
  font-family: 'Bitter', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  line-height: 1.1;
  color: var(--hx-ink-ground-strong, #f2efe8);
  margin: 24px 0 14px;
  /* A display face at a heading size gets loose at the phone end. */
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(30px, 26.61px + 0.870vw, 36px); }
h2 { font-size: clamp(19px, 16.74px + 0.580vw, 23px); }
h3 { font-size: clamp(16px, 13.74px + 0.580vw, 20px); font-weight: 600; }

p, ul { margin: 0 0 14px; }
ul { padding-left: 16px; }

/* Tables. The privacy policy's retention overview is the one that matters: four
   columns of prose, read on a phone, in the document that tells somebody how
   long their data is kept.

   The wrapper scrolls, never the page. A table wide enough to need it would
   otherwise widen the whole document body, and a body that scrolls sideways
   breaks every page sharing this layout rather than the one table that caused
   it. */
.table-scroll {
  overflow-x: auto;
  margin: 0 0 14px;
  /* The scroll region is focusable so a keyboard can reach it; without this an
     overflow container is scrollable by pointer only. */
  border-radius: 4px;
}
table {
  border-collapse: collapse;
  /* auto, not 100%: a four-column table forced to the container's width
     squeezes columns into one word per line. It takes the width it needs and
     the wrapper scrolls. */
  width: auto;
  min-width: 100%;
  font-size: clamp(14px, 12.30px + 0.435vw, 17px);
  line-height: 1.4;
}
th, td {
  padding: 6px 8px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--hx-card-border, rgba(255,255,255,0.55));
}
th {
  font-weight: 600;
  color: var(--hx-ink-strong, #141210);
  white-space: nowrap;
}
/* The last row's rule would otherwise float under the table with nothing
   beneath it. */
tbody tr:last-child td { border-bottom: none; }

img, svg, video {
  /* The single rule that stops an image widening the page on a phone. Every
     image the site ever ships also carries width and height attributes, so the
     space is reserved before it loads and the text below does not jump. */
  max-width: 100%;
  height: auto;
}

/* A link on the dark ground wears the accent, which clears AA there. */
a {
  color: var(--hx-accent, #c08c31);
  text-underline-offset: 0.2em;
}
a:hover { text-decoration-thickness: 2px; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
}

/* The client's focus ring, visible on the world and on paper alike. Never
   removed, never replaced by an outline of the page's own. */
:focus-visible {
  outline: 2px solid var(--hx-accent, #c08c31);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--hx-card-bg, #f8f3e8);
  color: var(--hx-ink-strong, #141210);
  padding: 10px 14px;
  border-radius: 6px;
  z-index: 10;
}
.skip-link:focus { left: 16px; }

/* ---------------------------------------------------------------------------
   The rail. The site's header is the client's dark plank, as every screen's
   header is, and its links sit on no chrome bar of their own (plan 4.4).

   On a phone it stacks: wordmark, then navigation, then the language switcher.
   It does not become a hamburger, and that is deliberate - four items and two
   languages fit, and a menu behind a button is a menu most people never open.
   --------------------------------------------------------------------------- */

.rail {
  background: var(--hx-plank-dark-bg, #0b0907);
  padding: 14px 16px;
}
.rail-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rail a { color: var(--hx-ink-dark-title, #f4f1ea); text-decoration: none; }
.rail a:hover, .rail a[aria-current="page"] { color: var(--hx-accent, #c08c31); }
.wordmark {
  font-family: 'Bitter', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  font-size: clamp(19px, 16.74px + 0.580vw, 23px);
}
.rail nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
  padding: 0;
}
/* 44 px on every link a finger has to hit, and the padding is what earns it
   rather than a height that would push the text off its own baseline. */
.rail nav a, .locales a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.kicker {
  font-size: clamp(14px, 12.30px + 0.435vw, 17px);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--hx-ink-dark-kicker, #ddd8cf);
}

/* The hexagon, from the client's own clip path. The cheapest way for this site
   to look like Hexeon and not like a template (plan 4.4). */
.hex-mark {
  display: inline-block;
  width: 10px;
  height: 14px;
  background: var(--hx-accent, #c08c31);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  vertical-align: middle;
}

/* ---------------------------------------------------------------------------
   The reading column: opaque paper, never frost. Frost is what a frame may be
   where there is a real backdrop behind it, and there is none here (plan 4.2).
   --------------------------------------------------------------------------- */

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 16px;
}
.paper {
  background: var(--hx-plank-bg, #efe9dc);
  color: var(--hx-ink-body, #2c2823);
  border: 1px solid var(--hx-card-border, rgba(255,255,255,0.55));
  border-radius: 13px;
  padding: 14px;
  max-width: 68ch;
}
.paper h1, .paper h2, .paper h3 { color: var(--hx-ink-strong, #141210); }
.paper h1:first-child { margin-top: 0; }
.paper .note { color: var(--hx-ink-kicker, #4a453d); font-size: clamp(14px, 12.30px + 0.435vw, 17px); }

/* A link on paper is ink, not accent, and it is underlined.
 *
 * The accent is #c08c31 and the paper is #efe9dc: 2.47:1, which is a link a
 * third of the readers of this page cannot pick out of the sentence around it.
 * No accent variant in the palette clears 4.5 on paper - the darkest,
 * ACCENT_BORDER, reaches 3.79 - so the colour cannot be the signal here.
 * INK_ON_ACCENT_WASH is the accent's own hue taken to INK_STRONG's luminance,
 * which is 15.5:1 on paper and keeps the link the family's colour rather than a
 * borrowed blue. The underline is what says "link", which is the client's rule
 * anyway: colour is never the only signal.
 *
 * Found by test/style.test.ts, not by looking at it. */
.paper a {
  color: var(--hx-ink-accent-wash, #181106);
  text-decoration-color: var(--hx-accent-border, #9a6d23);
  text-decoration-thickness: 1px;
}
.paper a:hover { text-decoration-thickness: 2px; }

footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 16px;
  color: var(--hx-ink-dark-kicker, #ddd8cf);
  font-size: clamp(14px, 12.30px + 0.435vw, 17px);
}
footer ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
  padding: 0;
}

.locales { display: flex; gap: 14px; list-style: none; margin: 0; padding: 0; }

/* ---------------------------------------------------------------------------
   Wider than a phone. Additive only.
   --------------------------------------------------------------------------- */

@media (min-width: 720px) {
  .rail-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
  }
  main { padding: 24px 16px; }
  .paper { padding: 24px; }
}

/* Principle 3 is a CSS rule here and not only a copy rule: nothing on this site
   moves in order to be noticed, and what little moves at all stops on request. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
a, .rail a { transition: color 120ms cubic-bezier(0.22, 0.61, 0.36, 1); }
