:root {
  color-scheme: light;
  --ink: #16201d;
  --muted: #62706b;
  --paper: #fbf8f2;
  --white: #ffffff;
  --line: rgba(22, 32, 29, 0.14);
  --forest: #10231f;
  --sea: #157f7a;
  --sun: #f2b84b;
  --rose: #d9586f;
  --tomato: #e05d3f;
  --blue: #244f8f;
  --shadow: 0 22px 70px rgba(22, 32, 29, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: 0;
}

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 44px);
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(16, 35, 31, 0.78), rgba(16, 35, 31, 0));
}

.brand-mark,
.nav-links,
.quest-strip {
  display: flex;
  align-items: center;
}

.brand-mark {
  flex: 0 0 auto;
  gap: 10px;
  font-weight: 900;
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  white-space: nowrap;
}

.quest-word {
  position: relative;
  display: inline-block;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 800;
  letter-spacing: 0;
}

.quest-word::after {
  content: "";
  position: absolute;
  left: 0.42em;
  right: -0.2em;
  bottom: -0.1em;
  height: 0.34em;
  border-bottom: 2px solid currentColor;
  border-radius: 50%;
  transform: rotate(-6deg);
  transform-origin: left center;
  opacity: 0.95;
}

.brand-mark img {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  object-fit: cover;
  backdrop-filter: blur(12px);
}

.nav-links {
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(16, 35, 31, 0.36);
  backdrop-filter: blur(16px);
}

.nav-links a,
.nav-links button {
  padding: 9px 11px;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links button:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.13);
}

.top-tagline {
  flex: 1 1 280px;
  min-width: 160px;
  max-width: 420px;
  overflow: hidden;
  padding: 8px 0;
  color: #ffd879;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
}

.top-tagline-track {
  display: flex;
  width: max-content;
  gap: 28px;
  animation: tagline-scroll 14s linear infinite;
}

.top-tagline span {
  white-space: nowrap;
}

@keyframes tagline-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 14px));
  }
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("/assets/findmyquest-hero.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(9, 19, 17, 0.88), rgba(9, 19, 17, 0.44) 48%, rgba(9, 19, 17, 0.2)),
    linear-gradient(0deg, rgba(9, 19, 17, 0.86), rgba(9, 19, 17, 0) 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(900px, calc(100% - 36px));
  margin: 0 clamp(18px, 6vw, 76px) clamp(96px, 13vh, 150px);
}

.eyebrow {
  width: fit-content;
  margin-bottom: 14px;
  color: #ffe5a2;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--sea);
}

.hero h1 {
  max-width: 860px;
  font-size: clamp(48px, 7.6vw, 104px);
  line-height: 0.94;
}

.tagline {
  margin-top: 14px;
  color: #ffd879;
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 900;
}

.hero-copy {
  max-width: 650px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
}

.button.primary {
  color: var(--forest);
  background: var(--sun);
}

.button.glass {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.button.dark {
  width: fit-content;
  color: var(--white);
  background: var(--forest);
}

.quest-strip {
  position: relative;
  z-index: 5;
  width: min(1280px, calc(100% - 32px));
  margin: -8px auto 0;
  justify-content: center;
  gap: 12px;
  padding: 14px;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.quest-chip {
  flex: 1 1 160px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 208px;
  min-height: 54px;
  padding: 12px 16px;
  border: 0;
  border-radius: var(--radius);
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  background: color-mix(in srgb, var(--accent) 13%, white);
}

.quest-chip .icon {
  color: var(--accent);
}

.section {
  padding: clamp(64px, 9vw, 110px) clamp(18px, 5vw, 64px);
}

.section-heading {
  max-width: 100%;
  margin-bottom: 26px;
}

.section-heading h2 {
  font-size: clamp(30px, 3.4vw, 52px);
  line-height: 1.05;
}

.quests-section .section-heading h2 {
  white-space: nowrap;
}

.section-heading p:not(.eyebrow) {
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.quest-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.card-head div {
  display: grid;
  place-items: center;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, white);
}

.quest-card h3 {
  font-size: 26px;
  line-height: 1.1;
}

.quest-card p {
  color: var(--muted);
  line-height: 1.6;
}

.quest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.quest-card {
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 22px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.card-head div {
  width: 44px;
  height: 44px;
  border-radius: 999px;
}

.card-head span {
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--ink);
  background: #f3eee4;
  font-size: 12px;
  font-weight: 900;
}

.quest-card p {
  margin-top: 10px;
}

.quest-card ul {
  display: grid;
  gap: 9px;
  margin: 18px 0 26px;
  padding: 0;
  list-style: none;
}

.quest-card li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
}

.quest-card li .icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.quest-card a,
.quest-card button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 0;
  border: 0;
  color: var(--accent);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  font-weight: 900;
}

.coming-soon-link {
  position: relative;
  cursor: help;
}

.soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transform: translateX(-3px);
  transition: max-width 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.soon-badge .icon {
  width: 15px;
  height: 15px;
}

.coming-soon-link:hover .soon-badge,
.coming-soon-link:focus-visible .soon-badge {
  max-width: 128px;
  opacity: 1;
  transform: translateX(0);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 5vw, 64px);
  color: var(--white);
  background: #091310;
}

.footer p {
  color: rgba(255, 255, 255, 0.72);
}

.footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-weight: 850;
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
  }

  .top-tagline {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-content {
    margin-bottom: 92px;
  }

  .quest-strip {
    width: calc(100% - 20px);
    flex-wrap: wrap;
    margin-top: -10px;
  }

  .quest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

}

@media (prefers-reduced-motion: reduce) {
  .top-tagline-track {
    animation: none;
    transform: none;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand-mark strong {
    font-size: 14px;
  }

  .brand-wordmark {
    gap: 4px;
  }

  .brand-mark img {
    width: 34px;
    height: 34px;
  }

  .hero-content {
    width: calc(100% - 32px);
    margin: 0 16px 86px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .quests-section .section-heading h2 {
    white-space: normal;
  }

  .tagline {
    font-size: 23px;
  }

  .button {
    width: 100%;
  }

  .quest-strip {
    gap: 8px;
    padding: 10px;
  }

  .quest-chip {
    flex-basis: calc(50% - 8px);
    max-width: none;
    min-height: 48px;
    padding: 10px 12px;
  }

  .section {
    padding: 58px 16px;
  }

  .quest-card {
    padding: 18px;
  }

  .quest-grid {
    grid-template-columns: 1fr;
  }

}
