/* fonts — drop your .ttf files in a "font" folder next to this file */
/* Cherry Blossom - https://www.cursors-4u.com/cursor/cherry-blossom */
* {
  cursor: url('https://cdn.cursors-4u.net/previews/cherry-blossom-b8f658eb-48.webp') 24 24, auto !important;
}
/* End www.Cursors-4U.com Code */

::selection { background: #BAA1A7; color: #EDD2E0; }

@font-face { font-family: "Melodrame"; src: url("font/Relationship of mélodrame.ttf") format("truetype"); }
@font-face { font-family: "VCR"; src: url("font/VCR.ttf"); }
@font-face { font-family: "CaviarDreams"; src: url("font/CaviarDreams.ttf"); }
@font-face { font-family: "StarryType[1]"; src: url("font/StarryType[1].ttf"); }
@font-face { font-family: "junipy"; src: url("font/junipy.ttf"); }
@font-face { font-family: "PixelOperator"; src: url("font/PixelOperator.ttf"); }

/* reset / base */

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #e9e9e6;
  color: #4a4442;
  font-family: "VCR", monospace;
  font-size: 15px;
  line-height: 1.6;
  overflow: hidden;
}
html, body {
  scrollbar-width: none;       /* Firefox */
  -ms-overflow-style: none;    /* old Edge/IE */
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;               /* Chrome/Safari */
}

body {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
}

a { color: #4a4442; text-decoration: none; border-bottom: 1px dotted rgba(74,68,66,0.4); transition: color 0.2s ease, border-color 0.2s ease; }
a:hover, a:focus-visible { color: #2f2b2a; border-color: #2f2b2a; }

button { font: inherit; color: inherit; }
hr { margin: 0; }

/* background video */

#bg-gif {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
  filter: saturate(0.85) brightness(0.92) contrast(1.05);
}

.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: rgba(232, 210, 205, 0.1);
}

.page { position: relative; z-index: 10; }

/* decorative character illustration — pinned to the viewport (not the
   document flow) so its full height is always visible without needing
   to scroll the page to see the rest of it */
.decor-char {
  position: absolute;
  right: -610px;
  bottom: 0;
  height: 55vh;
  max-height: 620px;
  width: auto;
  z-index: 25;
  pointer-events: none;
  user-select: none;
}

.decor-char img {
  display: block;
  height: 100%;
  width: auto;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 800px) {
  .decor-char { display: none; }
}

/* crt effect */

.crt { position: fixed; inset: 0; pointer-events: none; z-index: 99999; }

