/* Sabo + Sabo — one typeface (Instrument Sans, self-hosted), black on white. */

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("/fonts/InstrumentSans-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("/fonts/InstrumentSans-latin.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;
}

/* Wordmark "+" only: Anton (SIL OFL), subset to the single glyph */
@font-face {
  font-family: "Anton Plus";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("/fonts/Anton-plus.woff2") format("woff2");
  unicode-range: U+002B;
}

:root {
  --ink: #000;
  --paper: #fff;
  --gut: max(20px, env(safe-area-inset-left, 0px));
  --gut-r: max(20px, env(safe-area-inset-right, 0px));
  --f: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: light;
}
/* Dark mode: same identity, inverted. System setting by default, footer toggle overrides it. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --ink: #fff; --paper: #000; color-scheme: dark; }
}
:root[data-theme="dark"] { --ink: #fff; --paper: #000; color-scheme: dark; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
}
p, h1, h2, dl, dd, dt { margin: 0; }
h1, h2 { font: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.page {
  min-height: 100%;
  display: flex; flex-direction: column; gap: 28px;
  padding: 20px var(--gut-r) 20px var(--gut);
}
@media (min-width: 600px) { :root { --gut: max(32px, env(safe-area-inset-left, 0px)); --gut-r: max(32px, env(safe-area-inset-right, 0px)); } .page { padding-block: 28px; } }
@media (min-width: 1024px) { :root { --gut: max(20px, env(safe-area-inset-left, 0px)); --gut-r: max(20px, env(safe-area-inset-right, 0px)); } .page { padding-block: 20px; } }

/* Small text (−7 %): ~14px on touch screens, ~13px from desktop up */
.small, .head, .link, .foot { font-size: 13.95px; }
@media (min-width: 1024px) { .small, .head, .link, .foot { font-size: 13.02px; } }
/* Contact link under the intro: +10 % */
.text .link { font-size: 15.35px; }
@media (min-width: 1024px) { .text .link { font-size: 14.32px; } }

.head { display: flex; justify-content: space-between; align-items: flex-start; font-weight: 500; margin-top: -3px; }
.head .home { text-decoration: none; padding-top: 3px; }

/* Underlined links; 44px touch targets, visual size unchanged */
.link {
  display: inline-block; padding: 13px 0; margin: -13px 0; min-height: 44px;
  font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}

/* Language menu: "FR +" opens the other codes below; the Anton "+" turns into "×".
   Paddings enlarge tap targets, negative margins keep the visual position. */
.lang { position: relative; margin-left: auto; }
.lang-trigger { display: inline-flex; align-items: baseline; gap: 6px; padding: 10px 0 10px 24px; margin: -10px 0; line-height: 1.25; }
.lang-trigger .plus { display: inline-block; font-family: "Anton Plus", var(--f); font-weight: 400; transition: transform 0.2s; }
.lang.open .lang-trigger .plus { transform: rotate(45deg); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 1px); margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; align-items: flex-end; }
.lang:not(.open) .lang-menu { display: none; }
.lang-menu button { padding: 5px 0 5px 24px; line-height: 1.25; opacity: 0.35; }
@media (prefers-reduced-motion: no-preference) {
  .lang.open .lang-menu { animation: lang-drop 0.16s ease-out; }
}
@media (prefers-reduced-motion: reduce) { .lang-trigger .plus { transition: none; } }
@keyframes lang-drop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.lang-menu button:focus-visible { opacity: 1; }
@media (hover: hover) {
  .link:hover { text-decoration-thickness: 2px; }
  .lang-menu button:hover { opacity: 1; }
}

.wm { font-weight: 600; letter-spacing: -0.04em; white-space: nowrap; }
.mode { width: 44px; height: 44px; margin: -17px; display: grid; place-items: center; }
.mode i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--ink); background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); transition: transform 0.3s; }
:root[data-theme="dark"] .mode i { transform: rotate(180deg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mode i { transform: rotate(180deg); } }
@media (prefers-reduced-motion: reduce) { .mode i { transition: none; } }
.wm .plus { font-family: "Anton Plus", var(--f); font-weight: 400; letter-spacing: 0; }

/* Home */
.text { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(16px, 2.5vw, 28px); padding-top: clamp(8px, 4vh, 48px); }
/* Fluid scale (−7 %): ~25px phone, ~32px tablet portrait, ~41px laptop, max 44.6px */
.intro {
  font-size: clamp(24.55px, 1.786vw + 17.86px, 44.64px); line-height: 1.12; letter-spacing: -0.02em; font-weight: 400;
  max-width: 30ch; text-wrap: pretty; hyphens: manual; overflow-wrap: break-word;
}
.foot { margin-top: auto; padding-top: 48px; line-height: 1.4; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
dt { font-weight: 600; }
dd { margin: 0; }
