@font-face {
  font-family: "Minion Pro";
  src: url("fonts/Minion\ Pro\ Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Niveau Grotesk";
  src: url("fonts/Niveau\ Grotesk\ Light\ Small\ Caps.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-variant: small-caps;
}

@font-face {
  font-family: "Niveau Grotesk";
  src: url("fonts/Niveau\ Grotesk\ Regular\ Small\ Caps.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-variant: small-caps;
}

@font-face {
  font-family: "Niveau Grotesk";
  src: url("fonts/Niveau\ Grotesk\ Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

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

body {
  font-family: "Minion Pro", serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  color: #202020;
  background-color: #fdfdfa;
  padding: 50px;
  max-width: 1000px;
  margin: auto;
  padding-top: 50px;
}

:root{
  --page-max: 1000px;   /* page width cap for the hero */
  --gap: 2rem;          /* space between text and photo */
  --img-size: 340px;    /* base photo size cap */
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #fdfdfa;
}

header .container {
  max-width: 1000px;
  margin: 0 auto;
  /*padding: 1rem 2rem;*/
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Headings */
h1, h2 {
  font-weight: normal;
  margin-bottom: 0.5em;
}

h1 {
  font-size: 2.2em;
}

h2 {
  font-size: 1.5em;
  margin-top: 2em;
}

/* Nav */
.logo {
  font-weight: bold;
  color: #202020;
  font-family: "Minion Pro", serif;
  font-size: 1.5em;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 40px;
  margin: 20px 0;
}

nav li {
  display: inline;
  padding: 20px 0;
}

nav a {
  font-family: "Niveau Grotesk", sans-serif;
  font-size: 1.25em;
  font-variant: small-caps;
  font-weight: 300;
  text-decoration: none;
  color: #808080;
}

nav a:hover:not(.active) {
  color: #404040;
}

nav .active {
  color: #202020;
  pointer-events: none;
}

/* Sections */
section {
  margin-bottom: 2em;
}

  /* The “hero” block that starts ~halfway down */
  .hero-offset{
    /* Start partway down the viewport on larger screens */
    margin-top: clamp(16vh, 45vh, 52vh);
  }

  .hero{
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr var(--img-size);
    gap: var(--gap);
    align-items: center;
  }

  .intro h1{
    margin: 0 0 .5rem;
    font-size: clamp(2rem, 3vw + 1rem, 3rem);
    line-height: 1.1;
  }
  .intro p{
    margin: 0;
    font-size: 1.05rem;
    max-width: 60ch;
  }

  .portrait-wrap{
    display: grid;
    place-items: center;
  }
  .portrait{
    width: 100%;
    max-width: var(--img-size);
    aspect-ratio: 1/1;          /* keeps it square; remove if you want free aspect */
    object-fit: cover;           /* fills the frame */
    border-radius: 50%;          /* circle; change to .75rem for rounded square */
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
  }

  /* Mobile: stack and remove the big offset so users see content sooner */
  @media (max-width: 900px){
    .hero{
      grid-template-columns: 1fr;
      gap: 1.25rem;
      text-align: left;
    }
    .hero-offset{
      margin-top: 12vh;
    }
    .portrait{
      max-width: 220px;
    }
  }

/* Footer */
footer {
  text-align: center;
  font-size: 0.9em;
  color: #666;
  margin-top: 4em;
  border-top: 1px solid #ddd;
  padding-top: 1em;
}

.hero-offset{
  margin-top: clamp(6vh, 14vh, 18vh);
}

/* Force two columns: text left (fluid), image right (capped) */
.hero{
  display: grid;
  grid-template-columns: 1fr min(28vw, 360px);
  align-items: center;
  gap: 5rem;
}

/* Keep the portrait on the right and under control */
.portrait-wrap{ justify-self: end; }
.portrait{
  width: 100%;
  max-width: min(28vw, 360px);
  max-height: 60vh;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
}

/* Slightly smaller hero heading */
.intro h1{
  font-size: clamp(1.8rem, 2.5vw + 1rem, 2.6rem);
  line-height: 1.15;
}

/* Mobile: stack, center image, reduce top offset */
@media (max-width: 900px){
  .hero{ grid-template-columns: 1fr; gap: 1.25rem; }
  .portrait-wrap{ justify-self: center; }
  .portrait{ max-width: 220px; }
  .hero-offset{ margin-top: 10vh; }
}
