*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

:root {
  color-scheme: light dark;
  --geo-bg: oklch(0.985 0 0);
  --geo-fg: oklch(0.145 0 0);
  --geo-muted-fg: oklch(0.371 0 0);
  --geo-border: oklch(0.145 0 0);
  --geo-locale-border: oklch(0.922 0 0);
}

@media (prefers-color-scheme: dark) {
  :root {
    --geo-bg: oklch(0.205 0 0);
    --geo-fg: oklch(0.985 0 0);
    --geo-muted-fg: oklch(0.87 0 0);
    --geo-border: oklch(1 0 0 / 0.1);
    --geo-locale-border: oklch(1 0 0 / 0.1);
  }

  .geo-brand-logo,
  .geo-brand-text {
    filter: invert(1);
  }

  .geo-locale-icon {
    filter: invert(1);
  }
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--geo-bg);
  color: var(--geo-fg);
  font-family: var(--font-body);
}

main {
  flex: 1;
  display: flex;
}

.geo-shell {
  display: flex;
  width: 100%;
  min-height: calc(100vh - 53px);
}

.geo-left,
.geo-right {
  width: 50%;
  min-height: 100%;
  display: flex;
}

.geo-left {
  order: 1;
  flex-direction: column;
  padding: 2.5rem;
}

.geo-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.geo-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 2rem;
  text-decoration: none;
  color: var(--geo-fg);
}

.geo-brand-logo {
  width: 1.6875rem;
  height: 1.6875rem;
  flex-shrink: 0;
}

.geo-brand-text {
  height: 85%;
  max-width: 100%;
  display: block;
}

.geo-copy-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.geo-locale-switch {
  position: relative;
}

.geo-locale-trigger {
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--geo-locale-border);
  border-radius: 9999px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.geo-locale-icon {
  width: 1rem;
  height: 1rem;
  display: block;
}

.geo-locale-menu {
  position: absolute;
  top: calc(100% + 0.375rem);
  right: 0;
  min-width: 9rem;
  padding: 0.375rem;
  border: 1px solid var(--geo-border);
  border-radius: 0.75rem;
  background: var(--geo-bg);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 5;
}

.geo-locale-menu.is-open {
  display: flex;
}

.geo-locale-item {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--geo-fg);
  padding: 0.55rem 0.75rem;
  border-radius: 0.625rem;
  text-align: left;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 500;
}

.geo-locale-item[aria-current='true'] {
  background: color-mix(in oklab, var(--geo-fg) 12%, transparent);
}

.geo-locale-item:hover {
  background: color-mix(in oklab, var(--geo-fg) 8%, transparent);
}

.geo-description {
  margin: 0;
  max-width: 28rem;
  font-size: 1.125rem;
  line-height: 1.56;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--geo-muted-fg);
  text-align: left;
}

.geo-right {
  order: 2;
  align-items: center;
  justify-content: center;
}

.geo-image {
  width: min(100%, 40rem);
  max-width: 40rem;
  height: auto;
  display: block;
}

footer {
  border-top: 1px solid var(--geo-border);
}

.health-warning {
  margin: 0;
  padding: 1rem;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.43;
  font-weight: 700;
  font-family: var(--font-body);
  color: var(--geo-fg);
}

@media (max-width: 48rem) {
  .geo-shell {
    min-height: auto;
    flex-direction: column;
  }

  .geo-left {
    display: contents;
  }

  .geo-topbar {
    order: 1;
    margin: 1.5rem 1rem 0.5rem;
  }

  .geo-right {
    order: 2;
    width: 100%;
    min-height: auto;
    padding-inline: 1rem;
  }

  .geo-image {
    width: 100%;
    max-width: 36rem;
  }

  .geo-copy-wrap {
    order: 3;
    justify-content: center;
    padding: 0 1rem 1rem;
  }

  .geo-description {
    max-width: none;
    text-align: center;
  }
}
