/* ===== colors and fonts — change these to restyle the whole site ===== */
/* default: blue */
:root {
  --bg: #1f3fd1;      /* page background */
  --text: #ffffff;    /* main text */
  --muted: #c3ccff;   /* lighter text (dates, notes, links) */
  --line: rgba(255, 255, 255, 0.2);
  --link-line: rgba(255, 255, 255, 0.5);  /* underline under links */
  --pop: #1a35b3;     /* popup box */
  --font: "Lora", Georgia, "Times New Roman", serif;
}

/* the two other color modes, picked with the dots in the corner */
html[data-bg="black"] {
  --bg: #000000;
  --text: #e8e8e8;
  --muted: #8a8a8a;
  --line: #262626;
  --link-line: #555;
  --pop: #111;
}
html[data-bg="white"] {
  --bg: #ffffff;
  --text: #111111;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --link-line: #aaaaaa;
  --pop: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  text-transform: lowercase;
  transition: background-color 0.4s, color 0.4s;
}

/* keeps all content in a centered column */
.page {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 20px 48px;
}

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--link-line);
  text-underline-offset: 3px;
}
a:hover { text-decoration-color: var(--text); }

/* ----- top: name + menu ----- */
/* inner pages: name, then the menu as a row of links underneath */
header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 56px;
}
.name {
  font-size: 22px;
  font-weight: 600;
  text-decoration: none;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 18px;
}
nav a {
  color: var(--muted);
  text-decoration: none;
}
nav a:hover, nav a.here { color: var(--text); }

/* home page: name on the left, burger on the right, menu hidden until tapped */
header.home {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
.burger {
  width: 26px;
  height: 32px;
  padding: 7px 0;   /* no side padding so its right edge lines up with the dots and @biboswan */
  background: none;
  border: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.burger span {
  display: block;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}
header.open .burger span:nth-child(1) { transform: translateY(8.25px) rotate(45deg); }
header.open .burger span:nth-child(2) { opacity: 0; }
header.open .burger span:nth-child(3) { transform: translateY(-8.25px) rotate(-45deg); }
header.home nav {
  position: absolute;
  right: 0;
  top: 44px;
  flex-direction: column;
  gap: 6px;
  padding: 14px 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  z-index: 6;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}
header.home.open nav { opacity: 1; visibility: visible; transform: none; }

/* ----- home: small square video + intro text side by side ----- */
.hero {
  display: flex;
  gap: 48px;
  align-items: center;
  margin-bottom: 72px;
}
/* the small square (video on home, photo on other pages) — all the same size */
.hero video,
.hero img {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 4px;
}
.hero p { margin: 0; font-size: 19px; }
.hero h1 { margin: 0 0 6px; }
.hero h1 + p { font-size: 17px; }

/* on phones: square on top, text below */
@media (max-width: 600px) {
  .hero { flex-direction: column; align-items: flex-start; gap: 20px; }
}

/* ----- home: the four doors ----- */
.doors {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 620px;
  perspective: 900px;
}
.door {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 2;
  border: 1.5px solid var(--text);
  border-radius: 999px 999px 0 0;   /* arched top */
  color: var(--text);
  text-decoration: none;
  text-align: center;
  padding: 0 8px;
  transform-origin: left center;
  transition: transform 0.5s ease, background-color 0.3s;
}
/* the door knob */
.door::after {
  content: "";
  position: absolute;
  right: 12%;
  top: 55%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text);
}
/* hover: the door swings open a little */
.door:hover {
  transform: rotateY(-28deg);
  text-decoration: none;
}
@media (max-width: 600px) {
  .doors { gap: 10px; }
  .door { font-size: 13px; padding: 0 4px; border-width: 1px; }
  .door::after { width: 5px; height: 5px; right: 10%; }
}

/* ----- headings ----- */
h1, h2 {
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 16px;
}
h2 { margin-top: 56px; }

p { margin: 0 0 16px; }
.muted { color: var(--muted); }

/* ----- simple lists (essays, work, music rooms) ----- */
ul.list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 560px;
}
ul.list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
}
ul.list a { text-decoration: none; }
ul.list a:hover { text-decoration: underline; }
ul.list .muted { white-space: nowrap; }

