:root {
  /* Layout Dimensions */
  --cutout-gap: 20px;
  --nav-width: 260px;
  --border-radius: 4px;
  
  /* Typography Colors */
  --text-main: #000000;
  --text-muted: #333333;
  --accent-color: #00e5ff;
  --muted-accent: #00a3b5;
  
  /* Panel & Structural Styling */
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: #000000;
  --glass-shadow: 8px 8px 0px #000000;
  --glass-blur: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Cousine', 'Courier Prime', monospace;
  color: var(--text-main);
  line-height: 1.6;
  background-color: #f2f2f2;
  background-image: linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  background-attachment: fixed;
  display: flex;
  min-height: 100vh;
  padding: var(--cutout-gap);
}

nav {
  position: fixed;
  top: var(--cutout-gap);
  left: var(--cutout-gap);
  bottom: var(--cutout-gap);
  width: var(--nav-width);
  background: var(--glass-bg);
  border: 2px solid var(--glass-border);
  border-radius: var(--border-radius);
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2.5rem 1.5rem;
  z-index: 10;
}

nav h2 {
  margin: 0;
  font-family: 'Permanent Marker', cursive;
  color: var(--text-main);
  font-size: 1.8rem;
  letter-spacing: 1px;
  font-weight: 400;
  text-align: center;
}

nav h3 {
  margin: 0;
  font-family: system-ui;
  font-family:'Permanent Marker', cursive;
  font-size: .9rem;
  letter-spacing: 1px;
  font-weight: bold;
  margin-top: -2rem;
  text-align: center;
}

nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  display: block;
  padding: 8px 14px;
  border-radius: var(--border-radius);
  border: 1px solid transparent;
}

nav a:hover {
  color: var(--text-main);
  background-color: #e6e6e6;
  border-color: #000000;
  transform: translateX(3px);
}

nav a.active {
  color: #000000;
  background-color: var(--accent-color);
  border: 1px solid #000000;
  font-weight: 700;
  box-shadow: 3px 3px 0px #000000;
  position: relative;
}

main {
  margin-left: calc(var(--nav-width) + var(--cutout-gap));
  width: calc(100% - (var(--nav-width) + var(--cutout-gap)));
  background: var(--glass-bg);
  border: 2px solid var(--glass-border);
  border-radius: var(--border-radius);
  box-shadow: var(--glass-shadow);
}

section {
  display: flex;
  flex-direction: column;
  justify-content: start;
  padding: 1rem 2.5rem 2rem;
  border-bottom: 2px solid #000000;
  margin: 0 auto;
  max-width: 126ch;
}

hr {
  border: none;
  height: 2px;
  background-color: #000000;
  margin: 2rem 0;
}

.panel {
  background: #fafafa;
  border: 2px solid #000000;
  border-radius: var(--border-radius);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-column-gap: 64px;
  margin: 2rem 0;
  box-shadow: 4px 4px 0px #000000;
}

.panel h2 { 
  font-family: 'Permanent Marker', cursive;
  margin-top: 0; padding-top: 0; }
.panel h3 { font-size: 1.3em; 
  font-family: 'Permanent Marker', cursive;
}

.panel img {
  max-width: 90%;
  background-color: white;
  border: 2px solid #000000;
}

.panel img:hover {
  box-shadow: 4px 4px 0px #000000;
}

.panel .span { grid-column: 1 / -1; }

.span img {
  margin: 2rem auto 3rem;
  display: block;
  padding: 14px;
}

section:last-of-type { border-bottom: none; }

section img {
  border-radius: var(--border-radius);
  box-shadow: 4px 4px 0px #000000;
  display: block;
}

h1 {
  font-family: system-ui, 'Permanent Marker', cursive;
  font-family: 'Permanent Marker', cursive;

  font-size: 2.75rem;
  margin-bottom: 1rem;
  color: var(--text-main);
  font-weight: 400;
}

h2 { font-family: system-ui, 'Permanent Marker', cursive; 
/* font-family: 'Permanent Marker', cursive; */
font-size: 1.75rem; letter-spacing: 1px; }

p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-weight: 400;
}

#about-me h1 {
  text-align: center;
  color: var(--text-main);
  font-size: 3.5rem;
  font-weight: bold;
}

#about-me h2 {
  color: var(--text-main);
  font-family: system-ui, 'Permanent Marker', cursive;
  font-size: 2rem;
  text-align: center;
  font-weight: 400;
  line-height: 1.3;
  margin-top: -.75rem;
  font-style: italic;
}

#testimonials h2 {
  font-style: italic;
  font-weight: normal;
  letter-spacing: 0px;
  font-family: system-ui, 'Permanent Marker', cursive;
}

#contact a {
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 18px 24px;
  border-radius: var(--border-radius);
  border: 2px solid #000000;
  color: #000000;
  background-color: var(--accent-color);
  font-weight: 700;
  box-shadow: 4px 4px 0px #000000;
  display: inline-block;
  /* font-family: system-ui, 'Permanent Marker', cursive; */

}

#contact a:hover {
  background-color: #ffffff;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px #000000;
}

dl, dd, dt { display: inline; }
dd { margin-inline-start: 5px; }
dd::after { content: "\A"; white-space: pre; }
dt { font-weight: bold; margin: 0; }

@media (max-width: 768px) {
  body { padding: 12px; flex-direction: column; }
  nav { position: relative; top: auto; left: auto; width: 100%; margin-bottom: 12px; height: auto; bottom: auto; padding: 1.5rem 1rem; }
  main { margin-left: 0; width: 100%; padding: 2rem 1.5rem; }
  section { min-height: auto; padding: 1rem 0rem 2rem; }
  section img { margin: 0 auto; }
  .panel { background: none; border: 0; padding: 0; display: grid; grid-template-columns: 1fr; margin: 2rem 0; box-shadow: none; }
  .panel img { max-width: 100%; }
  #contact a { display: block; text-align: center; }
  #about-me h1 { font-size: 2.75rem; }
  #about-me h2 { font-size: 1.75rem; }
}

/* Lightbox backdrop overlay */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  cursor: zoom-out;
}

.lightbox-overlay.active { opacity: 1; visibility: visible; }

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 0px;
  border: 2px solid #000000;
  box-shadow: 12px 12px 0px #000000;
  transform: scale(0.98);
  transition: transform 0.2s ease;
  cursor: default;
}

.lightbox-overlay.active img { transform: scale(1); }

img.lb { cursor: zoom-in; }

.theme-switcher label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.theme-switcher select {
  background-color: #ffffff;
  color: #111111;
  border: 2px solid #111111;
  padding: 0.5rem;
  font-weight: 700;
  cursor: pointer;
}