* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: var(--p-font-family-text);
  color: var(--p-color-text-body);
  background-color: var(--p-color-white);
}

.offline {
  position: relative;
  min-height: 100vh;
  padding: var(--p-spacing-md);
  overflow: hidden;
  background: var(--p-color-white);
}

.offline-layout {
  width: 100%;
  min-height: calc(100vh - (var(--p-spacing-md) * 2));
  height: calc(100vh - (var(--p-spacing-md) * 2));
  display: flex;
  align-items: stretch;
  gap: 0;
}

.offline-wrapper {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.offline-hero {
  flex: 0 1 auto;
  height: 100%;
  aspect-ratio: 936 / 752;
  max-width: calc(100% - 360px);
  display: flex;
}

/* The artwork includes the dashed panel, so it is scaled as a whole. */
.offline-hero-logo {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  object-position: right center;
}

.content-box {
  position: relative;
  width: min(100%, 330px);
  margin: 0 auto;
  padding: var(--p-spacing-xxl) 0;
  display: flex;
  flex-direction: column;
  gap: var(--p-spacing-xl);
}

.content-copy {
  display: flex;
  flex-direction: column;
  gap: var(--p-spacing-lg);
  align-items: center;
  text-align: center;
}

h1 {
  margin: 0;
  color: var(--p-color-text-title);
  font-family: var(--p-font-family-display);
  font-size: var(--p-font-size-xl);
  font-weight: var(--p-font-weight-bold);
  line-height: var(--p-line-height-xl);
  letter-spacing: var(--p-letter-spacing-normal);
}

.maintenance-error-text {
  color: var(--p-color-error);
}

.status {
  margin: 0;
  max-width: 30ch;
  color: var(--p-color-gray-600);
}

.logo-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 88px;
  height: 20px;
  background: url('/pienso_horz_color+black.svg') no-repeat top left;
  background-size: contain;
}

@media (max-width: 767px) {
  .offline {
    padding: var(--p-spacing-md);
  }

  .offline-layout {
    min-height: calc(100vh - (var(--p-spacing-md) * 2));
    height: auto;
    justify-content: center;
  }

  .offline-wrapper {
    flex: 1 1 auto;
    max-width: 520px;
    min-height: calc(100vh - (var(--p-spacing-md) * 2));
  }

  .offline-hero {
    display: none;
  }

  .content-box {
    padding: var(--p-spacing-xl);
    gap: var(--p-spacing-lg);
  }

  h1 {
    font-size: var(--p-font-size-lg);
    line-height: var(--p-line-height-lg);
  }
}