/* ============================================================
   JANICETSANG — site stylesheet
   Matched to the original Squarespace design:
   - black homepage with hover-title portfolio grid
   - purple accent  #6200ff
   - full-screen hero on project pages, white content section
   - font: Pragmatica Extended (Adobe) on the original;
     here: Archivo Expanded (free Google font, very close)
   ============================================================ */
:root {
  --bg: #000000;          /* dark page background */
  --paper: #ffffff;       /* light section background */
  --text: #ffffff;
  --ink: #000000;
  --dim: #cccccc;
  --line: #dddddd;        /* rules on white */
  --line-dark: #333333;   /* rules on black */
  --accent: #6200ff;      /* Janice's purple */
  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-stretch: 125%;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .6; }

/* ---------- header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 3vw;
}
.header-overlay {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 5;
}
.logo img { height: 48px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { font-size: 14px; }
.site-nav a.active { border-bottom: 1px solid currentColor; }
.nav-social { display: flex; gap: 18px; align-items: center; }
.nav-social svg { width: 15px; height: 15px; fill: currentColor; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; }

/* header colours per page theme */
.theme-dark, .theme-overlay { color: var(--text); }
.theme-light .site-header { background: var(--paper); color: var(--ink); }

/* ---------- homepage ---------- */
.home { padding: 0 2vw 80px; }

.filters {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 6px 30px;
  padding: 26px 0 60px;
}
.filter-btn {
  background: none; border: 0; cursor: pointer;
  color: var(--dim);
  font: 400 14px/1.6 var(--font);
  font-stretch: 125%;
  padding: 2px 0;
  border-bottom: 1px solid transparent;
}
.filter-btn:hover { color: var(--text); }
.filter-btn.active { color: var(--accent); border-bottom-color: var(--accent); }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.card { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.card.hidden { display: none; }
.card > img { width: 100%; height: 100%; object-fit: cover; }
.card-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 46px;
  background: rgba(0,0,0,.55);
  opacity: 0;
  transition: opacity .3s ease;
}
.card:hover { opacity: 1; }
.card:hover .card-overlay { opacity: 1; }
.card-title {
  font-size: 17px; font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .01em;
  color: #fff;
}

/* ---------- project pages ---------- */
.project { background: var(--paper); color: var(--ink); }

.hero {
  position: relative;
  height: 100vh;
  background: #000;
  overflow: hidden;
}
.hero > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-text {
  position: absolute;
  left: 8vw; bottom: 7vh;
  color: #fff;
  z-index: 2;
}
.project-title {
  font-size: clamp(32px, 3vw, 62px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.08;
  text-shadow: 0 0 30px rgba(0,0,0,.35);
}
.project-subtitle { font-size: 13px; margin-top: 14px; }

.project-body { padding: 90px 8vw 70px; }

.accordions {
  margin: 0 0 90px auto;
  width: 50%;
  border-top: 1px solid var(--ink);
}
.accordions details { border-bottom: 1px solid var(--ink); }
.accordions summary {
  cursor: pointer; list-style: none;
  padding: 15px 0;
  font-size: 17px;
  display: flex; justify-content: space-between; align-items: center;
}
.accordions summary::-webkit-details-marker { display: none; }
.accordions summary::after { content: "+"; font-weight: 300; font-size: 22px; }
.accordions details[open] summary::after { content: "–"; }
.accordions details > div { padding: 2px 0 22px; font-size: 14px; }
.accordions details p { margin-bottom: 12px; }
.accordions details a { border-bottom: 1px solid var(--line); }
.accordions ul { margin: 10px 0 0 22px; }

.project-blocks { max-width: 1100px; margin: 0 auto; }
.project-blocks > * { margin-bottom: 30px; }
.block-heading {
  font-size: clamp(22px, 1.8vw, 34px);
  font-weight: 800; text-transform: uppercase;
  margin: 60px 0 26px;
}
.block-text { font-style: italic; text-align: center; }

.video-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

.instagram-media { margin: 0 auto 30px !important; max-width: 540px !important; min-width: 300px !important; }

.project-tags { margin: 70px 0 0; text-align: center; }
.tag { display: inline-block; margin: 0 8px; font-size: 13px; color: #777; }

.prev-next {
  display: flex; justify-content: space-between; gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 26px; margin-top: 30px;
  font-weight: 800; text-transform: uppercase; font-size: 15px;
}
.pn span { display: block; font-weight: 400; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #999; }
.pn.next { margin-left: auto; text-align: right; }

/* ---------- about ---------- */
.theme-light { background: var(--paper); }
.about {
  background: var(--paper); color: var(--ink);
  display: grid; grid-template-columns: 1fr 1fr; gap: 5vw;
  padding: 60px 8vw 100px;
  align-items: start;
}
.about h1 {
  font-size: clamp(30px, 2.7vw, 54px);
  font-weight: 800; text-transform: uppercase;
  line-height: 1.15;
  margin-bottom: 28px;
}
.about p { margin-bottom: 16px; font-size: 14px; }
.about-social { margin: 40px 0 20px; }
.about-social a { margin-right: 16px; }
.about-social svg { width: 16px; height: 16px; fill: var(--ink); }
.about .email { border-bottom: 1px solid var(--ink); }

.contact-form { margin-top: 60px; }
.contact-form label { display: block; font-size: 14px; margin: 18px 0 6px; }
.contact-form label span { font-size: 11px; color: #888; }
.contact-form .row { display: flex; gap: 14px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  background: #f2f2f2;
  border: 0; border-radius: 2px;
  padding: 12px;
  font-family: var(--font); font-size: 14px;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 1px solid var(--ink); }
.contact-form button {
  margin-top: 24px;
  background: var(--ink); color: #fff;
  border: 0; cursor: pointer;
  font: 400 14px var(--font);
  padding: 14px 40px;
}
.contact-form button:hover { background: var(--accent); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--bg); color: var(--text);
  padding: 34px 3vw;
  text-align: center;
  font-size: 12px;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
  .accordions { width: 100%; }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute; top: 78px; left: 0; right: 0;
    background: var(--bg);
    color: var(--text);
    flex-direction: column; padding: 20px 5vw 30px;
    z-index: 10;
  }
  .site-nav.open { display: flex; }
  .site-header { position: relative; }
  .header-overlay { position: absolute; }
  .hero { height: 70vh; }
  .project-body { padding: 60px 6vw 50px; }
}
