/* Base reset */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Noto Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.45;
  color: #0a0a0a;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Prevent horizontal shift when a vertical scrollbar appears */
html { scrollbar-gutter: stable; }

/* Fluid scale variables: use a shared vw slope so title and lede scale together.
   Adjust --fluid-slope or multipliers to tune relative sizes. */
:root {
  --fluid-slope: 4vw;
  --site-title-min: 28px;
  --site-title-max: 48px;
  --lede-min: 20px;
  --lede-max: 24px;
  --lede-mult: 0.9; /* lede slope = 0.9 * fluid-slope for proportional scaling */
}

/* Containers
   Use an explicit max-width and consistent horizontal padding so
   page content (including the header) lines up identically across pages.
*/
.container {
  max-width: 1120px;     /* fixed maximum content width */
  width: 100%;
  margin-inline: auto;   /* center within viewport */
  padding-inline: clamp(12px, 3.5vw, 28px); /* consistent inner gutter */
  box-sizing: border-box;
}

/* Header */
.site-header { padding-block: 36px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.site-title {
  margin: 0;
  font-weight: 600;
  font-family: "Noto Sans", sans-serif;
  font-size: clamp(var(--site-title-min), var(--fluid-slope), var(--site-title-max));
}

.site-title-link {
  color: inherit;
  text-decoration: none;
}

/* Hamburger */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 36px;
  height: 28px;
  background: none;
  border: none;
  padding: 0;
}
.menu-toggle span { display: block; height: 2px; width: 100%; background: #0a0a0a; }

/* Nav visibility */
.site-nav { display: none; }
.site-nav a {
  font-family: "Source Code Pro", monospace;
  text-decoration: none;
  color: #0a0a0a;
  margin-left: 28px;
  font-size: clamp(16px, 1.8vw, 20px); /* Match .email-link font size */
  visibility: visible; 
}

/* Main layout */
.content { display: grid; grid-template-columns: 1fr; gap: 28px; padding-block: 8px 64px; }

/* Text */
.lede {
  margin: 0 0 24px 0;
  font-family: "Noto Sans", sans-serif;
  font-weight: 400;
  letter-spacing: -0.2px;
  font-size: clamp(var(--lede-min), calc(var(--fluid-slope) * var(--lede-mult)), var(--lede-max));
}
.cta { margin: 0 0 32px 0; }

.email-link {
  font-family: "Source Code Pro", monospace;
  font-size: clamp(16px, 1.8vw, 20px); 
  color: #0a0a0a;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.email-link:hover {
  color: gray; /* Add gray hover interaction */
}

/* Image */
.hero-figure { margin: 0; }
.hero-figure img {
  display: block;
  width: 100%;
  max-width: 900px; /* allow larger display for higher-resolution hero images */
  margin-inline: auto; /* center when narrower than column */
  height: auto;
  border: 1px solid #e8e8e8;
  background: #f7f5f4;
}

/* Footer spacer */
.site-footer { height: 40px; }

/* Footer note: subtle, centered, and unobtrusive */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 18px;
  color: #666666;
  font-size: 0.9rem;
}
.site-footer .footer-note {
  display: inline-block;
  opacity: 0.9;
}

/* Hamburger menu overlay */
.menu-overlay {
  display: flex;
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0; /* Start fully transparent */
  visibility: hidden; /* Hidden by default */
  transition: opacity 0.3s ease, visibility 0.5s ease; /* Add transition */
}

.menu-overlay.active {
  opacity: 1; /* Fully visible */
  visibility: visible; /* Make it visible */
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.overlay-nav {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: center;
}
.overlay-nav a {
  font-size: 2.2rem;
  font-family: "Source Code Pro", monospace;
  color: #0a0a0a;
  text-decoration: none;
  font-weight: 600;
  transition: text-decoration 0.2s;
}
.overlay-nav a:hover {
  color: #0a0a0a;              /* Do not change color */
  text-decoration: underline;  /* Add underline on hover */
}
.close-overlay {
  position: absolute;
  top: 32px;
  right: 32px;
  background: none;
  border: none;
  font-size: 3rem;
  color: #0a0a0a;
  cursor: pointer;
  z-index: 1100;
}

/* Highlight the current page link */
.site-nav a[aria-current="page"],
.overlay-nav a[aria-current="page"] {
  color: gray;
  pointer-events: none; /* Disable clicking on the current page link */
  text-decoration: none; /* Remove underline for the current state */
}

/* Hover interaction for other links */
.site-nav a:hover,
.overlay-nav a:hover {
  text-decoration: underline; /* Keep underline for hover */
}

/* Only show overlay on mobile */
@media (min-width: 850px) {
  .menu-overlay { display: none !important; }
  .site-nav { display: inline-flex; gap: 28px; visibility: inline-flex; }
  .menu-toggle { display: none; }

  .content {
    /* Make the image column slightly wider so the hero can render larger */
    grid-template-columns: 1fr 1.2fr;
    gap: clamp(28px, 5vw, 56px);
    align-items: start;
  }

  .text-block { min-width: 0; }
  .image-block { min-width: 0; }

  .lede { font-size: clamp(var(--lede-min), calc(var(--fluid-slope) * var(--lede-mult)), var(--lede-max)); }
}

.lede a {
  font-family: "Noto Sans", monospace;
  font-size: clamp(var(--lede-min), calc(var(--fluid-slope) * var(--lede-mult)), var(--lede-max));
  color: #0a0a0a;
  text-decoration: none;
  text-underline-offset: 6px;
  font-weight: 400;
}

.lede a:hover {
  color: gray; /* Add gray hover interaction */
}

