/* =========================================================
   Virgilia Vrabii — Portfolio
   Shared design system
   ========================================================= */

@font-face {
  font-family: 'Songstar';
  src: url('fonts/Songstar.ttf') format('truetype');
  font-display: swap;
}

:root {
  /* default — bone */
  --bg: #ffffff;
  --paper: #F8F6F3;
  --ink: #1A1A18;
  --grey: #999999;
  --light-grey: #E0DDDA;
  --tape: rgba(220,220,215,0.45);
  --shadow: rgba(0,0,0,0.12);
  --img-filter: grayscale(8%) contrast(1.04);
}

[data-palette="sepia"] {
  --bg: #F4EFE6;
  --paper: #FBF6EB;
  --ink: #2A201A;
  --grey: #A89B8A;
  --light-grey: #DCD3C2;
  --tape: rgba(190,170,140,0.45);
  --shadow: rgba(60,40,20,0.18);
  --img-filter: sepia(18%) contrast(1.04);
}

[data-palette="ink"] {
  --bg: #121211;
  --paper: #1E1E1C;
  --ink: #F0EDE7;
  --grey: #6E6C68;
  --light-grey: #2A2826;
  --tape: rgba(120,118,112,0.35);
  --shadow: rgba(0,0,0,0.6);
  --img-filter: grayscale(12%) contrast(1.05) brightness(0.95);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

img { display: block; }

/* ------------ Nav ------------ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  background: var(--bg);
  transition: background-color 0.3s ease;
}
.nav .nav-spacer { flex: 0 0 auto; }
.nav-logo {
  font-family: 'Songstar', cursive;
  font-size: 30px;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.55; }
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-left: auto;
}
.nav-links a {
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 0.45; }
.nav-links a.active { opacity: 0.4; }

/* ------------ Footer ------------ */
.footer {
  padding: 22px 28px;
  border-top: 0.5px solid var(--light-grey);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 80px;
  gap: 16px;
  flex-wrap: wrap;
}
.footer span, .footer a {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
  font-weight: 300;
  text-decoration: none;
}
.footer a:hover { color: var(--ink); }

/* palette toggle removed */

/* ------------ Polaroid / image cards ------------ */
.pimg {
  position: absolute;
  background: var(--paper);
  box-shadow: 2px 4px 16px var(--shadow);
  overflow: visible;
}
.pimg .img-wrap {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}
.pimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--img-filter);
}
.frame-no, .frame-no-white {
  position: absolute;
  bottom: 6px; left: 8px;
  font-size: 8px;
  letter-spacing: 0.12em;
  font-weight: 300;
  z-index: 3;
}
.frame-no { color: rgba(26,26,24,0.32); }
.frame-no-white { color: rgba(255,255,255,0.5); }

/* tape */
.tape {
  position: absolute;
  background: var(--tape);
  border-top: 1px solid rgba(255,255,255,0.5);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  z-index: 5;
  pointer-events: none;
}
.tape.top { top: -10px; }
.tape.bottom { bottom: -10px; }

/* lightbox styles removed */

/* ------------ Page-level helpers ------------ */
.proj-num {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(26,26,24,0.4);
  font-weight: 300;
}
[data-palette="ink"] .proj-num { color: rgba(240,237,231,0.4); }
[data-palette="sepia"] .proj-num { color: rgba(42,32,26,0.45); }

.section-rule {
  height: 0.5px;
  background: var(--light-grey);
  width: 100%;
  margin: 0;
}

/* ------------ Mobile ------------ */
@media (max-width: 760px) {
  .nav { padding: 10px 18px; }
  .nav-logo { font-size: 22px; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 8px; letter-spacing: 0.18em; }
  .footer { padding: 18px; font-size: 8px; }
  .lightbox { padding: 20px; }
  .lightbox-prev, .lightbox-next { font-size: 18px; padding: 8px; }
}
