/* ==========================================================================
   kruel.fr — feuille de style unique (accueil + 404)
   Identité : noir charbon, rouge braise, typographie condensée massive.
   Polices auto-hébergées : aucune requête vers un tiers.
   ========================================================================== */

/* --------------------------------------------------------------- polices */

@font-face {
  font-family: "Archivo Black";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/archivo-black-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;
}

@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url("/fonts/oswald-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;
}

/* ---------------------------------------------------------------- jetons */

:root {
  --bg: #000;
  --ink: #fff;
  --red: #d81f0f;
  --grey: #7d7873;
  --grey-d: #6a6560;
  --line: #1f1d1b;
  --font-display: "Archivo Black", "Haettenschweiler", "Arial Narrow", sans-serif;
  --font-text: "Oswald", "Roboto Condensed", system-ui, sans-serif;
  color-scheme: dark;
}

/* ----------------------------------------------------------------- reset */

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  display: flex;
  justify-content: center;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--red);
  color: #000;
}

.wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 660px;
  min-height: 100dvh;
  padding: clamp(30px, 8vw, 72px) clamp(20px, 5vw, 26px) 48px;
}

/* ---------------------------------------------------------------- entête */

.mark {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: clamp(26px, 7vw, 48px);
}

.mark svg {
  flex: 0 0 auto;
  width: 22px;
  height: auto;
  fill: var(--red);
}

.mark span {
  color: var(--grey);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(58px, 17.5vw, 118px);
  line-height: 0.78;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  transform: scaleX(0.88);
  transform-origin: left;
}

.brand-title em {
  display: block;
  color: var(--red);
  font-style: normal;
}

.tag {
  margin-top: 24px;
  color: var(--grey);
  font-weight: 600;
  font-size: clamp(10px, 2.8vw, 12.5px);
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.rule {
  height: 3px;
  margin-top: 26px;
  background: var(--ink);
}

/* ----------------------------------------------------------- liste liens */

.links {
  display: flex;
  flex-direction: column;
}

.row {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: clamp(17px, 4.4vw, 23px) 4px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: padding-left 0.18s ease, color 0.18s ease;
}

.row::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  width: 0;
  background: var(--red);
  transition: width 0.18s ease;
  content: "";
}

.row > * {
  position: relative;
  z-index: 1;
}

.row:last-of-type {
  border-bottom: 3px solid var(--ink);
}

.num {
  flex: 0 0 26px;
  color: var(--grey);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.14em;
  transition: color 0.18s;
}

.name {
  flex: 1;
  min-width: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(27px, 7.6vw, 46px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  transform: scaleX(0.9);
  transform-origin: left;
}

.meta {
  color: var(--grey);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.18s;
}

.row.vip .meta {
  color: var(--red);
}

/* Le survol n'est appliqué qu'aux pointeurs réels : sur mobile il resterait
   collé après le tap. Le tactile passe par :active, le clavier par
   :focus-visible. */

.row:focus-visible {
  outline: none;
}

@media (hover: hover) {
  .row:hover {
    padding-left: 20px;
  }

  .row:hover::before {
    width: 100%;
  }

  .row:hover .num,
  .row:hover .name,
  .row:hover .meta {
    color: #000;
  }
}

.row:focus-visible,
.row:active {
  padding-left: 20px;
}

.row:focus-visible::before,
.row:active::before {
  width: 100%;
}

.row:focus-visible .num,
.row:focus-visible .name,
.row:focus-visible .meta,
.row:active .num,
.row:active .name,
.row:active .meta {
  color: #000;
}

/* ------------------------------------------------------------------- 404 */

.error-code {
  color: var(--red);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(96px, 30vw, 210px);
  line-height: 0.74;
  letter-spacing: -0.05em;
  transform: scaleX(0.88);
  transform-origin: left;
}

.lead {
  margin-top: 26px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 7vw, 44px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  transform: scaleX(0.9);
  transform-origin: left;
}

.error-note {
  max-width: 44ch;
  margin-top: 20px;
  color: var(--grey);
  font-weight: 600;
  font-size: clamp(10px, 2.8vw, 12.5px);
  line-height: 2.1;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------------ pied */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 20px;
  align-items: center;
  margin-top: auto;
  padding-top: 32px;
  color: var(--grey-d);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.site-footer .adult {
  color: var(--red);
}

.site-footer a {
  color: var(--grey-d);
  text-decoration: none;
  transition: color 0.18s;
}

@media (hover: hover) {
  .site-footer a:hover {
    color: var(--ink);
  }
}

.site-footer a:focus-visible {
  color: var(--ink);
  outline: 1px solid var(--red);
  outline-offset: 3px;
}

/* --------------------------------------------------------- accessibilité */

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