:root {
  --cream: #fff8ed;
  --dark: #1c180d;
  --footer: #b4b1ab;
  --text: #1c180d;
  --accent: #ccff00;
  --accent-ink: #1c180d;
  --muted: #6b6555;
  --border: rgba(28, 24, 13, 0.14);
  --card: #ffffff;
  --maxw: 1240px;
  --font-display: "Sniglet", system-ui, sans-serif;
  --font-script: "Caveat", "Sniglet", cursive;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Feature-flagged elements are hidden until enabled in src/config.js.
   main.js removes data-feature when the matching flag is true. */
[data-feature] {
  display: none !important;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.skipLink {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 0 0 12px 0;
  font-weight: 600;
  text-decoration: none;
}
.skipLink:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid #7a9e00;
  outline-offset: 2px;
  border-radius: 6px;
}

/* ============================== HEADER ============================== */
.siteHeader {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}

.headerInner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logoText {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 30px;
  color: var(--text);
  line-height: 1;
}

.desktopNav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.desktopNav a {
  font-weight: 500;
  font-size: 17px;
  text-decoration: none;
  color: var(--text);
  transition: opacity 0.15s ease;
}

.desktopNav a:not(.pillBuy):hover {
  opacity: 0.6;
}

/* active page in the primary nav gets the hand-drawn underline */
.desktopNav .navActive {
  color: var(--text);
  font-weight: 700;
}
.desktopNav .navActive .scribble {
  display: inline-block;
  padding-bottom: 0.25em;
  background: url("public/images/doodles/underline.svg") no-repeat left 100% / 100% 0.4em;
}
.mobileMenu .navActive {
  color: #6f8f14;
  font-weight: 700;
}

.pillBuy {
  padding: 10px 26px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(159, 200, 0, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pillBuy:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(159, 200, 0, 0.45);
}

.menuToggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}
.menuToggle span {
  display: block;
  height: 2.5px;
  border-radius: 2px;
  background: var(--text);
}

/* =============================== HERO =============================== */
.hero {
  background: var(--cream);
}

.heroInner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 24px 64px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
}

