:root {
  --bg-color: #f5f5f0;
  --ink: #111;
  --line: 1px solid var(--ink);
  --font-serif: "Antic Didone", "Italiana", Georgia, serif;
  --font-sans: "Quicksand", system-ui, sans-serif;
  --frame-width: min(68.75rem, 96vw);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg-color);
  color: var(--ink);
  font-family: var(--font-sans);
  transition: background-color 0.35s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

figure {
  margin: 0;
}

#floating-image {
  position: fixed;
  pointer-events: none;
  width: 1.875rem;
  z-index: 9999;
}

.site-frame {
  width: var(--frame-width);
  margin: 5rem auto 2rem;
  border: var(--line);
  background: var(--bg-color);
}

.panel {
  border-right: var(--line);
  border-bottom: var(--line);
  min-height: 0;
}

.panel:last-child {
  border-right: none;
}

/* Top bar */
.top-bar {
  display: grid;
  grid-template-columns: 2.5rem 1fr 2.5rem;
  align-items: center;
  min-height: 2.75rem;
  border-bottom: var(--line);
}

.star-mark,
.menu-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 0.9rem;
}

.menu-dots {
  margin-right: 0.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
  letter-spacing: 0.12rem;
  padding: 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.25rem;
  padding: 0.5rem 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a:hover {
  text-decoration: underline;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  padding: 1.75rem 1.5rem;
  min-height: 9.5rem;
  border-right: none;
}

.hero-text h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 6vw, 4.25rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.02em;
}

.hero-text p {
  margin: 0;
  max-width: 28rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.sparkle {
  font-size: 0.85rem;
  opacity: 0.85;
}

.hero-cat {
  width: 4.25rem;
  height: 4.25rem;
  object-fit: cover;
}

/* Grid rows */
.grid-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.grid-row .panel {
  padding: 1rem 1rem 2.25rem;
  position: relative;
  min-height: 100%;
}

.grid-row h2 {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.panel-arrow {
  position: absolute;
  right: 0.85rem;
  bottom: 0.75rem;
  font-size: 0.95rem;
  line-height: 1;
}

/* About */
.about-copy {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  text-transform: lowercase;
}

.social-buttons {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

#git,
#linkedin,
#pinterest {
  all: unset;
  width: 1.35rem;
  height: 1.35rem;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  cursor: pointer;
}

#git { background-image: url("images/github-mark.png"); }
#linkedin { background-image: url("images/linkedinicon.png"); }
#pinterest { background-image: url("images/pinterest.png"); }

/* Center photo */
.photo-panel {
  padding: 0;
  display: block;
  overflow: hidden;
}

.photo-panel img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  display: block;
}

/* Currently */
.currently-list {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
}

.currently-list div {
  margin-bottom: 0.35rem;
}

.currently-list dt,
.currently-list dd {
  display: inline;
  margin: 0;
  text-transform: lowercase;
}

.currently-list dt {
  font-weight: 600;
}

.currently-list dd::before {
  content: " ";
}

/* Music */
.music-panel {
  display: flex;
  flex-direction: column;
}

.music-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

.disk {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  border: var(--line);
  background-image: url("images/pathofthewind.jpg");
  background-size: cover;
  background-position: center;
  animation: spin 18s linear infinite;
  animation-play-state: paused;
}

.disk.play {
  animation-play-state: running;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.music-name,
.artist-name {
  margin: 0;
  font-size: 0.72rem;
  text-align: center;
  text-transform: capitalize;
}

.artist-name {
  font-size: 0.65rem;
  opacity: 0.75;
}

.song-slider {
  width: 100%;
  margin-top: 0.25rem;
}

.seek-bar {
  width: 100%;
  accent-color: var(--ink);
  cursor: pointer;
}

.time-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.62rem;
  margin-top: 0.15rem;
}

.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 0.15rem;
}

.backwardbutton,
.forwardbutton {
  all: unset;
  cursor: pointer;
  font-size: 0.72rem;
  line-height: 1;
}

.play-button {
  position: relative;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.play-button span {
  position: absolute;
  top: 50%;
  left: 38%;
  width: 0.18rem;
  height: 0.7rem;
  background: var(--ink);
  transform: translateY(-50%);
}

.play-button span:nth-child(2) {
  left: 54%;
}

.play-button.pause span:nth-child(2) {
  transform: translateY(-50%) scaleY(0);
}

.play-button.pause span:nth-child(1) {
  width: 0;
  height: 0;
  left: 50%;
  border-top: 0.45rem solid transparent;
  border-bottom: 0.45rem solid transparent;
  border-left: 0.7rem solid var(--ink);
  background: transparent;
  transform: translate(-40%, -50%);
}

/* Updates */
.updates-inner {
  max-height: 15rem;
  overflow: auto;
  padding-right: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: #e5aff0 transparent;
}

.update-entry + .update-entry {
  margin-top: 0.85rem;
}

.update-date {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.updates-content {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.45;
  text-transform: lowercase;
}

/* Camera */
.camera-panel {
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.camera-frame {
  position: relative;
  width: 19.875rem;
  height: 11.25rem;
  rotate: -10deg;
  transition: rotate 0.5s ease;
  flex-shrink: 0;
}

.camera-frame:hover {
  rotate: 0deg;
  cursor: pointer;
}

.camera-image {
  position: absolute;
  width: 11.25rem;
  height: 9.375rem;
  left: 1.1875rem;
  top: 1.75rem;
  background-image: url("images/cameraimage.jpg");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 2px;
  z-index: 1;
}

.camera-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("images/camera2.png") center / contain no-repeat;
  z-index: 2;
  pointer-events: none;
}

.camera-bear {
  position: absolute;
  right: 0.5rem;
  bottom: -0.25rem;
  width: 5rem;
  height: 4.375rem;
  object-fit: contain;
  z-index: 3;
  pointer-events: none;
}

.page-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  padding: 0.85rem 1.5rem;
  border-top: var(--line);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Mobile */
@media (max-width: 52rem) {
  .site-frame {
    margin: 0.75rem auto 1.5rem;
  }

  .top-bar {
    grid-template-columns: 2rem 1fr 2rem;
  }

  .site-nav {
    gap: 0.3rem 0.65rem;
    font-size: 0.62rem;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.25rem;
  }

  .hero-visual {
    justify-content: flex-start;
  }

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

  .grid-row .panel {
    border-right: none;
  }

  .photo-panel img {
    min-height: 12rem;
  }

  .camera-frame {
    width: 13rem;
    height: 7.375rem;
  }

  .camera-image {
    width: 7.375rem;
    height: 6.25rem;
    left: 0.9375rem;
    top: 1.375rem;
  }

  .camera-bear {
    width: 3.75rem;
    height: 3.25rem;
  }
}
