@import url('normalize.css');

:root {
  --background-color: #f0f1ea;
  --shadow-color: #23292a26;

  --header-bg-color: #000000;
  --header-icon-color: #ffffff;

  --card-bg-color: #ffffff;
  --card-text-color: #000000;
  --card-divider-color: #92979794;
  --card-border-color: #000000;
  --card-link-color: #000000;
  --card-icon-color: #000000;
  --card-hero-shadow-color: #000000;

  --footer-bg-color: #000000;
  --footer-text-color: #ffffff;
}

/* Layout
========================================================================== */

* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  height: 100%;
  background-color: var(--background-color);
  font-size: 1em;
  font-family: sans-serif;
}

.content-wrapper {
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

main {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* Header
========================================================================== */

header {
  background-color: var(--header-bg-color);
  height: 48px;
  max-height: 56px;
  box-shadow: 0 1px 4px var(--shadow-color), 0 2px 4px var(--shadow-color);
  padding: 8px 16px 8px 16px;
  display: flex;
  justify-content: space-between;
}

header img {
  height: 100%;
}

.language {
  display: flex;
  align-items: center;
}

.language > svg {
  height: 40px;
  color: var(--header-icon-color);
}

#language-selector {
  padding-left: 4px;
  padding-right: 8px;
}

#language-selector.dark {
  color-scheme: dark;
}

/* Card
========================================================================== */

article {
  margin-top: 48px;
  margin-bottom: 48px;
  background-color: var(--card-bg-color);
  color: var(--card-text-color);
  width: min(calc(100vw - 4ch), 80ch);
  border-top: 6px solid var(--card-border-color);
  box-shadow: 0 5px 10px var(--shadow-color);
  text-align: center;
}

article.hero {
  border-top: 6px solid var(--card-border-color);
  box-shadow: 0 5px 10px var(--card-hero-shadow-color);
  width: min(calc(100vw - 4ch), 1080px);
  margin-top: 32px;
  margin-bottom: 32px;
}

article > img.hero-image {
  width: 100%;
  display: block;
}

.information {
  padding: 16px 32px 16px 32px;
}

.information > h1 {
  font-weight: 400;
  font-size: clamp(1.75rem, 4vw, 2.5em);
  word-break: break-word;
  hyphens: auto;
}

.information > p {
  font-size: 1.0em;
}

.information a {
  color: var(--card-link-color);
  font-weight: bold;
  text-decoration: none;
}

#scheduled-maintenance {
  font-size: 1.4em;
  margin: 0px;
  display: none;
}

#scheduled-maintenance > .planned {
  margin: 0px;
}

#downtime {
  margin-top: 8px;
  font-size: 1.1em;
}

.divider {
  border-bottom: 1px solid var(--card-divider-color);
}

.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 32px 16px 32px;
  color: var(--card-text-color);
  font-size: 1.0em;
}

.contact a {
  display: flex;
  align-items: center;
  color: var(--card-link-color);
  font-weight: bold;
  text-decoration: none;
}

.contact svg {
  fill: var(--card-icon-color);
  height: 32px;
  margin-right: 8px;
}

/* Footer
========================================================================== */

footer {
  min-height: 56px;
  background-color: var(--footer-bg-color);
  color: var(--footer-text-color);
  font-size: 0.9em;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

footer a {
  color: var(--card-link-color);
  font-weight: bold;
  text-decoration: none;
}

.license {
  list-style-type: none;
  padding-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.license a {
  color: var(--card-link-color);
  text-decoration: none;
}

.legal {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 38px;
}

.legal > a {
  color: var(--card-link-color);
  text-decoration: none;
}

