/* Change these four values to control the overall look. */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');
:root {
  --sidebar-width: 34%;
  --text: #222;
  --muted: #888;
  --background: #fff;
  --font: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--background); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* Fixed left panel. */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 5;
  width: var(--sidebar-width);
  padding: 68px 28px 35px;
  overflow-y: auto;
  text-align: center;
  background: #fff;
}
.identity {
  display: block;
  max-width: 510px;
  margin: auto;
  font-size: clamp(24px, 2vw, 40px);
  font-weight: 750;
  line-height: 1.43;
 letter-spacing: 0.05em;
}
.sidebar nav { margin-top: 74px; }
.nav-title { margin: 0 0 30px; font-size: 19px; }
.project-nav { list-style: none; margin: 0; padding: 0; }
.project-nav li { margin: 0 0 17px; }
.project-nav a { color: #777; font-size: clamp(16px, 1.15vw, 21px); }
.project-nav a:hover, .project-nav a[aria-current="page"] { color: #222; }
.other-nav { display: grid; gap: 22px; margin-top: 72px; font-size: 21px; }
.other-nav a:hover { color: #777; }
.menu-toggle { display: none; }

/* The work overview: two square image columns. */
.content { min-height: 100vh; margin-left: var(--sidebar-width); }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.work-card { position: relative; display: block; aspect-ratio: 1; overflow: hidden; }
.card-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.work-card:hover .card-image { transform: scale(1.035); }
.image-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 12%;
  background: var(--gradient);
  color: rgba(255,255,255,.25);
  font-size: clamp(25px, 3vw, 60px);
  text-align: center;
}
.card-overlay {
  position: absolute;
  inset: 4.5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: rgba(255,255,255,.87);
  opacity: 0;
  transition: opacity .2s ease;
  text-align: center;
}
.work-card:hover .card-overlay, .work-card:focus-visible .card-overlay { opacity: 1; }
.card-year { color: #888; font-size: clamp(15px, 1.4vw, 25px); }
.card-title { padding: 0 12px; font-size: clamp(23px, 3vw, 58px); font-weight: 400; line-height: 1.15; letter-spacing: -.03em; }

/* Individual project pages, matching the second screenshot. */
.project-page { padding: 65px 7% 110px; text-align: center; }
.project-page h1 { margin: 0 0 140px; font-size: clamp(38px, 4vw, 68px); font-weight: 400; letter-spacing: -.04em; }
.intro { max-width: 1100px; margin: 0 auto; color: #9a9a9a; font-size: clamp(15px, 1.1vw, 19px); line-height: 1.65; }
.project-link { margin: 65px 0; color: #8b8b8b; font-size: 19px; }
.project-link a, .simple-page a { text-decoration: underline; text-underline-offset: 4px; }
.project-media { display: grid; gap: 25px; max-width: 1000px; margin: 0 auto; }
.project-media img { width: 100%; height: auto; }
.project-media iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; }
.media-placeholder { display: grid; place-items: center; min-height: 420px; padding: 30px; background: #292834; color: #eee; }
.simple-page { max-width: 900px; padding: 100px 8%; margin: 0 auto; text-align: center; }
.simple-page h1 { font-size: 50px; font-weight: 400; }
.simple-page p { font-size: 21px; color: #888; line-height: 1.6; }

/* Tablet and phone adjustments. */
@media (max-width: 1050px) {
  .sidebar { padding: 48px 18px; }
  .identity { font-size: 23px; }
  .sidebar nav { margin-top: 48px; }
  .project-nav a { font-size: 16px; }
  .project-page h1 { margin-bottom: 80px; }
}
@media (max-width: 750px) {
  .menu-toggle { display: block; position: sticky; top: 0; z-index: 10; width: 100%; padding: 16px 20px; border: 0; border-bottom: 1px solid #eee; background: white; text-align: left; font-size: 16px; }
  .sidebar { display: none; top: 51px; width: 100%; padding: 35px 18px; }
  .sidebar.is-open { display: block; }
  .identity { max-width: 350px; font-size: 26px; }
  .content { margin-left: 0; min-height: calc(100vh - 51px); }
  .card-overlay { inset: 0; opacity: 1; background: rgba(255,255,255,.72); gap: 10px; }
  .card-title { font-size: clamp(18px, 5vw, 34px); }
  .project-page { padding: 50px 6%; }
  .project-page h1 { margin-bottom: 55px; }
  .media-placeholder { min-height: 270px; }
}
@media (max-width: 460px) {
  .work-grid { grid-template-columns: 1fr; }
  .card-overlay { inset: auto 0 0; min-height: 28%; }
}
@media (prefers-reduced-motion: reduce) {
  .card-image, .card-overlay { transition: none; }
}
.additional-text {
  max-width: 1000px;
  margin: 80px auto 80px;
  color: #888888;
  font-size: 15px;
  line-height: 1.65;
  text-align: center;
} 
.resume-image {
  display: block;
  width: 100%;
  max-width: 900px;
  height: auto;
  margin: 50px auto 0;
}
.project-page h1,
.simple-page h1,
.card-title,
.identity {
  font-family: 'Montserrat', sans-serif;
}