/* ═══════════════════════════════════════
   style.css — Base, nav, hero, about page
   ═══════════════════════════════════════ */

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

:root {
  --bg:     #ffffff;
  --fg:     #111111;
  --muted:  #888888;
  --accent: #2c5f8a;
  --border: #e8e8e8;
  --serif:  'DM Serif Display', Georgia, serif;
  --sans:   'Inter', system-ui, sans-serif;
}

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: #4e84b13b; }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

nav.visible {
  opacity: 1;
  pointer-events: all;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.01em;
  cursor: pointer;
  background: none;
  border: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: opacity 0.2s;
}

.nav-links a:hover { opacity: 0.5; }

/* ── CLOSE BUTTON ── */
.close-btn {
  position: fixed;
  top: 1.25rem;
  right: clamp(1.5rem, 5vw, 4rem);
  z-index: 300;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 500;
  font-family: var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: none;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s;
}

.close-btn:hover { color: var(--fg); }
.close-btn.visible { display: flex; }

/* ── HERO ── */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

#hero-bg {
  position: absolute;
  inset: 0;
  background: #b8b8b8 url('../assets/bgimage2.png') center/cover no-repeat;
}

.hero-phrase {
  position: absolute;
  bottom: clamp(2.5rem, 7vw, 5rem);
  left: clamp(1.5rem, 5vw, 4rem);
  color: #fff;
  font-size: clamp(1.2rem, 2vw, 1.15rem);
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1.6;
  max-width: 460px;
}

.name-link {
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.name-link:hover { opacity: 0.7; }


/* ── ABOUT PAGE ── */
#about-page {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 100;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

#about-page.open {
  opacity: 1;
  pointer-events: all;
}

.about-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 9rem clamp(1.5rem, 5vw, 4rem) 6rem;
}

.expand-inner .panel-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--fg);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}

.expand-inner .panel-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}


/* ── BIO LINES ── */
.bio {
  display: flex;
  flex-direction: column;
}

.bio-line {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  font-weight: 300;
  color: var(--fg);
  line-height: 1.8;
}

.keyword {
  font-weight: 300;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent);
  cursor: pointer;
  transition: color 0.2s;
}

.keyword:hover { color: var(--accent); }

a.keyword {
  color: inherit;
  text-decoration-color: var(--fg);
}
a.keyword:hover { color: var(--fg); }

@media (max-width: 600px) {
  .nav-links { display: none; }
}

/* ── CV DOWNLOAD ──────────────────────── */
.cv-download {
  display: none;
  position: fixed;
  left: 0.2rem;
  bottom: 35%;
  transform: rotate(-90deg) translateX(50%);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--muted);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
  z-index: 150;
}

.cv-download.visible { display: block; }
.cv-download:hover { color: var(--accent); border-color: var(--accent); }

@media (max-width: 600px) {
  /* rotated vertical CV link used to run straight through the bio text;
     turn it into a small corner pill instead */
  .cv-download {
    left: auto;
    right: 1rem;
    bottom: 1rem;
    transform: none;
    background: var(--bg);
    padding: 0.5rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  }
}
