/* Oh Snap Tips – light, readable pages with black + electric-blue accents */
:root {
  --ink: #0b0d12;
  --text: #1c2029;
  --muted: #5a6376;
  --line: #e3e7ef;
  --bg: #ffffff;
  --soft: #f5f7fb;
  --blue: #2f66f0;
  --blue-dark: #2350c8;
  --blue-tint: #eaf0ff;
  --black: #000;
  --radius: 14px;
  --display: "Inter", system-ui, sans-serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.7 var(--sans); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

/* ---------- header ---------- */
.site-header { background: var(--black); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 34px; width: auto; display: block; }
nav { display: flex; align-items: center; gap: 1.5rem; }
nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; }
nav a:hover { color: #9db8ff; }

/* ---------- buttons ---------- */
.btn, nav a.btn {
  display: inline-block; background: var(--blue); color: #fff; text-decoration: none;
  padding: .7rem 1.3rem; border-radius: 999px; font-weight: 700; font-size: .95rem; line-height: 1.2;
  border: 2px solid var(--blue); transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover, nav a.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; transform: translateY(-1px); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline-light:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-sm { padding: .5rem 1rem; font-size: .88rem; white-space: nowrap; }

/* ---------- hero ---------- */
.hero { background: var(--black); color: #fff; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2rem; align-items: end; min-height: 520px; padding-top: 3.5rem; }
.hero-copy { align-self: center; padding-bottom: 3.5rem; }
.kicker { font: 700 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.hero .kicker { color: #7fa2ff; }
.hero h1 { font: 800 clamp(2.4rem, 5.2vw, 4rem)/1.05 var(--display); letter-spacing: -.04em; margin: 1rem 0 1.1rem; }
.hero p { color: #c2c8d8; font-size: 1.15rem; max-width: 34ch; margin: 0 0 1.8rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-art { display: flex; justify-content: center; align-self: center; padding: 1rem 0 2rem; }
.logo-stage { position: relative; width: min(100%, 560px); aspect-ratio: 1000 / 568; cursor: pointer; }
.logo-stage .ls { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* final state (no JS / reduced motion): full logo, closed hand, snap lines */
.ls-h0, .ls-h1, .ls-h2, .ls-ring { opacity: 0; }
.ls-ring line { stroke: #2F66F0; stroke-width: 7; stroke-linecap: round; opacity: 0; }
.ls-ring.go line { animation: ring-burst .45s ease-out forwards; }
@keyframes ring-burst { 0% { opacity: 0; transform: translate(0, 0); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)); } }
.logo-stage.anim .ls-h { transition: none; }
.logo-stage.dip .ls-h { transform: translateY(6px); }
.ls-ring { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .logo-stage { cursor: default; } }

/* ---------- latest ---------- */
.latest { padding-top: 3.5rem; }
.latest-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: center; margin-top: 1rem; }
.latest-copy h2 { font: 700 clamp(1.5rem, 2.8vw, 2.1rem)/1.2 var(--display); margin: 0 0 .7rem; letter-spacing: -.01em; }
.latest-copy h2 a { color: var(--ink); text-decoration: none; }
.latest-copy h2 a:hover { color: var(--blue); }
.latest-copy p { color: var(--muted); margin: 0 0 1.4rem; }

/* ---------- video ---------- */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: 0 12px 36px rgba(11, 13, 18, .18); }
.prose .video { margin: 1.5rem 0 .75rem; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- guide grid ---------- */
.section-title { font: 700 1.6rem/1.2 var(--display); margin: 3.5rem 0 1.4rem; letter-spacing: -.01em; color: var(--ink); }
.section-title::after { content: ""; display: block; width: 56px; height: 4px; background: var(--blue); border-radius: 2px; margin-top: .6rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.5rem; padding-bottom: 3.5rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s, border-color .18s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(11, 13, 18, .12); border-color: var(--blue); color: var(--text); }
.thumb { position: relative; aspect-ratio: 16 / 9; background: var(--black); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .play { position: absolute; right: .75rem; bottom: .75rem; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--blue); display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0,0,0,.35); }
.thumb .play::before { content: ""; border-left: .8rem solid #fff; border-top: .5rem solid transparent; border-bottom: .5rem solid transparent; margin-left: .2rem; }
.thumb.noimg { display: grid; place-items: center; }
.thumb.noimg img { width: 34%; height: auto; object-fit: contain; }
.card-body { padding: 1.1rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.card h3 { margin: 0; font: 700 1.1rem/1.3 var(--sans); color: var(--ink); letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }
.meta { color: var(--muted); font-size: .85rem; }
.card .meta { margin-top: auto; padding-top: .5rem; }

/* ---------- guide page ---------- */
.prose { max-width: 740px; padding: 2.25rem 0 1rem; }
.crumbs { margin: 0 0 1.2rem; font-size: .92rem; font-weight: 600; }
.crumbs a { text-decoration: none; }
.prose h1 { font: 700 clamp(1.9rem, 4.5vw, 2.8rem)/1.12 var(--display); letter-spacing: -.02em; margin: 0 0 .5rem; color: var(--ink); }
.prose > .meta { margin: 0; }
.prose h2 { font: 700 1.55rem/1.25 var(--display); margin: 2.6rem 0 .8rem; color: var(--ink); letter-spacing: -.01em; }
.prose h3 { font: 700 1.2rem/1.3 var(--sans); margin: 2rem 0 .6rem; color: var(--ink); }
.prose p { margin: 1rem 0; }
.prose ul { padding-left: 1.3rem; }
.prose ul li { margin: .45rem 0; }
.prose ul li::marker { color: var(--blue); }
.prose ol { list-style: none; padding: 0; margin: 1.4rem 0; counter-reset: step; }
.prose ol > li { counter-increment: step; position: relative; padding-left: 3.4rem; margin: 1.3rem 0; min-height: 2.4rem; }
.prose ol > li::before {
  content: counter(step); position: absolute; left: 0; top: -.15rem;
  width: 2.45rem; height: 2.45rem; border-radius: 50%; background: var(--black); color: #fff;
  font: 700 1.1rem/1 var(--display); display: grid; place-items: center;
}
.prose code { background: var(--soft); border: 1px solid var(--line); padding: .1em .4em; border-radius: 6px; font-size: .88em; }
.prose figure { margin: 1.8rem 0; }
.prose figure img { border-radius: 12px; border: 1px solid var(--line); display: block; }
.prose figcaption { color: var(--muted); font-size: .88rem; margin-top: .5rem; }
.tip { background: var(--blue-tint); border-left: 4px solid var(--blue); padding: .95rem 1.2rem; border-radius: 0 12px 12px 0; margin: 1.6rem 0; }
.tip::before { content: "Pro tip"; display: block; font: 700 .74rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: .45rem; }
.watch-yt { margin: .25rem 0 1.5rem; }
.watch-yt a { font-weight: 600; font-size: .95rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--black); color: #aeb5c6; margin-top: 3rem; padding: 2.2rem 0; font-size: .92rem; }
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.site-footer img { height: 28px; width: auto; display: block; }
.site-footer a { color: #fff; }
.site-footer p { margin: 0; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; padding-top: 2.5rem; }
  .hero-copy { padding-bottom: 3rem; }
  .hero-art { padding: 0 0 1.5rem; order: -1; }
  .latest-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  nav a:not(.btn) { display: none; }
}
@media (max-width: 520px) {
  .logo img { height: 28px; }
  nav a.btn .long { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn { transition: none; }
}

/* ---------- classes ---------- */
.badge { display: inline-block; background: var(--blue-tint); color: var(--blue-dark); font: 700 .72rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: .38rem .6rem; border-radius: 999px; margin-bottom: .6rem; }
.card .badge { margin: 0 0 .5rem; }
.section-sub { color: #5a6376; margin: -.8rem 0 1.4rem; }

/* ---------- search ---------- */
.search-wrap { margin-top: 2rem; }
.search { display: flex; align-items: center; gap: .7rem; background: #fff; border: 2px solid #dfe3ec; border-radius: 999px; padding: .2rem 1.1rem; max-width: 640px; margin: 0 auto; transition: border-color .15s, box-shadow .15s; }
.search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-tint); }
.search svg { width: 22px; height: 22px; flex: none; fill: none; stroke: #5a6376; stroke-width: 2.2; stroke-linecap: round; }
.search input { flex: 1; border: 0; outline: 0; background: transparent; font: 500 1.05rem/1 var(--sans); color: var(--ink); padding: .95rem 0; min-width: 0; }
.nores { text-align: center; color: #5a6376; margin: 1.6rem 0 0; }

.tipjar { margin: 2.5rem 0 0; padding: 1.25rem 1.4rem; border: 1px solid #dfe3ee; border-left: 4px solid #2F66F0; border-radius: 12px; background: #f6f8fe; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.tipjar p { margin: 0; flex: 1 1 18rem; }

/* ---------- topic buttons ---------- */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin: 1.2rem auto 0; max-width: 760px; }
.chip { font: 700 .92rem/1 var(--sans); padding: .65rem 1.1rem; border-radius: 999px; border: 2px solid #dfe3ec; background: #fff; color: var(--ink); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.chip:hover { border-color: var(--blue); color: var(--blue-dark); }
.chip.on { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---------- shorties (vertical videos; still guides) ---------- */
.video.video-short { aspect-ratio: 9 / 16; width: min(100%, 360px); margin-inline: auto; }
.prose .video.video-short { margin: 1.5rem auto .75rem; }
.latest-grid .video.video-short { margin-inline: 0; }
.grid-shorts { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1.25rem; }
.card-short .thumb { aspect-ratio: 9 / 16; }
.card-short .card-body { padding: .9rem 1rem 1.1rem; }
.card-short h3 { font-size: 1rem; }

/* Copyable prompt box */
.promptbox { position: relative; margin: 1.4rem 0; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.promptbox pre { margin: 0; padding: 3.2rem 1.2rem 1.2rem; white-space: pre-wrap; word-break: break-word; font: .88rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; max-height: 28rem; overflow: auto; }
.copybtn { position: absolute; top: .7rem; right: .7rem; font: 700 .85rem/1 var(--display); background: #2F66F0; color: #fff; border: 0; border-radius: 999px; padding: .6rem 1.1rem; cursor: pointer; }
.copybtn:hover { background: #1f4fd0; }

/* Home restructure: list pages, browse tiles, about */
.page-head { padding-top: 2.4rem; }
.page-title { font: 800 clamp(2rem, 4.5vw, 3rem)/1.1 var(--display); letter-spacing: -.03em; margin: 0 0 .5rem; }
.browse { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
.tile { display: block; padding: 1.4rem 1.5rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.tile:hover { border-color: #2F66F0; transform: translateY(-2px); }
.tile-count { display: inline-block; font: 800 .8rem/1 var(--display); color: #2F66F0; background: #eaf0fe; border-radius: 999px; padding: .35rem .7rem; }
.tile h3 { margin: .8rem 0 .3rem; font: 800 1.35rem/1.2 var(--display); }
.tile p { margin: 0; color: #5a6376; }
.about > * { max-width: 46rem; }
.about p { font-size: 1.08rem; line-height: 1.65; }
.about .home-search { margin-left: 0; margin-right: 0; }
.home-search { display: flex; gap: .6rem; margin-top: 1.2rem; align-items: center; }
.home-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; padding: .4rem .2rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.more-link { margin: 1.2rem 0 0; font-weight: 700; }
.more-link a { color: #2F66F0; text-decoration: none; }
.more-link a:hover { text-decoration: underline; }

/* ---------- share box + embed pages ---------- */
.share { margin: 2.5rem 0 0; padding: 1.25rem 1.4rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.share-title { margin: 0 0 .9rem; }
.share-title span { color: var(--muted); font-size: .95rem; margin-left: .3rem; }
.share-row { display: flex; flex-wrap: wrap; gap: .55rem; }
.share-embed { margin-top: 1rem; }
.share-embed summary { cursor: pointer; font-weight: 700; color: var(--blue-dark); }
.share-embed p { color: var(--muted); font-size: .92rem; margin: .7rem 0; }
.share-embed textarea { width: 100%; font: .82rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: .8rem; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); resize: vertical; margin-bottom: .6rem; }
body.embed { background: #fff; }
body.embed .prose { max-width: none; padding: 1rem 1.1rem 0; }
body.embed .prose h1 { font-size: 1.6rem; }
.embed-credit { text-align: center; color: var(--muted); font-size: .85rem; margin: 1rem 0 1.2rem; }
