/* minimal reset — only resets what this page actually uses
   (html/body, p/a/button/img). normalize.css has been removed. */
html {
  -webkit-text-size-adjust: 100%;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
}

:root {
  --white: #ffffff;
  --black: #201922;
  --pink: #d5009c;
  --bg: #f9f5fa;
  --surface: rgba(249, 245, 250, 0.88);
}


* {
  box-sizing: border-box;
}

*::-webkit-scrollbar {
  width: 2px;
}

*::-webkit-scrollbar-track {
  background: var(--bg);
}

*::-webkit-scrollbar-thumb {
  border-radius: 0;
  background: var(--pink);
}

body {
  color: var(--black);
  background-color: var(--bg);
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 22px;
  margin: 0;
  min-height: 100vh;
}

p {
  margin: 0;
}

a {
  color: var(--black);
  text-decoration: none;
}

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


.sec-main {
  position: relative;
  min-height: 100vh;
}


/* nav reads as one continuous sentence: the about phrase, a colon,
   then every project description joined by "and"/"or" connectors */
.menu {
  z-index: 5;
  width: 100%;
  position: absolute;
  padding: 25px;
  line-height: 26px;
  white-space: normal;
  max-width: 640px;
  color: var(--black);
}

.menu-item {
  cursor: pointer;
  transition: color 0.2s ease;
}

.menu-item:hover,
.menu-item.active {
  color: var(--pink);
}

.menu-text {
  display: inline;
}


/* about/contact box — visibility is handled directly via .active,
   independent of the project-routing logic */
.about-box {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 12;
  max-width: 380px;
  padding: 24px;
  border-radius: 0;
  background-color: var(--surface);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.about-box.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.about-line {
  margin-bottom: 18px;
  line-height: 1.6;
}

.email-btn {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid var(--black);
  border-radius: 0;
  color: var(--black);
  font-size: 12px;
  letter-spacing: 0.02em;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  margin-top: 14px;
}

.email-btn:hover {
  background-color: var(--pink);
  border-color: var(--pink);
  color: var(--bg);
}

.email-btn.copied {
  background-color: var(--black);
  border-color: var(--black);
  color: var(--bg);
}


/* floating project images — stacked in the centre, messy rotation,
   hover brings a card to front and keeps it there */
.float-layer {
  position: fixed;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stack-img {
  position: absolute;
  display: block;
  border-radius: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: auto;
  cursor: default;
  transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(0.97);
  transition: opacity 0.35s ease, transform 0.25s ease;
  box-shadow: 0 4px 24px rgba(0,0,0,0.13);
}

.stack-img.in {
  opacity: 1;
  transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(1);
}

.stack-img:hover {
  transition: opacity 0.35s ease, transform 0.18s ease;
}

.stack-img img,
.stack-img picture {
  display: block;
  width: 100%;
}

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


#meta-ui {
  position: fixed;
  z-index: 15;
  bottom: 25px;
  right: 25px;
  display: none;
  padding: 5px 10px;
  color: var(--black);
  border: 1px solid var(--black);
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  max-width: 300px;
  background-color: var(--surface);
}

#meta-ui.active {
  display: inline-block;
  opacity: 1;
  pointer-events: auto;
}

#meta-ui.is-link:hover {
  background-color: var(--pink);
  border-color: var(--pink);
  color: var(--bg);
}

#meta-ui .meta-inner {
  padding: 5px 10px;
}

#meta-ui .meta-title {
  font-weight: 600;
}

/* date sits above the title; pink accent picks it out from the black */
#meta-ui .meta-date {
  display: block;
  color: var(--pink);
  font-size: 10px;
  margin-bottom: 2px;
}

/* on link cards, the date inverts to the bg colour on hover so it stays
   legible against the pink fill */
#meta-ui.is-link:hover .meta-date {
  color: var(--bg);
}

.text-sm {
  font-size: 9px;
  line-height: 9px;
}

.hover-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 180px;
  border-radius: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  will-change: transform, opacity;
}

.hover-preview.active {
  opacity: 1;
}

.hover-preview img {
  display: block;
  width: 100%;
  height: auto;
}

@media (hover: none), (pointer: coarse) {
  .hover-preview {
    display: none;
  }
}


@media screen and (max-width: 767px) {
  body {
    font-size: 10px;
    line-height: 13px;
  }

  .menu {
    line-height: 22px;
  }
}

@media screen and (max-width: 479px) {
  .about-box {
    right: 16px;
    bottom: 16px;
    left: 16px;
    max-width: none;
    padding: 20px;
  }
}
