/* Minimal card: a name, one row of project links, the guns.lol button. */
@font-face { font-family: 'Serif'; font-weight: 300 700; font-display: swap; src: url(/fonts/serif-latin.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Serif'; font-weight: 300 700; font-display: swap; src: url(/fonts/serif-cyrillic.woff2) format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --bg: #0b0b0c;
  --ink: #ededea;
  --muted: #8d8d88;
  --line: #2a2a2c;
  --hover: #ffffff;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

.card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 48px 16px;
  text-align: center;
}
/* the name as a capsule: one half bone, one half black, the text inverts across the seam */
.pill {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(220px, 42vw, 360px);
  height: clamp(86px, 16vw, 136px);
  margin: 0;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ink) 0 50%, var(--bg) 50% 100%);
  box-shadow: 0 18px 60px rgba(255, 255, 255, 0.06), inset 0 -12px 26px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  isolation: isolate;
  animation: drift 6s ease-in-out infinite;
}
.pill::before {
  content: '';
  position: absolute;
  inset: 10% 8% auto;
  height: 28%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.pill::after {
  content: '';
  position: absolute;
  top: 12%;
  bottom: 12%;
  left: calc(50% - 1px);
  width: 2px;
  background: var(--line);
  opacity: 0.6;
}
.pill-text {
  position: relative;
  z-index: 1;
  color: #fff;
  mix-blend-mode: difference;
  font: 400 clamp(44px, 8vw, 78px)/1 'Serif', Georgia, serif;
  letter-spacing: 0.06em;
}
@keyframes drift { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-6px) rotate(-1deg); } }

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 28px;
  transition: color 0.2s;
}
.link + .link { border-left: 1px solid var(--line); }
.link-name { font-size: 18px; letter-spacing: 0.01em; }
.link-meta { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.14em; }
.link:hover .link-name { color: var(--hover); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

.guns {
  padding: 10px 26px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.08em;
  transition: background 0.2s, color 0.2s;
}
.guns:hover { background: var(--ink); color: var(--bg); }

/* two small arrows nudging toward the guns.lol button */
.guns-wrap { display: flex; align-items: center; gap: 14px; }
.arrow { fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.arrow-l { animation: nudge-r 1.8s ease-in-out infinite; }
.arrow-r { animation: nudge-l 1.8s ease-in-out infinite; }
@keyframes nudge-r { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
@keyframes nudge-l { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-5px); } }
.guns-wrap:hover .arrow { stroke: var(--ink); }

/* sound control in the bottom-right corner */
.sound {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(11, 11, 12, 0.82);
  backdrop-filter: blur(6px);
  z-index: 10;
}
.mute {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.mute:hover { background: var(--line); }
.mute:focus-visible { outline: 1px solid var(--ink); outline-offset: 2px; }
.mute svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mute .spk { fill: currentColor; }
.mute .cross { display: none; }
.sound.is-muted .wave { display: none; }
.sound.is-muted .cross { display: inline; }
.vol {
  --fill: 50%;
  width: 96px;
  height: 18px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.vol::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--ink) var(--fill), var(--line) var(--fill)); }
.vol::-moz-range-track { height: 3px; border-radius: 3px; background: var(--line); }
.vol::-moz-range-progress { height: 3px; border-radius: 3px; background: var(--ink); }
.vol::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4.5px; border-radius: 50%; background: var(--ink); }
.vol::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--ink); }
.vol:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

@media (max-width: 640px) {
  .card { gap: 36px; }
  .links { flex-direction: column; width: 100%; max-width: 360px; }
  .link + .link { border-left: 0; border-top: 1px solid var(--line); }
  .link { padding: 16px 20px; }
  .card { padding-bottom: 96px; } /* room for the sound control */
  .guns-wrap { gap: 10px; }
  .sound { padding: 6px 12px 6px 6px; }
  .vol { width: 80px; }
}
@media (max-width: 360px) {
  .pill { width: 200px; height: 78px; }
  .vol { width: 64px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* 404 and placeholder pages */
body.plain .placeholder { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px; }
body.plain h1 { margin: 0; font: 400 48px/1 'Serif', Georgia, serif; }
body.plain a { text-decoration: underline; text-underline-offset: 4px; }
