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

:root {
  --color-text: #1a1a1a;
  --color-bg: #fafafa;
  --color-muted: #555;
  --color-link: #1a1a1a;
  --color-link-underline: #999;
}

html[data-theme="night"] {
  --color-text: #e0e0e0;
  --color-bg: #1a1a2e;
  --color-muted: #a0a0b0;
  --color-link: #e0e0e0;
  --color-link-underline: #707080;
}

html[data-theme="night"] header {
  background: rgba(255, 255, 255, 0.06);
}

body {
  font-family: monospace;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
  padding: 0 1rem;
}

header {
  max-width: 1024px;
  margin: 1rem auto;
  padding: 1rem;
  box-shadow: inset 0 0 2rem rgba(204, 204, 204, 0.3);
  /* background: #cccccc40; */
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  padding: 10px;
  width: 1rem;
  height: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: transparent;
  border: 1px solid var(--color-text);
  border-radius: 6px;
  cursor: pointer;
  color: var(--color-text);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.theme-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

html[data-theme="night"] .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.logo {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 2px;
}

.logo:hover {
  text-decoration: none;
}

.logo-x {
  color: #fafafa;
  padding: 0px 6px 2px;
  line-height: 0;
  margin-right: 2px;
  background: linear-gradient(to right bottom, rgb(255, 236, 4), rgb(249, 125, 125), rgb(231, 56, 180));
  border-radius: 4px;
}

.nav-sep {
  color: var(--color-muted);
}

nav {
  display: flex;
  gap: 1.5rem;
  font-size: 14px;
}

nav a {
  color: var(--color-text);
  border-bottom: 1px solid;
  line-height: 1;
  text-decoration: none;
  transition: border-bottom 0.2s ease-in-out;
}

nav a:hover {
  border-bottom: 1px solid transparent;
}

#globe-section {
  max-width: 1024px;
  margin: 0 auto;
  /* padding: 0 2rem 1rem; */
}

@keyframes starPulse {

  0%,
  100% {
    transform: scale(0);
  }

  50% {
    transform: scale(1);
  }
}

/* #cccccc40 = rgba(204, 204, 204, 0.25); animated inner shadow on the globe area */
@keyframes innerShadowPulse {

  0%,
  100% {
    box-shadow: inset 0 0 1rem rgba(204, 204, 204, 0.2);
  }

  50% {
    box-shadow: inset 0 0 2rem rgba(204, 204, 204, 0.3);
  }
}

#globe-container {
  position: relative;
  width: 100%;
  height: min(50svh, 400px);
  min-height: min(50svh, 400px);
  border-radius: 12px;
  overflow: hidden;
}

@supports not (height: 1svh) {
  #globe-container {
    height: min(50vh, 400px);
    min-height: min(50vh, 400px);
  }
}

.globe-pre {
  color: var(--color-text);
  background: var(--color-bg);
  border-radius: 1rem;
  animation: innerShadowPulse 5s ease-in-out infinite;
}

html[data-theme="night"] .globe-star {
  color: #e8e8e8;
}


main {
  max-width: 1024px;
  margin: 0 auto;
  padding: 1rem 0;
}

.privacy-policy section {
  margin-bottom: 1.5rem;
}

.privacy-policy h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem;
}

.privacy-policy ul {
  margin: 0.5rem 0 1rem 1.5rem;
}

.privacy-policy li {
  margin-bottom: 0.25rem;
}

.tagline {
  color: var(--color-muted);
  margin-bottom: 3rem;
}

h1 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.geo-flow-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
}

.geo-flow-subheading {
  font-size: 1rem;
}

.geo-flow-heading__icon {
  flex-shrink: 0;
  background: linear-gradient(to left bottom, rgb(255, 236, 4), rgb(249, 125, 125), rgb(231, 56, 180));
  border-radius: 8px;
  color: #fff;
  width: 50px;
  height: 50px;
}

h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

/* article {
  margin-bottom: 2rem;
} */

article p {
  color: var(--color-muted);
  margin-bottom: 0.5rem;
}

article a {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

article a:hover {
  color: var(--color-muted);
}

/* Docs layout */
main.docs {
  max-width: 1024px;
}

main.docs h1 {
  margin-bottom: 1rem;
}

main.docs p {
  margin-bottom: 1rem;
}

main.docs a {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

main.docs a:hover {
  color: var(--color-muted);
}

/* Contact page */
main.contact h1 {
  margin-bottom: 0.5rem;
}

main.contact p {
  margin-bottom: 1.5rem;
  color: var(--color-muted);
}

.docs{
  padding-left: 1rem;
  padding-right: 1rem;
}

.contact-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: stretch;
  min-height: 400px;
}

.contact-section__content{
  padding-left: 1rem;
}

.contact-section__image {
  min-height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
  animation: innerShadowPulse 5s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-ascii-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
}

.contact-ascii-text {
  margin: 0;
  padding: 1rem;
  font-family: monospace;
  color: var(--color-text);
  line-height: 1.2;
  letter-spacing: 0.02em;
  white-space: pre;
}

.contact-form {
  max-width: 28rem;
}

.contact-form__field {
  margin-bottom: 1rem;
}

.contact-form__field label {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
  color: var(--color-muted);
}

.contact-form__field input,
.contact-form__field textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-muted);
  border-radius: 0.375rem;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
  outline: none;
  border-color: var(--color-text);
}

.contact-form__field textarea {
  resize: vertical;
  min-height: 6rem;
}

.contact-form__submit {
  padding: 0.5rem 1.25rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-bg);
  background: var(--color-text);
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
}

.contact-form__submit:hover {
  opacity: 0.9;
}

.contact-form__status {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.contact-form__status--error {
  color: var(--color-error, #c41e3a);
}

.contact-form__hint {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.contact-form__hint code {
  font-size: 0.8em;
  padding: 0.1em 0.3em;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 0.2rem;
}

html[data-theme="night"] .contact-form__hint code {
  background: rgba(255, 255, 255, 0.08);
}

.geo-flow-description {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding: 2rem 0;
}

.geo-flow-description__content{
  padding-left: 1rem;
}


@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.geo-flow-description__image {
  border-radius: 16px;
  height: 100%;
  background: linear-gradient(to left bottom, rgb(255 236 4 / 50%), rgb(249 125 125 / 50%), rgb(231 56 180 / 50%));
  background-size: 200% 200%;
  background-position: 0% 50%;
  animation: gradientShift 8s ease-in-out infinite;
  width: 100%;
}

@media (max-width: 767px) {
  header {
    padding: 1.5rem 1.5rem 1rem;
  }

  main {
    padding: 0;
  }

  nav {
    gap: 1.5rem;
  }

  .contact-section {
    grid-template-columns: 1fr;
  }

  .contact-form {
    max-width: 100%;
  }

  .contact-ascii-wrapper {
    min-height: 365px;
  }

  .contact-section__content {
    order: 1;
  }

  .geo-flow-description {
    grid-template-columns: 1fr;
  }

  .geo-flow-description__image {
    min-height: 200px;
  }

}