/* ==========================================================================
   yuri.property — dark edition
   hand-written stylesheet. no framework, no build step.
   palette from the 88x31 button, after midnight.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. tokens
   -------------------------------------------------------------------------- */
:root {
  color-scheme: dark;

  --plum: #44213d;
  --plum-deep: #2b1029;
  --pink: #f44c8d;
  --pink-soft: #ffc4e1;
  --cream: #fff8ed;
  --lilac: #cbacf2;

  --bg: #160818;
  --inner: #230d26;
  --panel-bg: #2e112f;
  --panel-line: #f0c4dd;
  --panel-shadow: #7e1f4a;
  --surface-2: #39153a;
  --text: #f3e3ee;
  --text-strong: #fff3fa;
  --muted: #d9b8cf;
  --accent: #ffabd0;
  --rule: rgba(255, 255, 255, 0.16);
  --link: #ffb6d6;
  --link-bg: var(--pink);
  --link-hover-text: var(--plum-deep);

  --f-pixel: "Silkscreen", "Courier New", monospace;
  --f-body: "DotGothic16", "MS PGothic", "Yu Gothic", sans-serif;
  --f-hand: "Klee One", "Segoe Print", "Bradley Hand", cursive;
  --f-mono: "Courier New", ui-monospace, SFMono-Regular, monospace;

  --frame: 6px;
}

/* --------------------------------------------------------------------------
   2. base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--pink) var(--inner);
  scrollbar-width: thin;
}

body {
  margin: 0;
  padding: 36px 18px 92px;
  min-height: 100vh;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.95;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1px 1px at 10% 14%, #ffe9f4 50%, transparent 51%),
    radial-gradient(1px 1px at 24% 62%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 78% 22%, #ffc4e1 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 70%, #d9c6ff 50%, transparent 51%),
    radial-gradient(1px 1px at 54% 88%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 36% 34%, #ffc4e1 50%, transparent 51%),
    linear-gradient(180deg, #190a1e 0%, #2a0f2c 50%, #190a1e 100%);
  background-attachment: fixed;
}

/* faint checkerboard, like the button's dithered background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.5) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.5) 75%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.5) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.5) 75%);
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;
  opacity: 0.05;
}

::selection { background: var(--pink); color: var(--plum-deep); }

::-webkit-scrollbar { width: 13px; height: 13px; }
::-webkit-scrollbar-track { background: var(--inner); }
::-webkit-scrollbar-thumb { background: var(--pink); border: 3px solid var(--inner); }

img { max-width: 100%; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: var(--pink);
}
a:hover {
  color: var(--link-hover-text);
  background: var(--link-bg);
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 3px dashed var(--pink);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 14px;
  background: var(--pink);
  color: var(--plum-deep);
  font: 400 11px/1 var(--f-pixel);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
.skip-link:focus { left: 12px; top: 12px; background: var(--pink); }

@keyframes boot {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   3. the frame — plum / cream / pink, just like the button
   -------------------------------------------------------------------------- */
.shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  background: var(--cream);
  border: var(--frame) solid #0d0410;
  padding: var(--frame);
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.42);
  animation: boot 0.4s ease-out both;
}

.inner {
  background: var(--inner);
  border: 3px solid var(--pink);
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   5. masthead
   -------------------------------------------------------------------------- */
.masthead {
  padding: 32px 24px 22px;
  text-align: center;
  background-color: var(--inner);
  background-image: radial-gradient(rgba(255, 196, 225, 0.14) 1.5px, transparent 1.6px);
  background-size: 14px 14px;
  border-bottom: 3px solid var(--panel-line);
}

.masthead__fig {
  max-width: 880px;
  margin: 0 auto;
}

.masthead__art {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  background: var(--cream);
  border: 3px solid var(--cream);
  box-shadow: 8px 8px 0 var(--pink);
}

.masthead__cap {
  max-width: 60ch;
  margin: 18px auto 0;
  font-size: 12px;
  line-height: 1.75;
  color: var(--muted);
  letter-spacing: 0.01em;
}

/* --------------------------------------------------------------------------
   6. navigation
   -------------------------------------------------------------------------- */
.nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #2a0f2c;
  border-bottom: 3px solid var(--panel-line);
}

