/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Reddit+Mono:ital,wght@0,200..900;1,200..900&family=Reddit+Sans:ital,wght@0,200..900;1,200..900&display=swap');

/* Base Styles & Strict Light Theme */
:root {
  --bg-color: #ffffff;
  --text-color: #111111;
  --accent-color: #D05A5A; /* Fallback shade until JS session color initializes */
  --font-sans: 'Reddit Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'Reddit Mono', monospace;
}

html, body {
  background-color: var(--bg-color) !important;
  color: var(--text-color);
  font-family: var(--font-sans);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Apply magnification only on desktop (to avoid issues on mobile) */
@media (min-width: 768px) {
  html, body {
    zoom: 110%
  }
}

/* Text Selection Highlight */
::selection {
  background-color: var(--accent-color);
  color: #ffffff;
}

::-moz-selection {
  background-color: var(--accent-color);
  color: #ffffff;
}

/* Default Links & Broken Line Underlines */
a {
  color: var(--text-color);
  text-decoration: underline dashed var(--accent-color);
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
  transition: color 0.3s ease;
}

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

/* Typography & X-Height Matching */
p, li {
  font-size: 1.05rem;
  line-height: 1.7;
}

/* JetBrains Mono scaled to visually align x-height with Reddit Sans */
code, pre {
  font-family: var(--font-mono);
  font-size: 1em;
  background-color: #f6f8fa;
  border-radius: 2.5px;
}

pre {
  padding: 1rem;
  overflow-x: auto;
}

code {
  padding: 0.2em 0.4em;
}

/* Centralized Header Navigation */
.site-header {
  padding: 2rem 1rem 1rem 1rem;
  display: flex;
  justify-content: center;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2.5rem;
}

/* Navigation Links & Dropdown Trigger */
.nav-menu a, .dropbtn {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 550;
  color: var(--text-color);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.3s ease;
}

/* .nav-menu a:hover, .dropdown:hover .dropbtn {
  color: var(--accent-color);
}

.dropdown:hover .dropdown-content {
  display: block;
} */

/* Remove default tap outline on mobile while maintaining colour shift on hover and focus */
.dropbtn:focus {
  outline: none;
}

.nav-menu a:hover,
.dropdown:hover .dropbtn,
.dropdown:focus-within .dropbtn {
  color: var(--accent-color);
}

/* Keep dropdown visible on desktop hover OR mobile tap focus */
.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
  display: block;
}

/* Navigation Dropdown Menu */
.dropdown {
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem; /* Extends the hover target area down to the menu */
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffffff;
  min-width: 200px;
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #eeeeee;
  z-index: 1000;
  border-radius: 4px;
  padding: 0.5rem 0;
}

/* Dropdown Content Links */
.dropdown-content a {
  display: block;
  padding: 0.7rem 1.2rem;
  font-size: 1rem;
  color: var(--text-color);
  text-decoration: none;
  white-space: nowrap;
  text-align: center;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.dropdown-content a:hover {
  background-color: #f6f6f6;
  color: var(--accent-color);
}

/* Layout Containers */
.main-content {
  flex: 1;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  box-sizing: border-box;
}

/* Homepage Hero Centering */
.welcome-container {
  min-height: 60vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

#welcome-text {
  font-family: var(--font-sans);
  font-weight: 775;
  font-size: clamp(4.0rem, 12vw, 12.5rem);
  color: var(--accent-color);
  margin: 0;
  user-select: none;
  letter-spacing: -0.04em;
}

/* Photography Image Sizing (Landscape width matches portrait width) */
.project-images {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.project-images img {
  max-width: 100%;
  max-height: min(760px, calc(100vw - 3rem)); /* Ensures that images are rendered in same size, on desktop and mobile */
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Footer Styling */
.site-footer {
  padding: 2rem 1rem;
  text-align: center;
}

.site-footer p {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: #777777;
  margin: 0;
}

/* Tight line-height for all section headings */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.08;
  letter-spacing: -0.01em;
}