:root {
  --color-cream: #F6F3E4;
  --color-teal: #27757F;
  --color-teal-dark: #1E5B63;
  --color-gold: #BA9C5E;
  --color-mauve: #A5787F;
  --color-text: #2B2B28;
  --color-ink: #211F1B;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--color-cream);
  color: var(--color-text);
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a {
  color: var(--color-mauve);
  text-decoration: none;
}

a:hover {
  color: var(--color-ink);
}

.mono {
  font-family: 'IBM Plex Mono', monospace;
}

/* Header / nav -- shared with 404.html */

.site-header {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid rgba(33, 31, 27, 0.08);
  background: var(--color-cream);
  position: relative;
  z-index: 9;
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-ink);
}

.site-header .brand span {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.01em;
}

.logo {
  height: 30px;
  width: 30px;
  object-fit: contain;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.navlinks a {
  color: var(--color-ink);
}

.navlinks a:hover {
  color: var(--color-mauve);
}

.navlinks .dot {
  color: rgba(33, 31, 27, 0.3);
}

/* Hero: the scrolling storefront street */

.hero {
  position: relative;
  height: 600px;
  background: linear-gradient(180deg, #EAF3F1 0%, var(--color-cream) 70%);
  overflow: hidden;
}

.edge-fade {
  position: absolute;
  top: 0;
  bottom: 64px;
  width: 90px;
  z-index: 15;
  pointer-events: none;
}

.edge-fade.left {
  left: 0;
  background: linear-gradient(90deg, var(--color-cream), rgba(246, 243, 228, 0));
}

.edge-fade.right {
  right: 0;
  background: linear-gradient(270deg, var(--color-cream), rgba(246, 243, 228, 0));
}

.arrow-hint {
  position: absolute;
  top: 277px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1.5px solid rgba(33, 31, 27, 0.15);
  box-shadow: 0 6px 16px rgba(33, 31, 27, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.arrow-hint.left {
  left: 20px;
}

.arrow-hint.right {
  right: 20px;
}

.street-scroll {
  position: absolute;
  inset: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.street-track {
  position: relative;
  height: 600px;
  width: max-content;
  min-width: 100%;
}

.sidewalk {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  background: #DAD2C8;
  border-top: 2px solid #C3B8AC;
}

.curb {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 64px;
  height: 6px;
  background: #C3B8AC;
}

.buildings {
  display: flex;
  align-items: flex-end;
  gap: 40px;
  padding: 0 80px 66px;
  height: 100%;
}

.bldg {
  position: relative;
  height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  scroll-snap-align: center;
}

.bldg img {
  height: 100%;
  width: auto;
  display: block;
  filter: drop-shadow(0 10px 14px rgba(33, 31, 27, 0.18));
}

.enter-pill {
  position: absolute;
  bottom: -34px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-cream);
  border: 1.5px solid var(--color-ink);
  border-radius: 999px;
  padding: 5px 14px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: var(--color-ink);
}

.dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 18px 0 0;
}

.dots a {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(33, 31, 27, 0.2);
  display: block;
}

.dots a:hover {
  background: var(--color-mauve);
}

/* Marquee ticker */

.marquee {
  background: var(--color-ink);
  color: var(--color-cream);
  height: 44px;
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  gap: 26px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-left: 26px;
}

/* Featured grid */

.featured {
  padding: 56px 24px 40px;
  max-width: 1240px;
  margin: 0 auto;
}

.featured-head {
  margin-bottom: 34px;
}

.featured-head .eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-mauve);
  display: block;
  margin-bottom: 8px;
}

.featured-head h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px 28px;
}

.featured-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.featured-card .tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-mauve);
  display: block;
  margin: 14px 0 4px;
}

.featured-card .title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 8px;
}

.featured-card a {
  font-weight: 600;
  font-size: 13px;
  color: var(--color-teal);
}

.featured-card a:hover {
  color: var(--color-teal-dark);
}

/* Blurb (also used standalone on 404.html) */

.blurb {
  max-width: 640px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  text-align: center;
  font-size: 1.15rem;
  line-height: 1.6;
}

.blurb h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* Footer -- shared with 404.html */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 24px 40px;
  border-top: 1px solid rgba(33, 31, 27, 0.08);
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  color: rgba(33, 31, 27, 0.6);
}

.logo-small {
  height: 22px;
  width: 22px;
  object-fit: contain;
}

.site-footer .social-links {
  display: flex;
  gap: 16px;
}

.site-footer .social-links a {
  font-weight: 600;
  font-size: 13px;
  color: var(--color-ink);
}

.site-footer .social-links a:hover {
  color: var(--color-mauve);
}

/* Small screens */

@media (max-width: 640px) {
  .hero, .street-track, .street-scroll {
    height: 420px;
  }

  .bldg {
    height: 330px;
  }

  .buildings {
    padding-bottom: 56px;
  }

  .sidewalk {
    height: 54px;
  }

  .curb {
    bottom: 54px;
  }

  .arrow-hint {
    display: none;
  }

  .site-header .brand span {
    display: none;
  }

  .featured-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 24px 16px;
  }

  .featured-card img {
    height: 190px;
  }
}
