/* ============================================================
   HOLOCAUST MEMORY — SITE STYLES
   Design: Light Ash Grey (warm ash bg / charcoal text / muted sage accent)
   ============================================================ */

/* ---- DESIGN TOKENS ---------------------------------------- */
:root {
  --bg:               #E8E8E5;
  --surface:          #F2F2EF;
  --text:             #4A4A47;
  --heading:          #2A2A28;
  --accent:           #6B7A6E;
  --accent-hover:     #525F55;
  --accent-soft:      #DDE2DE;
  --light:            #EFEFEC;
  --border:           #C9C9C4;
  --placeholder-bg:   #D9D9D5;
  --placeholder-text: #8F8F8B;

  --max-prose: 800px;
  --max-wide:  1100px;
  --nav-h:     72px;

  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ---- RESET ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  padding-top: var(--nav-h);
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
a:hover { opacity: 0.75; }

/* ---- TYPOGRAPHY ------------------------------------------- */
h1, h2, h3, h4 {
  color: var(--heading);
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.875rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; margin-top: 1.5rem; }
h4 { font-size: 1rem; font-weight: 600; color: var(--text); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.35rem; }

/* ---- LAYOUT CONTAINERS ------------------------------------ */
.container {
  width: 100%;
  max-width: var(--max-prose);
  margin: 0 auto;
  padding: 0 24px;
}
.container-wide {
  width: 100%;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- PAGE BODY -------------------------------------------- */
.page-body {
  padding: 64px 0 96px;
}
.page-title {
  margin-bottom: 48px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

/* ---- SECTION DIVIDER -------------------------------------- */
.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 56px 0;
}

/* ---- PROJECT SECTIONS (About This Project page) ----------- */
.project-section { margin-bottom: 8px; }
.project-section h3 { margin-top: 1.75rem; }
.project-section h3:first-of-type { margin-top: 1.25rem; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav-inner {
  width: 100%;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-brand-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.nav-brand-sub {
  font-size: 0.75rem;
  color: var(--text);
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-links a {
  display: block;
  padding: 6px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: var(--accent-soft);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--heading);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--light);
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 80px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.footer-left { text-align: left; }
.footer-centre { text-align: center; }
.footer-right { text-align: right; }
.footer-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--placeholder-text);
  margin-bottom: 4px;
}
.footer-email {
  font-size: 0.875rem;
  color: var(--text);
  text-decoration: none;
}
.footer-email:hover { color: var(--accent); }
.footer-copy {
  font-size: 0.8rem;
  color: var(--placeholder-text);
}
.footer-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.875rem;
  transition: color 0.15s;
}
.footer-linkedin:hover { color: var(--accent); }
.footer-linkedin svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s, transform 0.1s;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  opacity: 1;
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff;
  opacity: 1;
}
.btn:active { transform: scale(0.98); }

/* ============================================================
   QUOTE BLOCK
   ============================================================ */
.quote-block {
  border-left: 3px solid var(--accent);
  padding: 12px 0 12px 20px;
  margin: 24px 0;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--heading);
  line-height: 1.6;
}
.quote-attribution {
  display: block;
  margin-top: 6px;
  font-size: 0.875rem;
  color: var(--text);
  font-style: normal;
}

/* ============================================================
   IMAGE PLACEHOLDER (for missing images)
   ============================================================ */
.img-placeholder {
  background: var(--placeholder-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--placeholder-text);
  font-size: 0.8rem;
  text-align: center;
  padding: 12px;
  border-radius: 4px;
  min-height: 200px;
}

/* ============================================================
   HOME PAGE
   ============================================================ */
.home-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 72px 24px 80px;
  gap: 0;
}

.profile-photo-wrap {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 28px;
  border: 3px solid var(--border);
  flex-shrink: 0;
}
.profile-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-photo-wrap .img-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 0;
  font-size: 0.75rem;
}

.home-name {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.home-quote {
  max-width: 520px;
  text-align: left;
  margin: 0 auto 32px;
}

.home-intro-heading {
  font-size: 1rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 4px;
}
.home-intro-sub {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 28px;
}

.home-cta { margin-bottom: 36px; }

.home-bio {
  max-width: 480px;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.75;
}

/* ============================================================
   RESPONSIVE — TABLET (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {
  /* No tablet-specific overrides currently — kept for parity with parent site */
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 640px)
   ============================================================ */
@media (max-width: 640px) {
  body { padding-top: var(--nav-h); }

  /* Nav */
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px 16px 16px;
    gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 10px 12px;
    font-size: 0.8125rem;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }
  .footer-left, .footer-right { text-align: center; }
  .footer-linkedin { justify-content: center; }
}
