/* ZT Nature by Zelowtype, 1001Fonts FFC license. Only the Bold is used, for every heading weight. */
@font-face {
  font-family: "ZT Nature";
  src: url("fonts/ZTNature-Bold.otf") format("opentype");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

/* Five colors total. Navy, bone and orange are the logo's. */
:root {
  --navy: #1d2026;
  --night: #2a2e37;
  --bone: #f7f5ec;
  --sand: #e8e3d4;
  --orange: #f46321;

  --bg: var(--bone);
  --surface: var(--sand);
  --line: var(--sand);
  --text: var(--navy);
  --accent: var(--orange);
  --accent-ink: var(--navy);

  --font-display: "ZT Nature", "Segoe UI", sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", sans-serif;
  --wrap: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--navy);
    --surface: var(--night);
    --line: var(--night);
    --text: var(--bone);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: var(--navy);
  --surface: var(--night);
  --line: var(--night);
  --text: var(--bone);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font-body);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--text); text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
p { margin: 0 0 1em; }
/* Browsers default code to monospace; we don't use monospace at all. */
code, kbd, samp, pre { font-family: inherit; font-size: inherit; }
code {
  font-weight: 700;
  background: var(--surface);
  border-radius: 4px;
  padding: 0 0.3em;
  white-space: nowrap;
}
figure { margin: 0; }
figcaption { margin-top: 14px; font-size: 16px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--surface); padding: 8px 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 10px;
  border: 2px solid transparent;
  font: 600 16px/1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { border-color: var(--accent-ink); }
.btn-ghost { border-color: var(--text); color: var(--text); }
.btn-ghost:hover { background: var(--surface); }
.btn-dark { background: var(--navy); color: var(--bone); }
.btn-dark:hover { border-color: var(--bone); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 8px; min-height: 72px; }
.brand {
  display: flex; align-items: center;
  margin-right: auto;
  white-space: nowrap;
  font: 800 20px/1 var(--font-display);
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.brand img { position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 50%; }
/* On narrow screens the name tucks in behind the logo to make room for the buttons. */
.brand-name {
  display: inline-block;
  overflow: hidden;
  max-width: 0;
  margin-left: 0;
  opacity: 0;
  transform: translateX(-40px);
  transition: max-width 0.35s ease, margin-left 0.35s ease, opacity 0.25s ease, transform 0.35s ease;
}
.nav-links { display: none; }
.nav-links a, .menu-panel a { white-space: nowrap; text-decoration: none; font-weight: 500; }
.nav-links a:hover, .menu-panel a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.icon-btn svg { width: 20px; height: 20px; }
a.icon-btn { text-decoration: none; }
.kofi-btn { color: var(--accent); }
.kofi-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
}
.menu { position: relative; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute; right: 0; top: 56px;
  min-width: 210px;
  display: grid;
  padding: 8px;
  background: var(--bg);
  border: 1px solid var(--text);
  border-radius: 10px;
}
.menu-panel a { padding: 10px 12px; min-height: 44px; display: flex; align-items: center; }
.header-cta { display: none; }

/* hero */
.hero { padding: 48px 0 64px; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 8.5vw, 4.6rem); }
.hero h1 em { font-style: normal; color: var(--accent); }
.lede { font-size: 1.15rem; max-width: 34em; margin-bottom: 28px; }
.hero-note { margin: 22px 0 0; font-size: 16px; }

/* The mock-up of a caught scam post. Real ones vanish too fast to screenshot. */
.specimen-wrap { max-width: 460px; width: 100%; justify-self: center; }
.specimen {
  position: relative;
  background: var(--surface);
  border-radius: 12px;
  padding: 18px;
  transform: rotate(-1.2deg);
}
.msg-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--text); flex: none; }
.msg-name { font-weight: 600; }
.msg-text { margin: 4px 0 12px 48px; font-size: 16px; }
.mention { font-weight: 600; color: var(--accent-ink); background: var(--accent); border-radius: 4px; padding: 0 4px; }
.tiles { margin-left: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tile {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  background: var(--bg);
  display: grid; place-items: center;
  overflow: hidden;
}
.tile b { font: 800 clamp(1rem, 1.6vw, 1.2rem)/1 var(--font-display); text-align: center; padding: 0 6px; white-space: nowrap; }
.tile .tag {
  position: absolute; left: 6px; bottom: 6px;
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  font: 700 16px/1 var(--font-body);
  color: var(--accent);
  background: var(--surface);
}
.tile::before, .tile::after {
  content: ""; position: absolute; width: 12px; height: 12px;
  border: 2px solid var(--accent);
}
.tile::before { top: 6px; left: 6px; border-right: 0; border-bottom: 0; }
.tile::after { top: 6px; right: 6px; border-left: 0; border-bottom: 0; }
.stamp {
  position: absolute;
  top: 46%; left: 50%;
  transform: translate(-42%, -50%) rotate(-11deg);
  border: 4px solid var(--accent);
  border-radius: 6px;
  background: var(--surface);
  color: var(--accent);
  padding: 8px 16px 6px;
  text-align: center;
  font: 800 clamp(1.6rem, 7vw, 2.3rem)/1 var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  animation: stamp 0.5s cubic-bezier(.2, 1.6, .4, 1) 0.6s both;
}
.stamp small { display: block; font: 700 16px/1.3 var(--font-body); letter-spacing: 0; text-transform: none; }
@keyframes stamp {
  from { opacity: 0; transform: translate(-42%, -50%) rotate(-11deg) scale(2.2); }
  to { opacity: 1; transform: translate(-42%, -50%) rotate(-11deg) scale(1); }
}
.bot-line {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--text);
  font-size: 16px;
}
.bot-line img { width: 26px; height: 26px; border-radius: 50%; }

