:root {
  --background: #f8f7f2;
  --text: #20221f;
  --muted: #73786f;
  --green: #314438;
  --border: #dde1d9;
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--background);
  color: var(--text);

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

body.drawer-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.page-shell {
  width: 100%;
  min-height: 100vh;
}

/* -------------------------------------------------------
   Desktop artwork
------------------------------------------------------- */

.landing-art {
  width: 100%;
}

.landing-art img {
  display: block;
}

.desktop-art {
  min-height: calc(100vh - 100px);

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 16px;
}

.desktop-art img {
  width: auto;
  height: auto;

  max-width: 100%;
  max-height: calc(100vh - 132px);

  object-fit: contain;
}

.mobile-art,
.mobile-header {
  display: none;
}

/* -------------------------------------------------------
   Footer
------------------------------------------------------- */

.site-footer {
  min-height: 100px;

  padding: 24px clamp(24px, 5vw, 80px);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  border-top: 1px solid var(--border);

  color: var(--muted);
  background: var(--background);

  font-size: 13px;
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 9px;
}

.status-dot {
  width: 9px;
  height: 9px;

  border-radius: 50%;
  background: #80ad75;

  box-shadow: 0 0 0 3px rgba(128, 173, 117, 0.13);
}

.powered-by strong {
  color: var(--green);
  letter-spacing: 0.12em;
}

/* -------------------------------------------------------
   Mobile drawer
------------------------------------------------------- */

.drawer-overlay {
  position: fixed;
  inset: 0;

  z-index: 90;

  background: rgba(20, 28, 23, 0.35);

  opacity: 0;
  pointer-events: none;

  transition: opacity 0.28s ease;
}

.mobile-drawer {
  position: fixed;

  top: 0;
  right: 0;

  z-index: 100;

  width: min(82vw, 340px);
  height: 100dvh;

  padding: 30px;

  color: #fff;

  background: linear-gradient(180deg, #32463a, #24342b);

  transform: translateX(100%);

  transition: transform 0.32s cubic-bezier(0.25, 0.7, 0.2, 1);

  box-shadow: -20px 0 60px rgba(20, 28, 23, 0.18);
}

.drawer-close {
  position: absolute;

  top: 20px;
  right: 23px;

  padding: 0;

  color: #fff;
  background: transparent;
  border: 0;

  font-size: 42px;
  font-weight: 200;

  cursor: pointer;
}

.drawer-nav {
  margin-top: 88px;

  display: flex;
  flex-direction: column;
}

.drawer-nav > a:not(.drawer-learn) {
  padding: 22px 2px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.14);

  font-size: 20px;
}

.drawer-learn {
  margin-top: 34px;
  padding: 18px 22px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  color: #26382e;
  background: #f6f2e9;

  border-radius: 13px;

  font-size: 17px;
}

body.drawer-open .drawer-overlay {
  opacity: 1;
  pointer-events: auto;
}

body.drawer-open .mobile-drawer {
  transform: translateX(0);
}

/* -------------------------------------------------------
   Mobile
------------------------------------------------------- */

@media (max-width: 700px) {
  .desktop-art {
    display: none;
  }

  .mobile-art {
    display: block;
  }

  .mobile-header {
    min-height: 78px;

    padding: 16px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: var(--background);
  }

  .mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }

  .brand-mark {
    width: 34px;
    height: 25px;

    display: inline-flex;

    color: var(--green);

    transform: rotate(-8deg);
  }

  .brand-mark svg {
    width: 100%;
    height: 100%;
    overflow: visible;
  }

  .brand-mark ellipse,
  .brand-mark circle {
    fill: currentColor;
  }

  .brand-mark path {
    fill: none;

    stroke: currentColor;
    stroke-width: 4;

    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .brand-mark .frog-eye {
    fill: var(--background);
  }

  .brand-name {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.2em;
  }

  .menu-button {
    width: 52px;
    height: 52px;

    padding: 12px;

    background: transparent;
    border: 1px solid var(--border);
    border-radius: 14px;

    cursor: pointer;
  }

  .menu-button span {
    display: block;

    width: 100%;
    height: 2px;

    margin: 5px 0;

    background: var(--text);
  }

  .mobile-art img {
    width: 100%;
    height: auto;
  }

  .site-footer {
    min-height: 135px;

    padding: 28px 20px;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
  }
}
@media (max-width: 700px) {
  .site-footer {
    display: none;
  }
}
