/* The VecTec 1-bit look for Nel's site (Nel, 2026-11-15: "a 1-bit modern webpage with VecTec designs").
   VecTec's own design language (docs/design/VECTEC-UI-GUIDE.md, crates/vectec-ui/src/tokens.rs): dark first, lit ink
   on night, neutral greys, 1-bit pixel icons with screentone shading, pixel type. Here: night ground with a faint
   dot-matrix grid, lit type with a soft glow, pixel headings, screentone rules and panels, square 1-bit frames, and
   hover that inverts like a selected LCD cell. Art and photos keep their own colours. */

@import url("https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@500;700&family=Space+Mono:wght@400;700&display=swap");

:root {
  --vt-night: #0b0b0b;
  --vt-surface: #141414;
  --vt-line: #3a3a3a;
  --vt-dim: #a6a6a6;
  --vt-ink: #ececec;
  --vt-lit: #f5f5f5;
  --vt-glow: 0 0 6px rgba(245, 245, 245, 0.35);
  --vt-dots: radial-gradient(rgba(236, 236, 236, 0.07) 1px, transparent 1.2px) 0 0 / 6px 6px;
  --vt-tone: repeating-conic-gradient(var(--vt-ink) 0 25%, transparent 0 50%) 0 0 / 4px 4px;
  --vt-tone-soft: radial-gradient(var(--vt-line) 1px, transparent 1.3px) 0 0 / 4px 4px;
  --vt-pixel: "Pixelify Sans", "Silkscreen", ui-monospace, monospace;
  --vt-mono: "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --vt-w: 1120px;
}

/* ------------------------------------------------------------ the ground -- */
html, body { background: var(--vt-night); }
body {
  color: var(--vt-ink);
  font-family: var(--vt-mono);
  font-size: 17px;
  line-height: 1.65;
  background-image: var(--vt-dots);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--vt-ink); color: var(--vt-night); }
.wp-site-blocks, .site, main { background: transparent; }
.wp-block-group, .entry-content > * { max-width: var(--vt-w); margin-left: auto; margin-right: auto; }

/* --------------------------------------------------------------- type -- */
h1, h2, h3, h4, .wp-block-heading, .site-title, .wp-block-site-title {
  font-family: var(--vt-pixel);
  font-weight: 700;
  color: var(--vt-lit);
  text-shadow: var(--vt-glow);
  letter-spacing: 0.04em;
  line-height: 1.1;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); text-transform: uppercase; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); text-transform: uppercase; }
h2.wp-block-heading { display: flex; align-items: center; gap: 0.6em; margin-top: 2.4em; }
h2.wp-block-heading::after { content: ""; flex: 1; height: 6px; background: var(--vt-tone); opacity: 0.55; }
h2.wp-block-heading::before { content: "\25A0"; font-size: 0.55em; color: var(--vt-ink); }
p, li { color: var(--vt-ink); }
small, figcaption, .wp-element-caption, .wp-block-latest-posts__post-date { color: var(--vt-dim); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }

a { color: var(--vt-lit); text-decoration: none; background-image: linear-gradient(var(--vt-ink), var(--vt-ink)); background-size: 100% 2px; background-position: 0 100%; background-repeat: no-repeat; transition: color 0.12s, background-size 0.12s; }
a:hover, a:focus-visible { color: var(--vt-night); background-size: 100% 100%; outline: none; }

/* ---------------------------------------------------------- the header -- */
header, .wp-block-template-part:first-child, .site-header {
  border-bottom: 2px solid var(--vt-ink);
  background: var(--vt-night);
  position: sticky; top: 0; z-index: 10;
}
.wp-block-navigation a, .main-navigation a { font-family: var(--vt-pixel); text-transform: uppercase; letter-spacing: 0.08em; background-image: none; padding: 0.2em 0.5em; }
.wp-block-navigation a:hover, .main-navigation a:hover { background: var(--vt-ink); color: var(--vt-night); }

/* --------------------------------------------------------- the hero -- */
.wp-block-cover {
  border: 2px solid var(--vt-ink);
  min-height: 420px;
  background-color: var(--vt-surface) !important;
  box-shadow: 8px 8px 0 0 var(--vt-line);
}
.wp-block-cover .wp-block-cover__background { background: var(--vt-tone-soft) !important; opacity: 1 !important; }
.wp-block-cover h1 { margin: 0; }
.wp-block-cover p { font-family: var(--vt-pixel); color: var(--vt-dim); letter-spacing: 0.12em; text-transform: uppercase; }
.wp-block-cover p::before { content: "> "; color: var(--vt-ink); }
.wp-block-cover p::after { content: "_"; animation: vt-blink 1s steps(1) infinite; }
@keyframes vt-blink { 50% { opacity: 0; } }

