/* ============================================================
   Adam Egelman — adam.social  (Milestone 1)
   Plain HTML + CSS. No build step.
   Tweak the values in :root to adjust the whole site at once.
   ============================================================ */

:root {
  --beige:        #e9d5c0;   /* mid backdrop tone, sampled from the photo */
  --beige-top:    #efdcc9;   /* lighter — matches the photo's top */
  --beige-bottom: #e3ccb3;   /* warmer — matches the photo's bottom */
  --ink:          #111111;   /* near-black text */
  --font:  "Host Grotesk", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--beige);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

/* -------- Top-right links -------- */
.nav {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
  padding: 24px 34px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--ink);
  transition: opacity 0.15s ease;
}
.nav__links a:hover { opacity: 0.6; }
.nav__links svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  display: block;
}
.nav__brand {
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
}
.nav__links a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
  border-radius: 4px;
}

/* -------- Hero: photo + content -------- */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--beige-top), var(--beige-bottom));
}
.hero__photo {
  display: block;
  width: 100%;
  height: 100%;
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  display: block;
}
.hero__content {
  align-self: center;
  padding: 48px 64px 48px 56px;
  max-width: 600px;
}

/* -------- Type -------- */
.name {
  margin: 0;
  font-weight: 500;
  font-size: clamp(2.4rem, 4.6vw, 3.125rem);  /* up to 50px, like the design */
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.subtitle {
  margin: 14px 0 0;
  font-weight: 400;
  font-size: clamp(1rem, 1.6vw, 1.25rem);      /* up to 20px */
  line-height: 1.35;
}
.resume {
  display: inline-block;
  margin: 26px 0 34px;
  font-weight: 700;
  font-size: clamp(1.3rem, 2.4vw, 1.875rem);   /* up to 30px */
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}
.resume:hover { opacity: 0.65; }

/* -------- Details table -------- */
.details { margin: 0; }
.details__row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 6px 16px;
  padding: 11px 0;
  align-items: start;
}
.details dt {
  font-weight: 700;
  font-size: 1.1875rem;   /* 19px */
}
.details dd {
  margin: 0;
  font-weight: 400;
  font-size: 1.375rem;    /* 22px */
  line-height: 1.3;
}

/* -------- Mobile -------- */
@media (max-width: 860px) {
  .nav {
    position: static;
    display: flex;
    justify-content: flex-end;
    background: var(--beige);
    padding: 16px 20px 6px;
  }
  .nav__links { gap: 18px; }
  .nav__links svg { width: 22px; height: 22px; }
  .nav__brand { font-size: 25px; }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero__photo {
    width: 100%;
    height: 46vh;
    min-height: 300px;
  }
  .hero__photo img {
    object-position: center 22%;
  }
  .hero__content {
    align-self: auto;
    padding: 28px 24px 52px;
    max-width: none;
  }

  .details__row { grid-template-columns: 104px 1fr; }
  .details dt { font-size: 1rem; }
  .details dd { font-size: 1.05rem; }
}
