/* style.css — shared typography, layout, header, footer, and lightbox styles.
   Colors come from theme.js as CSS variables (--bg, --ink, --ink-soft, --accent, etc.). */

@font-face {
  font-family: 'Azeret Mono';
  src: url('fonts/AzeretMono-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Azeret Mono';
  src: url('fonts/AzeretMono-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Azeret Mono';
  src: url('fonts/AzeretMono-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Azeret Mono';
  src: url('fonts/AzeretMono-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --content-max: 620px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Bitter', Arial, sans-serif;
  font-size: 19px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ink);
}

a:hover {
  color: var(--accent);
}

canvas#wave {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

.content {
  position: relative;
  z-index: 1;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 64px 24px 90px;
}

section {
  margin: 0 0 56px 0;
  position: relative;
}

/* Subpage top bar */

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.name {
  font-family: 'Azeret Mono', 'Courier New', monospace;
  font-size: clamp(22px, 5vw, 30px);
  font-style: normal;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  margin-left: 0;
  position: relative;
  top: 2px;
}

.home {
  font-family: 'Bitter', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 6px;
}

.home:hover {
  color: var(--accent);
}

/* Centered subpage title (About, Resume) */

.page-title {
  font-family: 'Azeret Mono', 'Courier New', monospace;
  font-size: clamp(2rem, 8vw, 2.6rem);
  line-height: 1.15;
  font-weight: 600;
  margin: 0 0 36px 0;
  text-align: center;
}

/* Unified fullscreen lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 10, 10, 0.88);
  opacity: 0;
  visibility: hidden;
  cursor: zoom-out;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

.lightbox.show,
.lightbox.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease, visibility 0s linear 0s;
}

.lightbox img {
  max-width: min(92vw, 900px);
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  display: block;
}

.lightbox button {
  appearance: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-family: 'Azeret Mono', 'Courier New', monospace;
  font-size: 15px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.lightbox button:hover,
.lightbox button:focus-visible {
  border-color: #fff;
  outline: none;
}

.lb-prev,
.lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  padding: 0;
}

.lb-prev { left: 18px; }
.lb-next { right: 18px; }

/* Footer */

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--ink-soft);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

@media (max-width: 600px) {
  body {
    font-size: 17px;
  }

  .content {
    padding: 48px 20px 70px;
  }

  .top-row {
    margin-bottom: 28px;
  }

  .name {
    font-size: 24px;
  }

  .home {
    font-size: 15px;
  }

  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }

  footer {
    font-size: 12.5px;
  }

  
}

/* Clickable image hover zoom */

.photo-thumb,
.wide-media button,
.gallery button,
.results-grid button {
  transition: transform 0.25s ease;
}

.photo-thumb:focus-visible,
.wide-media button:focus-visible,
.gallery button:focus-visible,
.results-grid button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .photo-thumb:hover,
  .gallery button:hover,
  .results-grid button:hover {
    transform: scale(1.03);
  }

  .wide-media button:hover {
    transform: scale(1.02);
  }
}