/* Moderat, the brand font (RODIN-website, docs/brand.md) */
@font-face {
  font-family: 'Moderat';
  src: url('fonts/moderat-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Moderat';
  src: url('fonts/moderat-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Brand palette and the order of the fonts: RODIN-website, docs/brand.md */
:root {
  --rodin: #00ff00;
  --black: #000000;
  --white: #ffffff;

  color-scheme: light;
  font-family: 'Moderat', 'Poppins', Arial, sans-serif;
  font-size: 100%;
  line-height: 1.5;
}

body {
  margin: 0;
  color: var(--black);
  background: var(--white);
}

/* Rhodium24 fills the whole window */
#rh24-container {
  position: fixed;
  inset: 0;
}

#rh24-container iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* A message in place of the portal: it could not be loaded, or JavaScript is off. White with the
   logo in black and green, a line of Rodin green on top and one graphic as the accent. */
.notice {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: clamp(1rem, 4vw, 2rem);
  overflow: hidden;
  text-align: center;
  background: var(--white);
  border-top: 3px solid var(--rodin);
}

.notice[hidden] {
  display: none;
}

.notice > * {
  position: relative;
  max-width: 34rem;
  margin: 0;
}

.notice .logo {
  width: min(16.25rem, 70%);
  height: auto;
  margin-bottom: 1.5rem;
}

.notice h1 {
  font-size: clamp(1.375rem, 4.5vw, 2.1875rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.001em;
}

/* The second language, a step back */
.notice [lang='en'] {
  color: #4f5151;
}

.notice h1[lang='en'] {
  font-size: 1.125rem;
  font-weight: 400;
}

/* One of the brand graphics, large and half out of the corner */
.notice .graphic {
  position: absolute;
  right: -6rem;
  bottom: -6rem;
  width: clamp(14rem, 40vw, 26rem);
  max-width: none;
  height: auto;
  opacity: 0.9;
  pointer-events: none;
}

/* The portal button of the website: black on Rodin green, and the other way round under the
   pointer. Green is a surface here, never a text colour on white. */
.notice > .button {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 1.25rem;
  padding: 0.6rem 1.5rem;
  color: var(--black);
  background: var(--rodin);
  border: 2px solid var(--rodin);
  border-radius: 2rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    background-color 0.2s,
    color 0.2s;
}

.notice > .button:hover,
.notice > .button:focus-visible {
  color: var(--rodin);
  background: var(--black);
}

@media (prefers-reduced-motion: reduce) {
  .notice > .button {
    transition: none;
  }
}
