/* ===== Base ===== */
body {
  margin: 0;
  font-family: Garamond, "Times New Roman", serif;
  background-color: #c7de32;
  color: #111;
  font-size: 22px;
  line-height: 1.8;
}

/* Mobile-specific background */
@media (max-width: 900px) {
  body {
    background-color: #BFDC2F; /* phone background */
  }
}


/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  display: flex;
  align-items: center;
  padding: 0 10%;
  font-size: 18px;
  z-index: 100;
  background-color: #c7de32; /* fallback */
  background-color: rgba(199, 222, 50, 0.9);
}

/* spacing between links without gap */
.nav a {
  text-decoration: none;
  color: #111;
  display: inline-block;
  padding-bottom: 2px; /* space for underline */
  margin-right: 40px;
}

.nav a:last-child {
  margin-right: 0;
}

.nav a:hover {
  text-decoration: underline;
}

.nav a.active {
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: bold;
  opacity: 0.85;
}

/* ===== Home Button ===== */
.home-button {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 100px;
  height: 100px;
  cursor: pointer;
  z-index: 200;
}

/* ===== Content ===== */
.container {
  padding: 140px 10%;
  box-sizing: border-box;
  max-width: 900px;          /* editorial line length */
}

h1 {
  font-size: 64px;
  margin-bottom: 40px;
  font-weight: normal;
}

.work {
  padding: 12px 0;
}

.work:not(:last-child) {
  border-bottom: 1px solid rgba(0,0,0,0.15);
}


.work a {
  text-decoration: none;
  color: #111;
}

.work a:hover {
  text-decoration: underline;
}

.work {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
}

.work-title {
  max-width: 75%;
}

.work-year {
  font-variant-numeric: oldstyle-nums;
  opacity: 0.75;
  white-space: nowrap;
}


/* ===== Mobile ===== */
@media (max-width: 900px) {
  body {
    font-size: 30px;
  }

  h1 {
    font-size: 80px;
  }

  .nav {
    font-size: 26px;
  }

  .container {
    padding: 160px 40px;
    max-width: none;
  }
}