/* ----- about: life story ----- */
.era { margin-bottom: 28px; max-width: 600px; }
.era h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 4px;
}
.era p { margin: 0; }

/* ----- music: songs ----- */
.song { margin-bottom: 40px; max-width: 600px; }
.song h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}
.song .artist { color: var(--muted); margin: 0 0 8px; }
.song iframe,
.player {
  width: 100%;
  border: 0;
  border-radius: 12px;
  display: block;
}
.players iframe { margin-bottom: 10px; }

/* ----- the "haha got you" bubble (pops up right above the onlyfans link) ----- */
.gotcha {
  position: absolute;
  z-index: 10;
  background: var(--pop);
  color: var(--text);
  border: 1px solid var(--muted);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 14px;
  white-space: nowrap;
  pointer-events: none;
  animation: pop 0.2s ease-out;
  transition: opacity 0.4s;
}
.gotcha.bye { opacity: 0; }
@keyframes pop { from { opacity: 0; transform: translateY(4px); } }

/* ----- the color picker: three small dots, bottom-right corner ----- */
.picker {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: flex;
  gap: 8px;
  z-index: 5;
}
.picker button {
  width: 16px;
  height: 16px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--muted);
  cursor: pointer;
  transition: transform 0.15s;
}
.picker button:hover { transform: scale(1.3); }
.picker button.on { outline: 1px solid var(--text); outline-offset: 2px; }
.picker [data-pick="black"] { background: #000000; }
.picker [data-pick="white"] { background: #ffffff; }
.picker [data-pick="blue"]  { background: #1f3fd1; }

/* ----- music: light song rows (the real spotify player loads on click) ----- */
.tracks { max-width: 600px; }
.track {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 600px;
  padding: 8px;
  margin-bottom: 8px;
  background: none;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s;
}
.track:hover { border-color: var(--muted); }
.track img { width: 48px; height: 48px; border-radius: 4px; object-fit: cover; flex-shrink: 0; }
.track .info { display: flex; flex-direction: column; line-height: 1.35; flex: 1; min-width: 0; }
.track .play { font-size: 14px; color: var(--muted); padding-right: 6px; }
.track:hover .play { color: var(--text); }
.tracks .player, .song .player { margin-bottom: 8px; }

/* ----- about: life story timeline (line + dots) ----- */
.timeline {
  position: relative;
  padding-left: 34px;
  max-width: 620px;
}
.timeline .line,
.timeline .fill {
  position: absolute;
  left: 5px;
  top: 10px;
  width: 1px;
}
.timeline .line { bottom: 10px; background: var(--muted); opacity: 0.35; }
.timeline .fill { height: 0; background: var(--text); transition: height 0.15s linear; }
.timeline .era { position: relative; margin-bottom: 36px; cursor: pointer; }
.timeline .era::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 7px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid var(--text);
  background: var(--bg);
  transition: background-color 0.3s, transform 0.3s;
}
.timeline .era:hover::before { transform: scale(1.3); }
/* with the script running: eras start faded and light up as you scroll past */
.timeline.live .era { opacity: 0.3; transition: opacity 0.4s; }
.timeline.live .era.on { opacity: 1; }
.timeline.live .era.on::before { background: var(--text); }
.timeline .era:hover { opacity: 1; }

/* leave room at the very bottom so the color dots never cover the footer */

/* ----- home: the "are you cool?" entry screen ----- */
.gate-box { display: none; }
html.gate .page,
html.gate .picker { visibility: hidden; }
html.gate .gate-box {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 20;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--bg);
  text-align: center;
  font-size: 20px;
  transition: opacity 0.5s;
}
html.gate.leaving .gate-box { opacity: 0; }
.gate-box p { margin: 0 0 18px; }
.answers { display: flex; gap: 14px; justify-content: center; margin-top: 8px; }
.gate-box button {
  font: inherit;
  font-size: 17px;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--text);
  border-radius: 999px;
  padding: 4px 26px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.gate-box button:hover { background: var(--text); color: var(--bg); }
.gate-box button.again { border: 0; font-size: 15px; color: var(--muted); text-decoration: underline; padding: 0; }
.gate-box button.again:hover { background: none; color: var(--text); }

/* ----- footer -----
   desktop: two rows on one grid
     [social links ............ color dots]
     [update note ......... © 2026 biboswan]
   phone: links in 3 even columns, note, then © on the left and dots on the right */
footer {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "socials dots"
    "note    copy";
  align-items: center;
  gap: 16px 32px;
  padding-bottom: 48px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }
footer .socials { grid-area: socials; display: flex; flex-wrap: wrap; gap: 8px 28px; }
footer .picker-slot { grid-area: dots; justify-self: end; }
footer .note { grid-area: note; margin: 0; }
footer .copy { grid-area: copy; justify-self: end; white-space: nowrap; }
footer .picker { position: static; }
@media (max-width: 600px) {
  footer {
    grid-template-areas:
      "socials socials"
      "note    note"
      "copy    dots";
    gap: 20px 12px;
  }
  footer .socials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 14px; }
  footer .copy { justify-self: start; }
}