/* -------------------------------------------------- frames for art -- */
.wp-block-image img, .wp-block-gallery img, .woocommerce ul.products li.product img, .wp-block-post-featured-image img {
  border: 2px solid var(--vt-ink);
  border-radius: 0;
  background: var(--vt-surface);
  transition: transform 0.12s steps(2), box-shadow 0.12s steps(2);
}
.wp-block-gallery { gap: 18px !important; }
.wp-block-gallery .wp-block-image:hover img, .woocommerce ul.products li.product:hover img {
  transform: translate(-4px, -4px);
  box-shadow: 4px 4px 0 0 var(--vt-ink);
}

/* ------------------------------------------------ buttons and fields -- */
.wp-block-button__link, button, input[type="submit"], .button, .add_to_cart_button, .wc-block-components-button {
  font-family: var(--vt-pixel) !important;
  text-transform: uppercase; letter-spacing: 0.1em;
  background: var(--vt-night) !important; color: var(--vt-lit) !important;
  border: 2px solid var(--vt-ink) !important; border-radius: 0 !important;
  box-shadow: 4px 4px 0 0 var(--vt-ink);
  padding: 0.7em 1.3em !important;
  transition: transform 0.08s steps(1), box-shadow 0.08s steps(1), background 0.08s;
}
.wp-block-button__link:hover, button:hover, .button:hover, .add_to_cart_button:hover {
  background: var(--vt-ink) !important; color: var(--vt-night) !important;
}
.wp-block-button__link:active, button:active, .button:active { transform: translate(4px, 4px); box-shadow: none; }
input, textarea, select { background: var(--vt-surface); color: var(--vt-ink); border: 2px solid var(--vt-line); border-radius: 0; font-family: var(--vt-mono); }
input:focus, textarea:focus, select:focus { border-color: var(--vt-ink); outline: none; }

/* ------------------------------------------------------------- shop -- */
.woocommerce ul.products li.product { background: var(--vt-surface); border: 2px solid var(--vt-line); padding: 14px; }
.woocommerce ul.products li.product:hover { border-color: var(--vt-ink); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--vt-pixel); color: var(--vt-lit); font-size: 1.05rem; }
.woocommerce .price, .woocommerce-Price-amount { font-family: var(--vt-pixel); color: var(--vt-ink); }
.woocommerce span.onsale { background: var(--vt-ink); color: var(--vt-night); border-radius: 0; font-family: var(--vt-pixel); }

/* ------------------------------------------------- comic reader -- */
.vectec-comic-reader { max-width: 900px; margin: 0 auto; outline: none; }
.vectec-comic-reader .wp-block-image { margin: 0; }
.vectec-comic-reader img { width: 100%; height: auto; }
.vectec-comic-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 14px 0 28px; }
.vectec-comic-bar span { font-family: var(--vt-pixel); color: var(--vt-dim); letter-spacing: 0.12em; }
.vectec-comic-bar button:disabled { opacity: 0.3; box-shadow: none; cursor: default; }

/* ------------------------------------------------- media and posts -- */
video, audio, .vectec-model { width: 100%; border: 2px solid var(--vt-ink); background: var(--vt-surface); }
audio { filter: invert(1) grayscale(1); }
.wp-block-latest-posts li { border-left: 6px solid transparent; border-image: var(--vt-tone) 6; padding: 0.4em 0 0.4em 1em; margin-bottom: 1.2em; list-style: none; }
.wp-block-latest-posts__post-title { font-family: var(--vt-pixel); font-size: 1.2rem; }

/* ------------------------------------------------------------ footer -- */
footer, .site-footer { border-top: 2px solid var(--vt-ink); color: var(--vt-dim); background: var(--vt-night); }
footer::before { content: ""; display: block; height: 6px; background: var(--vt-tone); opacity: 0.35; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wp-block-navigation a, .main-navigation a { font-size: 0.78rem; letter-spacing: 0.03em; padding: 0.2em 0.3em; }
  .main-navigation, .wp-block-navigation__container { flex-wrap: wrap; gap: 2px !important; }
  .wp-block-cover { box-shadow: 4px 4px 0 0 var(--vt-line); }
}

