* {
  box-sizing: border-box;
}

:root {
  --font-sans: Avenir, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  --font-book: 'Avenir Book', Arial, 'HelveticaNeue', 'Roboto', system-ui, sans-serif;
  --font-light: 'Avenir Light', Arial, 'HelveticaNeueLight', 'Roboto', system-ui, sans-serif;
  --font-roman: 'Avenir Roman', Arial, 'HelveticaNeue', 'Roboto', system-ui, sans-serif;
  --font-medium: 'Avenir Medium', Arial, 'HelveticaNeue', 'Roboto', system-ui, sans-serif;
  --font-heavy: 'Avenir Heavy', Arial, 'HelveticaNeue-Bold', 'Helvetica Neue Bold', system-ui, sans-serif;
  --font-black: 'Avenir Black', Arial, 'HelveticaNeue-Bold', 'Helvetica Neue Bold', system-ui, sans-serif;
  --font-default: var(--font-book);
}

:root,
::backdrop {
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

@font-face {
  font-display: swap;
  font-family: 'Avenir Book';
  font-stretch: normal;
  font-style: normal;
  src: url('../app_design-system/src/assets/fonts/AvenirLTStd-Book.otf') format('opentype');
}

@font-face {
  font-display: swap;
  font-family: 'Avenir Light';
  font-stretch: normal;
  font-style: normal;
  src: url('../app_design-system/src/assets/fonts/AvenirLTStd-Light.otf') format('opentype');
}

@font-face {
  font-display: swap;
  font-family: 'Avenir Roman';
  font-stretch: normal;
  font-style: normal;
  src: url('../app_design-system/src/assets/fonts/AvenirLTStd-Roman.otf') format('opentype');
}

@font-face {
  font-display: swap;
  font-family: 'Avenir Medium';
  font-stretch: normal;
  font-style: normal;
  src: url('../app_design-system/src/assets/fonts/AvenirLTStd-Medium.otf') format('opentype');
}

@font-face {
  font-display: swap;
  font-family: 'Avenir Heavy';
  font-stretch: normal;
  font-style: normal;
  src: url('../app_design-system/src/assets/fonts/AvenirLTStd-Heavy.otf') format('opentype');
}

@font-face {
  font-display: swap;
  font-family: 'Avenir Black';
  font-stretch: normal;
  font-style: normal;
  src: url('../app_design-system/src/assets/fonts/AvenirLTStd-Black.otf') format('opentype');
}

body {
  margin: 0;
  font-family: var(--font-default);
  font-weight: 350;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #273236; /* neutral-1 */
}

.bg-image {
  position: absolute;
  bottom: -88%;
}

.maintenance {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  justify-items: center;
  gap: clamp(16px, 4vw, 28px);
  padding: 32px 16px;
  background: #faf6f3; /* secondary-2 */
}

.brand__logo {
  height: 64px;
  width: auto;
}
.brand__title {
  margin-top: 8px;
  color: #003c3c; /* primary-1 */
  font-family: var(--font-black);
  font-weight: 900;
}

.card {
  width: min(640px, 100%);
  background: #ffffff; /* neutral-4 */
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.card-stack {
  display: flex;
  flex-direction: column;
  gap: min(30px, 4vw);
  width: min(640px, 100%);
  margin: 0 auto;
}

.heading--secondary {
  font-size: 23px;
  line-height: 32px;
}

.card__icon {
  height: 64px;
  width: 64px;
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.illustration {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
.illustration__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: 75%;
}
.illustration__border {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  width: 98%;
  height: 98%;
  border-radius: 50%;
  border: 2px dotted #003c3c; /* primary-1 dotted */
}
.illustration__background {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 0;
  width: 98%;
  height: 98%;
  border-radius: 50%;
  background: #e6f3eb; /* secondary-4 Mint Light */
}

.icon {
  height: 28px;
  width: 28px;
}

.heading {
  margin: 0;
  font-size: 26px; /* heading-xl mobile */
  line-height: 32px;
  font-family: var(--font-heavy);
  font-weight: 700;
  color: #003c3c; /* primary-1 */
  text-align: center;
}

.body {
  margin: 0 auto;
  font-size: 16px; /* body-md */
  line-height: 24px;
  color: #273236; /* neutral-1 */
  text-align: center;
  max-width: 56ch; /* improve readability and alignment */
  font-family: var(--font-default);
  font-weight: 350;
}

.nowrap {
  white-space: nowrap;
}

.footer__text {
  font-size: 14px;
  color: #6d6e70; /* neutral-2 */
  text-align: center;
}

/* Primary Link Button (design-system inspired) */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
  font-family: var(--font-medium);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.button--primary {
  background-color: #39c06a; /* primary-2 */
  color: #003c3c; /* primary-1 */
}

.button--primary:hover,
.button--primary:focus-visible {
  background-color: #ff96a3; /* blossom */
  outline: none;
}

.button--primary:active {
  background-color: #28b46e; /* ui-success */
  transform: translateY(1px);
}

.button--link {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  padding: 12px 24px;
}

.footer {
  display: flex;
  justify-content: center;
}

.header h3 {
  text-align: center;
  color: #ff9e40;
  font-size: 24px;
  font-style: normal;
  font-weight: 600;
  margin: 0;
  line-height: 36px;
}

.header {
  display: flex;
  position: relative;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0px;
  font-style: normal;
}

.header > h1 {
  font-style: normal;
  font-weight: 600;
  font-size: 48px;
  line-height: 150%;
  display: flex;
  align-items: center;
  text-align: center;
  color: #ffffff;
}

.header > p {
  font-style: normal;
  font-weight: 400;
  font-size: 24px;
  line-height: 150%;
  text-align: center;
  color: #ffffff;
  flex-grow: 0;
  margin: 16px 0px;
}

.options {
  display: flex;
  flex-direction: row;
}

.options > a {
  color: #ffffff;
  text-decoration: underline;
  margin: 0px 8px;
  font-weight: 400;
  font-size: 24px;
  line-height: 150%;
}

.options > a:first-of-type {
  margin-right: 30px;
}

.logo {
  margin-top: 75px;
}

.logo > img {
  width: 160px;
  height: 64px;
}

.learn-more > a > button {
  background: #f6821f;
  border-radius: 4px;
  border: none;
  width: 180px;
  margin-top: 78px;
  height: 55px;
  color: #ffffff;
  text-align: center;
  font-weight: 600;
  font-size: 16px;
  line-height: 19px;
  background: rgba(246, 130, 31, 1);
  box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

@media screen and (max-width: 600px) {
  .card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .card__icon {
    justify-self: center;
  }
}

@media screen and (min-width: 768px) {
  .heading {
    font-size: 31px; /* heading-xl tablet+ */
    line-height: 40px;
  }
  .heading--secondary {
    font-size: 26px;
    line-height: 32px;
  }
  .body {
    font-size: 18px; /* body-lg tablet+ */
    line-height: 28px;
  }
}
