:root {
  --blue: #bdd7de;
  --pink: #f5cbd7;
  --green: #c6da81;
  --cream: #f7e6a9;
  --brown: #3e2723;
  --white: #ffffff;
  --paper: rgba(255, 255, 255, 0.72);
  --line: rgba(62, 39, 35, 0.18);
  --shadow: rgba(62, 39, 35, 0.14);
  --cursor-main: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath fill='%23f7e6a9' stroke='%233e2723' stroke-width='1.4' stroke-linejoin='round' d='M16 5.5 18.9 12 26 13 20.8 17.9 22.1 24.8 16 21.2 9.9 24.8 11.2 17.9 6 13 13.1 12Z'/%3E%3C/svg%3E") 16 16, auto;
  --cursor-link: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='52' viewBox='0 0 52 52'%3E%3Cpath fill='%23f7e6a9' stroke='%233e2723' stroke-width='2' d='M16 6c-.9 0-1.7.8-1.7 1.7v25.7c0 2.1 2.7 3 4.2 1.4l3.7-4.6 4.1 10.6c.4 1.2 1.8 1.8 2.9 1.3l4-1.5c1.2-.4 1.8-1.8 1.3-2.9l-4.1-10.6 5.6-.4c2.2-.2 2.9-2.9 1-4.1L17.3 6.3c-.4-.2-.8-.3-1.3-.3Z'/%3E%3C/svg%3E") 10 4, pointer;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--brown);
  cursor: var(--cursor-main);
}

