/* =========================================================================
   Shared site shell — used by index.html and photos.html.

   Only the pieces that appear on every page live here: colour variables,
   the reset, the fixed nav, the section-label comment style, the dot-field
   canvas, and the footer. Page-specific sections (hero terminal, about rail,
   experience, wayside, skills, photo gallery) stay with their own page.
   ========================================================================= */

:root {
  --bg: #0a0d0a;
  --accent: #4AE28C;
  --accent-dim: #2f9d63;
  --orange: #F2994A;
  --orange-dim: #A8642A;
  --text-primary: #E4E6E1;
  --text-secondary: #8a8f89;
  --text-dim: #4a4f47;
  --cursor: #5a5f58;
  --track: #1c211d;
  --track-orange: #241d16;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: var(--bg);
  font-family: 'JetBrains Mono', monospace;
  position: relative;
}
canvas#dots {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

/* ---------- section label ---------- */
.section-label {
  position: relative;
  z-index: 2;
  scroll-margin-top: 95px;
  color: var(--text-secondary);
  font-size: 13px;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 56px;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.section-label.visible { opacity: 1; }
.label-orange { color: var(--orange-dim); }

/* ---------- nav ---------- */
#siteNav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 56px;
  background: rgba(10, 13, 10, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--track);
}
.logo {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.35s ease;
}
.logo:hover { color: var(--accent); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  display: inline-block;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  cursor: pointer;
  padding: 2px 1px;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size 0.35s ease, color 0.35s ease;
}
.nav-links a:hover { color: var(--accent); background-size: 100% 1px; }
.nav-links a.current { color: var(--accent); background-size: 100% 1px; }
.resume-btn {
  display: inline-block;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  padding: 6px 14px;
  font-size: 12px;
  text-decoration: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.35s ease, color 0.35s ease;
}
.resume-btn:hover { background: var(--accent); color: var(--bg); }

/* ---------- footer ---------- */
footer.site-footer {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 56px 4rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
footer.site-footer.visible { opacity: 1; transform: translateY(0); }
.foot-heading { color: var(--text-primary); font-size: 32px; font-weight: 500; margin-bottom: 14px; }
.foot-heading .accent { color: var(--accent); }
.foot-sub { color: var(--text-secondary); font-size: 15px; line-height: 1.8; max-width: 480px; margin-bottom: 40px; }
.foot-email {
  display: inline-block;
  color: var(--text-primary);
  font-size: 22px;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 44px;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: background-size 0.35s ease, color 0.35s ease;
  padding-bottom: 4px;
}
.foot-email:hover { color: var(--accent); background-size: 100% 2px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 28px; margin-bottom: 56px; }
.foot-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size 0.3s ease, color 0.3s ease;
  padding-bottom: 2px;
}
.foot-link:hover { color: var(--accent); background-size: 100% 1px; }
.foot-link.resume {
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  padding: 6px 14px;
  border-radius: 3px;
  background-size: 0 0;
}
.foot-link.resume:hover { background: var(--accent); color: var(--bg); }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--track);
}
.foot-copy, .foot-tag { color: var(--text-dim); font-size: 12px; }

@media (max-width: 860px) {
  #siteNav { padding: 16px 24px; }
  .nav-links { gap: 18px; }
  .section-label { padding: 0 24px; }
  footer.site-footer { padding: 0 24px 3rem; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  /* the full name plus the resume button overflows a phone-width nav,
     so tighten both and let the name ellipsis rather than push the page */
  #siteNav { padding: 14px 18px; gap: 12px; }
  .logo {
    font-size: 12.5px;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .resume-btn { flex-shrink: 0; padding: 5px 10px; font-size: 11px; }
  /* the address is one unbreakable token wider than a phone viewport */
  .foot-email { font-size: 16px; max-width: 100%; word-break: break-all; }
  .foot-heading { font-size: 26px; }
}