.nav a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 43px;
  padding: 10px 6px;
  background: transparent;
  border-right: 2px solid var(--panel-line);
  color: #f7dfee;
  font: 400 11px/1 var(--f-pixel);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.1s linear, color 0.1s linear;
}
.nav a:last-child { border-right: 0; }
.nav a:hover { background: #4a1a44; color: #fff; }
.nav a[aria-current="page"] { background: var(--pink); color: var(--plum-deep); }
.nav a[aria-current="page"]::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: none;
  background: var(--plum-deep);
}
.nav a[aria-current="page"]:hover { background: var(--pink); }
.nav a:focus-visible { outline-offset: -7px; }

/* --------------------------------------------------------------------------
   7. layout
   -------------------------------------------------------------------------- */
.layout {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  align-items: stretch;
}

.sidebar {
  display: grid;
  gap: 20px;
  align-content: start;
  padding: 20px 18px 34px;
  background: #2a0f2c;
  border-right: 3px solid var(--panel-line);
}

main {
  padding: 34px 30px 40px;
  min-width: 0;
}
main:focus { outline: none; }

/* --------------------------------------------------------------------------
   8. panels & headings
   -------------------------------------------------------------------------- */
.panel {
  position: relative;
  margin: 0 0 30px;
  padding: 26px 28px 28px;
  background: var(--panel-bg);
  border: 3px solid var(--panel-line);
  box-shadow: 5px 5px 0 var(--panel-shadow);
}
.panel:last-child { margin-bottom: 0; }

.sec-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 2px dashed var(--rule);
}

.idx {
  flex: none;
  padding: 5px 6px 4px;
  background: var(--pink);
  border: 2px solid var(--panel-line);
  box-shadow: 2px 2px 0 var(--panel-line);
  color: var(--plum-deep);
  font: 400 9.5px/1 var(--f-pixel);
  letter-spacing: 0.06em;
}

