:root {
  --bg: #050505;
  --bg-soft: #13010b;
  --panel: rgba(24, 3, 16, 0.9);
  --panel-strong: rgba(7, 1, 5, 0.97);
  --text: #ffe7f6;
  --muted: #f0a2cd;
  --accent: #ff1493;
  --accent-soft: #ff5fc0;
  --line: rgba(255, 95, 192, 0.3);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.72);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(255, 20, 147, 0.28), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(255, 95, 192, 0.22), transparent 24%),
    linear-gradient(180deg, #000000 0%, #050505 45%, #13010b 100%);
  font-family: "Chakra Petch", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent);
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 40%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px),
    radial-gradient(circle at 60% 80%, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px);
  background-size: 14px 14px;
}

.layout {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
}

.sidebar {
  position: sticky;
  top: 20px;
  height: fit-content;
  display: grid;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(28, 3, 18, 0.96), rgba(5, 1, 4, 0.98));
  box-shadow: var(--shadow);
}

.badge,
.status-line,
.mini-nav a,
.sticker-stack span,
.eyebrow,
.window-bar p,
.quote-card p,
.quote-card span,
.track p,
.link-list small,
.journal li,
.ghost-button {
  font-family: "JetBrains Mono", monospace;
}

.badge {
  width: fit-content;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: rgba(255, 20, 147, 0.18);
  color: var(--accent-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.76rem;
}

.portrait-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8) contrast(1.08);
}

.portrait-glow {
  position: absolute;
  inset: auto -10% -20% -10%;
  height: 55%;
  background: radial-gradient(circle, rgba(255, 20, 147, 0.5), transparent 62%);
  z-index: 1;
  mix-blend-mode: screen;
}

.status-line {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.mini-nav {
  display: grid;
  gap: 10px;
}

.mini-nav a {
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-transform: lowercase;
  background: rgba(255, 255, 255, 0.03);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.mini-nav-button {
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-transform: lowercase;
  background: rgba(255, 255, 255, 0.03);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.mini-nav a:hover,
.mini-nav a:focus-visible,
.mini-nav-button:hover,
.mini-nav-button:focus-visible,
.link-list a:hover,
.link-list a:focus-visible,
.ghost-button:hover,
.ghost-button:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 20, 147, 0.16);
  border-color: rgba(255, 95, 192, 0.62);
}

.sticker-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sticker-stack span {
  padding: 6px 8px;
  font-size: 0.74rem;
  background: rgba(255, 95, 192, 0.08);
  border: 1px dashed rgba(255, 95, 192, 0.42);
  color: var(--accent-soft);
}

.content {
  display: grid;
  gap: 24px;
}

.window {
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--panel), var(--panel-strong));
  box-shadow: var(--shadow);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 95, 192, 0.09), rgba(255, 255, 255, 0.02));
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 95, 192, 0.65);
}

.window-bar p {
  margin: 0 0 0 8px;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
}

.hero {
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 20, 147, 0.92), transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr minmax(220px, 280px);
  gap: 24px;
  padding: 30px;
  align-items: end;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-soft);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
}

h1,
h2 {
  margin: 0;
  font-family: "Cinzel", serif;
  line-height: 0.9;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(4rem, 2vw, 6.8rem);
  letter-spacing: 0.08em;
  text-shadow: 0 0 20px rgba(255, 20, 147, 0.34);
}

h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  padding: 22px 22px 12px;
  letter-spacing: 0.12em;
}

.lede,
.guestbook p {
  margin: 16px 0 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.quote-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(255, 95, 192, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 20, 147, 0.18), rgba(255, 20, 147, 0.04)),
    rgba(255, 255, 255, 0.03);
}