.crt::before {
  content: " ";
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  /* vertical scanlines instead of horizontal, and dialed back so it's
     easier on the eyes */
  background: linear-gradient(90deg, rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
  z-index: 2;
  background-size: 2px 100%, 3px 100%;
  pointer-events: none;
}

@keyframes flicker {
  0% { opacity: 0.14; }
  5% { opacity: 0.17; }
  10% { opacity: 0.12; }
  15% { opacity: 0.05; }
  20% { opacity: 0.09; }
  25% { opacity: 0.05; }
  30% { opacity: 0.09; }
  35% { opacity: 0.12; }
}

.crt::after {
  content: " ";
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: rgba(18, 16, 16, 0.05);
  opacity: 0;
  z-index: 2;
  pointer-events: none;
  animation: flicker 0.15s infinite;
}

@media (prefers-reduced-motion: reduce) {
  .crt::after { animation: none; }
  html, body { background: #e9e9e6; }
}

/* page layout — centered, solid theme */

.page {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: 18px 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.page--blog { max-width: 700px; }

/* widget base — flat, opaque, thicker border for clearer separation */

.widget {
  position: relative;
  z-index: 20;
  background: #ffffff;
  border: 2px solid #c7c7c2;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #f3f3f0;
  border-bottom: 1px solid #d6d6d2;
  font-family: "VCR", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: #6b6560;
}

.traffic-lights { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }

.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18); }
.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

/* top title strip — separated box, light beige gloss gradient */

.top-strip-widget {
  width: 100%;
  background: linear-gradient(to bottom, #ffffff 0%, #f2f2ef 50%, #e4e4e0 51%, #ffffff 100%);
}

.top-strip-titlebar {
  background: transparent;
  border-bottom: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), inset 0 -1px 0 rgba(0,0,0,0.12);
}

.top-strip-title { font-family: "VCR", monospace; font-size: 0.85rem; letter-spacing: 0.04em; color: #3a3634; text-transform: none; }

/* row that holds sidebar + content — tighter gap, uneven widths */

.blog-layout { width: 100%; display: flex; align-items: stretch; gap: 8px; }

@media (max-width: 800px) { .blog-layout { flex-direction: column; } }

/* sidebar — widened */

.sidebar-card { flex: 0 0 230px; display: flex; flex-direction: column; background: #fafaf8; }

@media (max-width: 800px) { .sidebar-card { flex: 1 1 auto; width: 100%; } }

.sidebar-section { padding: 8px 12px; }
.sidebar-divider { border: none; border-top: 1px solid #e2e2de; }

.sidebar-section-label {
  font-family: "VCR", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: #8a807d;
  margin: 0 0 8px;
}

/* nested inner panel — calendar + player, less cramped now */

.subpanel {
  background: #ffffff;
  border: 1px solid #d6d6d2;
  border-radius: 6px;
  padding: 9px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* profile */

.profile-pic { width: 100%; display: block; margin: 0 0 8px 0; object-fit: cover; border-radius: 6px; border: 1px solid #d6d6d2; }
.profile-name { font-family: "CaviarDreams", sans-serif; font-size: 1.3rem; font-weight: 700; color: #2f2b2a; margin: 0 0 2px; }
.profile-handle { font-family: "VCR", monospace; font-size: .82rem; color: #8a807d; margin: 0 0 6px; }
.profile-bio { font-family: "CaviarDreams", sans-serif; font-size: .86rem; color: #4a4442; margin: 0 0 6px; }
.profile-nav { margin-bottom: 6px; }

.profile-nav a {
  font-family: "VCR", monospace;
  font-size: 0.72rem;
  border: none;
  display: inline-block;
  letter-spacing: 0;
  transition: letter-spacing 0.35s ease, color 0.35s ease, padding-right 0.35s ease;
}
.profile-nav a::before { content: "› "; opacity: 0.6; }
.profile-nav a:hover { letter-spacing: 0.3em; padding-right: 0.3em; color: #2f2b2a; }

.watching-line {
  display: flex; align-items: center; gap: 6px;
  padding-top: 6px;
  border-top: 1px solid #e2e2de;
  font-family: "VCR", monospace;
  font-size: 0.64rem;
  color: #66605d;
  letter-spacing: 0.02em;
}
.watching-icon { width: 15px; height: 15px; border-radius: 3px; object-fit: cover; flex-shrink: 0; }
.watching-line em { font-style: normal; color: #2f2b2a; }

/* music player — more breathing room, seek bar fixed to not overflow */

.player-now-playing { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }

.player-art {
  width: 56px; height: 56px;
  border-radius: 6px;
  background: linear-gradient(135deg, #efefec, #dcdcd7);
  border: 1px solid #d6d6d2;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.player-track-info { min-width: 0; }
.player-track-title { font-family: "CaviarDreams", sans-serif; font-size: 0.75rem; color: #2f2b2a; margin: 0 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-track-artist { font-family: "VCR", monospace; font-size: 0.6rem; color: #8a807d; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.player-progress-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; width: 100%; }

.player-time { font-family: "VCR", monospace; font-size: 0.58rem; color: #8a807d; flex-shrink: 0; width: 26px; }

.player-seek {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 3px;
  border-radius: 999px;
  background: #dededa;
  outline: none;
}
.player-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 10px; height: 10px; border-radius: 50%; background: #4a4442; cursor: pointer; }
.player-seek::-moz-range-thumb { width: 10px; height: 10px; border: none; border-radius: 50%; background: #4a4442; cursor: pointer; }

.player-controls { display: flex; align-items: center; justify-content: center; gap: 16px; }

.player-btn { background: none; border: none; color: #4a4442; font-size: 0.75rem; cursor: pointer; transition: color 0.2s ease; }
.player-btn:hover { color: #2f2b2a; }

.player-btn-main {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #efefec;
  border: 1px solid #d6d6d2;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.62rem;
}
.player-btn-main:hover { background: #e4e4e0; }

/* calendar — a bit more room */

.cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }

.cal-month { font-family: "VCR", monospace; font-size: 0.68rem; letter-spacing: 0.05em; color: #2f2b2a; text-transform: lowercase; }

.cal-nav-btn {
  background: #efefec;
  border: 1px solid #d6d6d2;
  color: #4a4442;
  border-radius: 999px;
  width: 16px; height: 16px;
  font-size: .55rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.cal-nav-btn:hover { background: #e4e4e0; border-color: #b9b9b4; }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }

.cal-cell {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1 / 1;
  font-family: "VCR", monospace;
  font-size: 0.5rem;
  color: #4a4442;
  border-radius: 4px;
}
.cal-dayname { color: #8a807d; text-transform: lowercase; font-size: 0.54rem; }
.cal-empty { visibility: hidden; }
.cal-today { background: #4a4442; color: #fff; border: 1px solid #4a4442; }

/* sidebar footer */

.sidebar-footer {
  text-align: left;
  font-family: "VCR", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.05em;
  color: #8a807d;
  text-transform: uppercase;
  margin: 0;
  padding: 8px 18px;
  margin-top: auto;
}

/* content panel — trimmed height */

.content { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }

.content-header { padding: 12px 20px; flex-shrink: 0; border-bottom: 1px solid #e2e2de; background: #fbfbf9; }

.content-header-label {
  font-family: "VCR", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: #66605d;
  text-transform: lowercase;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  display: block;
}

.content-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 16px 20px; }

/* blog grid — 2 per row */

.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

.blog-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; background: none; border: none; padding: 0; text-align: left; cursor: pointer; }

.blog-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid #d6d6d2;
  filter: grayscale(15%);
  transition: filter 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.blog-card:hover .blog-card-img { filter: grayscale(0%); border-color: #b9b9b4; transform: translateY(-1px); }

.blog-card-title { font-family: "VCR", monospace; font-size: 0.82rem; line-height: 1.3; color: #2f2b2a; }
.blog-card-date { font-family: "VCR", monospace; font-size: 0.66rem; letter-spacing: 0.04em; color: #8a807d; }

/* single post view */

.post-view { display: flex; flex-direction: column; align-items: flex-start; }
.post-view[hidden], .blog-grid[hidden] { display: none !important; }
.post-back-btn { margin-bottom: 16px; }

.post-header-img { width: 100%; max-height: 220px; object-fit: cover; border-radius: 6px; border: 1px solid #d6d6d2; margin-bottom: 16px; }

.post-title { font-family: "VCR", monospace; font-size: 1.3rem; font-weight: 400; color: #2f2b2a; margin: 0 0 6px; }
.post-date { font-family: "VCR", monospace; font-size: 0.72rem; letter-spacing: 0.05em; color: #8a807d; margin: 0; }
.post-divider { width: 100%; border: none; border-top: 1px dashed #d6d6d2; margin: 16px 0; }

.post-body p { font-family: "junipy", sans-serif; margin: 0 0 12px; color: #4a4442; font-size: 1.05rem; line-height: 1.65; text-align: left; }
.post-body p:last-child { margin-bottom: 0; }

/* fade-in effect */

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.fade-in { animation: fadeIn 0.4s ease; }

/* shared pill button */

.entry-nav-btn {
  font-family: "VCR", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: #4a4442;
  background: #efefec;
  border: 1px solid #d6d6d2;
  border-radius: 999px;
  padding: 6px 16px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.entry-nav-btn:hover:not(:disabled) { border-color: #b9b9b4; color: #2f2b2a; background: #e4e4e0; }
.entry-nav-btn:disabled { opacity: 0.3; cursor: default; }

/* responsive */

@media (max-width: 700px) {
  .page { max-width: 92vw; padding: 5vh 0 6vh; }
  .content { height: auto !important; }
}
.box22 {
  position: relative;
  margin: 1em 0;
  width: 80%;
}

/* the color you want the frame tinted to — match this to your middle container's background */
:root {
  --frame-color: #fdfaf7; /* replace with your middle sidebar's actual bg color */
}

.box-top, .box-bottom, .u01, .s01,
.box-center::before, .box-center::after {
  background-color: var(--frame-color);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

/* top corners */
.box-top {
  position: relative;
  height: 18px;
}
.box-top::before,
.box-top::after {
  content: "";
  position: absolute;
  top: 0;
  width: 19px;
  height: 18px;
  background-color: var(--frame-color);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.box-top::before {
  left: 0;
  -webkit-mask-image: url("https://i.postimg.cc/TwTvyP5z/image.png");
  mask-image: url("https://i.postimg.cc/TwTvyP5z/image.png");
}
.box-top::after {
  right: 0;
  -webkit-mask-image: url("https://i.postimg.cc/Ssg3JfhY/image.png");
  mask-image: url("https://i.postimg.cc/Ssg3JfhY/image.png");
}

/* top edge, tiled */
.u01 {
  height: 18px;
  margin: 0 19px 0 19px;
  -webkit-mask-image: url("https://i.postimg.cc/gk39KRyh/image.png");
  mask-image: url("https://i.postimg.cc/gk39KRyh/image.png");
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
}

/* bottom edge, tiled */
.s01 {
  height: 19px;
  margin: 0 19px 0 19px;
  -webkit-mask-image: url("https://i.postimg.cc/T1W0fV29/image.png");
  mask-image: url("https://i.postimg.cc/T1W0fV29/image.png");
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
}

/* bottom corners */
.box-bottom {
  position: relative;
  height: 19px;
}
.box-bottom::before,
.box-bottom::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 19px;
  height: 19px;
  background-color: var(--frame-color);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.box-bottom::before {
  left: 0;
  -webkit-mask-image: url("https://i.postimg.cc/hjt3WQ70/image.png");
  mask-image: url("https://i.postimg.cc/hjt3WQ70/image.png");
}
.box-bottom::after {
  right: 0;
  -webkit-mask-image: url("https://i.postimg.cc/Gmn735yT/image.png");
  mask-image: url("https://i.postimg.cc/Gmn735yT/image.png");
}

/* left/right vertical edges, tiled down the sides */
.box-center {
  position: relative;
}
.box-center::before,
.box-center::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 19px;
  background-color: var(--frame-color);
  -webkit-mask-repeat: repeat-y;
  mask-repeat: repeat-y;
}
.box-center::before {
  left: 0;
  -webkit-mask-image: url("https://i.postimg.cc/W17QBvH3/image.png");
  mask-image: url("https://i.postimg.cc/W17QBvH3/image.png");
}
.box-center::after {
  right: 0;
  -webkit-mask-image: url("https://i.postimg.cc/pdG3dBxW/image.png");
  mask-image: url("https://i.postimg.cc/pdG3dBxW/image.png");
}

.box-inner {
  background: #fff; /* inner content background, separate from the frame color */
  margin: 0 19px 0 19px;
}
/* macOS-style scrollbar */

::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d0d0cb; border-radius: 999px; border: 1px solid #c2c2bd; }
::-webkit-scrollbar-thumb:hover { background: #b9b9b4; }