:root {
  --ink: #142219;
  --forest: #142c20;
  --forest-deep: #0c1c14;
  --cream: #f2ede3;
  --paper: #fbf8f1;
  --moss: #b9c49a;
  --gold: #d7b477;
  --rust: #a95230;
  --muted: #657067;
  --line: rgba(20, 34, 25, 0.18);
  --white: #fffdf8;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
}

::selection {
  background: var(--gold);
  color: var(--forest-deep);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

body > header {
  align-items: center;
  background: var(--forest-deep);
  border-bottom-color: rgba(255, 255, 255, 0.18);
  color: white;
  gap: 24px;
  min-height: 86px;
}

body > header .brand {
  align-items: center;
  color: white;
  display: inline-flex;
  font: 700 13px Arial, Helvetica, sans-serif;
  gap: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

body > header .project,
body > header .project-mark {
  color: rgba(255, 255, 255, 0.68);
}

body > main h1,
body > main h2,
body > main h3 {
  color: var(--forest-deep);
  letter-spacing: -0.025em;
}

body > main > .eyebrow,
body > main section > .eyebrow {
  color: #7d6949;
}

body > main .card,
body > main .photo-upload,
body > main .form-card,
body > main .place-map-shell,
body > main .other-place-card {
  background: var(--white);
  border-color: var(--line);
  box-shadow: 0 18px 50px rgba(20, 34, 25, 0.045);
}

body > main .add-place-button,
body > main button[type="submit"] {
  background: var(--forest);
}

body > main .add-place-button:hover,
body > main button[type="submit"]:hover {
  background: var(--forest-deep);
}

.across-hero {
  background: var(--forest-deep);
  color: white;
  min-height: 100svh;
  overflow: hidden;
  position: relative;
}

.across-hero-image,
.across-hero-shade {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.across-hero-image {
  animation: across-settle 1.8s ease-out both;
  filter: saturate(0.92) brightness(1.05);
  object-fit: cover;
  object-position: center 54%;
}

.across-hero-shade {
  background:
    linear-gradient(90deg, rgba(7, 18, 12, 0.69) 0%, rgba(7, 18, 12, 0.48) 34%, rgba(7, 18, 12, 0.09) 59%, rgba(7, 18, 12, 0.01) 100%),
    linear-gradient(rgba(7, 18, 12, 0.08) 0%, transparent 66%, rgba(7, 18, 12, 0.46) 100%);
}

.across-hero-header {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.26);
  display: flex;
  inset: 0 0 auto;
  justify-content: space-between;
  padding: 2rem clamp(1.5rem, 5vw, 5rem);
  position: absolute;
  z-index: 3;
}

.across-wordmark {
  align-items: center;
  color: white;
  display: inline-flex;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  gap: 0.85rem;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
}

.across-logo-mark {
  color: var(--gold);
  display: inline-block;
  flex: 0 0 auto;
  height: 1.05rem;
  overflow: hidden;
  position: relative;
  transform: rotate(-12deg);
  transform-origin: center;
  width: 3rem;
}

.across-logo-mark::before {
  border: 2px solid currentColor;
  border-radius: 50%;
  content: "";
  height: 1.05rem;
  left: -0.08rem;
  position: absolute;
  top: 0.34rem;
  width: 3.16rem;
}

.across-project-mark,
.across-photo-note,
.across-hero .eyebrow,
.across-scroll-label,
.across-section-label {
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.across-project-mark {
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}

.across-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
  padding: 9rem clamp(1.5rem, 8vw, 8rem) 8rem;
  position: relative;
  z-index: 2;
}

.across-hero .eyebrow {
  color: var(--gold);
  margin: 0 0 1.5rem;
}

.across-hero h1 {
  color: white;
  font: 400 clamp(3.25rem, 7.4vw, 7.6rem) / 0.93 Georgia, "Times New Roman", serif;
  letter-spacing: -0.045em;
  margin: 0;
  max-width: 13ch;
  text-shadow: 0 2px 24px rgba(4, 11, 7, 0.2);
  text-wrap: balance;
}

.across-hero-intro {
  color: rgba(255, 255, 255, 0.86);
  font: 400 clamp(1.08rem, 2vw, 1.45rem) / 1.55 Georgia, "Times New Roman", serif;
  margin: 2rem 0 0;
  max-width: 34rem;
}

.across-hero-link {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.78);
  color: white;
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 700;
  gap: 1.5rem;
  letter-spacing: 0.14em;
  margin-top: 2.5rem;
  padding-bottom: 0.7rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 0.18s, gap 0.18s;
  width: fit-content;
}

.across-hero-link:hover,
.across-hero-link:focus-visible {
  border-color: var(--gold);
  gap: 2rem;
}

.across-photo-note {
  bottom: 2.4rem;
  color: rgba(255, 255, 255, 0.66);
  display: flex;
  gap: 1.5rem;
  position: absolute;
  right: clamp(1.5rem, 5vw, 5rem);
  z-index: 2;
}

.across-scroll-cue {
  align-items: center;
  bottom: calc(1.45rem + 28px);
  color: rgba(255, 255, 255, 0.76);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  left: 50%;
  position: absolute;
  text-decoration: none;
  transition: color 0.18s;
  transform: translateX(-50%);
  z-index: 3;
}

.across-scroll-cue:hover,
.across-scroll-cue:focus-visible {
  color: white;
}

.across-scroll-cue:focus-visible {
  border-radius: 0.2rem;
  outline: 2px solid var(--gold);
  outline-offset: 0.45rem;
}

.across-scroll-label {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-shadow: 0 1px 8px rgba(5, 13, 8, 0.65);
}

.across-scroll-motion {
  display: block;
  height: 1.9rem;
  position: relative;
  width: 3.25rem;
}

.across-scroll-arrow {
  align-items: center;
  animation: across-water-drop 2.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  color: var(--gold);
  display: flex;
  filter: drop-shadow(0 1px 5px rgba(5, 13, 8, 0.78));
  flex-direction: column;
  gap: 0.03rem;
  left: 50%;
  position: absolute;
  top: -0.55rem;
  transform: translateX(-50%);
  width: 2rem;
}

.across-scroll-chevron {
  display: block;
  height: 0.72rem;
  position: relative;
  width: 1.8rem;
}

.across-scroll-chevron::before,
.across-scroll-chevron::after {
  background: currentColor;
  border-radius: 999px;
  content: "";
  height: 2px;
  position: absolute;
  top: 0.08rem;
  width: 0.98rem;
}

.across-scroll-chevron::before {
  left: 0.06rem;
  transform: rotate(32deg);
  transform-origin: left;
}

.across-scroll-chevron::after {
  right: 0.06rem;
  transform: rotate(-32deg);
  transform-origin: right;
}

.across-scroll-ripple {
  animation: across-water-ripple 2.6s ease-out infinite;
  border: 1px solid rgba(215, 180, 119, 0.9);
  border-radius: 50%;
  bottom: 0;
  height: 0.72rem;
  left: 50%;
  position: absolute;
  transform: translateX(-50%) scale(0.18);
  width: 3.25rem;
}

.homepage-manifesto {
  background: var(--cream);
  border-radius: 28px 28px 0 0;
  display: grid;
  gap: clamp(2rem, 8vw, 9rem);
  grid-template-columns: minmax(9rem, 0.38fr) minmax(0, 1fr);
  margin-top: -28px;
  padding: clamp(5rem, 10vw, 10rem) clamp(1.5rem, 8vw, 8rem);
  position: relative;
  z-index: 4;
}

.across-section-label {
  color: #6c755d;
  margin: 0;
  padding-top: 0.7rem;
}

.homepage-manifesto h2 {
  color: var(--forest-deep);
  font: 400 clamp(3rem, 6.2vw, 6.6rem) / 0.98 Georgia, "Times New Roman", serif;
  letter-spacing: -0.035em;
  margin: 0;
  max-width: 13ch;
}

.homepage-manifesto-copy > p {
  color: #4c584e;
  font: 400 clamp(1.12rem, 1.7vw, 1.42rem) / 1.75 Georgia, "Times New Roman", serif;
  margin: 2.5rem 0 0 auto;
  max-width: 43rem;
}

.discovery-content {
  margin: 0 auto;
  max-width: 1220px;
  padding: clamp(4rem, 7vw, 7rem) 0 5rem;
  width: calc(100% - 40px);
}

.discover-main {
  margin: 0;
  max-width: none;
  padding: 0;
  width: 100%;
}

@keyframes across-settle {
  from {
    opacity: 0;
    transform: scale(1.025);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes across-water-drop {
  0%,
  14% {
    opacity: 0.42;
    transform: translate(-50%, -0.45rem);
  }
  32% {
    opacity: 1;
    transform: translate(-50%, 0.25rem);
  }
  48%,
  70% {
    opacity: 0.95;
    transform: translate(-50%, 0.05rem);
  }
  100% {
    opacity: 0.42;
    transform: translate(-50%, 0.2rem);
  }
}

@keyframes across-water-ripple {
  0%,
  30% {
    opacity: 0.16;
    transform: translateX(-50%) scale(0.18);
  }
  38% {
    opacity: 0.85;
  }
  76%,
  100% {
    opacity: 0.16;
    transform: translateX(-50%) scale(1);
  }
}

@media (max-width: 780px) {
  body > header {
    min-height: 74px;
  }

  .across-hero-header {
    padding: 1.35rem 1.25rem;
  }

  .across-project-mark {
    display: none;
  }

  .across-hero-content {
    justify-content: flex-end;
    padding: 8rem 1.25rem 8rem;
  }

  .across-hero-image {
    object-position: 59% center;
  }

  .across-hero h1 {
    font-size: clamp(3.35rem, 16vw, 5.5rem);
    max-width: 10ch;
  }

  .across-photo-note {
    bottom: 1.4rem;
    flex-direction: column;
    gap: 0.35rem;
    left: 1.25rem;
    right: auto;
  }

  .across-scroll-cue {
    bottom: calc(1.2rem + 28px);
    left: auto;
    right: 1.25rem;
    transform: none;
  }

  .homepage-manifesto {
    gap: 2rem;
    grid-template-columns: 1fr;
    padding: 5.5rem 1.25rem 6rem;
  }

  .homepage-manifesto-copy > p {
    margin-left: 0;
  }

  .discovery-content {
    width: min(100% - 24px, 1220px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .across-hero-image,
  .across-scroll-arrow,
  .across-scroll-ripple {
    animation: none;
  }

  .across-scroll-arrow {
    opacity: 1;
    transform: translate(-50%, 0.05rem);
  }

  .across-scroll-ripple {
    opacity: 0.65;
    transform: translateX(-50%) scale(1);
  }
}