.quote-card p,
.quote-card span {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.guestbook .window-bar p {
  margin: 0 0 0 8px;
  font-size: 0.76rem;
  line-height: 1;
}

.quote-card strong {
  font-family: "Cinzel", serif;
  font-size: 1.4rem;
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.panel {
  min-height: 100%;
}

.link-list,
.track-list,
.journal ul,
.guestbook p,
.ghost-button {
  margin: 0 22px 22px;
}

.guestbook-form,
.guestbook-feed {
  margin: 0 0 22px;
}

.guestbook-form {
  display: grid;
  gap: 10px;
}

.guestbook-label {
  color: var(--accent-soft);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guestbook-input,
.guestbook-textarea {
  width: 100%;
  border: 1px solid rgba(255, 95, 192, 0.28);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 14px;
  font: inherit;
}

.guestbook-input::placeholder,
.guestbook-textarea::placeholder {
  color: rgba(240, 162, 205, 0.7);
}

.guestbook-textarea {
  resize: vertical;
  min-height: 110px;
}

.guestbook-input:focus,
.guestbook-textarea:focus {
  outline: 1px solid rgba(255, 95, 192, 0.55);
  border-color: rgba(255, 95, 192, 0.55);
}

.guestbook-empty,
.guestbook-entry p,
.guestbook-entry span {
  font-family: "JetBrains Mono", monospace;
}

.guestbook-feed {
  display: grid;
  gap: 12px;
}

.guestbook-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.guestbook-entry {
  border: 1px solid rgba(255, 95, 192, 0.2);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 14px;
}

.guestbook-entry-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 8px;
}

.guestbook-entry strong {
  color: var(--text);
  font-family: "Chakra Petch", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.guestbook-entry span {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.guestbook-entry p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.84rem;
}

.link-list {
  display: grid;
  gap: 12px;
}

.link-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--text);
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.modal-open {
  overflow: hidden;
}

.modal-shell {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 50;
}

.modal-shell.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
}

.modal-window {
  position: relative;
  width: min(980px, 100%);
  max-height: min(88vh, 920px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--panel), var(--panel-strong));
  box-shadow: var(--shadow);
  z-index: 1;
}

.guestbook-modal-window {
  width: min(760px, 100%);
}

.modal-close {
  margin-left: auto;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 10px;
  cursor: pointer;
}

.modal-content {
  flex: 1;
  min-height: 0;
  padding: 22px;
  overflow: auto;
}

.modal-copy {
  margin: 0 0 18px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: lowercase;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 1 / 1.15;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  border: 1px solid rgba(255, 95, 192, 0.28);
  background: rgba(255, 255, 255, 0.03);
}

.gallery-empty {
  margin: 0;
  grid-column: 1 / -1;
  border: 1px dashed rgba(255, 95, 192, 0.3);
  border-radius: 16px;
  padding: 22px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  line-height: 1.7;
  text-align: center;
}

.link-list span {
  font-size: 1.1rem;
  font-family: "Chakra Petch", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.link-list small {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: right;
  white-space: nowrap;
}

.track-list {
  display: grid;
  gap: 14px;
}

.track {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: start;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
}

.track:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.track b {
  color: var(--accent-soft);
  font-family: "JetBrains Mono", monospace;
}

.track strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.06rem;
  font-family: "Chakra Petch", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.track strong a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 180ms ease, color 180ms ease;
}

.track strong a:hover,
.track strong a:focus-visible {
  color: var(--accent-soft);
  border-color: rgba(255, 95, 192, 0.65);
}

.track p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.85rem;
}

.spotify-embed {
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.18);
}

.journal ul {
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.9;
}

.ghost-button {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 12px 14px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.ghost-button:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.site-footer {
  padding: 2px 4px 10px;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  text-align: center;
}

.site-footer a {
  color: var(--accent-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--text);
  border-color: rgba(255, 95, 192, 0.65);
}

@media (max-width: 900px) {
  .layout,
  .hero-grid,
  .panel-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    top: 0;
  }
}

@media (max-width: 560px) {
  .layout {
    width: min(100vw - 18px, 1180px);
    padding-top: 12px;
  }

  .sidebar,
  .hero-grid,
  .window-bar,
  h2,
  .link-list,
  .track-list,
  .journal ul,
  .guestbook p,
  .ghost-button {
    margin-left: 0;
    margin-right: 0;
  }

  .sidebar,
  .hero-grid,
  .panel {
    border-radius: 22px;
  }

  .hero-grid {
    padding: 22px;
  }

  h1 {
    font-size: clamp(3.2rem, 18vw, 4.4rem);
  }

  h2 {
    padding: 18px 18px 10px;
  }

  .link-list,
  .track-list,
  .journal ul,
  .guestbook p,
  .ghost-button,
  .guestbook-form,
  .guestbook-feed {
    margin: 0 18px 18px;
  }

  .link-list a {
    align-items: flex-start;
    flex-direction: column;
  }

  .photo-grid {
    grid-template-columns: 1fr;
  }
}
