@import url("https://fonts.googleapis.com/css2?family=Irish+Grover&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Fredoka+One&display=swap");

:root {
  --wall: #f7bfd6;
  --pink: #ff7fb5;
  --pink-hot: #ef3e91;
  --pink-pale: #ffdcea;
  --cream: #fffced;
  --cream-deep: #f5edcf;
  --lilac: #b7bced;
  --blue: #6574b9;
  --sky: #bfe7f3;
  --mint: #bde9d1;
  --peach: #ffc7aa;
  --yellow: #ffe88a;
  --ink: #000000;
  --line: 2px solid var(--ink);
  --thin-line: 1px solid rgba(0, 0, 0, 0.58);
  --soft-shadow: 5px 5px 0 rgba(239, 62, 145, 0.34);
  color: var(--ink);
  background: var(--wall);
  font-family: "Trebuchet MS", Verdana, Geneva, Tahoma, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  padding: 28px 0 45px;
  font-size: 1rem;
  line-height: 1.55;
  background-color: var(--wall);
  background-image:
    radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.76) 1.4px, transparent 1.5px),
    linear-gradient(45deg, rgba(255, 255, 255, 0.18) 25%, transparent 25% 75%, rgba(255, 255, 255, 0.18) 75%),
    radial-gradient(circle at 70% 35%, rgba(255, 173, 211, 0.22), transparent 42%);
  background-size: 15px 15px, 38px 38px, auto;
}

body::before {
  content: "♡   ✦   ♡   ✦   ♡   ✦   ♡   ✦   ♡   ✦   ♡   ✦   ♡   ✦   ♡";
  position: fixed;
  z-index: -1;
  top: 4px;
  left: 0;
  width: 100%;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  letter-spacing: 1.2rem;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--pink-hot);
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.5rem 0.75rem;
  border: var(--line);
  color: var(--ink);
  background: var(--cream);
  font-weight: 700;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  position: relative;
  display: grid;
  grid-template-columns: 185px minmax(0, 1fr) 205px;
  width: min(1110px, calc(100% - 28px));
  margin: 0 auto;
  border: 3px solid var(--ink);
  border-radius: 8px 4px 10px 5px;
  background: rgba(255, 252, 237, 0.78);
  box-shadow:
    9px 9px 0 rgba(239, 62, 145, 0.4),
    -5px -5px 0 rgba(255, 255, 255, 0.68);
  transform: rotate(-0.12deg);
}

.page-shell::after {
  content: "";
  position: absolute;
  z-index: 5;
  inset: 5px;
  border: 1px dashed rgba(239, 62, 145, 0.45);
  pointer-events: none;
}

.site-header {
  position: relative;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 205px;
  overflow: visible;
  padding: 1.8rem clamp(1.4rem, 5vw, 4.5rem);
  border-bottom: var(--line);
  background-color: var(--pink-pale);
  background-image:
    radial-gradient(circle at 47% 43%, rgba(255, 255, 255, 0.72) 0 2.8px, transparent 3.2px),
    linear-gradient(132deg, rgba(255, 255, 255, 0.42) 25%, transparent 25% 51%, rgba(255, 255, 255, 0.42) 51% 74%, transparent 74%);
  background-size: 25px 23px, 74px 69px;
}

