@font-face {
  font-family: "Geist Mono";
  src: url("../assets/GeistMono-VariableFont_wght.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
    --page-bg: #E3E2DE;
    --text: rgba(0,0,0,0.85);
    --line: rgba(0,0,0,0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
      min-height: 100vh;
      min-height: 100svh;
      display: flex;
      flex-direction: column;
      background: var(--page-bg);
      color: var(--text);
      -webkit-font-smoothing: antialiased;
      text-rendering: optimizeLegibility;
}

.site-header {
    min-height: 104px;
    display: grid;
    place-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
}

.logo {
    display: block;
    width: 174px;
    height: auto;
    color: var(--text);
}

.logo svg {
    width: 100%;
    height: 100%;
    color: black;
}

main {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 54px 24px 82px;
    text-align: center;
}

.message {
    font-family: 'Geist Mono';
    font-size: 1rem;
    font-weight: 400;
}

a {
    font-size: 1.5rem;
    font-weight: 500;
    color: #314F66;
    text-decoration: underline;
}

.calculator {
    display: block;
    width: 250px;
    max-width: min(250px, 72vw);
    height: auto;
}

.site-footer {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 42px;
    padding: 20px 24px;
    border-top: 1px solid var(--line);
    font-family: "Geist Mono";
    font-size: 0.625rem;
    font-weight: 300;
    letter-spacing: 0.05rem;
}

@media (min-height: 850px) {
    main {
        padding-top: 52px;
        padding-bottom: 82px;
    }
}

@media (max-width: 480px) {
      .site-header {
        min-height: 88px;
    }

    main {
        gap: 48px;
        padding: 42px 20px 52px;
    }

    .message {
        max-width: 34ch;
        font-size: 12px;
    }

    .calculator {
        width: 220px;
    }

    .site-footer {
        min-height: 64px;
        gap: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
