/* ------------------------------------------------------------------------- */
/* Fonts */
/* ------------------------------------------------------------------------- */

@font-face {
  font-family: 'CooperHewitt';
  src: url('../fonts/CooperHewitt-Bold.woff') format('woff');
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'CooperHewitt';
  src: url('../fonts/CooperHewitt-BoldItalic.woff') format('woff');
  font-style: italic;
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'CooperHewitt';
  src: url('../fonts/CooperHewitt-Book.woff') format('woff');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'CooperHewitt';
  src: url('../fonts/CooperHewitt-BookItalic.woff') format('woff');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'CooperHewitt';
  src: url('../fonts/CooperHewitt-Heavy.woff') format('woff');
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: 'CooperHewitt';
  src: url('../fonts/CooperHewitt-HeavyItalic.woff') format('woff');
  font-style: italic;
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: 'CooperHewitt';
  src: url('../fonts/CooperHewitt-Light.woff') format('woff');
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'CooperHewitt';
  src: url('../fonts/CooperHewitt-LightItalic.woff') format('woff');
  font-style: italic;
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'CooperHewitt';
  src: url('../fonts/CooperHewitt-Medium.woff') format('woff');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'CooperHewitt';
  src: url('../fonts/CooperHewitt-MediumItalic.woff') format('woff');
  font-style: italic;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'CooperHewitt';
  src: url('../fonts/CooperHewitt-Semibold.woff') format('woff');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'CooperHewitt';
  src: url('../fonts/CooperHewitt-SemiboldItalic.woff') format('woff');
  font-style: italic;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'CooperHewitt';
  src: url('../fonts/CooperHewitt-Thin.woff') format('woff');
  font-style: normal;
  font-weight: 200;
  font-display: swap;
}
@font-face {
  font-family: 'CooperHewitt';
  src: url('../fonts/CooperHewitt-ThinItalic.woff') format('woff');
  font-style: italic;
  font-weight: 200;
  font-display: swap;
}

/* ------------------------------------------------------------------------- */
/* Reset */
/* ------------------------------------------------------------------------- */

/* https://piccalil.li/blog/a-more-modern-css-reset/ */

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

/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

/* Remove default margin in favour of better control in authored CSS */
body, h1, h2, h3, h4, p,
figure, blockquote, dl, dd {
  margin-block-end: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  line-height: 1.5;
}

/* Set shorter line heights on headings and interactive elements */
h1, h2, h3, h4,
button, input, label {
  line-height: 1.1;
}

/* Balance text wrapping on headings */
h1, h2,
h3, h4 {
  text-wrap: balance;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input, button,
textarea, select {
  font: inherit;
}

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
  min-height: 10em;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
  scroll-margin-block: 5ex;
}

/* ------------------------------------------------------------------------- */
/* Globals */
/* ------------------------------------------------------------------------- */

:root {
  --transition: 0.2s ease;

  /* @link https://utopia.fyi/type/calculator?c=320,18,1.25,1240,20,1.414,5,2,&s=0.75|0.5|0.25,1.5|2|3|4|6,s-l&g=s,l,xl,12 */

  --step--2: clamp(0.6252rem, 0.753rem + -0.1649vi, 0.72rem);
  --step--1: clamp(0.884rem, 0.9056rem + -0.0278vi, 0.9rem);
  --step-0: clamp(1.125rem, 1.0815rem + 0.2174vi, 1.25rem);
  --step-1: clamp(1.4063rem, 1.2806rem + 0.6283vi, 1.7675rem);
  --step-2: clamp(1.7578rem, 1.4999rem + 1.2894vi, 2.4992rem);
  --step-3: clamp(2.1973rem, 1.7323rem + 2.3246vi, 3.5339rem);
  --step-4: clamp(2.7466rem, 1.9638rem + 3.9137vi, 4.997rem);
  --step-5: clamp(3.4332rem, 2.1697rem + 6.3174vi, 7.0657rem);

  /* Colors */
  --background-color: #FAFAFA;
  --text-color: #030303;
  --hr-color: #999;
  --accent-background: hsl(356deg, 99%, 46%);
  --text-inverse-color: #FFF;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Colors */
    /* --background-color: #030303;
    --text-color: #FAFAFA;
    --hr-color: #444; */
  }
}

/* ------------------------------------------------------------------------- */
/* Utilities */
/* ------------------------------------------------------------------------- */

.sr-only {
  border: 0                      !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  clip-path: inset(50%)          !important;
  height: 1px                    !important;
  overflow: hidden               !important;
  padding: 0                     !important;
  position: absolute             !important;
  width: 1px                     !important;
  white-space: nowrap            !important;
}

/* ------------------------------------------------------------------------- */
/* Typography */
/* ------------------------------------------------------------------------- */

body {
  font-family: "CooperHewitt", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: var(--step-0);
}

h1 {
  font-style: italic;
  font-size: var(--step-5);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
}

h2 {
  font-style: italic;
  font-size: var(--step-2);
  font-weight: 900;
  text-transform: uppercase;
}

h3 {
  font-size: var(--step-1);
  font-weight: 800;
  text-align: center;
}

p {
  line-height: 1.414;
}

p.big {
  font-size: var(--step-1);
  line-height: 1.333;
}

strong {
  font-weight: 600;
}

footer {
  font-size: var(--step--1);
}

.center {
  text-align: center;
}

/* ------------------------------------------------------------------------- */
/* Layout */
/* ------------------------------------------------------------------------- */

body {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-block: 0;
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 3rem);
  max-width: 80ch;
}

main {
  flex: 1 0 auto;
}

footer {
  padding-block-start: 2rem;
  padding-block-end: 0.5rem;
  border-block-start: 1px dotted var(--hr-color);
}

h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-block-start: max(6rem, 8vh);
  margin-block-end: max(6rem, 13vh);
  text-align: center;
}

h2 {
  margin-block-start: max(5rem, 10vh);
  margin-block-end: max(3rem, 6vh);
  text-align: center;
}

:is(h1, h2) span {
  transform: rotate(-7.5deg);
  position: relative;
  display: inline-block;
}

ul.signataires {
  columns: 25ch;
  column-gap: 2rem;
  padding-inline: 0;
  margin-inline: calc((min(100%, 90ch) - 100vw) / 2 + clamp(1rem, 5vw, 3rem));
  margin-block-end: 5em;

  li {
    margin-inline-start: 1.2em;
    break-inside: avoid;
  }
}

/* ------------------------------------------------------------------------- */
/* Colors */
/* ------------------------------------------------------------------------- */

body {
  background-color: var(--background-color);
  color: var(--text-color);
}

::selection {
  background-color: var(--accent-background);
  color: var(--text-inverse-color);
}
