/* m s v f x — static portfolio (cloned from minimalio child theme) */

:root {
  --color-bg: #0e0d0d;
  --color-text: #d1d1d1;
  --color-link: #ffffff;
  --color-header-footer: #cecece;
  --color-nav-active: #efefef;
  --container-max: 1240px;
}

/* Base reset (Tailwind-preflight equivalent) */
*,
::before,
::after {
  box-sizing: border-box;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  image-rendering: crisp-edges;
}

body {
  margin: 0;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;             /* above text (auto), below images (91), menu (100), lightbox (1000) */
  pointer-events: none;
  background-image:
    radial-gradient(
      ellipse at center,
      transparent 20%,
      rgba(0, 0, 0, 0.9) 100%
    ),
    repeating-linear-gradient(
      to bottom,
      rgba(23, 22, 22, 0.225) 0 1px,
      transparent 1px 3px
    );

  text-shadow:
  -1px 0 rgba(255, 0, 60, 1.22),    /* red fringe, shifted left */
  1px 0 rgba(0, 149, 255, 0.18);    /* green fringe, shifted right */
}


blockquote,
dd,
dl,
figure,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
p,
pre {
  margin: 0;
}

p {
  margin-bottom: 1rem;
}

h2 {
  font-size: inherit;
  font-weight: inherit;
}

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  -webkit-user-drag: none;
  position: relative;
  z-index: 91;
}

a {
  color: inherit;
}

body {
  font-family: 'Anaheim', sans-serif;
  font-size: 1rem;
  background-color: var(--color-bg);
  color: var(--color-text);
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

input,
textarea {
  -webkit-user-select: text;
  user-select: text;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding: 1rem;
}

/* Skip to content */
.skip-link {
  border: 0;
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  word-break: normal;
}

.skip-link:focus {
  background-color: #ddd;
  clip-path: none;
  color: #444;
  display: block;
  font-size: 1em;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* Header */
.site-header {
  padding: 1.5rem 2rem;
}

.site-header .container {
  position: relative;
}

.header-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: inline-block;
  color: var(--color-header-footer);
  text-decoration: none;
  font-size: 1.333rem;
}

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

@media (min-width: 20em) and (max-width: 60em) {
  .brand {
    font-size: calc(1.333rem + .443889 * (100vw - 20em) / 40);
  }
}

@media (min-width: 60em) {
  .brand {
    font-size: 1.776889rem;
  }
}

@media (max-width: 768px) {
  .brand {
    padding-right: 3rem;
  }
}

/* Desktop nav */
.site-nav {
  display: none;
}

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  position: relative;
  display: block;
  font-size: 20px;
  color: var(--color-header-footer);
  text-decoration: none;
  padding: .2em 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  right: 50%;
  width: 0;
  border-bottom: 1px solid var(--color-nav-active);
  transition: all .3s;
}

.nav-link:hover,
.nav-link.is-current {
  color: var(--color-nav-active);
}

.nav-link:hover::after,
.nav-link.is-current::after {
  left: 0;
  right: 0;
  width: 100%;
}

@media (min-width: 768px) {
  .site-nav {
    display: block;
  }
}

/* Hamburger */
.menu-toggle {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  z-index: 110;
  display: block;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  color: #000;
  cursor: pointer;
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle svg {
  display: block;
  width: 24px;
  height: 24px;
}

.menu-toggle .icon-close {
  display: none;
}

.menu-toggle.is-active .icon-close {
  display: block;
}

.menu-toggle.is-active .icon-open {
  display: none;
}

/* Mobile menu overlay (fades in, does not slide) */
.mobile-menu {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  background-color: #fff;
  overflow-y: auto;
  z-index: -1;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}

@media (min-width: 640px) {
  .mobile-menu {
    max-width: 24rem;
  }
}

@media (min-width: 768px) {
  .mobile-menu {
    display: none;
  }
}

.mobile-menu.is-active {
  z-index: 100;
  opacity: 1;
  visibility: visible;
}

.mobile-menu-list {
  padding: 1rem 2rem;
}

.mobile-menu-list li {
  font-size: 20px;
  line-height: 1.5;
}

.mobile-menu-list a {
  color: #000;
  text-decoration: none;
}

/* Content area */
.content-area {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.content-area a {
  color: var(--color-link);
}

/* Works page */
.page-title {
  font-size: 1.776889rem;
  line-height: 1.2;
  margin-bottom: 1.75rem;
}

@media (min-width: 60em) {
  .page-title {
    font-size: 3.1573345183rem;
  }
}

.project-title {
  text-align: center;
}

.gallery-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 1.75rem;
}

@media (min-width: 782px) {
  .gallery-row {
    flex-wrap: nowrap;
  }
}

.gallery-col {
  flex-grow: 1;
  flex-basis: 0;
  min-width: 0;
}

.gallery-col.is-25 {
  flex-basis: 25%;
  flex-grow: 0;
}

.gallery-col.is-33 {
  flex-basis: 33.33%;
  flex-grow: 0;
}

.gallery-col.is-50 {
  flex-basis: 50%;
  flex-grow: 0;
}

.gallery-col.is-66 {
  flex-basis: 66.66%;
  flex-grow: 0;
}

@media (max-width: 781px) {
  .gallery-row .gallery-col {
    flex-basis: 100%;
  }
}

.gallery-item {
  margin: 0;
}

.gallery-item + .gallery-item {
  margin-top: 1rem;
}

.gallery img {
  cursor: zoom-in;
}

/* About page */
.page-about .content-area {
  margin-top: 6rem;
}

.page-about .entry-content,
.page-about .site-footer {
  padding-left: 2rem;
  padding-right: 2rem;
}

.about-portrait {
  width: 319px;
  height: auto;
  aspect-ratio: 1920 / 1823;
}

/* Footer */
.footer-cols {
  display: flex;
  flex-wrap: wrap;
}

.footer-col {
  width: 100%;
  text-align: center;
}

.footer-col + .footer-col {
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .footer-col {
    width: 33.333%;
    margin-top: 0;
  }

  .footer-left {
    text-align: left;
  }

  .footer-right {
    text-align: right;
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .92);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  image-rendering: crisp-edges;
}

.lightbox button {
  position: absolute;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: .5rem;
  line-height: 0;
}

.lightbox button svg {
  display: block;
  width: 28px;
  height: 28px;
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
}

.lightbox-prev {
  left: .5rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: .5rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: #999;
  font-size: .875rem;
}

/* Small screens */
@media (max-width: 600px) {
  .site-header {
    padding: .5rem 1rem;
  }

  .page-about .entry-content,
  .page-about .site-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
