/* Standalone promo page (Christmas advent calendar). Independent of form.css and admin.css. */
@font-face {
  font-family: "Noto IKEA";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("fonts/NotoIKEA-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "Noto IKEA";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("fonts/NotoIKEA-Bold.ttf") format("truetype");
}

:root {
  --yellow: #fbd914;
  --ink: #111111;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto IKEA", "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: #ffffff;
}

a { color: inherit; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  background: var(--yellow);
  border-radius: 0.25rem;
}
.skip:focus { top: 1rem; }

:focus-visible { outline: 3px solid #0058a3; outline-offset: 3px; }

.page {
  position: relative;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.25rem 2rem 4rem;
}
.top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.top a { display: inline-block; line-height: 0; border-radius: 0.25rem; }
.top img { display: block; width: 105px; height: auto; }
.top .lang { line-height: 1.5; padding: 0.25rem 0.5rem; font-size: 0.8125rem; font-weight: 400; text-decoration: underline; }
@media (min-width: 40rem) {
  .top { padding-right: 18.125rem; }
}

/* the photo sits at the top right, level with the logo; on narrow screens it goes under the logo */
.hero__image {
  display: block;
  width: 100%;
  max-width: 16.125rem;
  height: auto;
  margin: 1rem auto 0;
}
.hero { margin-top: 1rem; }
@media (min-width: 40rem) {
  .hero__image {
    position: absolute;
    top: 1.25rem;
    right: 2rem;
    width: 16.125rem;
    margin: 0;
  }
  .hero {
    display: flex;
    align-items: center;
    min-height: 13rem;
    margin-top: 0;
    padding-right: 18.125rem;
  }
}

/* with ?lang=en lang.js sets data-lang="en" on <html>: the English elements are shown instead of the original ones */
html:not([data-lang="en"]) [data-lang="en"],
html[data-lang="en"] [data-lang="original"] { display: none; }

h1 {
  margin: 0;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.2;
}
.lead { margin: 1.75rem 0 0; font-size: 1.1875rem; max-width: 42rem; }

/* the form is centered below; it has a transparent background and a fixed height */
.check { margin-top: 2rem; display: flex; justify-content: center; }
.check__frame {
  display: block;
  width: 100%;
  max-width: 30rem;
  height: 24rem;
  border: 0;
}
@media (max-width: 30rem) {
  .check__frame { height: 28rem; }
}