/* ----- home: the 5th door ("do not open") — same door, a cat asleep at its foot ----- */
.doors { grid-template-columns: repeat(5, 1fr); max-width: 760px; }
.door.forbidden .cat {
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 78%;
  transform: translateX(-50%);
}

/* the cat drawing */
.cat {
  fill: none;
  stroke: var(--text);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}
.cat .fillbg { fill: var(--bg); transition: fill 0.4s; }
.cat text { fill: var(--text); stroke: none; font-family: var(--font); font-size: 7px; }
.cat .z2 { font-size: 5px; }
.cat g { transform-box: fill-box; }

/* asleep: breathing + floating z's */
.cat .body { transform-origin: 50% 100%; animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scaleY(1.05); } }
.cat .z1, .cat .z2 { animation: drift 2.4s ease-in-out infinite; opacity: 0; }
.cat .z2 { animation-delay: 1.2s; }
@keyframes drift {
  0%   { opacity: 0; transform: translate(0, 3px); }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: translate(3px, -6px); }
}
.cat .z1, .cat .z2 { transform-box: fill-box; }

/* dead parts are hidden until the cat dies */
.cat .xeyes, .cat .tongue, .cat .halo { opacity: 0; transition: opacity 0.3s; }

/* step 1 (on click): the cat jolts awake */
.door.dying .cat .head { animation: jolt 0.45s ease-in-out; transform-origin: 50% 50%; }
@keyframes jolt {
  20% { transform: translate(-1px, -2px) rotate(-6deg); }
  40% { transform: translate(1px, 0) rotate(5deg); }
  60% { transform: translate(-1px, -1px) rotate(-3deg); }
  80% { transform: translate(0, 0) rotate(2deg); }
}

/* step 2: x eyes, tongue out, halo floats down and bobs */
.is-dead .body, .dead .cat .body { animation: none; }
.is-dead .zz, .dead .cat .zz { display: none; }
.is-dead .closed, .dead .cat .closed { opacity: 0; }
.is-dead .xeyes, .is-dead .tongue,
.dead .cat .xeyes, .dead .cat .tongue { opacity: 1; }
.is-dead .halo, .dead .cat .halo {
  opacity: 1;
  transform-origin: 50% 50%;
  animation: halo-in 0.6s ease-out, halo-bob 2s ease-in-out 0.6s infinite;
}
@keyframes halo-in { from { opacity: 0; transform: translateY(-6px); } }
@keyframes halo-bob { 50% { transform: translateY(-1.5px); } }