.heroCopy h1 {
  margin: 0;
  font-size: clamp(5rem, 12vw, 9.5rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  transform: rotate(-2deg);
  transform-origin: left center;
}

.tagline {
  margin: 22px 0 6px;
  font-size: clamp(1.7rem, 3.2vw, 2.55rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.scriptAccent {
  margin: 6px 0 30px;
  font-family: var(--font-script);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1;
  color: #7a9e00;
  transform: rotate(-2deg);
  transform-origin: left center;
}

/* Small paw accent trailing the hero script line; inherits the line's green. */
.heroPaw {
  display: inline-block;
  width: 0.82em;
  height: 0.82em;
  margin-left: 0.28em;
  vertical-align: baseline;
  fill: currentColor;
  rotate: 12deg;
}

.ctaRow {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 30px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover {
  transform: translateY(-2px);
}

.btnPrimary {
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid rgba(28, 24, 13, 0.1);
  box-shadow: 0 10px 26px rgba(159, 200, 0, 0.4);
}

.btnSecondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid rgba(28, 24, 13, 0.28);
}
.btnSecondary:hover {
  border-color: var(--text);
}

.btnDark {
  background: var(--dark);
  color: #fdfbf3;
  border: 1px solid var(--dark);
  box-shadow: 0 10px 26px rgba(28, 24, 13, 0.28);
}
.btnDark:hover {
  background: #000;
}

/* ------------------------------ hero art ------------------------------ */
.heroArt {
  position: relative;
  min-height: 460px;
  display: grid;
  place-items: center;
}

.aura {
  position: absolute;
  z-index: 0;
  width: min(90%, 460px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    var(--accent) 0%,
    rgba(204, 255, 0, 0.55) 42%,
    rgba(204, 255, 0, 0) 72%
  );
  filter: blur(6px);
}

.dogSlot {
  position: relative;
  z-index: 2;
}

.dogSlot--cutout {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: min(96%, 460px);
}
.dogSlot--cutout .dogImg {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(66vh, 520px);
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(28, 24, 13, 0.22));
}

.doodle {
  position: absolute;
  z-index: 3;
  width: 58px;
  height: auto;
  pointer-events: none;
  will-change: translate, rotate, scale;
}
.doodleCrown {
  top: 4%;
  right: 12%;
  width: 66px;
  rotate: 8deg;
  animation: floatA 6s ease-in-out infinite;
}
.doodleBone {
  top: 22%;
  left: 2%;
  width: 74px;
  rotate: -18deg;
  animation: floatB 7.5s ease-in-out infinite;
}
.doodleArrow {
  top: 48%;
  left: 3%;
  width: 52px;
  rotate: 4deg;
  animation: floatC 6.5s ease-in-out infinite;
}
.doodleSparkle {
  bottom: 20%;
  right: 6%;
  width: 36px;
  animation: twinkle 4s ease-in-out infinite;
}
.doodleWoof {
  top: 43%;
  right: 0%;
  width: 66px;
  rotate: -4deg;
  animation: floatA 5.5s ease-in-out infinite 0.4s;
}
.doodleSwirl {
  bottom: 11%;
  left: 7%;
  width: 56px;
  rotate: -6deg;
  animation: floatC 7s ease-in-out infinite 0.8s;
}

@keyframes floatA {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -16px;
  }
}
@keyframes floatB {
  0%,
  100% {
    translate: 0 0;
    rotate: -18deg;
  }
  50% {
    translate: 9px -12px;
    rotate: -11deg;
  }
}
@keyframes floatC {
  0%,
  100% {
    translate: 0 0;
  }
  33% {
    translate: -7px -14px;
  }
  66% {
    translate: 7px -6px;
  }
}
@keyframes twinkle {
  0%,
  100% {
    translate: 0 0;
    scale: 1;
    opacity: 0.85;
  }
  50% {
    translate: 0 -8px;
    scale: 1.3;
    opacity: 1;
  }
}

/* placeholder shown until the real dog asset is added */
.dogSlot.is-missing {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: 24px;
  border: 2px dashed rgba(28, 24, 13, 0.35);
  border-radius: 24px;
  background: rgba(204, 255, 0, 0.12);
  text-align: center;
}
.dogSlot.is-missing .dogImg {
  display: none;
}
.dogSlot__placeholder {
  max-width: 30ch;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted);
}
.dogSlot__placeholder strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text);
}
.dogSlot__placeholder code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82em;
}
.about .dogSlot.is-missing {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.35);
}
.about .dogSlot__placeholder,
.about .dogSlot__placeholder strong {
  color: #f3efe2;
}

/* =============================== ABOUT ============================== */
.about {
  position: relative;
  background: var(--dark);
  color: #f6f2e6;
}

/* faint cyber grid: two thin accent-tinted line sets, masked to fade at edges */
.about::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(204, 255, 0, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(204, 255, 0, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 50% 45%, #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 75% at 50% 45%, #000 35%, transparent 100%);
}

.aboutInner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 84px 24px;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 40px 56px;
}

.aboutStage {
  position: relative;
}
.aboutMedia .dogSlot--photo {
  position: relative;
  z-index: 1;
  width: 78%;
  rotate: -3deg;
}
.aboutMedia .dogSlot--photo::before {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: 0;
  border-radius: 32px;
  background: var(--accent);
  opacity: 0.55;
  filter: blur(30px);
  pointer-events: none;
  animation: auraPulse 5s ease-in-out infinite;
}
.aboutMedia .dogImg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 0 34px rgba(204, 255, 0, 0.4), 0 18px 50px rgba(0, 0, 0, 0.45);
}

@keyframes auraPulse {
  0%,
  100% {
    opacity: 0.45;
    filter: blur(30px);
  }
  50% {
    opacity: 0.65;
    filter: blur(38px);
  }
}

