:root {
  color-scheme: light;
  --bg: #ffffff;
  --text: #050505;
  --muted: #565656;
  --footer: #d8d8d5;
  --footer-text: #202020;
  --footer-muted: #454545;
  --max: 1220px;
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

main {
  min-height: 100svh;
  background: var(--bg);
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  justify-content: flex-end;
  padding: clamp(1.1rem, 2.6vw, 2.6rem) var(--gutter);
  pointer-events: none;
}

.ideas-link {
  pointer-events: auto;
  font-size: clamp(0.92rem, 1.1vw, 1.02rem);
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.22rem;
  transition: color 180ms ease, transform 180ms ease;
}

.ideas-link:hover,
.ideas-link:focus-visible {
  color: var(--muted);
  transform: translateY(-1px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.78fr);
  align-items: center;
  gap: clamp(2rem, 8vw, 7.5rem);
  min-height: 82svh;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(6.5rem, 12vw, 9rem) var(--gutter)
    clamp(4rem, 9vw, 7.5rem);
}

.hero-copy {
  max-width: 760px;
}

h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.35rem, 1.55vw, 1.62rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 520px;
  margin: clamp(1.15rem, 2.2vw, 1.9rem) 0 0;
  color: var(--text);
  font-family: "Newsreader", Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(1.04rem, 1.22vw, 1.36rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: 0;
  opacity: 0;
  transform: translateY(10px);
  animation: fade-in-up 900ms ease-out 180ms both;
}

.map-panel {
  position: relative;
  aspect-ratio: 1 / 1;
  min-height: 300px;
  width: min(100%, 360px);
  justify-self: center;
  isolation: isolate;
  overflow: hidden;
}

.city-map {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.site-footer {
  min-height: clamp(360px, 42vw, 560px);
  display: flex;
  align-items: stretch;
  background: var(--footer);
  color: var(--footer-text);
}

.footer-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.75rem) var(--gutter);
  display: flex;
  min-height: inherit;
  flex-direction: column;
  align-items: flex-end;
}

.footer-social {
  margin-left: auto;
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.2rem;
  transition: opacity 180ms ease, transform 180ms ease;
}

.footer-social:hover,
.footer-social:focus-visible {
  opacity: 0.65;
  transform: translateY(-1px);
}

.footer-social:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 0.35rem;
}

.footer-social img {
  display: block;
  width: 1.7rem;
  height: 1.7rem;
}

.footer-name {
  margin: auto 0 0;
  color: var(--footer-text);
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-size: clamp(0.92rem, 1vw, 1.05rem);
  font-weight: 500;
  line-height: 1.35;
  text-align: right;
}

.footer-note {
  margin: 0.75rem 0 0;
  color: var(--footer-text);
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-size: clamp(0.92rem, 1vw, 1.05rem);
  font-weight: 500;
  line-height: 1.35;
  text-align: right;
}

.ideas-page {
  min-height: 100svh;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(6.5rem, 12vw, 9rem) var(--gutter)
    clamp(4rem, 9vw, 7.5rem);
  display: flex;
  align-items: center;
}

.ideas-page-inner {
  width: 100%;
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: start;
}

.ideas-page h1 {
  margin: 0;
  font-family: "Geist", Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.35rem, 1.55vw, 1.62rem);
  font-weight: 700;
  line-height: 1;
}

.ideas-page p {
  margin: 0;
  color: var(--muted);
  font-family: "Newsreader", Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(1.04rem, 1.22vw, 1.36rem);
  line-height: 1.18;
}

.not-found-page {
  min-height: 100svh;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(6.5rem, 12vw, 9rem) var(--gutter)
    clamp(4rem, 9vw, 7.5rem);
  display: flex;
  align-items: center;
}

.not-found-shell {
  width: 100%;
  display: block;
}

.not-found-copy {
  max-width: 560px;
}

.not-found-copy p {
  margin: clamp(1rem, 2vw, 1.45rem) 0 0;
  color: var(--text);
  font-family: "Newsreader", Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(1.04rem, 1.22vw, 1.36rem);
  line-height: 1.18;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.35rem;
  margin-top: clamp(1.6rem, 3vw, 2.25rem);
}

.not-found-actions a {
  font-size: clamp(0.92rem, 1.1vw, 1.02rem);
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.22rem;
  transition: color 180ms ease, transform 180ms ease;
}

.not-found-actions a:hover,
.not-found-actions a:focus-visible {
  color: var(--muted);
  transform: translateY(-1px);
}

@keyframes fade-in-up {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .hero-copy p {
    opacity: 1;
    transform: none;
    animation: none;
  }

}

@media (max-width: 900px) {
  .site-header {
    padding-top: 1.2rem;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: clamp(2.8rem, 8vw, 4.2rem);
    min-height: auto;
    padding-top: 6rem;
  }

  .map-panel {
    width: min(100%, 360px);
    min-height: auto;
  }

  .footer-inner {
    align-items: flex-end;
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: 1rem;
  }

  .hero {
    padding-top: 5.5rem;
    padding-bottom: 4.5rem;
  }

  h1 {
    font-size: clamp(1.32rem, 6vw, 1.72rem);
  }

  .hero-copy p {
    font-size: clamp(1rem, 4.6vw, 1.18rem);
    line-height: 1.22;
  }

  .not-found-page {
    padding-top: 5.5rem;
    padding-bottom: 4.5rem;
  }

  .not-found-copy p {
    max-width: 30ch;
    font-size: clamp(1rem, 4.6vw, 1.18rem);
    line-height: 1.22;
  }

  .not-found-actions {
    gap: 0.8rem 1.15rem;
  }

  .map-panel {
    aspect-ratio: 1 / 1;
  }

  .footer-inner {
    padding-bottom: 2.2rem;
  }
}