/* ------------------------------------------------ the feed (TikTok-style) -- */
.vectec-feed {
  height: 100svh; max-height: 900px; max-width: 520px; margin: 0 auto;
  overflow-y: scroll; scroll-snap-type: y mandatory; overscroll-behavior: contain;
  border: 2px solid var(--vt-ink); background: var(--vt-night); outline: none; scrollbar-width: none;
}
.vectec-feed::-webkit-scrollbar { display: none; }
.vt-slide {
  position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always;
  display: grid; place-items: center; background: var(--vt-night) var(--vt-dots); overflow: hidden;
  border-bottom: 2px solid var(--vt-line);
}
.vt-slide img, .vt-slide video { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border: 0; image-rendering: auto; }
.vt-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 16px 18px;
  background: rgba(11, 11, 11, 0.88);   /* flat: no gradients on the site (Nel, 2026-11-30) */
}
.vt-cap strong { display: block; font-family: var(--vt-pixel); color: var(--vt-lit); text-shadow: var(--vt-glow); font-size: 1.15rem; }
.vt-cap p { margin: 4px 0 0; color: var(--vt-dim); font-size: 0.85rem; }
.vt-kind { display: inline-block; font-family: var(--vt-pixel); font-size: 0.7rem; letter-spacing: 0.12em; color: var(--vt-night); background: var(--vt-ink); padding: 1px 6px; margin-bottom: 6px; }
.vt-sound { position: absolute; top: 12px; right: 12px; font-size: 0.75rem !important; padding: 0.3em 0.7em !important; box-shadow: none !important; }

/* ------------------------------------- likes, comments, the grid (2026-11-20) -- */
.vectec-feed { position: relative; }
.vt-rail { position: absolute; right: 10px; bottom: 120px; display: flex; flex-direction: column; gap: 14px; z-index: 2; }
.vt-rail button {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  width: 52px; padding: 6px 0 !important; font-size: 0.75rem !important; letter-spacing: 0 !important;
  background: rgba(11, 11, 11, 0.7) !important; box-shadow: none !important;
}
.vt-rail button span { font-size: 1.4rem; line-height: 1; }
.vt-rail button b { font-family: var(--vt-pixel); font-weight: 500; }
.vt-like[aria-pressed="true"] { background: var(--vt-ink) !important; color: var(--vt-night) !important; }
.vt-burst {
  position: absolute; z-index: 3; pointer-events: none; transform: translate(-50%, -50%);
  font-size: 96px; line-height: 1; color: var(--vt-lit); text-shadow: 4px 4px 0 var(--vt-night), var(--vt-glow);
  animation: vt-burst 0.7s steps(5) forwards;
}
@keyframes vt-burst {
  0% { transform: translate(-50%, -50%) scale(0.4); opacity: 1; }
  40% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
  100% { transform: translate(-50%, -110%) scale(1); opacity: 0; }
}
.vt-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 65%; z-index: 4;
  display: flex; flex-direction: column; background: var(--vt-surface); border-top: 2px solid var(--vt-ink);
  animation: vt-up 0.16s steps(4);
}
@keyframes vt-up { from { transform: translateY(100%); } to { transform: none; } }
.vt-sheet-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 2px solid var(--vt-line); }
.vt-sheet-bar strong { font-family: var(--vt-pixel); text-transform: uppercase; letter-spacing: 0.1em; }
.vt-sheet-close { padding: 0.2em 0.6em !important; box-shadow: none !important; }
.vt-comments { flex: 1; overflow-y: auto; margin: 0; padding: 10px 14px; list-style: none; }
.vt-comments li { padding: 8px 0; border-bottom: 1px dashed var(--vt-line); }
.vt-comments p { margin: 4px 0 0; }
.vt-dim { color: var(--vt-dim); font-size: 0.8rem; }
.vt-say { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 10px 14px 14px; border-top: 2px solid var(--vt-line); }
.vt-say input[name="name"], .vt-say .vt-note { grid-column: 1 / -1; }
.vt-say textarea { resize: none; padding: 8px; }
.vt-say input { padding: 8px; }
.vt-say .vt-note { margin: 0; }
.vt-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.vectec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; max-width: 900px; margin: 0 auto; }
.vt-tile { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--vt-surface) !important; border: 2px solid var(--vt-line); }
.vt-tile:hover, .vt-tile:focus-visible { border-color: var(--vt-ink); }
.vt-tile img, .vt-tile video { width: 100%; height: 100%; object-fit: cover; display: block; border: 0 !important; transition: none; }
.vt-tile-kind, .vt-tile-likes {
  position: absolute; font-family: var(--vt-pixel); font-size: 0.65rem; letter-spacing: 0.1em; padding: 1px 5px;
  background: var(--vt-night); color: var(--vt-lit);
}
.vt-tile-kind { top: 6px; left: 6px; }
.vt-tile-likes { bottom: 6px; right: 6px; opacity: 0; }
.vt-tile:hover .vt-tile-likes, .vt-tile:focus-visible .vt-tile-likes { opacity: 1; }
.vectec-sheet-wrap { position: fixed; inset: 0; z-index: 100; background: rgba(11, 11, 11, 0.96); display: grid; place-items: center; }
.vectec-sheet-wrap[hidden] { display: none; }
.vectec-sheet-wrap .vectec-feed { width: 100%; height: 100svh; max-height: none; }
.vt-close { position: fixed; top: 12px; left: 12px; z-index: 101; box-shadow: none !important; }
html.vt-locked, html.vt-locked body { overflow: hidden; }
@media (max-width: 600px) {
  .vectec-grid { gap: 2px; }
  .vt-tile { border-width: 1px; }
  .vectec-sheet-wrap .vectec-feed { border: 0; }
}

