/* Fonts: copy the same files from your main site into /fonts */
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('fonts/IBMPlexSans-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('fonts/IBMPlexSans-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --accent: #ff5c26;
  --ink: #000000;
  --paper: #ffffff;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: 'IBM Plex Sans', Arial, Helvetica, sans-serif;
  color: var(--ink);
  line-height: 1.5;
  overflow: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Full-screen collage */
.backdrop {
  position: fixed;
  inset: 0;
  background-color: #e6e6e6;
  /* shows until the image loads */
  background-image: url("images/collage.webp");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 0;
}

@media (max-width: 768px) {
  .backdrop {
    background-image: url("images/collage-portrait.webp");
  }
}

/* Pop-up */
.popup {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  outline: none;
}

.popup[hidden] {
  display: none;
}

.popup-panel {
  background: var(--accent);
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px 32px 24px;
  box-sizing: border-box;
}

.popup-panel p {
  margin: 0 0 14px;
  font-size: 1rem;
}

.popup-title {
  font-weight: 700;
  font-size: 1.3rem;
}

.step[hidden] {
  display: none;
}

.popup-panel a,
.corner a {
  color: inherit;
  text-decoration: underline;
}

.popup-nav {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  margin-top: 20px;
}

button {
  font: inherit;
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

button[hidden] {
  display: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* Corner block after closing the pop-up */
.corner {
  position: fixed;
  left: 20px;
  bottom: 50px;
  z-index: 5;
  background: var(--accent);
  padding: 16px 20px;
  max-width: 280px;
  font-size: 0.9rem;
}

.corner[hidden] {
  display: none;
}

.corner p {
  margin: 0 0 8px;
}

.corner p:last-child {
  margin-bottom: 0;
}

.corner-title {
  font-weight: 700;
}

footer {
  position: fixed;
  left: 20px;
  bottom: 12px;
  z-index: 5;
  font-size: 0.7rem;
}

footer p {
  margin: 0;
  background: var(--paper);
  padding: 2px 6px;
}

@media (max-width: 768px) {
  .popup-panel {
    padding: 24px 22px 20px;
  }
}
