/* tikaydaes.dev
   Flat neon on navy, taken from the avatar. Stickers, glitch type, terminal
   prompts. Rules of the house: no gradients-as-decoration, no blur, no soft
   shadows, no rounded cards. Things are allowed to sit crooked. */

@font-face {
  font-family: "Archivo";
  src: url(fonts/archivo.woff2) format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Martian Mono";
  src: url(fonts/martian-mono.woff2) format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0d1026;
  --panel: #161a3d;
  --ink: #efeaff;
  --dim: #a09dc9;
  --lav: #b9a0ff;
  --cyan: #5df0e4;
  --pink: #ff5ccf;
  --yel: #ffd95e;
  --paper: #f5f2ff;
  --sans: "Archivo", "Arial Narrow", Arial, sans-serif;
  --mono: "Martian Mono", ui-monospace, Menlo, Consolas, monospace;
  --gut: clamp(16px, 4vw, 48px);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg) radial-gradient(#1d2250 1.2px, transparent 1.3px) 0 0 / 22px 22px;
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--pink); color: var(--bg); }

a { color: var(--cyan); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { background: var(--pink); color: var(--bg); text-decoration-color: transparent; }
a:focus-visible { outline: 3px solid var(--yel); outline-offset: 3px; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; }

/* ---------- ticker ---------- */
.ticker { background: var(--cyan); color: var(--bg); overflow: hidden; white-space: nowrap; }
.ticker div { display: inline-block; animation: slide 40s linear infinite; }
.ticker span {
  display: inline-block; padding: 7px 0;
  font: 700 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
}
.ticker span::after { content: "✦"; margin: 0 1.6em; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- masthead ---------- */
.mast {
  max-width: var(--max); margin: 0 auto; padding: 14px var(--gut);
  display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; align-items: center;
  font: 500 12px/1.4 var(--mono);
}
.mast p { margin: 0; color: var(--dim); display: flex; flex-wrap: wrap; align-items: center; gap: 0 .5em; }
.mast p img { margin-right: 4px; }
.mast p b { color: var(--pink); font-weight: 700; }
.mast span, .bar span, .fine span { color: var(--lav); opacity: .6; margin: 0 .35em; }
.mast nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.mast nav a { color: var(--ink); text-decoration: none; }
.mast nav a::before { content: "./"; color: var(--lav); }
.mast nav a:hover { color: var(--bg); }
.mast nav a:hover::before { color: var(--bg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gut) clamp(48px, 8vw, 96px);
  container-type: inline-size;
}
.wordmark {
  margin: 0 0 0 -.04em;
  font: 900 17.6cqw/.95 var(--sans); font-stretch: 112%; letter-spacing: -.045em;
  color: var(--ink);
  user-select: none;
}
.wordmark span { position: relative; display: inline-block; color: transparent; }
.wordmark span::before, .wordmark span::after {
  content: attr(data-t); position: absolute; inset: 0; color: var(--ink);
  text-shadow: -.028em 0 var(--cyan), .028em .012em var(--pink);
}
/* the word with one band cut out of it, and the band knocked sideways */
.wordmark span::before { clip-path: polygon(-10% -10%, 110% -10%, 110% 40%, -10% 40%, -10% 58%, 110% 58%, 110% 140%, -10% 140%); }
.wordmark span::after {
  clip-path: inset(39.6% -10% 41.6% -10%); transform: translateX(.11em);
  text-shadow: -.05em 0 var(--pink), .045em 0 var(--cyan);
}

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: var(--gut); align-items: start;
  margin-top: clamp(20px, 3cqw, 40px);
}
h1 {
  font: 800 clamp(2.3rem, 6.4cqw, 4.9rem)/.98 var(--sans); font-stretch: 68%;
  text-transform: uppercase; letter-spacing: -.005em;
}
h1 em {
  font-style: normal; color: var(--bg); background: var(--yel);
  padding: 0 .12em; display: inline-block; transform: rotate(-1.6deg);
}
.lede { font-size: clamp(1.05rem, 1.9cqw, 1.3rem); line-height: 1.45; max-width: 34em; margin: 1.3em 0 1.4em; }

.dead { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.dead li {
  font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .05em;
  color: var(--dim); border: 1.5px solid currentColor; padding: 7px 9px;
}
.dead s { text-decoration: line-through var(--pink) 3px; }
.dead li:nth-child(2n) { transform: rotate(-2deg); }
.dead li:nth-child(3n) { transform: rotate(1.5deg); }

.stickers { position: relative; justify-self: center; width: min(100%, 400px); margin-top: -2cqw; }
.mascot { display: block; width: 100%; height: auto; transform: rotate(4deg); }
.burst {
  position: absolute; left: -20%; bottom: -6%; width: 44%; aspect-ratio: 1;
  display: grid; place-items: center; transform: rotate(-13deg);
  color: var(--bg); text-decoration: none;
}
.burst:hover { background: none; color: var(--bg); transform: rotate(-4deg) scale(1.06); }
.burst svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.burst polygon { fill: var(--pink); stroke: var(--paper); stroke-width: 3.5; stroke-linejoin: round; }
.burst span { position: relative; display: grid; justify-items: center; }
.burst b { font: 900 clamp(2.4rem, 6.5cqw, 4.4rem)/.82 var(--sans); font-stretch: 70%; }
.burst small { font: 700 clamp(7px, .95cqw, 10px)/1.5 var(--mono); text-transform: uppercase; letter-spacing: .06em; }

.doodle { position: absolute; fill: var(--yel); pointer-events: none; }
.d1 { width: 34px; height: 34px; right: 3%; top: 31cqw; transform: rotate(12deg); }
.d2 { width: 44px; height: 44px; right: 37%; top: 22cqw; fill: var(--lav); transform: rotate(-20deg); }
.d3 { width: 18px; height: 18px; right: 34%; top: 27cqw; fill: var(--cyan); }

/* ---------- section bars ---------- */
.stock, .why { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut) clamp(56px, 9vw, 110px); }
.bar {
  display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: baseline; justify-content: space-between;
  border-bottom: 2px solid var(--lav); padding-bottom: 10px; margin-bottom: 0;
}
.bar h2 { font: 700 clamp(1.05rem, 2.4vw, 1.5rem)/1.2 var(--mono); letter-spacing: -.02em; }
.bar h2 i { font-style: normal; color: var(--pink); }
.bar h2::after { content: ""; display: inline-block; width: .55em; height: 1.05em; margin-left: .3em; background: var(--cyan); vertical-align: -.16em; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.bar p { margin: 0; font: 500 12px/1.4 var(--mono); color: var(--dim); }

/* ---------- the shelf ---------- */
.shelf {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px;
  background: var(--lav); border: 2px solid var(--lav); border-top: 0;
}
.item {
  background: var(--bg); padding: clamp(18px, 3vw, 34px);
  display: flex; flex-direction: column;
}
.item:last-child:nth-child(odd) { grid-column: 1 / -1; }
.item > header { display: flex; justify-content: space-between; gap: 12px; align-items: center; font: 500 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.sku { background: var(--lav); color: var(--bg); padding: 4px 7px; font-weight: 700; transform: rotate(-2deg); }
.item:nth-child(even) .sku { transform: rotate(1.5deg); background: var(--cyan); }
.kind { color: var(--dim); text-align: right; }

.shot {
  margin: 34px 0 22px; height: 180px; background: var(--panel);
  display: flex; justify-content: center; align-items: flex-end;
  border-left: 5px solid var(--pink);
}
.shot img { height: 205px; width: auto; max-width: 94%; object-fit: contain; margin-bottom: -6px; transform: rotate(-3deg); transition: transform .2s; }
.item:nth-child(even) .shot { border-left-color: var(--cyan); }
.item:nth-child(even) .shot img { transform: rotate(2.5deg); }
.item:hover .shot img { transform: rotate(0) scale(1.05); }

.item h3 { font: 900 clamp(2rem, 4.6vw, 3.3rem)/.95 var(--sans); font-stretch: 78%; letter-spacing: -.01em; overflow-wrap: anywhere; }
.pitch { font: 600 1.12rem/1.3 var(--sans); color: var(--lav); margin: .5em 0 .8em; }
.item > p { max-width: 38em; }

.item dl { margin: .4em 0 1.3em; font: 400 12px/1.5 var(--mono); border-top: 1px dashed #4a4b86; }
.item dl div { display: grid; grid-template-columns: 7.5em 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px dashed #4a4b86; }
.item dt { color: var(--dim); text-transform: uppercase; letter-spacing: .05em; }
.item dd { margin: 0; }

.catch {
  position: relative; margin: 14px 0 26px; padding: 20px 16px 14px;
  border: 2px dashed var(--pink);
}
.catch strong {
  position: absolute; top: -.95em; left: 12px; transform: rotate(-2.5deg);
  background: var(--pink); color: var(--bg); padding: 3px 8px;
  font: 700 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em;
}

.item > footer { margin-top: auto; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.price {
  background: var(--yel); color: var(--bg); border: 4px solid var(--paper);
  padding: 4px 12px 6px 10px; transform: rotate(-4deg);
  display: flex; align-items: flex-end; gap: 4px;
  font: 900 3.4rem/.85 var(--sans); font-stretch: 70%;
}
.item:nth-child(even) .price { transform: rotate(3deg); }
.price sup { font-size: .42em; vertical-align: top; position: relative; top: .1em; line-height: 1; }
.price small { font: 700 10px/1 var(--mono); padding-bottom: 5px; }
.go { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; font: 500 13px/1.3 var(--mono); }

.btn {
  display: inline-block; background: var(--cyan); color: var(--bg);
  font: 700 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .04em;
  padding: 13px 16px; text-decoration: none;
}
.btn:hover { background: var(--pink); }
.btn span { display: inline-block; transition: transform .15s; }
.btn:hover span { transform: translateX(4px); }

/* ---------- why ---------- */
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 52px); padding-top: 36px; }
.cols b {
  display: block; font: 900 5.6rem/.8 var(--sans); font-stretch: 125%;
  color: transparent; -webkit-text-stroke: 2px var(--lav); margin-bottom: 18px;
}
.cols div:nth-child(2) b { -webkit-text-stroke-color: var(--cyan); }
.cols div:nth-child(3) b { -webkit-text-stroke-color: var(--pink); }
.cols h3 { font: 800 1.5rem/1.08 var(--sans); font-stretch: 80%; margin-bottom: .6em; }
.cols p { color: #d6d1f3; }

/* ---------- honesty box ---------- */
.tin { background: var(--lav); color: var(--bg); }
.tin-grid {
  max-width: var(--max); margin: 0 auto; padding: clamp(48px, 8vw, 96px) var(--gut);
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center;
}
.tin h2 { font: 900 clamp(2.8rem, 8vw, 6rem)/.88 var(--sans); font-stretch: 66%; text-transform: uppercase; margin-bottom: .35em; }
.tin p { font-size: 1.15rem; max-width: 30em; font-weight: 500; }
.tin .btn.big { margin-top: 12px; background: var(--bg); color: var(--cyan); font-size: 15px; padding: 18px 22px; }
.tin .btn.big:hover { background: var(--pink); color: var(--bg); }
.tin a:focus-visible { outline-color: var(--bg); }

/* The tin sits in the flow beside the receipt, so it can lean on the
   receipt but never slide over the text column. */
.till { justify-self: end; width: min(100%, 470px); display: flex; align-items: flex-end; }
.tin-can { flex: none; width: 36%; height: auto; margin: 0 -1% -6% 0; transform: rotate(-7deg); position: relative; z-index: 1; }
.receipt {
  --z: 9px;
  flex: 1; min-width: 0;
  background: var(--paper); color: #1a1a2e; padding: 26px 22px calc(24px + var(--z));
  font: 500 12px/1.5 var(--mono); transform: rotate(2.5deg);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--z)) 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--z)) 100%;
}
.receipt p { margin: 0; max-width: none; font-size: inherit; }
.r-head { text-align: center; font-weight: 800; font-size: 15px !important; letter-spacing: .14em; padding-bottom: 12px; border-bottom: 1.5px dashed #1a1a2e; }
.r-head span { font-weight: 500; font-size: 10px; letter-spacing: .04em; }
.receipt ul { list-style: none; margin: 12px 0; padding: 0; }
.receipt li, .r-total, .r-tip { display: flex; justify-content: space-between; gap: 12px; }
.r-total { border-top: 1.5px dashed #1a1a2e; padding-top: 10px; font-weight: 800; font-size: 17px !important; }
.r-tip { margin-top: 6px !important; }
.r-tip span:last-child { background: var(--yel); padding: 0 5px; }
.r-foot { text-align: center; margin-top: 16px !important; font-size: 10px !important; }

/* ---------- fine print ---------- */
.fine { max-width: var(--max); margin: 0 auto; padding: 36px var(--gut) 56px; font: 400 11.5px/1.7 var(--mono); color: var(--dim); }
.fine p { margin: 0 0 .5em; }

/* ---------- small screens ---------- */
@media (max-width: 820px) {
  .hero-grid, .tin-grid { grid-template-columns: 1fr; }
  .stickers { width: min(70%, 300px); margin: 12px 0 24px 16%; }
  .till { justify-self: center; margin: 24px 0; width: min(100%, 420px); }
  .shelf { grid-template-columns: 1fr; }
  .cols { grid-template-columns: 1fr; }
  .cols b { font-size: 4rem; margin-bottom: 10px; }
  .doodle { display: none; }
}
@media (max-width: 420px) {
  .item dl div { grid-template-columns: 6.5em 1fr; }
  .shot { height: 140px; }
  .shot img { height: 165px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker div, .bar h2::after { animation: none; }
  .btn span, .burst, .shot img { transition: none; }
}