/* on phones: 3 doors on top, 2 centered underneath — all five identical */
@media (max-width: 600px) {
  .doors { grid-template-columns: repeat(6, 1fr); gap: 14px 12px; }
  .door { grid-column: span 2; font-size: 13px; }
  .door:nth-child(4) { grid-column: 2 / span 2; }
  .door:nth-child(5) { grid-column: 4 / span 2; }
}

/* ----- essay page (curiosity killed the cat): proper sentence case ----- */
.essay { max-width: 640px; text-transform: none; }
.essay h1 { font-size: 30px; margin-bottom: 8px; }
.essay .standfirst { color: var(--muted); font-style: italic; margin-bottom: 36px; }
.essay p { margin-bottom: 22px; font-size: 18px; line-height: 1.8; }
.essay em { font-style: italic; }
.cat.big { width: 130px; display: block; margin-bottom: 28px; stroke-width: 1.2; }

/* ----- inner pages: "other doors" row under the name ----- */
nav.other {
  margin-top: 14px;
  gap: 6px 32px;
  align-items: baseline;
}
nav.other .label {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  margin-right: 4px;
}
nav.other a { color: var(--text); opacity: 0.75; }
nav.other a:hover { opacity: 1; }
.crumb { color: var(--muted); font-size: 15px; }
.crumb a { color: var(--muted); }

/* knob sits a little below the door name on every door, so long names like "do not open" never touch it */
.door::after { top: 60%; }

/* ----- six doors: one row on desktop, 3 + 3 on phones ----- */
.doors { grid-template-columns: repeat(6, 1fr); max-width: 820px; gap: 20px; }
@media (max-width: 600px) {
  .doors { grid-template-columns: repeat(3, 1fr); gap: 16px 14px; }
  .door, .door:nth-child(4), .door:nth-child(5) { grid-column: auto; }
}

/* ----- the wc password box ----- */
.wc-box {
  position: fixed;
  inset: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.45);
  animation: fade 0.2s ease-out;
}
.wc-box[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.wc-card {
  position: relative;
  width: 100%;
  max-width: 340px;
  padding: 32px 28px 26px;
  background: var(--bg);
  border: 1px solid var(--text);
  border-radius: 10px;
  text-align: center;
}
.wc-card p { margin: 0 0 8px; }
.wc-close {
  position: absolute;
  top: 6px;
  right: 12px;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
}
.wc-close:hover { color: var(--text); }
.wc-form { display: flex; gap: 8px; margin: 18px 0 6px; }
.wc-form input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--muted);
  border-radius: 999px;
  padding: 6px 14px;
  outline: none;
}
.wc-form input:focus { border-color: var(--text); }
.wc-form input::placeholder { color: var(--muted); }
.wc-form button {
  font: inherit;
  font-size: 15px;
  color: var(--bg);
  background: var(--text);
  border: 0;
  border-radius: 999px;
  padding: 6px 16px;
  cursor: pointer;
}
.wc-card.shake { animation: shake 0.35s; }
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }
.wc-in p:last-child { margin-top: 14px; font-weight: 600; }

/* keep every door name on one line so all six doors look the same */
.door { white-space: nowrap; font-size: 15px; }
@media (max-width: 600px) { .door { font-size: 13px; } }

/* ----- the wc door's toilet icon (same line style and spot as the cat) ----- */
.door.wc-door .cat {
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 78%;
  transform: translateX(-50%);
}
.wc-icon .lid { transform-box: fill-box; transform-origin: 0% 50%; transition: transform 0.3s; }
.door.wc-door:hover .wc-icon .lid { transform: rotate(-35deg); }

/* ----- footers sit well below the content on every screen size ----- */
.page { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
main { flex: 1; padding-bottom: clamp(180px, 26vh, 320px); }
footer { margin-top: 0; }
@media (max-width: 600px) { main { padding-bottom: clamp(160px, 24vh, 260px); } }
