/* ==========================================================================
   pepekameikedor.com — Standalone Portfolio Stylesheet
   Rebuilt without Wix dependencies; faithful minimalist typography & palette.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --text: #333333;
  --muted: #595959;
  --footer: #919191;
  --nav-default: #000a1b;
  --nav-hover: #ec0b0b;
  --nav-active: #0d5ee4;
  --accent-orange: #ff4600;
  --border-subtle: #ebebeb;

  --font-body: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-nav: "Jost", "Futura", "Century Gothic", sans-serif;
  --font-display: "Helvetica Neue", Helvetica, Arial, sans-serif;

  --container-wide: 1180px;
  --container-reading: 960px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  background-color: var(--bg);
  width: 100%;
  padding: 28px 24px 20px;
}

.header-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 120px;
}

.brand-block {
  text-align: center;
  flex-shrink: 0;
}

.brand-title {
  display: block;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 25px;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.brand-dots {
  display: inline-block;
  margin-top: 4px;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.4;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.08em;
}

.brand-dots:hover {
  color: var(--nav-hover);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-nav a {
  font-family: var(--font-nav);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  padding: 8px 10px;
  text-decoration: none;
  color: var(--nav-default);
  transition: color 0.15s ease;
  white-space: nowrap;
}

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

.site-nav a[aria-current="page"] {
  color: var(--nav-active);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #111111;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.social-links a:hover {
  color: var(--nav-hover);
}

.social-links svg {
  width: 20px;
  height: 20px;
  display: block;
}

.header-playlist-link {
  display: block;
  width: 84px;
  height: 84px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid var(--border-subtle);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.header-playlist-link:hover {
  transform: scale(1.03);
  opacity: 0.9;
}

.header-playlist-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Main Content & Typography
   ========================================================================== */

.site-main {
  flex: 1 0 auto;
  width: 100%;
  padding: 16px 24px 56px;
}

.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
}

.container-reading {
  max-width: var(--container-reading);
  margin: 0 auto;
}

.page-title {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 25px;
  line-height: 1.4;
  text-align: center;
  color: var(--text);
  margin: 0 0 32px;
}

.page-subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.4;
  text-align: center;
  color: var(--muted);
  margin: -18px auto 32px;
  max-width: 680px;
}

.project-copy {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  text-align: center;
  color: var(--text);
  max-width: 720px;
  margin: 28px auto;
}

.project-copy:first-child {
  margin-top: 0;
}

.project-lead-media {
  max-width: 460px;
  margin: 0 auto 28px;
}

.project-lead-media img,
.project-lead-media video {
  margin: 0 auto;
  width: 100%;
  height: auto;
}

/* ==========================================================================
   Homepage Grid
   ========================================================================== */

.home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 24px;
  align-items: start;
}

.home-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text);
}

.home-tile-media {
  width: 100%;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.home-tile-media img,
.home-tile-media video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.home-tile:hover .home-tile-media img,
.home-tile:hover .home-tile-media video {
  transform: scale(1.015);
  opacity: 0.92;
}

.home-tile-caption {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-align: center;
}

/* ==========================================================================
   Project Media Galleries & Videos
   ========================================================================== */

.media-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin: 28px auto;
}

.media-stack img,
.media-stack video {
  max-width: 100%;
  height: auto;
}

.media-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 28px auto;
  align-items: start;
}

.media-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 28px auto;
  align-items: start;
}

.media-grid-2 img,
.media-grid-2 video,
.media-grid-3 img,
.media-grid-3 video {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.video-block {
  width: 100%;
  max-width: 920px;
  margin: 28px auto;
}

.video-block video {
  width: 100%;
  max-height: 75vh;
  background: #000000;
  border-radius: 2px;
}

/* Logo Animation alternating items */
.logo-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 42px;
  margin-top: 24px;
}

.logo-item {
  width: 100%;
  max-width: 560px;
  text-align: center;
}

.logo-item p {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 300;
  color: var(--text);
}

.logo-item img,
.logo-item video {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

/* Rough gallery (masonry-style clean responsive columns) */
.rough-gallery {
  columns: 2;
  column-gap: 24px;
  max-width: var(--container-wide);
  margin: 0 auto;
}

.rough-item {
  break-inside: avoid;
  margin-bottom: 24px;
}

.rough-item img,
.rough-item video {
  width: 100%;
  height: auto;
}

/* ==========================================================================
   About Page (Full-bleed background photo + readable text)
   ========================================================================== */

body.page-about {
  background-color: #161616;
  color: #ffffff;
}

body.page-about .site-main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  background-image: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.5)), url("../assets/site/about-bg.jpg");
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
}

.about-content {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  color: #ffffff;
}

.about-content p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 24px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.about-content p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Contact Page
   ========================================================================== */

.contact-band {
  background-color: var(--accent-orange);
  color: #ffffff;
  padding: 20px 24px;
  margin: -16px -24px 40px;
}

.contact-band-inner {
  max-width: var(--container-reading);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.contact-band a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #ffffff;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.contact-band a:hover {
  transform: scale(1.1);
  opacity: 0.9;
}

.contact-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 6vw, 60px);
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-align: center;
  color: var(--text);
  margin: 0 0 36px;
}

.contact-details {
  max-width: 560px;
  margin: 0 auto 40px;
  text-align: center;
}

.contact-label {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--text);
  margin: 20px 0 6px;
}

.contact-value {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--text);
  margin: 0;
}

.contact-email-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-email-link {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-email-link:hover {
  color: var(--nav-hover);
}

.btn-outline {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  padding: 5px 12px;
  background: #ffffff;
  color: var(--text);
  border: 1px solid #cccccc;
  border-radius: 3px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.btn-outline:hover {
  border-color: var(--text);
}

.contact-form {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 10px 12px;
  border: 1px solid #d4d4d4;
  border-radius: 2px;
  color: var(--text);
  background: #ffffff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--text);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.btn-submit {
  align-self: center;
  font-family: var(--font-nav);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 11px 32px;
  background-color: var(--text);
  color: #ffffff;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn-submit:hover {
  background-color: var(--accent-orange);
}

/* ==========================================================================
   Lists Page
   ========================================================================== */

.link-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 460px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.link-list a {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-list a:hover {
  color: var(--nav-hover);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background-color: var(--bg);
  padding: 20px 24px 28px;
  text-align: center;
}

.footer-dots {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 39px;
  letter-spacing: 0.1em;
  line-height: 1.2;
  color: var(--footer);
  text-decoration: none;
}

.footer-dots:hover {
  color: var(--text);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 960px) {
  .header-inner {
    flex-direction: column;
    gap: 16px;
  }

  .header-right {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

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

  .home-tile-media {
    height: 300px;
  }

  .media-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 20px 16px 14px;
  }

  .site-main {
    padding: 12px 16px 40px;
  }

  .contact-band {
    margin: -12px -16px 32px;
  }

  .home-grid,
  .media-grid-2,
  .media-grid-3,
  .contact-form-row {
    grid-template-columns: 1fr;
  }

  .home-tile-media {
    height: auto;
    max-height: 360px;
  }

  .rough-gallery {
    columns: 1;
  }

  .site-nav {
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .site-nav a {
    padding: 6px 8px;
  }
}