/* ------------------------------------------------ members (2026-11-20) -- */
.vt-av { width: 32px; height: 32px; image-rendering: pixelated; border: 2px solid var(--vt-ink); flex: none; }
.vt-av-big { width: 96px; height: 96px; }
.vt-comments li { display: flex; gap: 10px; align-items: flex-start; }
.vt-report { font-size: 0.65rem !important; padding: 0 0.4em !important; box-shadow: none !important; border-width: 1px !important; opacity: 0.6; }
.vt-report:hover { opacity: 1; }
.vt-sheet-foot { border-top: 2px solid var(--vt-line); }
.vt-sheet-foot .vt-say { border-top: 0; }
.vt-join-line { margin: 10px 14px 0; }
.vt-auth { padding: 10px 14px 14px; display: grid; gap: 8px; }
.vt-tabs { display: flex; gap: 8px; }
.vt-tab { flex: 1; box-shadow: none !important; }
.vt-tab[aria-pressed="true"] { background: var(--vt-ink) !important; color: var(--vt-night) !important; }
.vt-auth form { display: grid; gap: 8px; }
.vt-auth form[hidden] { display: none; }
.vt-auth input { padding: 8px; }
.vt-auth .vt-note { margin: 0; min-height: 1em; }
.vectec-account { max-width: 720px; margin: 0 auto; }
.vectec-account .vt-auth { padding: 0; max-width: 420px; }
.vt-me { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; margin-top: 24px; }
.vt-name { display: flex; gap: 8px; margin-bottom: 10px; }
.vt-name input { padding: 8px; min-width: 0; }
.vt-out { margin-left: 10px; }
.vt-banner { border: 2px solid var(--vt-ink); padding: 8px 12px; background: var(--vt-surface); }
.vt-delete { margin-top: 40px; border-top: 2px solid var(--vt-line); padding-top: 12px; }
.vt-delete summary { cursor: pointer; color: var(--vt-dim); }
.vt-delete form { display: grid; gap: 8px; max-width: 360px; margin-top: 10px; }
.vt-delete input { padding: 8px; }
.vt-lost { font-size: 0.8rem; justify-self: start; }
.vectec-grid > p { grid-column: 1 / -1; }

/* ------------------------------------------------ the store and the age gate (2026-11-20) -- */
.vt-age-card { max-width: 520px; margin: 24px auto; padding: 28px 24px; text-align: center; border: 2px solid var(--vt-ink); background: var(--vt-surface); box-shadow: 8px 8px 0 0 var(--vt-line); }
.vt-age-card h2 { margin: 12px 0 8px; }
.vt-age-no { margin-left: 10px; }
.vectec-age-note { text-align: center; margin-top: 14px; }
.vectec-age-note button { margin-left: 8px; }