.site-header::before,
.site-header::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  border: 2px dashed rgba(0, 0, 0, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

.site-header::before {
  top: -100px;
  left: -45px;
}

.site-header::after {
  right: 65px;
  bottom: -140px;
}

.header-sparkle {
  position: absolute;
  z-index: 1;
  color: var(--pink-hot);
  font-family: Georgia, serif;
  text-shadow: 2px 2px 0 white;
}

.sparkle-one {
  top: 22px;
  right: 245px;
  font-size: 2.8rem;
  transform: rotate(12deg);
}

.sparkle-two {
  right: 45px;
  bottom: 14px;
  font-size: 3.4rem;
  transform: rotate(-12deg);
}

.wordmark {
  position: relative;
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  color: var(--ink);
  text-decoration: none;
  transform: rotate(-1deg);
}

.wordmark:hover {
  color: var(--ink);
}

.wordmark-kicker,
.wordmark-sub {
  align-self: flex-start;
  padding: 0.14rem 0.55rem;
  border: 1px dashed var(--ink);
  background: rgba(255, 252, 237, 0.86);
  font-family: "Comic Sans MS", "Trebuchet MS", cursive;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.wordmark-sub {
  align-self: flex-end;
  margin-top: 0.2rem;
  transform: rotate(1.5deg);
}

.wordmark-main {
  color: var(--pink-hot);
  font-family: "Irish Grover", "Trebuchet MS", cursive;
  font-size: clamp(3rem, 8vw, 6.1rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.075em;
  -webkit-text-stroke: 2px var(--ink);
  text-shadow:
    3px 3px 0 white,
    6px 6px 0 var(--lilac);
}

.header-sonico {
  position: absolute;
  z-index: 2;
  right: 0.3rem;
  bottom: -10px;
  width: clamp(300px, 35vw, 520px);
  height: calc(100% + 58px);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.header-sonico img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  background: transparent;
}

.ticker {
  position: relative;
  z-index: 6;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 54px;
  padding: 0.35rem 0.75rem;
  border-bottom: var(--line);
  color: #72435f;
  background: repeating-linear-gradient(90deg, #ffacd0 0 26px, #ffc3db 26px 52px);
  font-family: "Comic Sans MS", "Trebuchet MS", cursive;
  font-size: 0.78rem;
  font-weight: 700;
}

.mp3-player {
  flex-wrap: wrap;
}

.player-btn {
  display: grid;
  place-items: center;
  min-width: 56px;
  height: 34px;
  border: var(--line);
  background: linear-gradient(#fff, var(--pink-pale));
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.22);
  color: var(--ink);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  cursor: pointer;
}

.player-now {
  min-width: 180px;
  max-width: 290px;
  line-height: 1.1;
}

.player-track,
.player-hint,
.player-time {
  margin: 0;
}

.player-track {
  overflow: hidden;
  color: #623f57;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-hint {
  color: rgba(98, 63, 87, 0.82);
  font-size: 0.72rem;
}

.player-time {
  min-width: 88px;
  font-variant-numeric: tabular-nums;
}

.player-progress {
  width: min(280px, 38vw);
}

.player-volume {
  width: 86px;
}

.player-progress,
.player-volume {
  accent-color: var(--pink-hot);
}

.player-btn:hover {
  background: linear-gradient(#fff, #ffc7df);
}

.tab-bar {
  position: relative;
  z-index: 6;
  grid-column: 1;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.75rem 0.65rem 1rem;
  border-right: var(--line);
  background-color: var(--sky);
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.68) 1.2px, transparent 1.5px);
  background-size: 11px 11px;
}

.nav-label,
.rail-box h2 {
  margin: 0 0 0.5rem;
  padding: 0.24rem 0.45rem;
  border: var(--line);
  color: var(--cream);
  background: var(--blue);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.22);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 1.03rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1.25;
  text-align: center;
  text-transform: lowercase;
}

.nav-label {
  color: #1f5f2c;
  background: var(--pink-hot);
}

.tab {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  min-height: 42px;
  margin-bottom: 0.38rem;
  padding: 0.45rem 0.65rem;
  border: var(--line);
  border-radius: 3px 7px 5px 4px;
  color: var(--ink);
  background: linear-gradient(#fff, var(--pink-pale));
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.25);
  cursor: pointer;
  font-family: "Fredoka One", "Trebuchet MS", Verdana, sans-serif;
  font-weight: 700;
  text-align: left;
  text-transform: lowercase;
  transition: transform 110ms ease-out, background 120ms ease, box-shadow 120ms ease;
}

.tab:nth-of-type(1) { transform: rotate(-0.4deg); }
.tab:nth-of-type(2) { transform: rotate(0.2deg); }
.tab:nth-of-type(3) { transform: rotate(-0.2deg); }
.tab:nth-of-type(4) { transform: rotate(0.35deg); }
.tab:nth-of-type(5) { transform: rotate(-0.15deg); }

.tab:nth-of-type(1) { background: linear-gradient(#fbffe8, #efff9c); }
.tab:nth-of-type(2) { background: linear-gradient(#f8ffd9, #e0fb70); }
.tab:nth-of-type(3) { background: linear-gradient(#f3ffca, #c8ef45); }
.tab:nth-of-type(4) { background: linear-gradient(#edffb9, #aeda2d); }
.tab:nth-of-type(5) { background: linear-gradient(#e8fca9, #92bf1f); }

.tab:hover,
.tab.is-active {
  color: var(--ink);
  background: linear-gradient(#f5a9cb, #b01963);
  transform: translate(-2px, -2px) rotate(-0.25deg);
  box-shadow: 5px 5px 0 var(--ink);
}

.tab.is-active::after {
  content: "←";
  margin-left: auto;
  color: var(--pink-hot);
  font-weight: 900;
}

.nav-mini-card {
  display: grid;
  gap: 0.35rem;
  margin-top: 1rem;
  padding: 0.7rem;
  border: var(--line);
  background: rgba(255, 252, 237, 0.9);
  font-size: 0.72rem;
  line-height: 1.25;
  text-align: center;
  transform: rotate(-1.5deg);
}

.nav-mini-card span {
  color: var(--pink-hot);
  font-family: "Comic Sans MS", cursive;
}

.nav-mini-card strong {
  overflow-wrap: anywhere;
}

main {
  position: relative;
  z-index: 4;
  grid-column: 2;
  min-width: 0;
  padding: 0.9rem;
  background-color: rgba(255, 252, 237, 0.95);
  background-image:
    linear-gradient(rgba(183, 188, 237, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(183, 188, 237, 0.1) 1px, transparent 1px);
  background-size: 24px 24px;
}

.tab-panel {
  min-height: 650px;
  animation: page-in 220ms ease both;
}

.tab-panel[hidden] {
  display: none;
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.75rem 0.85rem;
  border: var(--line);
  border-radius: 8px 6px 3px 7px;
  background: linear-gradient(98deg, rgba(255, 220, 234, 0.96), rgba(255, 255, 255, 0.97) 43%, rgba(191, 231, 243, 0.95));
  box-shadow: var(--soft-shadow);
}

h1,
h2,
p,
dd,
li {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0.12rem 0 0;
  color: var(--pink-hot);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: clamp(2.25rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.05em;
  text-shadow: 2px 2px 0 white;
}

h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: clamp(1.22rem, 2.5vw, 1.7rem);
  line-height: 1.15;
}

.eyebrow {
  margin: 0;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.scribble {
  max-width: 190px;
  margin: 0 0 0.2rem;
  padding: 0.25rem 0.55rem;
  border: 1px dashed var(--ink);
  border-radius: 3px;
  background: var(--cream);
  font-family: "Comic Sans MS", "Trebuchet MS", cursive;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  transform: rotate(-2deg);
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 165px;
  gap: 0.85rem;
  align-items: start;
}

.notebook-pile,
.fic-list {
  display: grid;
  gap: 0.85rem;
}

.paper-diary,
.right-now-box,
.manifesto-card,
.fic-card,
.video-card {
  border: var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.18);
  border-radius: 3px 6px 5px 4px;
}

.paper-diary {
  position: relative;
  padding: 1rem;
}

.notebook-pile .paper-diary:nth-child(odd) {
  transform: rotate(-0.22deg);
}

.notebook-pile .paper-diary:nth-child(even) {
  transform: rotate(0.18deg);
}

.paper-diary::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 7px;
  background: repeating-linear-gradient(90deg, var(--pink) 0 18px, var(--pink-pale) 18px 36px);
}

.featured-post {
  background: linear-gradient(145deg, #fff 65%, var(--pink-pale));
}

.paper-diary h2 {
  margin: 0.6rem 0 0.7rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.5);
}

.paper-diary p {
  margin: 0 0 0.8rem;
}

.date-doodle {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  margin-top: 0.25rem;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: lowercase;
}

.new-sticker {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  margin: 0;
  padding: 0.12rem 0.42rem;
  border: 1px solid var(--ink);
  border-radius: 2px;
  color: white;
  background: var(--pink-hot);
  font-family: "Comic Sans MS", cursive;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.35;
  transform: rotate(3deg);
}

.text-button {
  padding: 0.24rem 0.5rem;
  border: 1px solid var(--ink);
  border-radius: 3px;
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
}

.text-button:hover {
  color: var(--ink);
  background: var(--pink-pale);
}

.right-now-box {
  position: sticky;
  top: 0.75rem;
  padding: 0.75rem;
  background: linear-gradient(#f2ffc2, #b8df2d);
  transform: rotate(0.8deg);
}

.right-now-box h2 {
  margin-bottom: 0.6rem;
  color: #3f5a14;
  font-family: "Comic Sans MS", "Trebuchet MS", cursive;
  font-size: 1.15rem;
}

.right-now-box dl,
.right-now-box dd,
.right-rail dl,
.right-rail dd {
  margin: 0;
}

.right-now-box dl > div,
.right-rail dl > div {
  padding: 0.45rem 0;
  border-top: 1px dotted var(--ink);
}

.right-now-box dt,
.right-rail dt {
  color: var(--pink-hot);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.right-now-box dd,
.right-rail dd {
  font-size: 0.78rem;
  font-weight: 700;
}

.tiny-note,
.edit-hint {
  font-size: 0.75rem;
}

code {
  padding: 0.06rem 0.2rem;
  border: 1px solid rgba(0, 0, 0, 0.45);
  color: var(--ink);
  background: var(--cream);
  font-size: 0.9em;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(175px, 0.72fr) minmax(0, 1.28fr);
  gap: 1.2rem;
  align-items: center;
  padding: 1.15rem;
  border: var(--line);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--soft-shadow);
}

.portrait-placeholder {
  overflow: hidden;
  min-height: 285px;
  padding: 0;
  border: 6px solid white;
  outline: var(--line);
  box-shadow: 5px 5px 0 var(--pink);
  transform: rotate(-1.5deg);
}

.portrait-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 285px;
  object-fit: cover;
  object-position: center;
}

.about-copy h2 {
  color: var(--pink-hot);
  font-family: "Irish Grover", "Trebuchet MS", cursive;
  font-size: clamp(2rem, 4vw, 3rem);
}

.about-copy .intro {
  color: var(--blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
}

.fact-row,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  margin-top: 0.8rem;
}

.fact-row span,
.tag-list li {
  padding: 0.18rem 0.48rem;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--yellow);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.35;
}

.fact-row span:nth-child(2n) { background: var(--pink-pale); }
.fact-row span:nth-child(3n) { background: var(--mint); }

.manifesto-card {
  margin-top: 1rem;
  padding: 0.85rem;
  background: linear-gradient(#efffb6, #a9d62b);
}

.blinkie-wall {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.1rem;
  justify-items: center;
  align-items: center;
}

.blinkie-wall img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.art-grid {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 205px;
  gap: 0.85rem;
}

.art-piece {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 5px solid white;
  outline: var(--line);
  box-shadow: 5px 5px 0 rgba(239, 62, 145, 0.35);
  cursor: zoom-in;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.art-piece:hover {
  z-index: 2;
  transform: translate(-2px, -2px) rotate(-0.5deg);
  box-shadow: 7px 7px 0 var(--pink);
}

.art-piece.tall { grid-row: span 2; }
.art-piece.wide { grid-column: span 2; }

.art-one { background: repeating-radial-gradient(circle at 20% 30%, var(--yellow) 0 13px, var(--pink) 14px 28px, var(--ink) 29px 31px); }
.art-two { background: linear-gradient(120deg, transparent 45%, var(--ink) 46% 49%, transparent 50%), repeating-linear-gradient(0deg, var(--mint) 0 38px, var(--cream) 39px 76px); }
.art-three { background: radial-gradient(circle at 70% 25%, var(--cream) 0 12%, transparent 13%), conic-gradient(from 25deg, var(--blue), var(--pink), var(--yellow), var(--blue)); }
.art-four { background: repeating-linear-gradient(90deg, var(--pink) 0 38px, var(--cream) 38px 76px, var(--blue) 76px 114px); }
.art-five { background: conic-gradient(var(--yellow) 0 25%, var(--pink) 0 50%, var(--mint) 0 75%, var(--blue) 0); }
.art-six { background: radial-gradient(circle, var(--cream) 0 9%, transparent 10% 30%, var(--ink) 31% 33%, transparent 34%), var(--pink); background-size: 95px 95px; }

.art-label {
  position: absolute;
  right: 0.55rem;
  bottom: 0.55rem;
  left: 0.55rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: rgba(255, 252, 237, 0.94);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: left;
}

.edit-hint {
  margin: 1rem 0 0;
  padding: 0.55rem 0.7rem;
  border: 1px dashed var(--ink);
  background: var(--pink-pale);
  font-weight: 700;
}

.fic-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: start;
  padding: 0.9rem;
}

.fic-card:nth-child(2) { background: linear-gradient(110deg, #fff, var(--pink-pale)); }
.fic-card:nth-child(3) { background: linear-gradient(110deg, #fff, var(--mint)); }

.fic-number {
  color: var(--pink-hot);
  font-family: Georgia, serif;
  font-size: 2rem;
  font-weight: 900;
  line-height: 0.9;
}

.fic-fandom {
  margin: 0 0 0.32rem;
  color: var(--blue);
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.07em;
}

.fic-card h2 + p {
  margin-bottom: 0;
}

.fic-title-link {
  color: inherit;
  text-decoration: none;
}

.fic-title-link:hover {
  color: var(--pink-hot);
  text-decoration: underline;
}

.tag-list {
  padding: 0;
  list-style: none;
}

.tag-list li:nth-child(2n) { background: var(--pink-pale); }
.tag-list li:nth-child(3n) { background: var(--sky); }

.fic-stats {
  display: grid;
  gap: 0.25rem;
  min-width: 88px;
  color: var(--pink-hot);
  font-size: 0.7rem;
  font-weight: 800;
  text-align: right;
  text-transform: uppercase;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.video-card {
  overflow: hidden;
}

.video-card:first-child {
  grid-column: 1 / -1;
}

.video-frame {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  border-bottom: var(--line);
}

.video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #000;
}

.frame-one { background: repeating-linear-gradient(135deg, var(--lilac) 0 40px, var(--pink) 40px 80px); }
.frame-two { background: radial-gradient(circle at center, var(--yellow) 0 15%, var(--ink) 16% 18%, var(--mint) 19% 35%, var(--ink) 36% 38%, var(--cream) 39%); }
.frame-three { background: repeating-linear-gradient(45deg, var(--pink) 0 28px, var(--cream) 28px 31px, var(--ink) 31px 34px); }

.play-icon {
  display: grid;
  place-items: center;
  width: 57px;
  height: 57px;
  padding-left: 4px;
  border: var(--line);
  border-radius: 50%;
  color: var(--pink-hot);
  background: var(--cream);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 1.25rem;
}

.duration {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  padding: 0.1rem 0.38rem;
  color: var(--cream);
  background: var(--ink);
  font-size: 0.69rem;
  font-weight: 800;
}

.video-copy {
  padding: 0.8rem;
}

.video-copy h2 {
  margin: 0.25rem 0;
}

.video-copy p:last-child {
  margin-bottom: 0;
}

.right-rail {
  position: relative;
  z-index: 6;
  grid-column: 3;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.75rem 0.65rem 1rem;
  border-left: var(--line);
  background-color: #ffd6e8;
  background-image:
    radial-gradient(circle, rgba(239, 62, 145, 0.82) 0 1.2px, transparent 1.3px),
    radial-gradient(circle, rgba(239, 62, 145, 0.82) 0 1.2px, transparent 1.3px),
    radial-gradient(circle, rgba(239, 62, 145, 0.82) 0 1.2px, transparent 1.3px),
    radial-gradient(circle, rgba(239, 62, 145, 0.82) 0 1.2px, transparent 1.3px),
    radial-gradient(circle, rgba(239, 62, 145, 0.82) 0 1.2px, transparent 1.3px);
  background-size: 26px 26px;
  background-position:
    13px 4px,
    13px 22px,
    4px 13px,
    22px 13px,
    13px 13px;
}

.rail-box {
  border: var(--line);
  background: rgba(255, 255, 255, 0.91);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
}

.rail-box h2 {
  margin: -2px -2px 0;
  border-radius: 0;
  background: var(--pink);
  font-size: 1rem;
}

.now-box h2 {
  background: linear-gradient(#ecffad, #9bc91f);
  color: #2f4610;
}

.rail-box p,
.rail-box dl,
.rail-box ul {
  padding: 0.7rem;
}

.status-line {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.83rem;
  text-align: center;
}

.status-face {
  display: block;
  width: max-content;
  margin: 0 auto 0.35rem;
  padding: 0.18rem 0.5rem;
  border: 1px solid var(--ink);
  border-radius: 50%;
  color: white;
  background: var(--blue);
  font-family: Verdana, sans-serif;
  font-weight: 900;
  transform: rotate(-4deg);
}

.right-rail dl {
  margin: 0;
}

.updates-box ul {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  list-style: none;
  font-size: 0.73rem;
  line-height: 1.35;
}

.updates-box li {
  padding-bottom: 0.55rem;
  border-bottom: 1px dotted var(--ink);
}

.updates-box li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.updates-box time {
  color: var(--pink-hot);
  font-weight: 900;
}

.tiny-button {
  align-self: center;
  justify-self: center;
  width: 104px;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.tiny-button img {
  display: block;
  width: 100%;
  height: auto;
}

.blinkie-stack {
  display: grid;
  justify-items: center;
  gap: 1px;
}

.visitor-count {
  margin: 0;
  color: var(--ink);
  font-family: "Comic Sans MS", cursive;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}

.visitor-count span {
  display: inline-block;
  padding: 0.04rem 0.28rem;
  border: 1px solid var(--ink);
  color: var(--mint);
  background: #332b3a;
  font-family: monospace;
}

.site-footer {
  position: relative;
  z-index: 6;
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1rem;
  border-top: var(--line);
  color: var(--ink);
  background: repeating-linear-gradient(90deg, var(--mint) 0 34px, var(--sky) 34px 68px);
  font-size: 0.73rem;
  font-weight: 700;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--ink);
  font-weight: 900;
}

.art-dialog {
  width: min(720px, calc(100% - 2rem));
  padding: 0.75rem;
  border: 3px solid var(--ink);
  color: var(--ink);
  background: var(--cream);
  box-shadow: 9px 9px 0 var(--pink);
}

.art-dialog::backdrop {
  background: rgba(0, 0, 0, 0.78);
}

.dialog-close {
  position: absolute;
  z-index: 2;
  top: 0.3rem;
  right: 0.3rem;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: var(--line);
  color: white;
  background: var(--pink-hot);
  cursor: pointer;
  font-size: 1.35rem;
  font-weight: 900;
}

.dialog-art {
  display: grid;
  place-items: start center;
  min-height: min(65vh, 560px);
  max-height: min(80vh, 700px);
  overflow: auto;
  border: var(--line);
  background: var(--yellow);
  cursor: zoom-in;
}

.dialog-art-image {
  display: block;
  height: auto;
}

.dialog-art-image.is-fit {
  width: 100%;
  max-width: 100%;
  max-height: min(65vh, 560px);
  object-fit: contain;
}

.dialog-art-image.is-native {
  width: auto;
  max-width: none;
  max-height: none;
}

.art-dialog p {
  margin: 0.55rem 0 0;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
}

.lost-main {
  grid-column: 1 / -1;
  display: block;
  padding: 1rem;
}

.lost-card {
  border: var(--line);
  color: var(--ink);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.18);
}

.lost-card {
  position: relative;
  padding: 1.25rem 1.1rem 1rem;
  border-radius: 5px 10px 7px 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 220, 234, 0.92)),
    repeating-linear-gradient(180deg, transparent 0 29px, rgba(101, 116, 185, 0.12) 29px 30px);
}

.lost-card h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.1rem, 5vw, 3.7rem);
}

.lost-card p {
  max-width: 38rem;
}

.lost-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.lost-link {
  display: inline-block;
  padding: 0.45rem 0.75rem;
  border: var(--line);
  border-radius: 0;
  color: var(--ink);
  background: var(--mint);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.16);
  font-weight: 900;
  text-decoration: none;
}

.lost-link:nth-child(2n) {
  background: var(--sky);
}

.lost-link:nth-child(3n) {
  background: var(--yellow);
}

.lost-link:hover {
  color: var(--ink);
  background: var(--pink-pale);
}

@media (max-width: 980px) {
  .page-shell {
    grid-template-columns: 175px minmax(0, 1fr);
  }

  .right-rail {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    border-top: var(--line);
    border-left: 0;
  }

  .tiny-button,
  .visitor-count {
    display: none;
  }
}

@media (max-width: 720px) {
  body {
    padding: 8px 0 20px;
  }

  .page-shell {
    grid-template-columns: minmax(0, 1fr);
    width: calc(100% - 12px);
    box-shadow: 5px 5px 0 rgba(239, 62, 145, 0.38);
  }

  .site-header {
    min-height: 175px;
    padding: 1.2rem;
  }

  .wordmark-main {
    font-size: clamp(2.7rem, 14vw, 4.8rem);
    -webkit-text-stroke-width: 1.5px;
  }

  .wordmark-sub {
    align-self: flex-start;
  }

  .header-sonico,
  .sparkle-one {
    display: none;
  }

  .tab-bar {
    grid-column: 1;
    display: grid;
    grid-template-columns: repeat(5, minmax(94px, 1fr));
    overflow-x: auto;
    padding: 0.55rem;
    border-right: 0;
    border-bottom: var(--line);
  }

  .nav-label {
    position: sticky;
    left: 0;
    grid-column: 1 / -1;
  }

  .tab {
    justify-content: center;
    margin: 0;
    border-radius: 0;
    text-align: center;
  }

  .tab.is-active::after,
  .nav-mini-card {
    display: none;
  }

  main {
    grid-column: 1;
    padding: 0.7rem;
  }

  .lost-main {
    grid-column: 1;
    padding: 0.7rem;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .blog-layout,
  .about-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .right-now-box {
    position: static;
    transform: none;
  }

  .about-grid {
    gap: 1.2rem;
  }

  .portrait-placeholder {
    min-height: 240px;
  }

  .portrait-photo {
    min-height: 240px;
  }

  .right-rail {
    grid-column: 1;
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .ticker {
    font-size: 0.72rem;
  }

  h1 {
    font-size: 2.45rem;
  }

  .blog-layout {
    display: block;
  }

  .notebook-pile {
    margin-bottom: 0.9rem;
  }

  .art-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .art-piece.wide,
  .art-piece.tall {
    grid-column: auto;
    grid-row: auto;
  }

  .fic-card {
    grid-template-columns: 1fr;
  }

  .fic-stats {
    display: flex;
    flex-wrap: wrap;
    min-width: 0;
    text-align: left;
  }
}

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