/* styles.css */
/* ——— Theme ——— */
:root{
  --bg: #f7f7f5;         /* light background */
  --card: #ffffff;       /* white cards */
  --ink: #111111;        /* black-ish text */
  --muted: #606060;      /* muted copy */
  --line: rgba(0,0,0,.08);
  --accent: #cfd8dc;     /* very light accent (no heavy colors) */
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin: 0;
  font-family: "Computer Modern Serif", "Computer Modern", serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Containers & layout */
.container{ width: min(1100px, 92vw); margin: 0 auto; }
.section{ padding: 56px 0; }
.grid-2{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.row{ display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* Header / Nav */
.site-header{
  position: fixed; top: 0; z-index: 1000;
  background: #F7F7F5AB; /* same as rgba(247,247,245,0.67) */
  border-bottom: 1px solid var(--line);
}

.nav{ display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 12px 0; }
.brand{ font-weight: 700; text-decoration: none; color: var(--ink); font-size: 20px; letter-spacing: .5px; }
.menu{ display: flex; gap: 18px; justify-content: center; }
.menu a{ color: var(--ink); text-decoration: none; padding: 6px 10px; border-radius: 10px; }
.menu a:hover{ background: var(--accent); }

.burger{ display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 12px; background: transparent; cursor: pointer; }
.burger span{ display: block; width: 20px; height: 2px; background: var(--ink); margin: 5px auto; }
.mobile-menu{ display: none; flex-direction: column; padding: 8px 16px 16px; border-bottom: 1px solid var(--line); }
.mobile-menu a{ padding: 10px 6px; color: var(--ink); text-decoration: none; border-radius: 10px; }
.mobile-menu a:hover{ background: var(--accent); }

/* Hero */
.hero{ padding: 64px 0 28px; }
.hero-grid{ display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: center; }
.hero-text h1{ font-size: clamp(28px, 4vw, 44px); margin: 0 0 6px; }
.subtitle{ margin: 0 0 12px; color: var(--muted); font-size: 16px; }
.tagline{ margin: 0 0 18px; }
.cta-row{ display: flex; gap: 10px; }
.hero-photo{ margin: 0; justify-self: end; }
.hero-photo img{ width: 220px; height: 220px; border-radius: 999px; object-fit: cover; background: var(--accent); border: 1px solid var(--line); box-shadow: 0 4px 30px rgba(0,0,0,.05); }

/* Cards / Buttons */
.card{ background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px 18px; box-shadow: 0 8px 30px rgba(0,0,0,.03); }
.link-card{ display: grid; grid-template-columns: 1fr auto; align-items: center; text-decoration: none; color: inherit; }
.link-card h3{ margin: 0 0 6px; }
.link-card .ext{ font-size: 22px; line-height: 1; }

.btn{ display: inline-block; padding: 10px 14px; border-radius: 12px; background: var(--ink); color: #fff; text-decoration: none; border: 1px solid var(--ink); }
.btn:hover{ opacity: .92; }
.btn.ghost{ background: transparent; color: var(--ink); }
.btn.small{ padding: 8px 12px; font-size: 14px; }

/* Footer */
.site-footer{ padding: 22px 0 40px; border-top: 1px solid var(--line); margin-top: 20px; }
.site-footer p{ margin: 0; color: var(--muted); }

/* Responsive */
@media (max-width: 860px){
  .grid-2{ grid-template-columns: 1fr; }
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-photo{ justify-self: start; }
  .menu{ display: none; }
  .burger{ display: inline-block; }
}

/* Print tweaks for CV open */
@media print{
  .site-header, .site-footer, .btn, .burger, .mobile-menu{ display: none !important; }
  .card{ box-shadow: none; }
}


.brand-photo {
  width: 67px;
  height: 67px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.hero-grid.single {
  display: block;
}

.hero-photo {
  display: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.site-header{
  position: fixed;
  top: 0;
  left: 0;          /* add */
  right: 0;         /* add */
  z-index: 1000;
  background: rgba(247,247,245,0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.container{
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 0 16px;   /* add */
}

:root{
  --bg: #f7f7f5;
  --card: #ffffff;
  --ink: #111111;
  --muted: #606060;
  --line: rgba(0,0,0,.08);
  --accent: #cfd8dc;
  --header-h: 64px;     /* add */
}

body{
  margin: 0;
  font-family: "Computer Modern Serif", "Computer Modern", serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: var(--header-h);   /* add */
}

.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

:root{
  /* …existing vars… */
  --header-h: 72px;   /* controls total header height */
}

.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(247,247,245,0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.nav{
  display: flex;
  align-items: center;            /* vertical centering */
  justify-content: space-between; /* brand left, menu center block, burger right */
  gap: 16px;
  height: var(--header-h);        /* fixed header height */
  padding: 0;                     /* no vertical padding so centering is exact */
}

.brand{ display: flex; align-items: center; }  /* keep the anchor’s box centered */
.brand-photo{
  width: 48px;          /* use 48 for tighter header; change if you like */
  height: 48px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--line);
  display: block;       /* avoids baseline offset */
}

.menu{ display: flex; gap: 18px; justify-content: center; }
.menu a{
  display: flex;              /* centers link text vertically */
  align-items: center;
  padding: 8px 12px;          /* symmetric top/bottom */
  color: var(--ink);
  text-decoration: none;
  border-radius: 10px;
}
.menu a:hover{ background: var(--accent); }

body{
  /* …your existing body styles… */
  padding-top: calc(var(--header-h) + 1px); /* +1px for the header border */
}

.container{
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 0 16px;    /* safe side padding */
}

/* Native smooth scroll and offset by the header height */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

/* Extra safety: sections with ids also respect header height */
.section {
  scroll-margin-top: var(--header-h);
}

/* --- Variables --- */
:root{
  --bg:#f7f7f5; --card:#ffffff; --ink:#111111; --muted:#606060;
  --line:rgba(0,0,0,.08); --accent:#cfd8dc;
  --header-h:72px;                  /* single source of truth */
}

/* Base */
html,body{height:100%;}
html{ scroll-behavior:smooth; }     /* optional */
body{
  margin:0;
  font-family:"Computer Modern Serif","Computer Modern",serif;
  background:var(--bg); color:var(--ink); line-height:1.55;
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
  padding-top:calc(var(--header-h) + 1px); /* room for fixed header + border */
}

/* Layout container */
.container{ width:min(1100px,92vw); margin:0 auto; padding:0 16px; }

/* Fixed header pinned to edges */
.site-header{
  position:fixed; top:0; left:0; right:0; z-index:1000;
  background:rgba(247,247,245,0.9); backdrop-filter:blur(6px);
  border-bottom:1px solid var(--line);
}

/* Single nav rule, vertically centered with fixed height */
.nav{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; height:var(--header-h); padding:0;
}

.brand{ display:flex; align-items:center; text-decoration:none; color:var(--ink); }
.brand-photo{ width:48px; height:48px; border-radius:999px; object-fit:cover; border:1px solid var(--line); display:block; }

.menu{ display:flex; gap:18px; justify-content:center; }
.menu a{ display:flex; align-items:center; padding:8px 12px; color:var(--ink); text-decoration:none; border-radius:10px; }
.menu a:hover{ background:var(--accent); }

/* (your remaining styles unchanged) */

/* Default (desktop) */
.menu { display: flex; gap: 18px; justify-content: center; }
.burger, .mobile-menu { display: none; }

/* Mobile */
@media (max-width: 860px) {
  .menu { display: none; }        /* hide desktop menu */
  .burger { display: inline-flex; align-items: center; justify-content: center; }
  .mobile-menu {
    display: none;                /* hidden until toggled by JS */
    flex-direction: column;
    padding: 8px 16px 16px;
    border-bottom: 1px solid var(--line);
    background: rgba(247,247,245,0.95);
  }
  .mobile-menu a {
    padding: 10px 6px;
    color: var(--ink);
    text-decoration: none;
    border-radius: 10px;
  }
  .mobile-menu a:hover { background: var(--accent); }
}

.brand {
  display: flex;
  align-items: center;     /* vertically centers photo */
  height: var(--header-h); /* matches header height */
}

.brand-photo {
  width: 50px;             /* pick a size that matches line-height of nav */
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 0 16px;
}

.quote-block {
  max-width: 600px;     /* or any width you like */
  margin: 0 auto;       /* centers the whole block */
}

.tagline {
  text-align: left;     /* quote aligned left inside the block */
}

.quote-author {
  text-align: right;    /* author aligned right inside the same block */
  margin-top: -20px;      /* small spacing */
}

/* Center the whole block; align lines differently inside */
.quote-block {
  width: min(680px, 100%);
  margin: 0 auto;           /* centers the block within the hero */
}

/* Quote left */
.quote-block .tagline {
  text-align: left;
  margin: 0;                /* tighten spacing if you like */
}

/* Author right */
.quote-block .quote-author {
  text-align: right;
  margin-top: 0px;
}

.hero-grid {
  grid-template-columns: 1fr;   /* single column */
}

.hero-text {
  justify-self: center;         /* centers the inner content in the grid */
  width: 100%;
}

:root{
  --hero-top-gap: 28px; /* extra space above the H1 */
}

.hero{
  padding: calc(var(--header-h) + var(--hero-top-gap));
}

/* Header / Nav */
.site-header{
  position: fixed; top: 0; z-index: 1000;
  background: #F7F7F5AB; /* same as rgba(247,247,245,0.67) */
  border-bottom: 1px solid var(--line);
}

.site-footer {
  padding: 22px 0 22px;   /* <-- top = 22px, bottom = 40px */
  border-top: 1px solid var(--line);
  margin-top: 20px;       /* <-- space between footer and content above */
}

.hero-text h1 {
  text-align: center;
}
