/* ==========================================================================
   Gemma Brown — portfolio site
   Rebuilt as a static site from www.gemmakabrown.com (Wix original).
   Design system taken from the original theme:
     - Site title: Karantina Light, hot pink #FF64D8
     - Section headings: Titillium Web (black weight), #292929
     - Body copy: Times New Roman, #000 / #464646
     - Every page sits on a full-bleed background photograph
   ========================================================================== */

:root {
  --pink: #ff64d8;
  --ink: #292929;
  --body: #000000;
  --panel: rgba(255, 255, 255, 0.93);
  --heading-font: "Titillium Web", "Helvetica Neue", Arial, sans-serif;
  --title-font: "Karantina", cursive;
  --body-font: "Times New Roman", Times, serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--body-font);
  color: var(--body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* Per-page background photographs (matches the Wix pageBackground images) */
body.page-home     { background-image: url("../assets/images/bg-home.png"); }
body.page-design   { background-image: url("../assets/images/bg-design.jpg"); }
body.page-projects { background-image: url("../assets/images/bg-projects.jpg"); }
body.page-cv       { background-image: url("../assets/images/bg-cv.jpg"); }
body.page-about    { background-image: url("../assets/images/bg-about.jpg"); }
body.page-contact  { background-image: url("../assets/images/bg-contact.jpg"); }

/* --------------------------------------------------------------------------
   Header: giant Karantina name + uppercase nav
   -------------------------------------------------------------------------- */

.site-header {
  text-align: center;
  padding: 28px 16px 10px;
}

.site-title {
  margin: 0;
  font-family: var(--title-font);
  font-weight: 300;
  font-size: clamp(64px, 12vw, 148px);
  line-height: 0.9;
  letter-spacing: -0.01em;
}

.site-title a {
  color: var(--pink);
  text-decoration: none;
}

.site-nav {
  margin-top: 18px;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 34px;
}

.site-nav a {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: none;
  padding: 4px 2px;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.9);
}

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

.site-nav a[aria-current="page"] {
  color: var(--pink);
  border-bottom: 2px solid var(--pink);
}

/* --------------------------------------------------------------------------
   Content panel
   -------------------------------------------------------------------------- */

main {
  flex: 1;
  width: 100%;
}

.panel {
  background: var(--panel);
  max-width: 980px;
  margin: 26px auto 40px;
  padding: 40px 48px;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.18);
}

.panel--narrow {
  max-width: 760px;
}

h2.section-heading {
  font-family: var(--heading-font);
  font-weight: 900;
  font-size: 23px;
  color: var(--ink);
  margin: 0 0 18px;
}

/* --------------------------------------------------------------------------
   Design page (films)
   -------------------------------------------------------------------------- */

.film {
  margin-bottom: 56px;
}

.film:last-child {
  margin-bottom: 0;
}

.film video {
  width: 100%;
  display: block;
  background: #000;
}

.film-title {
  font-size: 25px;
  text-align: center;
  margin: 26px 0 4px;
}

.film-blurb {
  text-align: center;
  font-size: 15px;
  max-width: 640px;
  margin: 10px auto 18px;
  line-height: 1.5;
}

.film-credits {
  text-align: center;
  font-size: 15px;
  line-height: 1.5;
}

.film-credits .credit-role {
  font-style: italic;
  margin: 14px 0 2px;
}

.film-credits p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   Other Projects (galleries)
   -------------------------------------------------------------------------- */

.gallery-caption {
  text-align: center;
  font-size: 16px;
  margin: 0 0 22px;
}

.gallery {
  display: grid;
  gap: 14px;
  margin-bottom: 48px;
}

.gallery:last-child {
  margin-bottom: 0;
}

.gallery--three {
  grid-template-columns: repeat(3, 1fr);
}

.gallery--grid {
  grid-template-columns: repeat(3, 1fr);
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  display: block;
}

.gallery--three img {
  aspect-ratio: 3 / 4;
}

/* --------------------------------------------------------------------------
   Employment history
   -------------------------------------------------------------------------- */

.cv-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 56px;
}

.cv-section {
  margin-bottom: 40px;
}

.cv-entry {
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 16px;
}

.cv-entry p {
  margin: 0;
}

.cv-entry .cv-title {
  font-style: italic;
  text-decoration: underline;
}

.cv-entry .cv-title a {
  color: inherit;
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about-portrait {
  display: block;
  width: 224px;
  height: 224px;
  object-fit: cover;
  margin: 0 auto 28px;
}

.about-text p {
  font-size: 14px;
  line-height: 1.5;
  text-align: justify;
  margin: 0 0 16px;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-block {
  text-align: center;
  padding: 24px 0;
}

.contact-block h2 {
  font-family: var(--heading-font);
  font-weight: 900;
  font-size: 23px;
  color: var(--body);
  margin: 28px 0 6px;
}

.contact-block p,
.contact-block a {
  font-size: 17px;
  color: var(--body);
  margin: 0;
  text-decoration: none;
}

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

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  text-align: center;
  padding: 18px 0 22px;
}

.site-footer p {
  display: inline-block;
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 11px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.75);
  padding: 4px 14px;
  border-radius: 3px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 860px) {
  .panel {
    margin: 18px 14px 30px;
    padding: 26px 20px;
  }

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

  .gallery--grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .gallery--three,
  .gallery--grid {
    grid-template-columns: 1fr;
  }

  .site-nav ul {
    gap: 4px 18px;
  }
}
