/* ---------------------------------------------------------------------
   Ethan Fitzpatrick — portfolio
   Minimalist, restrained palette drawn from the header photograph
   (warm stone/rust accent against a soft off-white), one typeface
   family throughout, generous whitespace.
--------------------------------------------------------------------- */

:root {
  --bg: #faf9f6;
  --text: #1c1c1a;
  --text-muted: #6b6a63;
  --accent: #9c5233;
  --border: #e6e4dd;
  --font: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* -------------------- Hero (home page only) -------------------- */

.hero {
  position: relative;
  height: 88vh;
  min-height: 480px;
  max-height: 760px;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.12) 20%, rgba(0,0,0,0) 42%),
    linear-gradient(0deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.18) 26%, rgba(0,0,0,0) 50%);
}

.hero-nav {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 32px 40px;
  z-index: 2;
}

.hero-nav a {
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: 36px;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.hero-nav a:hover,
.hero-nav a.active {
  border-bottom-color: #fff;
  text-decoration: none;
}

.hero-name {
  position: absolute;
  left: 260px;
  bottom: 200px;
  z-index: 2;
  margin: 0;
  color: #fff;
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.hero-tags {
  position: absolute;
  left: 265px;
  bottom: 160px;
  z-index: 2;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-tag {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  background: rgba(156, 82, 51, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 14px;
  border-radius: 4px;
}

/* -------------------- Simple nav (inner pages) -------------------- */

.site-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 32px 40px;
  border-bottom: 1px solid var(--border);
}

.site-nav a {
  color: var(--text);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: 36px;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.site-nav a:hover,
.site-nav a.active {
  border-bottom-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.page-projects .site-nav {
  background: rgba(250, 249, 246, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-bottom-color: var(--border);
}

/* -------------------- Page content -------------------- */

.content {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 32px 120px;
}

.content h1 {
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 28px;
}

.content h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 18px;
}

.content p {
  color: var(--text);
  margin: 0 0 18px;
}

/* Content panel on the projects page, so text stays crisp against the
   canyon photo behind it. The edges fade out (mask) rather than cutting a
   hard rectangle, so it reads as a soft blend instead of a pasted-on card. */
.page-projects .content {
  background: rgba(250, 249, 246, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  -webkit-mask-image: radial-gradient(ellipse 88% 78% at 50% 50%, black 68%, transparent 100%);
  mask-image: radial-gradient(ellipse 88% 78% at 50% 50%, black 68%, transparent 100%);
}

/* -------------------- About (home page) -------------------- */

.about {
  max-width: 640px;
  margin: 0 auto;
  padding: 72px 32px 120px;
}

.about h2 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 18px;
}

.about p {
  font-size: 19px;
  line-height: 1.7;
  margin: 0;
}

/* -------------------- Projects -------------------- */

/* .project {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
} */

.project:first-of-type {
  padding-top: 0;
}

.project h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 600;
}

.project h3 a {
  color: var(--text);
}

.project h3 a:hover {
  color: var(--accent);
}

.project p {
  color: var(--text-muted);
  margin: 0;
}

/* -------------------- Projects page background -------------------- */
/* Full-bleed canyon photo, lightly washed with the site's off-white bg color
   so it reads as a real photo (not just texture), while the content block
   below sits on its own soft panel so the text stays crisp. */

body.page-projects {
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(250, 249, 246, 0.5), rgba(250, 249, 246, 0.5)),
    url("projects/canyon.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* -------------------- Resume -------------------- */

.resume-download {
  display: inline-block;
  margin-bottom: 32px;
  padding: 11px 22px;
  border: 1px solid var(--text);
  color: var(--text);
  font-size: 14px;
  letter-spacing: 0.03em;
}

.resume-download:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.resume-embed {
  width: 100%;
  height: 80vh;
  min-height: 500px;
  border: 1px solid var(--border);
}

/* -------------------- Contact -------------------- */

.contact-details {
  margin-top: 36px;
  font-size: 19px;
}

.contact-details a {
  display: block;
  color: var(--text);
  margin-bottom: 10px;
}

.contact-details a:hover {
  color: var(--accent);
}

/* -------------------- Responsive -------------------- */

@media (max-width: 640px) {
  .hero-nav, .site-nav {
    padding: 22px 20px;
  }
  .hero-nav a, .site-nav a {
    margin-left: 18px;
    font-size: 12px;
  }
  .hero-name {
    left: 40px;
    bottom: 40px;
  }
  .hero-tags {
    left: 40px;
  }
  .content, .about {
    padding: 48px 22px 80px;
  }
  body.page-projects {
    /* fixed backgrounds are jittery/heavy on mobile Safari */
    background-attachment: scroll;
  }
}