/* sections */
.section { padding: 64px 0; border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(1.9rem, 5.5vw, 2.8rem); }
.split { display: grid; gap: 8px 48px; }
.plain-list { margin: 0 0 1.2em; padding-left: 1.1em; }
.plain-list li { margin-bottom: 0.8em; }
.plain-list li::marker { color: var(--accent); }
.note { border-left: 3px solid var(--accent); padding-left: 16px; }
.prose p:last-child { margin-bottom: 0; }

.setup-grid { display: grid; gap: 40px; align-items: start; }
.steps { margin: 0 0 28px; padding-left: 1.3em; }
.steps li { margin-bottom: 0.9em; padding-left: 4px; }
.steps li::marker { color: var(--accent); font-weight: 800; }

/* The logo's crosshair, used as a frame for real screenshots. */
.shot { justify-self: center; max-width: 520px; }
.shot img {
  padding: 16px;
  border-radius: 4px;
  background:
    linear-gradient(var(--accent), var(--accent)) top left / 22px 3px,
    linear-gradient(var(--accent), var(--accent)) top left / 3px 22px,
    linear-gradient(var(--accent), var(--accent)) top right / 22px 3px,
    linear-gradient(var(--accent), var(--accent)) top right / 3px 22px,
    linear-gradient(var(--accent), var(--accent)) bottom left / 22px 3px,
    linear-gradient(var(--accent), var(--accent)) bottom left / 3px 22px,
    linear-gradient(var(--accent), var(--accent)) bottom right / 22px 3px,
    linear-gradient(var(--accent), var(--accent)) bottom right / 3px 22px;
  background-repeat: no-repeat;
}
.shot figcaption { text-align: center; }

.cmds { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 12px 24px; align-items: baseline; }
.cmds dt { white-space: nowrap; }
.cmds dt code { background: none; padding: 0; }
.cmds dd { margin: 0; }

.band { background: var(--accent); color: var(--accent-ink); padding: 48px 0; }
.band-inner { display: grid; gap: 20px; align-items: center; }
.band p { margin: 0; font-size: 1.15rem; max-width: 40em; }
.band .btn { justify-self: start; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 44px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 14px; }
.site-footer nav a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.site-footer nav a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.site-footer p { margin: 0 0 4px; font-size: 14px; }

/* terms, privacy */
.legal { padding: 56px 0 80px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2.3rem, 8vw, 3.4rem); }
.legal .updated { margin-bottom: 36px; }
.legal h2 { font-size: 1.5rem; margin-top: 2.2em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 0.4em; }
.table-scroll { overflow-x: auto; margin: 1em 0 1.5em; border: 1px solid var(--line); border-radius: 6px; }
.legal table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 1rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 14px; border-top: 1px solid var(--line); }
.legal thead th { border-top: 0; background: var(--surface); font-family: var(--font-display); }
.legal td:first-child { font-weight: 600; }

.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.lost h1 { font-size: clamp(3rem, 14vw, 7rem); color: var(--accent); margin: 0; }

/* egg.js */
.egg {
  position: absolute; top: 0; left: 0; z-index: 50;
  width: min(46vw, 280px); height: auto;
  border-radius: 6px;
  pointer-events: none;
  user-select: none;
  will-change: transform;
  transition: opacity 0.6s ease;
}
.egg.fading { opacity: 0; }

@media (min-width: 380px) {
  .brand-name { max-width: 7em; margin-left: 10px; opacity: 1; transform: none; }
}
@media (min-width: 720px) {
  body { font-size: 18px; }
  .wrap { padding: 0 28px; }
  .site-header .wrap { gap: 12px; min-height: 80px; }
  .brand { font-size: 22px; }
  .brand-name { margin-left: 12px; }
  .brand img { width: 58px; height: 58px; }
  .header-cta { display: inline-flex; min-height: 44px; padding: 0 16px; }
  .band-inner { grid-template-columns: 1fr auto; gap: 40px; }
}
@media (min-width: 920px) {
  .site-header .wrap { min-height: 88px; }
  .brand { font-size: 23px; }
  .brand-name { margin-left: 14px; }
  .brand img { width: 68px; height: 68px; }
  .hero { padding: 80px 0 96px; }
  .hero-grid { grid-template-columns: 1.15fr 1fr; gap: 56px; }
  .hero h1 { font-size: clamp(3rem, 5.4vw, 4.6rem); }
  .split { grid-template-columns: 1fr 1.35fr; }
  .split h2 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); }
  .setup-grid { grid-template-columns: 1fr 1fr; gap: 56px; }
  .section { padding: 80px 0; }
}
@media (min-width: 1100px) {
  .nav-links { display: flex; gap: 26px; margin-right: 8px; }
  .menu { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