body.bg-photo {
  background-color: var(--white);
  background-image: url("images/background.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

body.splash-page {
  cursor: var(--cursor-link);
}

a,
button,
.portfolio-link,
.splash-star {
  cursor: var(--cursor-link);
}

input,
textarea {
  cursor: text;
}

a {
  color: var(--brown);
}

button,
input,
textarea {
  font: inherit;
}

.site-frame {
  width: min(880px, calc(100% - 36px));
  margin: 24px auto 40px;
}

.ultra-narrow-frame {
  width: min(640px, calc(100% - 28px));
}

.topbar {
  text-align: center;
  padding: 24px 20px;
  margin-bottom: 14px;
}

.topbar-plain {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 10px 0 18px;
}

.site-wordmark {
  margin: 0;
  font-family: "Mansalva", "Snell Roundhand", "Brush Script MT", cursive;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 400;
  color: #f5cbd7;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55), 0 0 12px rgba(245, 203, 215, 0.45);
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px;
  margin-bottom: 14px;
}

.main-nav-plain {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 6px 0 14px;
}

.main-nav a {
  text-decoration: none;
  padding: 8px 14px;
  background: rgba(245, 203, 215, 0.92);
  border: 1px solid rgba(62, 39, 35, 0.16);
  box-shadow: 0 6px 16px rgba(62, 39, 35, 0.08);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--brown);
  background: #f5cbd7;
  filter: brightness(0.97);
  text-decoration: none;
}

.content,
.blog-column,
.project-content {
  display: grid;
  gap: 14px;
}

.hero,
.post,
.portfolio-item,
.prose-card,
.about-plain,
.project-card,
.blog-card {
  padding: 18px;
}

.hero-title {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.05;
}

.date-line,
.small,
.track-label {
  color: #f7e6a9;
  font-size: 0.93rem;
}

.hero-home .hero-title {
  color: #f5cbd7;
  text-shadow:
    0 0 4px rgba(255, 255, 255, 0.92),
    0 0 10px rgba(245, 203, 215, 0.95),
    1px 1px 0 rgba(62, 39, 35, 0.12);
}

.hero-home,
.hero-home p,
.hero-home .date-line {
  text-align: left;
}

.home-zoe {
  margin-bottom: 10px;
  line-height: 0;
}

.player-ui {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.player-button,
.text-button,
.calendar-nav-button {
  border: 1px solid rgba(62, 39, 35, 0.2);
  background: rgba(255, 255, 255, 0.86);
  color: var(--brown);
  padding: 8px 14px;
}

.home-button {
  background: #f5cbd7;
  border-color: rgba(62, 39, 35, 0.24);
}

.icon-button {
  min-width: 42px;
  padding: 8px 10px;
  font-size: 1rem;
  line-height: 1;
}

.player-button:hover,
.text-button:hover,
.calendar-nav-button:hover {
  background: var(--blue);
}

.player-button.alt:hover {
  background: var(--cream);
}

.home-shell {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.home-shell-open {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding-left: 0;
  padding-right: 0;
}

.home-row {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 12px;
  align-items: start;
}

.home-block-card,
.blog-card,
.portfolio-card,
.project-card,
.about-plain {
  border: 1px solid rgba(62, 39, 35, 0.14);
  box-shadow: 0 10px 30px rgba(62, 39, 35, 0.08);
}

.home-block-card {
  text-align: left;
  padding: 14px;
}

.music-card {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  padding: 12px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.music-card > * {
  position: relative;
  z-index: 1;
}

.cd-visual {
  position: absolute;
  inset: 12px;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.cd-disc {
  width: min(74px, 24%);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    linear-gradient(rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.18)),
    url("https://dl.glitter-graphics.com/pub/1509/1509057lwb4w3iitx.gif") center / cover no-repeat,
    radial-gradient(circle at center, rgba(245, 245, 245, 0.95) 0 8%, rgba(135, 135, 135, 0.95) 8.5% 10%, rgba(240, 240, 240, 0.98) 10.5% 18%, rgba(155, 155, 155, 0.9) 18.5% 19.5%, rgba(230, 230, 230, 0.96) 20% 34%, rgba(178, 178, 178, 0.95) 35%, rgba(245, 245, 245, 0.98) 43%, rgba(174, 174, 174, 0.94) 54%, rgba(250, 250, 250, 0.98) 66%, rgba(160, 160, 160, 0.94) 78%, rgba(244, 244, 244, 0.98) 90%, rgba(185, 185, 185, 0.96) 100%);
  box-shadow:
    inset 0 0 28px rgba(255, 255, 255, 0.72),
    inset 0 0 48px rgba(120, 120, 120, 0.16),
    0 10px 18px rgba(62, 39, 35, 0.1);
  animation: spin-disc 14s linear infinite;
  animation-play-state: paused;
}

.music-card.is-playing .cd-disc {
  animation-play-state: running;
}

.calendar-card {
  background: rgba(198, 218, 129, 0.92);
}

.calendar-header {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.calendar-header h2 {
  margin: 0;
  text-align: center;
  font-size: 1.1rem;
  text-transform: lowercase;
}

.calendar-nav-button {
  padding: 8px 0;
}

.calendar-shell {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(62, 39, 35, 0.14);
  padding: 6px;
}

.mini-calendar {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  text-align: center;
}

.mini-calendar th,
.mini-calendar td {
  padding: 4px;
  border: 1px solid rgba(62, 39, 35, 0.1);
  min-height: 2rem;
  width: 14.285%;
}

.mini-calendar td {
  background: rgba(255, 255, 255, 0.9);
}

.mini-calendar .today {
  background: rgba(245, 203, 215, 0.72);
}

.mini-calendar .has-post {
  background: rgba(247, 230, 169, 0.82);
}

.calendar-link {
  display: inline-grid;
  place-items: center;
  min-width: 1.6rem;
  min-height: 1.6rem;
  text-decoration: underline;
}

.wish-zone {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: center;
}

.wish-star-button {
  min-width: 150px;
  min-height: 20px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}

.wish-star-button img,
.playlist-blinkie {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
}

.wish-star-button:hover {
  background: transparent;
}

.playlist-blinkie {
  margin: 0 0 12px;
}

.music-card .player-button {
  border: 0;
  background: #f5cbd7;
  box-shadow: none;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
}

.music-card .player-button:hover,
.music-card .player-button.alt:hover {
  background: #f2bccc;
}

.music-card .icon-button {
  min-width: 34px;
  font-size: 0.95rem;
}

.music-card h2,
.music-card .small,
.music-card .small a {
  color: #bdd7de;
}

.music-card .small a {
  color: #f5cbd7;
}

.music-card .small a:hover,
.music-card .small a:focus-visible {
  color: #bdd7de;
}

.wish-output {
  min-height: 0;
}

.wish-star {
  position: fixed;
  left: -2rem;
  top: 50vh;
  font-size: 1.7rem;
  line-height: 1;
  color: #f7e6a9;
  text-shadow: 0 0 10px rgba(247, 230, 169, 0.75);
  pointer-events: none;
  animation: wish-drift 2.8s linear forwards;
}

.blog-hero-card {
  background: #f5cbd7;
}

.blog-editor-card {
  background: #f5cbd7;
}

.blog-editor-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.blog-editor-title {
  margin: 0;
  font-size: 1.1rem;
}

.blog-editor-note {
  margin: 8px 0 0;
  color: var(--brown);
}

.blog-card,
.blog-card .date-line,
.blog-card .small,
.blog-card .track-label {
  color: var(--brown);
}

.blog-card .date-line {
  color: #f7e6a9;
}

.blog-column .date-line {
  color: #f7e6a9;
}

.blog-editor {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.blog-editor.is-collapsed {
  display: none;
}

.blog-editor label {
  display: grid;
  gap: 6px;
}

.blog-editor input,
.blog-editor textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(62, 39, 35, 0.2);
  background: #fff6f9;
}

.blog-editor-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.blog-export-output {
  margin-top: 12px;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--brown);
}

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

.post-card {
  background: #f5cbd7;
}

.post-card .date-line {
  color: #8b5b50;
}

.post-card h3 {
  margin: 0 0 8px;
}

.portfolio-header {
  text-align: center;
  color: #3e2723;
  background: #ffffff;
}

.portfolio-header .date-line,
.portfolio-header .hero-title,
.portfolio-header p {
  color: #3e2723;
}

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

.portfolio-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.portfolio-card {
  height: 100%;
  background: #ffffff;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.portfolio-link:hover .portfolio-card {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(62, 39, 35, 0.14);
}

.portfolio-thumb {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(245, 203, 215, 0.85), rgba(189, 215, 222, 0.68));
  border: 1px solid rgba(62, 39, 35, 0.14);
  margin-bottom: 12px;
  text-transform: lowercase;
}

.project-page {
  margin-bottom: 60px;
}

.project-card {
  background: #ffffff;
}

.project-gallery {
  display: grid;
  gap: 14px;
}

.project-image-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}

.project-gallery img {
  width: 100%;
  display: block;
  border: 1px solid rgba(62, 39, 35, 0.14);
}

.project-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  margin-bottom: 14px;
  font-weight: 700;
}

.project-back-link::before {
  content: "←";
  display: inline-block;
}

.project-header-card {
  display: grid;
  gap: 6px;
}

.about-plain {
  width: 100%;
  margin: 0;
  background: rgba(255, 255, 255, 0.64);
}

.splash-shell {
  min-height: 100vh;
  position: relative;
}

.splash-star {
  position: absolute;
  left: 47.5%;
  top: 34%;
  width: 48px;
  height: 48px;
  display: inline-block;
  border: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath fill='%23f7e6a9' stroke='%233e2723' stroke-width='1.4' d='M14 3 17.2 10.1 25 11.2 19.2 16.6 20.6 24.4 14 20.5 7.4 24.4 8.8 16.6 3 11.2 10.8 10.1Z'/%3E%3C/svg%3E")
      center / contain no-repeat;
  transform: translate(-50%, -50%);
  transition: transform 140ms ease, filter 140ms ease;
}

.splash-star.is-wandering {
  animation: wander-splash-star 18s ease-in-out infinite alternate;
}

.splash-star:hover,
.splash-star:focus-visible {
  transform: translate(-50%, -50%) scale(1.15);
  filter: drop-shadow(0 0 10px rgba(247, 230, 169, 0.88));
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 14, 13, 0.9);
  z-index: 50;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-figure {
  margin: 0;
  width: min(92vw, 1080px);
  display: grid;
  gap: 10px;
  justify-items: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
}

.lightbox-caption {
  color: #ffffff;
  text-align: center;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  backdrop-filter: blur(4px);
}

.lightbox-close {
  top: 18px;
  right: 18px;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 18px;
}

.lightbox-next {
  right: 18px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes wish-drift {
  0% {
    transform: translateX(0) translateY(0) scale(0.9);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  100% {
    transform: translateX(calc(100vw + 4rem)) translateY(-40px) scale(1.15);
    opacity: 0;
  }
}

@keyframes spin-disc {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes wander-splash-star {
  0% {
    left: 42%;
    top: 28%;
  }
  20% {
    left: 57%;
    top: 34%;
  }
  40% {
    left: 49%;
    top: 46%;
  }
  60% {
    left: 35%;
    top: 40%;
  }
  80% {
    left: 54%;
    top: 24%;
  }
  100% {
    left: 44%;
    top: 36%;
  }
}

@media (max-width: 860px) {
  body.bg-photo {
    background-attachment: scroll;
  }

  .portfolio-grid,
  .home-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-frame,
  .ultra-narrow-frame {
    width: min(100% - 16px, 880px);
    margin-top: 12px;
  }

  .home-shell,
  .blog-card,
  .portfolio-card,
  .project-card,
  .about-plain {
    padding: 16px;
  }

  .calendar-header {
    grid-template-columns: 40px 1fr 40px;
  }

  .splash-star {
    left: 48%;
    top: 35%;
    width: 42px;
    height: 42px;
  }

  .splash-star.is-wandering {
    animation-name: wander-splash-star-mobile;
  }

  .lightbox {
    padding: 16px;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }
}

@keyframes wander-splash-star-mobile {
  0% {
    left: 35%;
    top: 28%;
  }
  20% {
    left: 62%;
    top: 34%;
  }
  40% {
    left: 50%;
    top: 44%;
  }
  60% {
    left: 30%;
    top: 39%;
  }
  80% {
    left: 60%;
    top: 24%;
  }
  100% {
    left: 42%;
    top: 36%;
  }
}
