/* antisocial.media — one stylesheet, no build step, no framework.
   View source. Steal it. That's the point. */

:root {
  --bg: #0b0b0f;
  --bg-2: #14141c;
  --panel: #101018;
  --line: #2a2a38;
  --text: #ececf1;
  --muted: #9a9ab0;
  --pink: #ff2d95;
  --acid: #b6ff00;
  --cyan: #38e8ff;
  --yellow: #ffe45e;
  --danger: #ff5a5a;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 4px;
  --max: 1040px;
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body::before {
  /* faint scanlines, because 2006 */
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px);
}
a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--acid); }
h1, h2, h3, h4 { font-family: var(--mono); letter-spacing: -.01em; line-height: 1.1; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 7vw, 5.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
code, pre, kbd { font-family: var(--mono); font-size: .92em; }
pre {
  background: #05050a; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; overflow-x: auto; line-height: 1.45; position: relative;
}
code:not(pre code) { background: #1a1a26; padding: .1em .4em; border-radius: 3px; }
kbd { background: #1a1a26; border: 1px solid var(--line); border-bottom-width: 2px; padding: .05em .4em; border-radius: 3px; }
hr { border: 0; border-top: 1px dashed var(--line); margin: 2.5rem 0; }
img { max-width: 100%; }
::selection { background: var(--pink); color: #000; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }
.narrow { max-width: 760px; }

/* ---- top bar ---------------------------------------------------------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11,11,15,.85); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 18px; height: 54px; }
.brand { font-family: var(--mono); font-weight: 800; color: var(--text); text-decoration: none; letter-spacing: -.02em; }
.brand b { color: var(--pink); }
.nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { font-family: var(--mono); font-size: .85rem; color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: var(--radius); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--bg-2); }
.nav a.cta { color: #000; background: var(--acid); font-weight: 700; }
.nav a.cta:hover { background: #d4ff5c; }
@media (max-width: 720px) { .nav a:not(.cta):not(.keep) { display: none; } }

/* ---- marquee ---------------------------------------------------------- */
.ticker {
  border-bottom: 1px solid var(--line); background: var(--pink); color: #000;
  font-family: var(--mono); font-weight: 700; font-size: .85rem; overflow: hidden; white-space: nowrap;
}
.ticker span { display: inline-block; padding: 6px 0; animation: ticker 40s linear infinite; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker span { animation: none; } }

/* ---- hero ------------------------------------------------------------- */
.hero { padding: clamp(56px, 10vw, 120px) 0 40px; }
.hero .kicker { font-family: var(--mono); color: var(--acid); font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.hero h1 { max-width: 14ch; }
.hero h1 .x { color: var(--pink); }
.hero .lede { font-size: clamp(1.1rem, 2.2vw, 1.4rem); color: var(--muted); max-width: 52ch; margin-top: 18px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-weight: 700; font-size: .95rem;
  padding: 12px 18px; border-radius: var(--radius); border: 1px solid var(--line);
  color: var(--text); background: var(--bg-2); text-decoration: none; cursor: pointer;
}
.btn:hover { border-color: var(--text); color: var(--text); }
.btn.primary { background: var(--acid); color: #000; border-color: var(--acid); }
.btn.primary:hover { background: #d4ff5c; }
.btn.pink { background: var(--pink); color: #000; border-color: var(--pink); }
.btn.pink:hover { background: #ff63b3; }
.btn.small { padding: 8px 12px; font-size: .85rem; }
button.btn { font: inherit; font-family: var(--mono); font-weight: 700; }

/* ---- profile window (MySpace panel) ----------------------------------- */
.win {
  border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius);
  margin: 0 0 20px; overflow: hidden;
}
.win > .bar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; background: linear-gradient(180deg, #1c1c2a, #14141c);
  border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: .8rem; font-weight: 700; color: var(--muted);
}
.win > .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: inline-block; }
.win > .bar i:nth-child(1) { background: #ff5f57; } .win > .bar i:nth-child(2) { background: #febc2e; } .win > .bar i:nth-child(3) { background: #28c840; }
.win > .bar .t { margin-left: 6px; color: var(--text); }
.win > .body { padding: 18px; }
.win.pink > .bar { background: var(--pink); color: #000; }
.win.pink > .bar .t { color: #000; }

/* ---- sections --------------------------------------------------------- */
section { padding: 44px 0; }
section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { font-family: var(--mono); color: var(--pink); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.card { border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); padding: 18px; }
.card h3 { margin-top: 0; }
.card .price { font-family: var(--mono); font-size: 1.6rem; font-weight: 800; color: var(--acid); }
.card .price small { font-size: .8rem; color: var(--muted); font-weight: 400; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.tag { display: inline-block; font-family: var(--mono); font-size: .72rem; padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); margin-right: 4px; }
.tag.hot { border-color: var(--pink); color: var(--pink); }
.tag.ok { border-color: var(--acid); color: var(--acid); }

/* tier diagram */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.tier { border: 1px dashed var(--line); padding: 14px; border-radius: var(--radius); font-family: var(--mono); font-size: .85rem; }
.tier b { display: block; font-size: 1rem; margin-bottom: 6px; }
.tier.public { border-color: var(--muted); }
.tier.friends { border-color: var(--cyan); } .tier.friends b { color: var(--cyan); }
.tier.family { border-color: var(--yellow); } .tier.family b { color: var(--yellow); }
.tier.work { border-color: var(--acid); } .tier.work b { color: var(--acid); }
.tier ul { margin: 0; padding-left: 16px; color: var(--muted); }

/* rules list */
.rules { list-style: none; padding: 0; margin: 0; counter-reset: r; display: grid; gap: 10px; }
.rules li { counter-increment: r; display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.rules li::before { content: counter(r, decimal-leading-zero); font-family: var(--mono); font-weight: 800; color: var(--pink); font-size: 1.3rem; }
.rules li b { font-family: var(--mono); }

/* steps */
.steps { counter-reset: s; display: grid; gap: 22px; }
.step { position: relative; padding-left: 58px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: -2px; width: 40px; height: 40px; border-radius: 50%; background: var(--acid); color: #000; font-family: var(--mono); font-weight: 800; font-size: 1.1rem; display: grid; place-items: center; }

/* copy blocks */
.copy { position: relative; }
.copy button {
  position: absolute; top: 8px; right: 8px; font-family: var(--mono); font-size: .72rem; font-weight: 700;
  padding: 4px 8px; border-radius: 3px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); cursor: pointer;
}
.copy button:hover { border-color: var(--acid); color: var(--acid); }

/* forms */
label { display: block; font-family: var(--mono); font-size: .8rem; color: var(--muted); margin: 12px 0 6px; }
input, textarea, select {
  width: 100%; font: inherit; color: var(--text); background: #05050a; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 10px 12px;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--acid); outline-offset: 1px; border-color: var(--acid); }
textarea { min-height: 90px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.notice { font-family: var(--mono); font-size: .85rem; padding: 10px 12px; border-radius: var(--radius); border: 1px solid var(--line); margin-top: 12px; }
.notice.ok { border-color: var(--acid); color: var(--acid); }
.notice.err { border-color: var(--danger); color: var(--danger); }

/* guestbook */
.gb-list { display: grid; gap: 10px; margin-top: 16px; }
.gb-entry { border: 1px dashed var(--line); padding: 10px 12px; border-radius: var(--radius); font-size: .95rem; }
.gb-entry .who { font-family: var(--mono); font-size: .78rem; color: var(--muted); margin-bottom: 4px; }
.gb-entry .who b { color: var(--cyan); }

/* counter */
.counter { display: inline-flex; gap: 3px; font-family: var(--mono); font-weight: 800; font-size: 1.3rem; }
.counter span { background: #000; border: 1px solid var(--line); color: var(--acid); padding: 2px 6px; border-radius: 3px; min-width: 1.2ch; text-align: center; }

/* template gallery */
.tpl { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); display: flex; flex-direction: column; }
.tpl iframe { width: 100%; aspect-ratio: 4/3; border: 0; border-bottom: 1px solid var(--line); background: #fff; pointer-events: none; }
.tpl .meta { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tpl .meta .row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 60px; color: var(--muted); font-size: .9rem; }
footer .wrap { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
footer a { color: var(--muted); }
footer a:hover { color: var(--acid); }
.badge { display: inline-block; font-family: var(--mono); font-size: .7rem; font-weight: 700; padding: 4px 8px; border: 1px solid var(--acid); color: var(--acid); border-radius: 3px; text-decoration: none; letter-spacing: .05em; }

/* faq */
details { border: 1px solid var(--line); border-radius: var(--radius); padding: 0 16px; margin-bottom: 10px; background: var(--panel); }
summary { cursor: pointer; padding: 14px 0; font-family: var(--mono); font-weight: 700; }
details[open] summary { border-bottom: 1px dashed var(--line); margin-bottom: 8px; }
details p { padding-bottom: 6px; }

/* prose pages */
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: .35em 0; }
.prose blockquote { border-left: 3px solid var(--pink); margin: 1.2em 0; padding: .2em 0 .2em 16px; color: var(--muted); font-style: italic; }
.callout { border: 1px solid var(--pink); background: rgba(255,45,149,.06); padding: 14px 16px; border-radius: var(--radius); margin: 1.4em 0; }
.callout b { color: var(--pink); font-family: var(--mono); }

/* sparkle cursor trail (opt-in, respects reduced motion) */
.spark { position: fixed; pointer-events: none; z-index: 999; width: 6px; height: 6px; border-radius: 50%; background: var(--acid); animation: spark .7s ease-out forwards; }
@keyframes spark { to { transform: translateY(14px) scale(0); opacity: 0; } }

/* misc */
.center { text-align: center; }
.mt0 { margin-top: 0; } .mt1 { margin-top: 1rem; } .mt2 { margin-top: 2rem; }
.mb0 { margin-bottom: 0; }
.pill { font-family: var(--mono); font-size: .75rem; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; color: var(--muted); }
.blink { animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .blink { animation: none; } }
