/* Alyansa SA — alyansa.com
   Tokens ------------------------------------------------------------ */
:root {
  --paper: #fafafa;
  --ink: #000000;
  --grey: #6e6e6e;
  --line: #dcdcdc;
  --red: #d40000;
  --measure: 34ch;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --indent: clamp(0rem, 8vw, 9rem);
}

@font-face {
  font-family: "Hanken";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("assets/fonts/hanken-grotesk-latin-300-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Hanken";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Hanken";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2");
}

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

html {
  background: var(--paper);
  color: var(--ink);
  font-family: "Hanken", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; text-underline-offset: 0.2em; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Language switch: only the active language is rendered ------------- */
:root[lang="fr"] [lang="en"],
:root[lang="en"] [lang="fr"] { display: none !important; }

/* Header -------------------------------------------------------------- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem var(--gutter);
}
.mark { display: inline-flex; align-items: center; gap: 0.75rem; font-weight: 500; }
.mark img { width: 34px; height: auto; }
.mark:hover, .mark:focus-visible { text-decoration: none; }

.lang { display: flex; gap: 0.25rem; }
.lang button {
  font: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  background: none;
  border: 0;
  padding: 0.35rem 0.5rem;
  color: var(--grey);
  cursor: pointer;
}
.lang button[aria-current="true"] { color: var(--ink); font-weight: 500; }
.lang button:hover { color: var(--ink); }

/* Hero: the photograph dissolves into the paper --------------------- */
.hero {
  margin: clamp(1rem, 3vw, 2.5rem) auto 0;
  width: min(100%, 1120px);
  padding: 0 var(--gutter);
  text-align: center;
}
.hero picture, .hero img {
  width: 100%;
  margin: 0 auto;
}
.hero picture {
  display: block;
  -webkit-mask-image: radial-gradient(ellipse 80% 78% at 50% 42%, #000 56%, transparent 100%);
          mask-image: radial-gradient(ellipse 80% 78% at 50% 42%, #000 56%, transparent 100%);
  opacity: 0;
  animation: reveal 1.8s ease-out forwards;
}
.hero figcaption {
  margin-top: 1.25rem;
  color: var(--grey);
  font-size: 1rem;
  opacity: 0;
  animation: reveal 1.2s ease-out 1.1s forwards;
}
@keyframes reveal { to { opacity: 1; } }

/* Text blocks: left-aligned, indented, short measure ----------------- */
main { flex: 1; }
.block {
  padding: clamp(3.5rem, 9vw, 7rem) var(--gutter) 0 calc(var(--gutter) + var(--indent));
  max-width: 60rem;
}
.statement p {
  margin: 0;
  max-width: var(--measure);
  font-size: clamp(1.45rem, 2.6vw, 2.15rem);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.005em;
}
.statement p + p { margin-top: 1em; }

.contact p { margin: 0 0 1.5rem; max-width: var(--measure); color: var(--grey); }
.button {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  border: 1px solid var(--ink);
  font-weight: 500;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.button:hover, .button:focus-visible {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  text-decoration: none;
}

/* Footer -------------------------------------------------------------- */
footer {
  margin-top: clamp(4rem, 10vw, 8rem);
  padding: 1.5rem var(--gutter) 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.5rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--grey);
}
footer nav { display: flex; gap: 1.5rem; }
footer a:hover { color: var(--ink); }

/* Legal page ---------------------------------------------------------- */
.legal { padding-bottom: 2rem; }
.legal h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 300; margin: 0 0 3rem; letter-spacing: -0.005em; }
.legal h2 { font-size: 1.15rem; font-weight: 500; margin: 3.5rem 0 1.25rem; }
.legal h3 { font-size: 1rem; font-weight: 500; margin: 1.75rem 0 0.4rem; }
.legal p, .legal dd { max-width: 62ch; margin: 0 0 0.85rem; }
.legal dl { margin: 0; }
.legal dt { color: var(--grey); font-size: 0.85rem; margin-top: 1rem; }
.legal dd { margin-left: 0; }
.legal a { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-color: var(--line); }
.legal a:hover { text-decoration-color: var(--red); }
.legal .back { display: inline-block; margin-bottom: 2.5rem; color: var(--grey); text-decoration: none; }
.legal .back:hover { color: var(--ink); }

/* Motion off ----------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .hero picture, .hero figcaption { animation: none; opacity: 1; }
  .button { transition: none; }
}