.aboutText h2 {
  margin: 0 0 20px;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  color: #fdfbf3;
}
.aboutText p {
  margin: 0 0 18px;
  font-size: 1.1rem;
  line-height: 1.65;
  color: #e7e2d3;
  max-width: 52ch;
}
.accentLine {
  position: relative;
  margin-top: 24px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--accent) !important;
}

/* hand-drawn underline under the About heading and accent line */
.about .scribble {
  display: inline-block;
  padding-bottom: 0.3em;
  background: url("public/images/doodles/underline.svg") no-repeat left 100% / 100% 0.4em;
}

/* ------------------------ fake Vlad Tenev tweet ------------------------ */
.tweetCard {
  position: relative;
  z-index: 3;
  display: block;
  width: 74%;
  margin: -22% 2% 0 auto;
  padding: 16px 18px 14px;
  rotate: 2deg;
  border-radius: 18px;
  border: 1.5px solid rgba(204, 255, 0, 0.85);
  background: #000;
  color: #e7e9ea;
  text-decoration: none;
  box-shadow: 0 0 26px rgba(204, 255, 0, 0.35), 0 22px 50px rgba(0, 0, 0, 0.55);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.tweetCard:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 36px rgba(204, 255, 0, 0.5), 0 26px 60px rgba(0, 0, 0, 0.6);
}
.tweetTape {
  position: absolute;
  top: -11px;
  left: 50%;
  width: 74px;
  height: 22px;
  translate: -50% 0;
  rotate: -4deg;
  background: rgba(233, 233, 224, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.tweetCard__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.tweetCard__avatar {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 50%;
  background: #2b2f36;
  color: #8b98a5;
}
.tweetCard__avatar svg {
  width: 40px;
  height: 40px;
}
.tweetCard__avatarImg {
  width: 40px;
  height: 40px;
  object-fit: cover;
}
/* Once the real avatar image loads, hide the fallback silhouette icon. */
.tweetCard__avatar.has-avatar .tweetCard__avatarIcon {
  display: none;
}
.tweetCard__who {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}
.tweetCard__name {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #e7e9ea;
}
.tweetCard__badge {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.tweetCard__handle {
  color: #71767b;
  font-size: 0.88rem;
}
.tweetCard__x {
  width: 18px;
  height: 18px;
  margin-left: auto;
  flex-shrink: 0;
  color: #e7e9ea;
}
.tweetCard__body {
  margin: 0 0 10px;
  font-size: 0.98rem;
  line-height: 1.4;
  color: #e7e9ea;
}
.tweetCard__time {
  margin: 0 0 12px;
  font-size: 0.82rem;
  color: #71767b;
}
.tweetCard__time strong {
  color: #e7e9ea;
  font-weight: 700;
}
.tweetCard__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid #22252a;
  color: #71767b;
  font-size: 0.8rem;
}
.tweetCard__action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.tweetCard__action svg {
  width: 16px;
  height: 16px;
}

/* ============================== CHART ============================= */
.chart {
  background: var(--cream);
}
.chartInner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 24px 72px;
  text-align: center;
}
.chart h2 {
  margin: 0 0 26px;
  font-size: clamp(2rem, 4vw, 2.8rem);
}
.chartEmbed {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding-bottom: 125%;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0b0e0a;
  box-shadow: 0 18px 50px rgba(28, 24, 13, 0.1);
}
@media (min-width: 768px) {
  .chartEmbed {
    padding-bottom: 78%;
  }
}
@media (min-width: 1400px) {
  .chartEmbed {
    padding-bottom: 62%;
  }
}
.chartEmbed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.chartEmbed__fallback {
  position: absolute;
  inset: 0;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  color: #cfd3c4;
  font-size: 0.95rem;
}
.dexLink {
  display: inline-block;
  margin-top: 18px;
  color: #6f8f14;
  font-weight: 600;
  text-decoration: none;
}
.dexLink:hover {
  text-decoration: underline;
}

/* ----------------------------- CA chip ---------------------------- */
.caChip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid rgba(28, 24, 13, 0.22);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.caChip:hover {
  background: rgba(28, 24, 13, 0.05);
  border-color: rgba(28, 24, 13, 0.4);
}
.caChip.is-copied {
  border-color: var(--accent);
  background: rgba(204, 255, 0, 0.25);
}
.caChip__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #6f8f14;
}
.caChip__text [data-ca-addr] {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 600;
}
.caChip--menu {
  align-self: flex-start;
  margin-top: 12px;
}