.sec-head h2 {
  margin: 0;
  color: var(--text-strong);
  font: 700 16px/1.25 var(--f-pixel);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   9. type helpers
   -------------------------------------------------------------------------- */
.prose p { max-width: 62ch; }

.hand {
  margin: 0 0 16px;
  color: var(--text-strong);
  font-family: var(--f-hand);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.01em;
}

.tiny {
  margin: 6px 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.65;
}

.label {
  margin: 20px 0 8px;
  color: var(--accent);
  font: 400 9.5px/1.4 var(--f-pixel);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tight { margin-top: 0; }

.jp { font-family: var(--f-body); }

/* --------------------------------------------------------------------------
   10. buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px 10px;
  background: var(--pink);
  border: 3px solid var(--pink);
  box-shadow: 4px 4px 0 var(--cream);
  color: var(--plum-deep);
  font: 400 11px/1 var(--f-pixel);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.08s steps(1), box-shadow 0.08s steps(1), background 0.08s linear, color 0.08s linear;
}
.btn:hover {
  background: var(--pink-soft);
  border-color: var(--pink-soft);
  color: var(--plum);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--cream);
}
.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--cream);
}
.btn--small {
  padding: 8px 10px 7px;
  border-width: 2px;
  box-shadow: 3px 3px 0 var(--cream);
  font-size: 10px;
}

/* --------------------------------------------------------------------------
   11. hello
   -------------------------------------------------------------------------- */
.hello { padding: 6px 2px 30px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--accent);
  font: 400 10px/1.5 var(--f-pixel);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  background: var(--pink);
  box-shadow: 2px 2px 0 var(--pink-soft);
}

.hello__line {
  max-width: 24ch;
  margin: 0 0 24px;
  font-size: 28px;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   12. profile card + sidebar widgets
   -------------------------------------------------------------------------- */
.card {
  background: var(--panel-bg);
  border: 3px solid var(--panel-line);
  box-shadow: 4px 4px 0 var(--panel-shadow);
}

.card__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px 7px;
  background: #1d0a20;
  color: var(--cream);
  font: 400 9.5px/1 var(--f-pixel);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.card__bar span:last-child { color: var(--pink-soft); }

.card__body { padding: 14px 14px 16px; }
.card__body--center { text-align: center; }

.avatar {
  display: block;
  width: 112px;
  height: 112px;
  margin: 0 auto 12px;
  border: 3px solid var(--panel-line);
  box-shadow: 3px 3px 0 var(--pink);
}

.profile__name {
  margin: 0;
  color: var(--text-strong);
  font: 700 16px/1.35 var(--f-pixel);
  letter-spacing: 0.01em;
  text-align: center;
}
.profile__name .jp {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font: 400 14px/1 var(--f-body);
  letter-spacing: 0.3em;
}

.profile__handle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.profile__pronouns {
  margin: 12px 0 0;
  padding: 7px 4px 6px;
  background: var(--pink-soft);
  border: 2px solid var(--cream);
  color: var(--plum-deep);
  font: 400 11px/1 var(--f-pixel);
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.flags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.flags li {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.4;
}

.flag {
  display: inline-flex;
  width: 30px;
  height: 11px;
  flex: none;
  border: 2px solid var(--panel-line);
}
.flag i { flex: 1; }
.flag--trans i:nth-child(1),
.flag--trans i:nth-child(5) { background: #5bcefa; }
.flag--trans i:nth-child(2),
.flag--trans i:nth-child(4) { background: #f5a9b8; }
.flag--trans i:nth-child(3) { background: #fffafc; }
.flag--lesbian i:nth-child(1) { background: #d52d00; }
.flag--lesbian i:nth-child(2) { background: #ef7627; }
.flag--lesbian i:nth-child(3) { background: #ff9a56; }
.flag--lesbian i:nth-child(4) { background: #fffafc; }
.flag--lesbian i:nth-child(5) { background: #d162a4; }
.flag--lesbian i:nth-child(6) { background: #b55690; }
.flag--lesbian i:nth-child(7) { background: #a30262; }

.facts {
  display: grid;
  gap: 7px;
  margin: 14px 0 0;
  padding: 12px 0 0;
  border-top: 2px dashed var(--rule);
}
.facts div {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px;
  align-items: baseline;
}
.facts dt {
  color: var(--accent);
  font: 400 9px/1.4 var(--f-pixel);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.facts dd {
  margin: 0;
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.5;
}

.card__body .btn { width: 100%; margin-top: 14px; }

.now {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.now li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px;
  align-items: baseline;
}
.now__k {
  color: var(--accent);
  font: 400 8.5px/1.5 var(--f-pixel);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.now__v {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text);
}
.now__v em {
  color: var(--accent);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.03em;
}

.btn-88 {
  display: block;
  width: 88px;
  height: 31px;
  margin: 8px auto;
  image-rendering: pixelated;
  border: 2px solid var(--panel-line);
}

/* --------------------------------------------------------------------------
   13. pronouns
   -------------------------------------------------------------------------- */
.lede {
  margin: 0 0 16px;
  font-size: 17px;
  color: var(--text);
}

.pronoun-list {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  background: var(--inner);
  border: 2px solid var(--panel-line);
}

.pronoun {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 2px dashed var(--rule);
  font-size: 14px;
}
.pronoun:last-child { border-bottom: 0; }

.pronoun__mark {
  padding: 5px 3px 4px;
  background: #1d0a20;
  border: 2px solid var(--panel-line);
  color: var(--muted);
  font: 400 8.5px/1 var(--f-pixel);
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}
.pronoun--yes .pronoun__mark { background: var(--pink); color: var(--plum-deep); }
.pronoun--meh .pronoun__mark { background: var(--lilac); color: var(--plum-deep); }

.pronoun__word {
  color: var(--text-strong);
  font: 400 11.5px/1.4 var(--f-pixel);
  letter-spacing: 0.02em;
}
.pronoun--no { color: var(--muted); }
.pronoun--no .pronoun__word {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--pink);
}
.pronoun__note {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
  text-align: right;
}

/* --------------------------------------------------------------------------
   15. button shelf + code
   -------------------------------------------------------------------------- */
.button-shelf {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 205px;
  gap: 22px;
  align-items: center;
  margin: 0 0 20px;
  padding: 20px;
  background: var(--surface-2);
  border: 2px dashed var(--panel-line);
}

.button-shelf__preview img {
  display: block;
  width: 100%;
  max-width: 352px;
  height: auto;
  image-rendering: pixelated;
  border: 2px solid var(--panel-line);
  box-shadow: 4px 4px 0 var(--pink-soft);
}

.button-shelf__meta { text-align: center; }
.button-shelf__meta .tiny { margin: 4px 0; }

.code {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  background: #12060f;
  border: 3px solid var(--panel-line);
  box-shadow: 4px 4px 0 var(--pink-soft);
  color: #ffe6f2;
  font: 12.5px/1.8 var(--f-mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.code code { font-family: inherit; }

.copy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.copy-status { color: var(--accent); font-size: 11.5px; }

/* --------------------------------------------------------------------------
   17. footer
   -------------------------------------------------------------------------- */
.footer {
  padding: 22px 28px 26px;
  background: #1d0a20;
  border-top: 3px solid var(--panel-line);
  color: var(--muted);
  font-size: 12px;
}

.footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: flex-start;
  justify-content: space-between;
}

.footer__mark {
  margin: 0 0 8px;
  color: var(--text-strong);
  font: 700 13px/1 var(--f-pixel);
  letter-spacing: 0.02em;
}

.footer__note {
  max-width: 36ch;
  margin: 0;
  font-size: 11px;
  line-height: 1.7;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 12px 0 16px;
  font: 400 9.5px/1 var(--f-pixel);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer__nav a { color: var(--pink-soft); text-decoration: none; }
.footer__nav a:hover { background: var(--pink); color: var(--plum-deep); }

.footer__legal {
  max-width: 78ch;
  margin: 0 0 10px;
  font-size: 11px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   18. links, button wall
   -------------------------------------------------------------------------- */
/* link list */
.linklist {
  display: grid;
  gap: 12px;
  margin: 0 0 16px;
}

.biglink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  background: var(--surface-2);
  border: 2px solid var(--panel-line);
  box-shadow: 3px 3px 0 var(--panel-shadow);
  color: var(--text-strong);
  text-decoration: none;
  transition: transform 0.1s steps(1), box-shadow 0.1s steps(1), background 0.1s linear;
}
.biglink:hover {
  background: var(--pink);
  color: var(--plum-deep);
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--cream);
}
.biglink b {
  display: block;
  font: 700 11.5px/1.3 var(--f-pixel);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.biglink small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}
.biglink:hover small { color: var(--plum); }
.biglink__go { color: var(--accent); font: 700 14px/1 var(--f-pixel); flex: none; }
.biglink:hover .biglink__go { color: var(--plum); }

/* button wall */
.buttonwall {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: var(--surface-2);
  border: 2px dashed var(--panel-line);
}
.buttonwall img {
  display: block;
  width: 88px;
  height: 31px;
  image-rendering: pixelated;
  border: 1px solid var(--panel-line);
}
.buttonwall__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 90px;
  height: 33px;
  padding: 2px;
  border: 2px dashed var(--rule);
  color: var(--muted);
  font: 400 7.5px/1.4 var(--f-pixel);
  letter-spacing: 0.03em;
  text-align: center;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   19. entry gate + sound toggle
   -------------------------------------------------------------------------- */
html.gated,
html.gated body { overflow: hidden; }

.gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 18px;
  overflow-y: auto;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 50% 45%, rgba(244, 76, 141, 0.08), transparent 62%),
    radial-gradient(rgba(255, 196, 225, 0.24) 1.2px, transparent 1.8px);
  background-size: auto, 14px 14px;
}
.gate[hidden] { display: none; }

.gate__card {
  width: min(430px, 100%);
  padding: 6px;
  background: var(--cream);
  border: 6px solid #0d0410;
  box-shadow: 12px 12px 0 rgba(244, 76, 141, 0.4);
}

.gate__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: #1d0a20;
  color: var(--cream);
  font: 400 9px/1 var(--f-pixel);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.gate__bar span:last-child { color: var(--pink-soft); }

.gate__inner {
  padding: 24px 22px 22px;
  background: var(--panel-bg);
  border: 3px solid var(--pink);
  text-align: center;
}

.gate__art {
  display: block;
  width: 176px;
  height: auto;
  margin: 0 auto 16px;
  image-rendering: pixelated;
  border: 2px solid var(--panel-line);
  box-shadow: 4px 4px 0 var(--pink);
}

.gate__title {
  margin: 0 0 6px;
  color: var(--text-strong);
  font: 700 16px/1.3 var(--f-pixel);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.gate__desc {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.gate__blocks {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 0 0 10px;
}
.gate__blocks i {
  display: block;
  width: 14px;
  height: 8px;
  background: #1d0a20;
  border: 1px solid rgba(240, 196, 221, 0.35);
}
.gate__blocks i.is-on {
  background: var(--pink);
  border-color: var(--pink-soft);
}

.gate__status {
  min-height: 1.5em;
  margin: 0 0 18px;
  color: var(--accent);
  font: 400 9px/1.5 var(--f-pixel);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gate__open {
  padding: 14px 20px 13px;
  font-size: 13px;
}
.gate__open:focus-visible { outline-color: var(--cream); }
.gate__open[hidden] { display: none; }

.gate__muted {
  display: block;
  margin: 12px auto 0;
  padding: 5px 8px;
  background: none;
  border: 0;
  color: var(--muted);
  font: 400 10px/1.5 var(--f-pixel);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--pink);
  text-underline-offset: 3px;
  cursor: pointer;
}
.gate__muted:hover { background: var(--pink); color: var(--plum-deep); text-decoration-color: currentColor; }
.gate__muted:focus-visible { outline-color: var(--cream); }
.gate__muted[hidden] { display: none; }

.gate__note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.6;
}

.gate.is-opening {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.sound-toggle {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px 7px;
  background: #1d0a20;
  border: 2px solid var(--panel-line);
  box-shadow: 3px 3px 0 var(--pink);
  color: var(--cream);
  font: 400 9px/1 var(--f-pixel);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.sound-toggle:hover { background: var(--pink); color: var(--plum-deep); }
.sound-toggle[hidden] { display: none; }

.sound-toggle__bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 10px;
}
.sound-toggle__bars i {
  display: block;
  width: 2px;
  height: 4px;
  background: currentColor;
}
.sound-toggle__bars i:nth-child(2) { height: 8px; }
.sound-toggle__bars i:nth-child(3) { height: 5px; }

.sound-toggle[aria-pressed="true"] .sound-toggle__bars i {
  animation: eq 0.8s steps(2, end) infinite;
}

@keyframes eq {
  0%, 100% { transform: scaleY(0.6); }
  50% { transform: scaleY(1.15); }
}

/* --------------------------------------------------------------------------
   20. motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* --------------------------------------------------------------------------
   21. responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  body { padding: 24px 14px 40px; }
  .shell { box-shadow: 9px 9px 0 rgba(0, 0, 0, 0.42); }
}

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding: 20px;
    border-right: 0;
    border-bottom: 3px solid var(--panel-line);
  }
  .profile { grid-row: span 2; }
  main { padding: 28px 24px 34px; }
}

@media (max-width: 680px) {
  body { padding: 14px 10px 68px; }
  .shell {
    border-width: 4px;
    padding: 4px;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.42);
  }
  .inner { border-width: 2px; }

  .masthead { padding: 18px 14px 16px; }
  .masthead__art { border-width: 2px; box-shadow: 5px 5px 0 var(--pink); }
  .masthead__cap { margin-top: 14px; font-size: 11px; }

  .nav a { font-size: 9px; letter-spacing: 0.04em; min-height: 39px; padding: 8px 3px; gap: 4px; }
  .nav a[aria-current="page"]::before { display: none; }

  .sidebar { grid-template-columns: 1fr; gap: 16px; padding: 16px 14px 22px; }
  .profile { grid-row: auto; }
  .card { border-width: 2px; }
  main { padding: 24px 16px 30px; }

  .hello__line { font-size: 24px; }
  .hello { padding-bottom: 24px; }
  .eyebrow { font-size: 9px; }

  .panel {
    padding: 20px 17px 22px;
    margin-bottom: 24px;
    border-width: 2px;
    box-shadow: 4px 4px 0 var(--panel-shadow);
  }
  .sec-head h2 { font-size: 13px; }
  .sec-head { gap: 8px; padding-bottom: 10px; margin-bottom: 14px; }
  .idx { font-size: 8.5px; padding: 4px 5px 3px; }

  .hand { font-size: 20px; }
  .hello__line { margin-bottom: 18px; }

  .pronoun { grid-template-columns: 42px minmax(0, 1fr); gap: 10px; padding: 9px 10px; }
  .pronoun__note { grid-column: 2; text-align: left; font-size: 11px; }

  .button-shelf { grid-template-columns: 1fr; gap: 18px; padding: 14px; text-align: left; }
  .button-shelf__meta { text-align: left; }
  .button-shelf .btn-88 { margin-left: 0; }
  .code { padding: 12px; font-size: 11px; }

  .biglink { padding: 12px 14px; }

  .footer { padding: 18px 16px 22px; }
  .footer__nav { font-size: 8.5px; gap: 10px; }
  .footer__legal { font-size: 10.5px; }

  .buttonwall { gap: 10px; padding: 14px; }

  .gate { padding: 12px; }
  .gate__card {
    border-width: 4px;
    padding: 4px;
    box-shadow: 8px 8px 0 rgba(244, 76, 141, 0.4);
  }
  .gate__inner { padding: 20px 16px 18px; border-width: 2px; }
  .gate__art { width: 150px; }
  .gate__title { font-size: 14px; }
  .gate__open { width: 100%; }
  .gate__note { font-size: 10px; }
  .sound-toggle { right: 12px; bottom: 12px; font-size: 8px; padding: 7px 8px; }
}

@media (max-width: 380px) {
  .nav a { font-size: 8px; letter-spacing: 0; }
  .hello__line { font-size: 22px; }
}
