/*
Theme Name: Aleksandra Kolanko Net
Theme URI: http://aleksandrakolanko.net/
Description: Custom theme for digital portfolio
Author: Aleksandra Kolanko
Version: 1.0
Tags: Portfolio
*/

@font-face {
  font-family: "SackersGothicLightMedium";
  src: url("sackers_webfont/sackers_gothic_medium-webfont.eot");
  src: url("sackers_webfont/sackers_gothic_medium-webfont.eot?#iefix") format("embedded-opentype"), url("sackers_webfont/sackers_gothic_medium-webfont.woff") format("woff"), url("sackers_webfont/sackers_gothic_medium-webfont.ttf") format("truetype"), url("sackers_webfont/sackers_gothic_medium-webfont.svg#SackersGothicLightMedium") format("svg");
  font-weight: normal;
  font-style: normal;
}

html {
  background: #fff;
}

body {
  font-family: "SackersGothicLightMedium", "helvetica", Arial, sans-serif;
  text-transform: lowercase;
  line-height: 22px;
  font-size: 13px;
  margin: 0;
  padding: 50px 0 0 0;
  background: #fff;
}

body.admin-bar header,
html body.admin-bar header {
  top: 32px !important;
}

@media screen and (max-width: 782px) {
  body.admin-bar header,
  html body.admin-bar header {
    top: 46px !important;
  }
}

/* Ensure WP admin bar stays above our header */
#wpadminbar {
  z-index: 100000 !important;
}

* {
  box-sizing: border-box;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 16px;
  line-height: 11px;
  font-weight: 500;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  color: #fff;
  mix-blend-mode: difference;
}

#title {
  margin: 0;
  padding: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 11px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

#title a {
  text-decoration: none;
  color: inherit;
}

header nav {
  flex-shrink: 0;
}

header nav ul {
  display: flex;
  gap: 48px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

@media screen and (max-width: 768px) {
  header nav ul {
    gap: 32px;
  }
}

@media screen and (max-width: 640px) {
  header nav ul {
    gap: 16px;
  }
}

@media screen and (max-width: 500px) {
  header {
    justify-content: center;
    text-align: center;
  }

  #title {
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
  }

  header nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    z-index: 9999;
    color: #fff;
    mix-blend-mode: difference;
  }

  header nav ul {
    width: 100%;
    justify-content: space-between;
    gap: 0;
  }

  body {
    padding-bottom: 50px;
  }

  body.page-template-playground,
  body.page-id-playground,
  body[class*="playground"] {
    padding-bottom: 0 !important;
  }

  /* Keep playground footer above bottom nav */
  #playground-footer {
    bottom: 64px;
  }
}

header nav ul li {
  margin: 0;
  padding: 0;
  line-height: 11px;
  font-weight: 500;
}

header nav a {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  outline: none;
}

header nav a:focus,
header nav a:focus-visible,
header nav a:active,
#title a:focus,
#title a:focus-visible,
#title a:active {
  outline: none;
  box-shadow: none;
  border: none;
}

/* Remove default focus ring that shows black/orange border after click + arrow/esc navigation */
a:focus,
a:focus-visible {
  outline: none;
}

.instagram-icon {
  width: 16px;
  height: 16px;
  display: block;
  object-fit: contain;
  filter: invert(1);
}

/* === Playground Template === */
html.playground-html,
html:has(#playground) {
  overscroll-behavior: none;
}

body.page-template-playground,
body.page-id-playground,
body[class*="playground"] {
  padding: 0 !important;
  overflow: hidden;
  background: #fff;
}

#playground {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 1;
  cursor: default;
  user-select: none;
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: none;
}

#playground.pointer {
  cursor: pointer;
}

#playground canvas {
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
  touch-action: none;
  overscroll-behavior: none;
}

#playground-footer {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  color: #fff;
  mix-blend-mode: difference;
  font-size: 11px;
  line-height: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  white-space: nowrap;
}

#playground-footer.visible {
  opacity: 1;
  pointer-events: auto;
}

.footer-arrows {
  display: inline-flex;
  gap: 6px;
  font-size: 13px;
  letter-spacing: 0.1em;
}

.footer-text {
  opacity: 0.7;
  font-size: 11px;
}

@media (pointer: coarse) {
  #playground-footer {
    display: none !important;
  }
}
/* === End Playground Template === */

/* === 404 === */
#error-404 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 16px;
  z-index: 1;
  background: #fff;
}

#error-404 h1 {
  font-size: 18px;
  line-height: 16px;
  font-weight: 500;
  margin: 0;
  letter-spacing: 0.02em;
}
/* === End 404 === */