/* =============================== FOOTER ============================= */
.siteFooter {
  background: var(--footer);
  color: var(--text);
}
.footerInner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.footerBrand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
}
.footerLinks {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  justify-self: center;
  color: rgba(28, 24, 13, 0.55);
}
.footerLinks button {
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.98rem;
  cursor: pointer;
  padding: 4px 2px;
  text-decoration: none;
}
.footerLinks button:hover {
  text-decoration: underline;
}
.footerSocial {
  justify-self: end;
}
.iconLink {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--text);
}
.iconLink svg {
  width: 18px;
  height: 18px;
}
.iconLink:hover {
  background: rgba(28, 24, 13, 0.08);
}

/* ============================ MOBILE MENU =========================== */
.menuOverlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(28, 24, 13, 0.55);
}
.menuOverlay[hidden] {
  display: none;
}
.mobileMenu {
  position: absolute;
  top: 0;
  right: 0;
  width: min(82vw, 340px);
  height: 100%;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--cream);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.25);
}
.mobileMenuTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.menuClose {
  border: 0;
  background: transparent;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
}
.mobileMenu > a {
  padding: 16px 4px;
  border-bottom: 1px solid var(--border);
  font-size: 1.15rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
}
.mobileMenu > a.pillBuy {
  margin-top: 16px;
  border: 0;
  text-align: center;
  font-weight: 700;
}

/* =============================== MODAL ============================== */
.modalOverlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(28, 24, 13, 0.6);
}
.modalOverlay[hidden] {
  display: none;
}
.modal {
  position: relative;
  width: min(100%, 540px);
  max-height: 85vh;
  overflow-y: auto;
  padding: 34px 36px;
  border-radius: 18px;
  background: var(--cream);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}
.modalClose {
  position: absolute;
  top: 12px;
  right: 16px;
  border: 0;
  background: transparent;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
}
.modal h2 {
  margin: 0 0 16px;
  font-size: 1.9rem;
}
.modalBody p {
  margin: 0 0 14px;
  font-size: 1rem;
  line-height: 1.6;
  color: #3a352a;
}
.modalBody p:last-child {
  margin-bottom: 0;
}

/* ============================ RESPONSIVE =========================== */
@media (max-width: 900px) {
  .aboutInner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 56px 24px;
  }
  .aboutStage {
    max-width: 460px;
    margin: 0 auto;
  }
  .aboutMedia .dogSlot--photo {
    width: 88%;
    margin: 0 auto;
    rotate: -2deg;
  }
  .tweetCard {
    width: 92%;
    margin: -14% auto 0;
    rotate: 1deg;
  }
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 76px;
  }
  .desktopNav {
    display: none;
  }
  .menuToggle {
    display: flex;
  }
  .heroInner {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 28px 22px 48px;
    text-align: center;
  }
  .heroCopy {
    order: 2;
  }
  .heroArt {
    order: 1;
    min-height: 320px;
  }
  .heroCopy h1,
  .scriptAccent {
    transform: rotate(-1deg);
    transform-origin: center;
  }
  .tagline {
    margin-left: auto;
    margin-right: auto;
  }
  .ctaRow {
    flex-direction: column;
  }
  .btn {
    width: 100%;
  }
  .footerInner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 12px;
  }
  .footerLinks,
  .footerSocial {
    justify-self: center;
  }
}

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